| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
 | | <template>  |  | <a-modal title="测试窗口" destroyOnClose :visible="visible"  |  | @ok="handleOk" @cancel="handleCancel">  |  |     <span>  |  |         {{visible}}  |  |     </span>  |  |     <a-button @click="handlerClick">自定义返回内容</a-button>  |  | </a-modal>  |  | </template>  |  |   |  | <script lang="ts">  |  | import {  |  |     Component,  |  |     Prop,  |  |     Vue,  |  |     Emit,  |  |     Model,  |  |     Watch,  |  |     Mixins,  |  | } from 'vue-property-decorator';  |  | import {  |  |     State,  |  |     Mutation,  |  |     namespace,  |  | } from 'vuex-class';  |  |   |  | import ModalMixin, { IModalMixin } from '@/core/modalMixin.ts';  |  |   |  | @Component({  |  |     components: {},  |  | })  |  | export default class TestModal extends Mixins<IModalMixin>(ModalMixin) {  |  |   |  |     @Prop({  |  |         type: String,  |  |         default: '',  |  |     })  |  |     private user!: string;  |  |   |  |     constructor() {  |  |         super();  |  |     }  |  |     private mounted(): void {  |  |     }  |  |   |  |     private handlerClick() {  |  |         this.subject$.next('自定义返回结果');  |  |         this.close();  |  |     }  |  | }  |  | </script>  | 
 |