| | |
| | | <template> |
| | | <el-drawer |
| | | title="新增用户" |
| | | title="新增店铺" |
| | | direction="rtl" |
| | | :model-value="modelValue" |
| | | @open="updateDrawer(true)" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import CompUserInfo from './CompUserInfo.vue'; |
| | | import { useMessageBox } from '@/composables/messageBox'; |
| | | import CompUserInfo from './CompUserInfo.vue' |
| | | import { useMessageBox } from '@/composables/messageBox' |
| | | |
| | | export default { |
| | | components: { CompUserInfo }, |
| | |
| | | emits: ['update:modelValue'], |
| | | data() { |
| | | return { |
| | | drawerEdit: false |
| | | }; |
| | | drawerEdit: false, |
| | | } |
| | | }, |
| | | methods: { |
| | | updateDrawer(status) { |
| | | this.$emit('update:modelValue', status); |
| | | this.$emit('update:modelValue', status) |
| | | }, |
| | | onDrawerClose(done) { |
| | | if (this.drawerEdit) { |
| | |
| | | confirmMsg: '是否放弃已编辑的内容?', |
| | | confirmTitle: '关闭弹出框', |
| | | onConfirm: () => { |
| | | done(); |
| | | } |
| | | }); |
| | | done() |
| | | }, |
| | | }) |
| | | } else { |
| | | // 直接关闭 |
| | | done(); |
| | | done() |
| | | } |
| | | }, |
| | | }, |
| | | } |
| | | }; |
| | | </script> |