import type { PropType } from 'vue'; import { useI18n } from '/@/hooks/web/useI18n'; const { t } = useI18n(); export const footerProps = { confirmLoading: { type: Boolean }, /** * @description: Show close button */ showCancelBtn: { type: Boolean, default: true }, cancelButtonProps: Object as PropType, cancelText: { type: String, default: t('common.cancelText') }, /** * @description: Show confirmation button */ showOkBtn: { type: Boolean, default: true }, okButtonProps: Object as PropType, okText: { type: String, default: t('common.okText') }, okType: { type: String, default: 'primary' }, showFooter: { type: Boolean }, footerHeight: { type: [String, Number] as PropType, default: 60, }, }; export const basicProps = { isDetail: { type: Boolean }, title: { type: String, default: '' }, loadingText: { type: String }, showDetailBack: { type: Boolean, default: true }, visible: { type: Boolean }, loading: { type: Boolean }, maskClosable: { type: Boolean, default: true }, getContainer: { type: [Object, String] as PropType, }, closeFunc: { type: [Function, Object] as PropType, default: null, }, destroyOnClose: { type: Boolean }, ...footerProps, };