|
1 | | -import { PropType } from 'vue'; |
2 | 1 | import { TdUploadProps, UploadRemoveContext } from './type'; |
3 | 2 | import { GlobalConfigProvider } from '../config-provider/type'; |
4 | 3 | import { TNode } from '../common'; |
@@ -27,25 +26,3 @@ export interface CommonDisplayFileProps { |
27 | 26 | } |
28 | 27 |
|
29 | 28 | export type UploadProps = TdUploadProps; |
30 | | - |
31 | | -export const commonProps = { |
32 | | - files: Array as PropType<CommonDisplayFileProps['files']>, |
33 | | - toUploadFiles: Array as PropType<CommonDisplayFileProps['toUploadFiles']>, |
34 | | - displayFiles: Array as PropType<CommonDisplayFileProps['displayFiles']>, |
35 | | - theme: String as PropType<CommonDisplayFileProps['theme']>, |
36 | | - abridgeName: Array as PropType<CommonDisplayFileProps['abridgeName']>, |
37 | | - placeholder: String, |
38 | | - classPrefix: String, |
39 | | - tips: String, |
40 | | - status: String as PropType<CommonDisplayFileProps['status']>, |
41 | | - locale: Object as PropType<CommonDisplayFileProps['locale']>, |
42 | | - sizeOverLimitMessage: String, |
43 | | - autoUpload: Boolean, |
44 | | - disabled: Boolean, |
45 | | - uploading: Boolean, |
46 | | - tipsClasses: [String, Array, Object] as PropType<CommonDisplayFileProps['tipsClasses']>, |
47 | | - errorClasses: [String, Array, Object] as PropType<CommonDisplayFileProps['errorClasses']>, |
48 | | - default: Function as PropType<CommonDisplayFileProps['default']>, |
49 | | - fileListDisplay: Function as PropType<CommonDisplayFileProps['fileListDisplay']>, |
50 | | - onRemove: Function as PropType<CommonDisplayFileProps['onRemove']>, |
51 | | -}; |
0 commit comments