Ben Lin
2024-08-28 0a8a3f71f2e50f0603077197d9b1971431a64b36
src/views/components/CustModal.vue
@@ -4,7 +4,7 @@
 * @version: 
 * @Date: 2024-06-05 15:46:07
 * @LastEditors: Ben Lin
 * @LastEditTime: 2024-07-21 20:29:30
 * @LastEditTime: 2024-08-22 12:00:25
-->
<template>
  <BasicModal
@@ -12,6 +12,7 @@
    @register="registerModal"
    :title="title"
    @ok="handleSuccess"
    @cancel="handleCancel"
    :width="width"
  >
    <a-layout>
@@ -45,7 +46,7 @@
  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('');
@@ -178,4 +179,12 @@
      setModalProps({ confirmLoading: false });
    }
  }
  /**
   * @description: 取消按钮触发取消事件
   * @return {*}
   */
  function handleCancel() {
    emit('cancel');
  }
</script>