11import type { PropType } from 'vue' ;
22
33import { useI18n } from '/@/hooks/web/useI18n' ;
4- import { propTypes } from '/@/utils/propTypes' ;
54const { t } = useI18n ( ) ;
65
76export const footerProps = {
8- confirmLoading : propTypes . bool ,
7+ confirmLoading : { type : Boolean } ,
98 /**
109 * @description : Show close button
1110 */
12- showCancelBtn : propTypes . bool . def ( true ) ,
11+ showCancelBtn : { type : Boolean , default : true } ,
1312 cancelButtonProps : Object as PropType < Recordable > ,
14- cancelText : propTypes . string . def ( t ( 'common.cancelText' ) ) ,
13+ cancelText : { type : String , default : t ( 'common.cancelText' ) } ,
1514 /**
1615 * @description : Show confirmation button
1716 */
18- showOkBtn : propTypes . bool . def ( true ) ,
17+ showOkBtn : { type : Boolean , default : true } ,
1918 okButtonProps : Object as PropType < Recordable > ,
20- okText : propTypes . string . def ( t ( 'common.okText' ) ) ,
21- okType : propTypes . string . def ( 'primary' ) ,
22- showFooter : propTypes . bool ,
19+ okText : { type : String , default : t ( 'common.okText' ) } ,
20+ okType : { type : String , default : 'primary' } ,
21+ showFooter : { type : Boolean } ,
2322 footerHeight : {
2423 type : [ String , Number ] as PropType < string | number > ,
2524 default : 60 ,
2625 } ,
2726} ;
2827export const basicProps = {
29- isDetail : propTypes . bool ,
30- title : propTypes . string . def ( '' ) ,
31- loadingText : propTypes . string ,
32- showDetailBack : propTypes . bool . def ( true ) ,
33- visible : propTypes . bool ,
34- loading : propTypes . bool ,
35- maskClosable : propTypes . bool . def ( true ) ,
28+ isDetail : { type : Boolean } ,
29+ title : { type : String , default : '' } ,
30+ loadingText : { type : String } ,
31+ showDetailBack : { type : Boolean , default : true } ,
32+ visible : { type : Boolean } ,
33+ loading : { type : Boolean } ,
34+ maskClosable : { type : Boolean , default : true } ,
3635 getContainer : {
3736 type : [ Object , String ] as PropType < any > ,
3837 } ,
@@ -44,7 +43,7 @@ export const basicProps = {
4443 type : [ Function , Object ] as PropType < any > ,
4544 default : null ,
4645 } ,
47- triggerWindowResize : propTypes . bool ,
48- destroyOnClose : propTypes . bool ,
46+ triggerWindowResize : { type : Boolean } ,
47+ destroyOnClose : { type : Boolean } ,
4948 ...footerProps ,
5049} ;
0 commit comments