diff --git a/src/components/DraggableModal/index.vue b/src/components/DraggableModal/index.vue index 24ebf7a1..3d5b78ec 100644 --- a/src/components/DraggableModal/index.vue +++ b/src/components/DraggableModal/index.vue @@ -2,6 +2,7 @@ import { ref, watch, watchEffect, CSSProperties, computed } from 'vue'; import { useDraggable } from '@vueuse/core'; const emit = defineEmits(['update:visible', 'ok', 'cancel']); +/**于a-modal保持一致 */ const props = defineProps({ /**是否弹出显示,必传 */ visible: { @@ -18,11 +19,37 @@ const props = defineProps({ type: [String, Number], default: '520px', }, - /**确认按钮加载 */ + bodyStyle: { + type: Object, + default: {}, + }, + keyboard: { + type: Boolean, + default: true, + }, + mask: { + type: Boolean, + default: true, + }, + maskClosable: { + type: Boolean, + default: true, + }, + maskStyle: { + type: Object, + default: {}, + }, + destroyOnClose: { + type: Boolean, + default: false, + }, confirmLoading: { type: Boolean, default: false, }, + footer: { + type: Object, + }, }); // 对标题进行监听 @@ -96,10 +123,14 @@ watch(