提交 | 用户 | age
|
2f6253
|
1 |
import type { PropType } from 'vue'; |
dc09de
|
2 |
|
V |
3 |
import { useI18n } from '/@/hooks/web/useI18n'; |
8e5a6b
|
4 |
|
962f90
|
5 |
const { t } = useI18n(); |
dc09de
|
6 |
|
2f6253
|
7 |
export const footerProps = { |
c7c95d
|
8 |
confirmLoading: { type: Boolean }, |
2f6253
|
9 |
/** |
46e087
|
10 |
* @description: Show close button |
2f6253
|
11 |
*/ |
c7c95d
|
12 |
showCancelBtn: { type: Boolean, default: true }, |
ebf7c8
|
13 |
cancelButtonProps: Object as PropType<Recordable>, |
c7c95d
|
14 |
cancelText: { type: String, default: t('common.cancelText') }, |
2f6253
|
15 |
/** |
46e087
|
16 |
* @description: Show confirmation button |
2f6253
|
17 |
*/ |
c7c95d
|
18 |
showOkBtn: { type: Boolean, default: true }, |
ebf7c8
|
19 |
okButtonProps: Object as PropType<Recordable>, |
c7c95d
|
20 |
okText: { type: String, default: t('common.okText') }, |
V |
21 |
okType: { type: String, default: 'primary' }, |
|
22 |
showFooter: { type: Boolean }, |
2f6253
|
23 |
footerHeight: { |
陈 |
24 |
type: [String, Number] as PropType<string | number>, |
|
25 |
default: 60, |
|
26 |
}, |
|
27 |
}; |
|
28 |
export const basicProps = { |
c7c95d
|
29 |
isDetail: { type: Boolean }, |
V |
30 |
title: { type: String, default: '' }, |
|
31 |
loadingText: { type: String }, |
|
32 |
showDetailBack: { type: Boolean, default: true }, |
|
33 |
visible: { type: Boolean }, |
|
34 |
loading: { type: Boolean }, |
|
35 |
maskClosable: { type: Boolean, default: true }, |
2f6253
|
36 |
getContainer: { |
陈 |
37 |
type: [Object, String] as PropType<any>, |
|
38 |
}, |
|
39 |
closeFunc: { |
|
40 |
type: [Function, Object] as PropType<any>, |
|
41 |
default: null, |
|
42 |
}, |
c7c95d
|
43 |
destroyOnClose: { type: Boolean }, |
2f6253
|
44 |
...footerProps, |
陈 |
45 |
}; |