| | |
| | | * @version: |
| | | * @Date: 2024-06-05 15:46:07 |
| | | * @LastEditors: Ben Lin |
| | | * @LastEditTime: 2024-07-21 20:29:30 |
| | | * @LastEditTime: 2024-07-22 00:51:10 |
| | | --> |
| | | <template> |
| | | <BasicModal |
| | |
| | | @register="registerModal" |
| | | :title="title" |
| | | @ok="handleSuccess" |
| | | @cancel="handleCancel" |
| | | :width="width" |
| | | > |
| | | <a-layout> |
| | |
| | | const ALayout = Layout; |
| | | const ACard = Card; |
| | | const ALayoutContent = LayoutContent; |
| | | const emit = defineEmits(['success', 'register', 'modalInner']); |
| | | const emit = defineEmits(['success', 'register', 'modalInner', 'cancel']); |
| | | const isUpdate = ref(true); |
| | | const cType = ref(''); |
| | | const title = ref(''); |
| | |
| | | setModalProps({ confirmLoading: false }); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * @description: 取消按钮触发取消事件 |
| | | * @return {*} |
| | | */ |
| | | function handleCancel() { |
| | | emit('cancel'); |
| | | } |
| | | </script> |