弹窗
Showing
1 changed file
with
4 additions
and
0 deletions
| ... | @@ -25,6 +25,8 @@ | ... | @@ -25,6 +25,8 @@ |
| 25 | confirmText: '确认', | 25 | confirmText: '确认', |
| 26 | isSync: false, | 26 | isSync: false, |
| 27 | isShow: false, | 27 | isShow: false, |
| 28 | cancel: function () {}, | ||
| 29 | confirm: function () {}, | ||
| 28 | editItem:"", | 30 | editItem:"", |
| 29 | titleStyle:'', | 31 | titleStyle:'', |
| 30 | width:"75%", | 32 | width:"75%", |
| ... | @@ -42,10 +44,12 @@ | ... | @@ -42,10 +44,12 @@ |
| 42 | methods: { | 44 | methods: { |
| 43 | onCancel () { | 45 | onCancel () { |
| 44 | this.isShow = false | 46 | this.isShow = false |
| 47 | this.cancel() | ||
| 45 | }, | 48 | }, |
| 46 | onConfirm () { | 49 | onConfirm () { |
| 47 | this.loading = true | 50 | this.loading = true |
| 48 | this.$refs.childRef.childFn() | 51 | this.$refs.childRef.childFn() |
| 52 | this.confirm() | ||
| 49 | }, | 53 | }, |
| 50 | loadingFn(e){ //加载状态 | 54 | loadingFn(e){ //加载状态 |
| 51 | this.loading = e | 55 | this.loading = e | ... | ... |
-
Please register or sign in to post a comment