<template>
  <BasicModal
    v-bind="$attrs"
    @register="registerModal"
    :title="title"
    width="900px"
    :showCancelBtn="false"
    :showOkBtn="false"
    :footer="null"
    destroyOnClose
  >
    <fileModal @saveOrUpdate="(values) => emit('saveOrUpdate', values)" />
  </BasicModal>
</template>
<script lang="ts" setup>
  import fileModal from './fileModal.vue';
  import { BasicModal, useModalInner } from '/@/components/Modal';
  import { ref } from 'vue';
  const emit = defineEmits(['saveOrUpdate', 'register']);
  //弹窗标题
  let title = ref('编辑目录');
  //弹窗赋值
  const [registerModal, { setModalProps }] = useModalInner(async (data) => {
    //重置弹窗
    setModalProps({ confirmLoading: false });
    // Object.assign(record, data.record);
  });
</script>

<style lang="less" scoped></style>
