fileMenuModal.vue 835 B

123456789101112131415161718192021222324252627282930
  1. <template>
  2. <BasicModal
  3. v-bind="$attrs"
  4. @register="registerModal"
  5. :title="title"
  6. width="900px"
  7. :showCancelBtn="false"
  8. :showOkBtn="false"
  9. :footer="null"
  10. destroyOnClose
  11. >
  12. <fileModal @saveOrUpdate="(values) => emit('saveOrUpdate', values)" />
  13. </BasicModal>
  14. </template>
  15. <script lang="ts" setup>
  16. import fileModal from './fileModal.vue';
  17. import { BasicModal, useModalInner } from '/@/components/Modal';
  18. import { ref } from 'vue';
  19. const emit = defineEmits(['saveOrUpdate', 'register']);
  20. //弹窗标题
  21. let title = ref('编辑目录');
  22. //弹窗赋值
  23. const [registerModal, { setModalProps }] = useModalInner(async (data) => {
  24. //重置弹窗
  25. setModalProps({ confirmLoading: false });
  26. // Object.assign(record, data.record);
  27. });
  28. </script>
  29. <style lang="less" scoped></style>