import type { PropType, CSSProperties } from 'vue';
import { ButtonProps } from 'ant-design-vue/es/button/buttonTypes';
export const basicProps = {
  //组件默认参数
  afterClose: { type: Function },
  bodyStyle: Object as PropType<CSSProperties>,
  centered: { type: Boolean },
  closable: { type: Boolean, default: true },
  closeIcon: Object as PropType<VueNode>,
  confirmLoading: { type: Boolean },
  destroyOnClose: { type: Boolean },
  footer: Object as PropType<VueNode>,
  getContainer: Function as PropType<() => any>,
  keyboard: { type: Boolean, default: true },
  mask: { type: Boolean, default: true },
  maskClosable: { type: Boolean, default: true },
  maskStyle: Object as PropType<CSSProperties>,
  okText: { type: String, default: '确认' },
  cancelText: { type: String, default: '取消' },
  okType: { type: String, default: 'primary' },
  okButtonProps: Object as PropType<ButtonProps>,
  cancelButtonProps: Object as PropType<ButtonProps>,
  title: { type: String },
  visible: { type: Boolean },
  width: [String, Number] as PropType<string | number>,
  wrapClassName: { type: String, default: '' },
  zIndex: { type: Number },
  dialogStyle: { type: Object },
  dialogClass: { type: Object },
  //自定义扩展参数
  //显示取消按钮
  showCancelBtn: { type: Boolean, default: true },
  //显示提交按钮
  showOkBtn: { type: Boolean, default: true },
  //是否开启拖拽
  draggable: {
    type: Boolean,
    default: true,
  },
  //是否可以进行全屏
  canFullscreen: {
    type: Boolean,
    default: true,
  },
};
