import type { PropType } from 'vue'; // import {DrawerProps} from './types' export const footerProps = { confirmLoading: Boolean as PropType, /** * @description: 显示关闭按钮 */ showCancelBtn: { type: Boolean as PropType, default: true, }, cancelButtonProps: Object as PropType, cancelText: { type: String as PropType, default: '关闭', }, /** * @description: 显示确认按钮 */ showOkBtn: { type: Boolean as PropType, default: true, }, okButtonProps: Object as PropType, okText: { type: String as PropType, default: '保存', }, okType: { type: String as PropType, default: 'primary', }, showFooter: { type: Boolean as PropType, default: false, }, footerHeight: { type: [String, Number] as PropType, default: 60, }, }; export const basicProps = { isDetail: { type: Boolean as PropType, default: false, }, title: { type: String as PropType, default: '', }, showDetailBack: { type: Boolean as PropType, default: true, }, visible: { type: Boolean as PropType, default: false, }, loading: { type: Boolean as PropType, default: false, }, maskClosable: { type: Boolean as PropType, default: true, }, getContainer: { type: [Object, String] as PropType, }, scrollOptions: { type: Object as PropType, default: null, }, closeFunc: { type: [Function, Object] as PropType, default: null, }, triggerWindowResize: { type: Boolean as PropType, default: false, }, destroyOnClose: Boolean as PropType, ...footerProps, };