| | |
| | | overflow: 'hidden', |
| | | marginTop: `-${addUnit(negativeTop)}` |
| | | }" |
| | | :closeable='closeable' |
| | | @close='closepoup' |
| | | :closeOnClickOverlay="closeOnClickOverlay" |
| | | :safeAreaInsetBottom="false" |
| | | :duration="400" |
| | |
| | | if (n && this.loading) this.loading = false |
| | | } |
| | | }, |
| | | emits: ["confirm", "cancel", "close", "update:show"], |
| | | emits: ["confirm", "cancel", "close", "update:show",'closemodal'], |
| | | methods: { |
| | | addUnit, |
| | | // 点击确定按钮 |
| | |
| | | this.$emit('update:show', false) |
| | | this.$emit('cancel') |
| | | }, |
| | | // |
| | | closepoup(){ |
| | | this.$emit('closemodal') |
| | | }, |
| | | // 点击遮罩 |
| | | // 从原理上来说,modal的遮罩点击,并不是真的点击到了遮罩 |
| | | // 因为modal依赖于popup的中部弹窗类型,中部弹窗比较特殊,虽有然遮罩,但是为了让弹窗内容能flex居中 |