ik-next-ui 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Demo/ik.index.es.js +8 -0
- package/dist/IkApprovalProcess/ik-next-ui.css +1 -0
- package/dist/IkApprovalProcess/ik.index.es.js +2610 -0
- package/dist/IkApprovalProcessDetail/ik-next-ui.css +1 -0
- package/dist/IkApprovalProcessDetail/ik.index.es.js +17033 -0
- package/dist/IkAutoCard/ik-next-ui.css +1 -0
- package/dist/IkAutoCard/ik.index.es.js +51 -0
- package/dist/IkBaseDialog/ik-next-ui.css +1 -0
- package/dist/IkBaseDialog/ik.index.es.js +1954 -0
- package/dist/IkBottomOperate/ik-next-ui.css +1 -0
- package/dist/IkBottomOperate/ik.index.es.js +241 -0
- package/dist/IkBtnContent/ik-next-ui.css +1 -0
- package/dist/IkBtnContent/ik.index.es.js +80 -0
- package/dist/IkCollapseCard/ik-next-ui.css +1 -0
- package/dist/IkCollapseCard/ik.index.es.js +1924 -0
- package/dist/IkCurrencyInput/ik.index.es.js +60 -0
- package/dist/IkDescription/ik-next-ui.css +1 -0
- package/dist/IkDescription/ik.index.es.js +16544 -0
- package/dist/IkDetailPreviewFiles/ik-next-ui.css +1 -0
- package/dist/IkDetailPreviewFiles/ik.index.es.js +16540 -0
- package/dist/IkDragList/ik-next-ui.css +1 -0
- package/dist/IkDragList/ik.index.es.js +445 -0
- package/dist/IkEmpty/ik-next-ui.css +1 -0
- package/dist/IkEmpty/ik.index.es.js +44 -0
- package/dist/IkFileIcon/ik.index.es.js +619 -0
- package/dist/IkHorizontalStepBar/ik-next-ui.css +1 -0
- package/dist/IkHorizontalStepBar/ik.index.es.js +279 -0
- package/dist/IkIconPicker/ik-next-ui.css +1 -0
- package/dist/IkIconPicker/ik.index.es.js +2060 -0
- package/dist/IkImageUploadEditor/ik-next-ui.css +9 -0
- package/dist/IkImageUploadEditor/ik.index.es.js +9489 -0
- package/dist/IkImageViewer/ik.index.es.js +552 -0
- package/dist/IkMonacoEditor/ik-next-ui.css +1 -0
- package/dist/IkMonacoEditor/ik.index.es.js +2566 -0
- package/dist/IkOnlyOffice/ik.index.es.js +1612 -0
- package/dist/IkPage/ik.index.es.js +1 -0
- package/dist/IkPickerUser/ik-next-ui.css +1 -0
- package/dist/IkPickerUser/ik.index.es.js +2077 -0
- package/dist/IkPlayer/ik-next-ui.css +1 -0
- package/dist/IkPlayer/ik.index.es.js +11071 -0
- package/dist/IkPreviewFile/ik-next-ui.css +1 -0
- package/dist/IkPreviewFile/ik.index.es.js +16385 -0
- package/dist/IkPreviewFileDialog/ik-next-ui.css +1 -0
- package/dist/IkPreviewFileDialog/ik.index.es.js +15486 -0
- package/dist/IkRadioGroup/ik-next-ui.css +1 -0
- package/dist/IkRadioGroup/ik.index.es.js +1937 -0
- package/dist/IkSelectTag/ik-next-ui.css +1 -0
- package/dist/IkSelectTag/ik.index.es.js +359 -0
- package/dist/IkSideText/ik-next-ui.css +1 -0
- package/dist/IkSideText/ik.index.es.js +2084 -0
- package/dist/IkStatu/ik-next-ui.css +1 -0
- package/dist/IkStatu/ik.index.es.js +131 -0
- package/dist/IkStatuOver/ik-next-ui.css +1 -0
- package/dist/IkStatuOver/ik.index.es.js +284 -0
- package/dist/IkSvgIcon/ik-next-ui.css +1 -0
- package/dist/IkSvgIcon/ik.index.es.js +1845 -0
- package/dist/IkTemplateOfficeConfig/ik-next-ui.css +1 -0
- package/dist/IkTemplateOfficeConfig/ik.index.es.js +2027 -0
- package/dist/IkTinymce/ik-next-ui.css +1 -0
- package/dist/IkTinymce/ik.index.es.js +50349 -0
- package/dist/IkTooltip/ik.index.es.js +48 -0
- package/dist/IkTree/ik-next-ui.css +1 -0
- package/dist/IkTree/ik.index.es.js +136 -0
- package/dist/IkUploadFile/ik-next-ui.css +1 -0
- package/dist/IkUploadFile/ik.index.es.js +17251 -0
- package/dist/IkUploadImage/ik-next-ui.css +1 -0
- package/dist/IkUploadImage/ik.index.es.js +2946 -0
- package/dist/IkVerticalStepBar/ik-next-ui.css +1 -0
- package/dist/IkVerticalStepBar/ik.index.es.js +1987 -0
- package/dist/Provider/ik.index.es.js +42 -0
- package/dist/ik-next-ui.css +9 -0
- package/dist/index.es.js +84696 -0
- package/dist/index.umd.js +371 -0
- package/dist/resolver.cjs +1 -0
- package/dist/resolver.js +63 -0
- package/dist/src/components/Demo/index.d.ts +4 -0
- package/dist/src/components/IkApprovalProcess/index.d.ts +100 -0
- package/dist/src/components/IkApprovalProcess/src/IkApprovalProcess.vue.d.ts +100 -0
- package/dist/src/components/IkApprovalProcessDetail/index.d.ts +108 -0
- package/dist/src/components/IkApprovalProcessDetail/src/IkApprovalProcessDetail.vue.d.ts +109 -0
- package/dist/src/components/IkAutoCard/index.d.ts +60 -0
- package/dist/src/components/IkAutoCard/src/IkAutoCard.vue.d.ts +43 -0
- package/dist/src/components/IkBaseDialog/index.d.ts +141 -0
- package/dist/src/components/IkBaseDialog/src/CloseIcon.vue.d.ts +23 -0
- package/dist/src/components/IkBaseDialog/src/IkBaseDialog.vue.d.ts +87 -0
- package/dist/src/components/IkBottomOperate/index.d.ts +155 -0
- package/dist/src/components/IkBottomOperate/src/IkBottomOperate.vue.d.ts +84 -0
- package/dist/src/components/IkCollapseCard/index.d.ts +59 -0
- package/dist/src/components/IkCollapseCard/src/index.vue.d.ts +36 -0
- package/dist/src/components/IkCurrencyInput/index.d.ts +25 -0
- package/dist/src/components/IkCurrencyInput/src/IkCurrencyInput.vue.d.ts +25 -0
- package/dist/src/components/IkDescription/index.d.ts +235 -0
- package/dist/src/components/IkDescription/src/IkDescription.vue.d.ts +146 -0
- package/dist/src/components/IkDetailPreviewFiles/index.d.ts +52 -0
- package/dist/src/components/IkDetailPreviewFiles/src/IkDetailPreviewFiles.vue.d.ts +53 -0
- package/dist/src/components/IkDragList/index.d.ts +509 -0
- package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +307 -0
- package/dist/src/components/IkDragList/src/default-props.d.ts +150 -0
- package/dist/src/components/IkEmpty/index.d.ts +69 -0
- package/dist/src/components/IkEmpty/src/index.vue.d.ts +41 -0
- package/dist/src/components/IkFileIcon/index.d.ts +40 -0
- package/dist/src/components/IkFileIcon/src/IkFileIcon.vue.d.ts +42 -0
- package/dist/src/components/IkHorizontalStepBar/index.d.ts +224 -0
- package/dist/src/components/IkHorizontalStepBar/src/IkHorizontalStepBar.vue.d.ts +137 -0
- package/dist/src/components/IkIconPicker/index.d.ts +83 -0
- package/dist/src/components/IkIconPicker/src/index.vue.d.ts +83 -0
- package/dist/src/components/IkImageUploadEditor/index.d.ts +231 -0
- package/dist/src/components/IkImageUploadEditor/src/IkImageUploadEditor.vue.d.ts +232 -0
- package/dist/src/components/IkImageViewer/index.d.ts +6 -0
- package/dist/src/components/IkImageViewer/src/IkImageViewer.vue.d.ts +11 -0
- package/dist/src/components/IkImageViewer/src/image-viewer.d.ts +87 -0
- package/dist/src/components/IkMonacoEditor/index.d.ts +229 -0
- package/dist/src/components/IkMonacoEditor/src/editor-config.d.ts +10 -0
- package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +232 -0
- package/dist/src/components/IkOnlyOffice/index.d.ts +32 -0
- package/dist/src/components/IkOnlyOffice/src/IkOnlyOffice.vue.d.ts +32 -0
- package/dist/src/components/IkPage/index.d.ts +0 -0
- package/dist/src/components/IkPickerUser/index.d.ts +373 -0
- package/dist/src/components/IkPickerUser/src/avatar/Avatar.vue.d.ts +41 -0
- package/dist/src/components/IkPickerUser/src/default.d.ts +156 -0
- package/dist/src/components/IkPickerUser/src/list/GroupList.vue.d.ts +112 -0
- package/dist/src/components/IkPickerUser/src/list/PostList.vue.d.ts +110 -0
- package/dist/src/components/IkPickerUser/src/list/RoleList.vue.d.ts +110 -0
- package/dist/src/components/IkPickerUser/src/list/props.d.ts +49 -0
- package/dist/src/components/IkPickerUser/src/list/utils.d.ts +5 -0
- package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +375 -0
- package/dist/src/components/IkPickerUser/src/svg/close_svg.vue.d.ts +2 -0
- package/dist/src/components/IkPickerUser/src/svg/group_svg.vue.d.ts +2 -0
- package/dist/src/components/IkPickerUser/src/svg/post_svg.vue.d.ts +2 -0
- package/dist/src/components/IkPickerUser/src/svg/role_svg.vue.d.ts +2 -0
- package/dist/src/components/IkPickerUser/src/svg/search_svg.vue.d.ts +2 -0
- package/dist/src/components/IkPickerUser/src/use-picker-data.d.ts +15 -0
- package/dist/src/components/IkPickerUser/types.d.ts +28 -0
- package/dist/src/components/IkPlayer/index.d.ts +82 -0
- package/dist/src/components/IkPlayer/src/Player.vue.d.ts +48 -0
- package/dist/src/components/IkPreviewFile/index.d.ts +382 -0
- package/dist/src/components/IkPreviewFile/src/IkPreviewFile.vue.d.ts +231 -0
- package/dist/src/components/IkPreviewFileDialog/index.d.ts +80 -0
- package/dist/src/components/IkPreviewFileDialog/src/IkPreviewFileDialog.vue.d.ts +82 -0
- package/dist/src/components/IkRadioGroup/index.d.ts +30 -0
- package/dist/src/components/IkRadioGroup/src/index.vue.d.ts +32 -0
- package/dist/src/components/IkSelectTag/index.d.ts +85 -0
- package/dist/src/components/IkSelectTag/src/index.vue.d.ts +49 -0
- package/dist/src/components/IkSideText/IkLinearIcon.vue.d.ts +32 -0
- package/dist/src/components/IkSideText/IkSideText.vue.d.ts +115 -0
- package/dist/src/components/IkSideText/index.d.ts +113 -0
- package/dist/src/components/IkSideText/useLinear.d.ts +3 -0
- package/dist/src/components/IkStatu/index.d.ts +117 -0
- package/dist/src/components/IkStatu/src/index.vue.d.ts +119 -0
- package/dist/src/components/IkStatuOver/index.d.ts +36 -0
- package/dist/src/components/IkStatuOver/src/index.vue.d.ts +52 -0
- package/dist/src/components/IkSvgIcon/index.d.ts +135 -0
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +146 -0
- package/dist/src/components/IkTemplateOfficeConfig/index.d.ts +130 -0
- package/dist/src/components/IkTemplateOfficeConfig/src/IkTemplateOfficeConfig.vue.d.ts +130 -0
- package/dist/src/components/IkTemplateOfficeConfig/src/templateOfficeData.vue.d.ts +57 -0
- package/dist/src/components/IkTinymce/index.d.ts +215 -0
- package/dist/src/components/IkTinymce/src/index.vue.d.ts +216 -0
- package/dist/src/components/IkTooltip/index.d.ts +84 -0
- package/dist/src/components/IkTooltip/src/index.vue.d.ts +52 -0
- package/dist/src/components/IkTree/IkTree.vue.d.ts +1597 -0
- package/dist/src/components/IkTree/index.d.ts +4693 -0
- package/dist/src/components/IkUploadFile/index.d.ts +586 -0
- package/dist/src/components/IkUploadFile/src/components/ErrorFileItem.vue.d.ts +27 -0
- package/dist/src/components/IkUploadFile/src/components/FileItemCard.vue.d.ts +85 -0
- package/dist/src/components/IkUploadFile/src/components/FileItemDefault.vue.d.ts +103 -0
- package/dist/src/components/IkUploadFile/src/components/FileItemSimple.vue.d.ts +68 -0
- package/dist/src/components/IkUploadFile/src/components/FileItemSimpleIcon.vue.d.ts +112 -0
- package/dist/src/components/IkUploadFile/src/components/UploadTriggerButton.vue.d.ts +59 -0
- package/dist/src/components/IkUploadFile/src/components/UploadTriggerCard.vue.d.ts +90 -0
- package/dist/src/components/IkUploadFile/src/hooks/useFileInfo.d.ts +35 -0
- package/dist/src/components/IkUploadFile/src/hooks/useFileOperations.d.ts +32 -0
- package/dist/src/components/IkUploadFile/src/hooks/useUploadFile.d.ts +35 -0
- package/dist/src/components/IkUploadFile/src/index.vue.d.ts +349 -0
- package/dist/src/components/IkUploadFile/src/types/index.d.ts +133 -0
- package/dist/src/components/IkUploadFile/src/utils.d.ts +0 -0
- package/dist/src/components/IkUploadImage/index.d.ts +287 -0
- package/dist/src/components/IkUploadImage/src/index.vue.d.ts +171 -0
- package/dist/src/components/IkUploadImage/src/loading.vue.d.ts +2 -0
- package/dist/src/components/IkVerticalStepBar/index.d.ts +79 -0
- package/dist/src/components/IkVerticalStepBar/src/IkVerticalStepBar.vue.d.ts +81 -0
- package/dist/src/components/Provider/ProviderConfig.vue.d.ts +59 -0
- package/dist/src/components/Provider/index.d.ts +99 -0
- package/dist/src/components/index.d.ts +37 -0
- package/dist/src/components-dev/IkUmoEditor/index.d.ts +322 -0
- package/dist/src/components-dev/IkUmoEditor/src/props.d.ts +138 -0
- package/dist/src/components-dev/IkUmoEditor/src/types.d.ts +78 -0
- package/dist/src/components-dev/IkUmoViewer/index.d.ts +168 -0
- package/dist/src/components-dev/IkUmoViewer/src/props.d.ts +85 -0
- package/dist/src/components-dev/IkUmoViewer/src/types.d.ts +13 -0
- package/dist/src/enum/search.d.ts +88 -0
- package/dist/src/iking-ui/component.d.ts +4 -0
- package/dist/src/iking-ui/defaults.d.ts +4 -0
- package/dist/src/iking-ui/index.d.ts +6 -0
- package/dist/src/iking-ui/make-installer.d.ts +5 -0
- package/dist/src/iking-ui/resolver.d.ts +16 -0
- package/dist/src/utils/approval.d.ts +10 -0
- package/dist/src/utils/file.d.ts +27 -0
- package/dist/src/utils/index.d.ts +12 -0
- package/dist/src/utils/install.d.ts +6 -0
- package/dist/src/utils/math.d.ts +3 -0
- package/dist/src/utils/object.d.ts +4 -0
- package/dist/src/utils/theme.d.ts +1 -0
- package/dist/src/utils/typescript.d.ts +6 -0
- package/dist/src/utils/use-provider.d.ts +15 -0
- package/package.json +236 -0
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { UploadFile, UploadFiles } from 'element-plus';
|
|
3
|
+
import { FieldInter, IconFieldInter, ShowType, UploadType } from './types';
|
|
4
|
+
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
trigger?(_: {}): any;
|
|
7
|
+
fileIcon?(_: {
|
|
8
|
+
file: UploadFile;
|
|
9
|
+
}): any;
|
|
10
|
+
image?(_: {}): any;
|
|
11
|
+
tip?(_: {}): any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
14
|
+
modelValue: import('vue').PropType<any>;
|
|
15
|
+
showIcon: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
title: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
action: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
type: {
|
|
28
|
+
type: PropType<UploadType>;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
headers: {
|
|
32
|
+
type: ObjectConstructor;
|
|
33
|
+
default: () => {};
|
|
34
|
+
};
|
|
35
|
+
loadUrl: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
limit: {
|
|
40
|
+
type: NumberConstructor;
|
|
41
|
+
default: number;
|
|
42
|
+
};
|
|
43
|
+
size: {
|
|
44
|
+
type: NumberConstructor;
|
|
45
|
+
default: number;
|
|
46
|
+
};
|
|
47
|
+
accept: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
multiple: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
tip: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
tipText: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
limitText: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
defaultFileds: {
|
|
68
|
+
type: PropType<FieldInter>;
|
|
69
|
+
default: () => {
|
|
70
|
+
name: string;
|
|
71
|
+
url: string;
|
|
72
|
+
suffix: string;
|
|
73
|
+
size: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
preview: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
isShowDownLoad: {
|
|
81
|
+
type: BooleanConstructor;
|
|
82
|
+
default: boolean;
|
|
83
|
+
};
|
|
84
|
+
customIconData: {
|
|
85
|
+
type: ObjectConstructor;
|
|
86
|
+
default: () => {};
|
|
87
|
+
};
|
|
88
|
+
customIconFields: {
|
|
89
|
+
type: PropType<IconFieldInter>;
|
|
90
|
+
default: () => {
|
|
91
|
+
type: string;
|
|
92
|
+
icon: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
disabled: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
plain: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: boolean;
|
|
102
|
+
};
|
|
103
|
+
imageMode: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
107
|
+
isOnlyOfficePreview: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
onlyOfficeAccept: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
default: string;
|
|
114
|
+
};
|
|
115
|
+
onlyofficeServer: {
|
|
116
|
+
type: StringConstructor;
|
|
117
|
+
default: string;
|
|
118
|
+
};
|
|
119
|
+
onlyOfficeConfig: {
|
|
120
|
+
type: ObjectConstructor;
|
|
121
|
+
default: () => {};
|
|
122
|
+
};
|
|
123
|
+
jwtToken: {
|
|
124
|
+
type: StringConstructor;
|
|
125
|
+
default: string;
|
|
126
|
+
};
|
|
127
|
+
trueDelete: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
default: boolean;
|
|
130
|
+
};
|
|
131
|
+
showType: {
|
|
132
|
+
type: PropType<ShowType>;
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
135
|
+
iconSize: {
|
|
136
|
+
type: NumberConstructor;
|
|
137
|
+
default: number;
|
|
138
|
+
};
|
|
139
|
+
showBg: {
|
|
140
|
+
type: BooleanConstructor;
|
|
141
|
+
default: boolean;
|
|
142
|
+
};
|
|
143
|
+
showFileSize: {
|
|
144
|
+
type: BooleanConstructor;
|
|
145
|
+
default: boolean;
|
|
146
|
+
};
|
|
147
|
+
simple: {
|
|
148
|
+
type: BooleanConstructor;
|
|
149
|
+
default: boolean;
|
|
150
|
+
};
|
|
151
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
152
|
+
delete: (file: UploadFile) => void;
|
|
153
|
+
exceed: (file: any) => void;
|
|
154
|
+
handPreview: (file: any) => void;
|
|
155
|
+
success: (response: any, file: UploadFile, files: UploadFiles) => void;
|
|
156
|
+
error: (error: any, file: UploadFile, files: UploadFiles) => void;
|
|
157
|
+
outSize: () => void;
|
|
158
|
+
change: (file: UploadFile) => void;
|
|
159
|
+
progress: (progress: ProgressEvent<EventTarget>, file: UploadFile, files: UploadFiles) => void;
|
|
160
|
+
progressEnd: (progress: ProgressEvent<EventTarget>, file: UploadFile, files: UploadFiles) => void;
|
|
161
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
162
|
+
modelValue: import('vue').PropType<any>;
|
|
163
|
+
showIcon: {
|
|
164
|
+
type: BooleanConstructor;
|
|
165
|
+
default: boolean;
|
|
166
|
+
};
|
|
167
|
+
title: {
|
|
168
|
+
type: StringConstructor;
|
|
169
|
+
default: string;
|
|
170
|
+
};
|
|
171
|
+
action: {
|
|
172
|
+
type: StringConstructor;
|
|
173
|
+
default: string;
|
|
174
|
+
};
|
|
175
|
+
type: {
|
|
176
|
+
type: PropType<UploadType>;
|
|
177
|
+
default: string;
|
|
178
|
+
};
|
|
179
|
+
headers: {
|
|
180
|
+
type: ObjectConstructor;
|
|
181
|
+
default: () => {};
|
|
182
|
+
};
|
|
183
|
+
loadUrl: {
|
|
184
|
+
type: StringConstructor;
|
|
185
|
+
default: string;
|
|
186
|
+
};
|
|
187
|
+
limit: {
|
|
188
|
+
type: NumberConstructor;
|
|
189
|
+
default: number;
|
|
190
|
+
};
|
|
191
|
+
size: {
|
|
192
|
+
type: NumberConstructor;
|
|
193
|
+
default: number;
|
|
194
|
+
};
|
|
195
|
+
accept: {
|
|
196
|
+
type: StringConstructor;
|
|
197
|
+
default: string;
|
|
198
|
+
};
|
|
199
|
+
multiple: {
|
|
200
|
+
type: BooleanConstructor;
|
|
201
|
+
default: boolean;
|
|
202
|
+
};
|
|
203
|
+
tip: {
|
|
204
|
+
type: BooleanConstructor;
|
|
205
|
+
default: boolean;
|
|
206
|
+
};
|
|
207
|
+
tipText: {
|
|
208
|
+
type: StringConstructor;
|
|
209
|
+
default: string;
|
|
210
|
+
};
|
|
211
|
+
limitText: {
|
|
212
|
+
type: StringConstructor;
|
|
213
|
+
default: string;
|
|
214
|
+
};
|
|
215
|
+
defaultFileds: {
|
|
216
|
+
type: PropType<FieldInter>;
|
|
217
|
+
default: () => {
|
|
218
|
+
name: string;
|
|
219
|
+
url: string;
|
|
220
|
+
suffix: string;
|
|
221
|
+
size: string;
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
preview: {
|
|
225
|
+
type: BooleanConstructor;
|
|
226
|
+
default: boolean;
|
|
227
|
+
};
|
|
228
|
+
isShowDownLoad: {
|
|
229
|
+
type: BooleanConstructor;
|
|
230
|
+
default: boolean;
|
|
231
|
+
};
|
|
232
|
+
customIconData: {
|
|
233
|
+
type: ObjectConstructor;
|
|
234
|
+
default: () => {};
|
|
235
|
+
};
|
|
236
|
+
customIconFields: {
|
|
237
|
+
type: PropType<IconFieldInter>;
|
|
238
|
+
default: () => {
|
|
239
|
+
type: string;
|
|
240
|
+
icon: string;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
disabled: {
|
|
244
|
+
type: BooleanConstructor;
|
|
245
|
+
default: boolean;
|
|
246
|
+
};
|
|
247
|
+
plain: {
|
|
248
|
+
type: BooleanConstructor;
|
|
249
|
+
default: boolean;
|
|
250
|
+
};
|
|
251
|
+
imageMode: {
|
|
252
|
+
type: BooleanConstructor;
|
|
253
|
+
default: boolean;
|
|
254
|
+
};
|
|
255
|
+
isOnlyOfficePreview: {
|
|
256
|
+
type: BooleanConstructor;
|
|
257
|
+
default: boolean;
|
|
258
|
+
};
|
|
259
|
+
onlyOfficeAccept: {
|
|
260
|
+
type: StringConstructor;
|
|
261
|
+
default: string;
|
|
262
|
+
};
|
|
263
|
+
onlyofficeServer: {
|
|
264
|
+
type: StringConstructor;
|
|
265
|
+
default: string;
|
|
266
|
+
};
|
|
267
|
+
onlyOfficeConfig: {
|
|
268
|
+
type: ObjectConstructor;
|
|
269
|
+
default: () => {};
|
|
270
|
+
};
|
|
271
|
+
jwtToken: {
|
|
272
|
+
type: StringConstructor;
|
|
273
|
+
default: string;
|
|
274
|
+
};
|
|
275
|
+
trueDelete: {
|
|
276
|
+
type: BooleanConstructor;
|
|
277
|
+
default: boolean;
|
|
278
|
+
};
|
|
279
|
+
showType: {
|
|
280
|
+
type: PropType<ShowType>;
|
|
281
|
+
default: string;
|
|
282
|
+
};
|
|
283
|
+
iconSize: {
|
|
284
|
+
type: NumberConstructor;
|
|
285
|
+
default: number;
|
|
286
|
+
};
|
|
287
|
+
showBg: {
|
|
288
|
+
type: BooleanConstructor;
|
|
289
|
+
default: boolean;
|
|
290
|
+
};
|
|
291
|
+
showFileSize: {
|
|
292
|
+
type: BooleanConstructor;
|
|
293
|
+
default: boolean;
|
|
294
|
+
};
|
|
295
|
+
simple: {
|
|
296
|
+
type: BooleanConstructor;
|
|
297
|
+
default: boolean;
|
|
298
|
+
};
|
|
299
|
+
}>> & Readonly<{
|
|
300
|
+
onChange?: ((file: UploadFile) => any) | undefined;
|
|
301
|
+
onError?: ((error: any, file: UploadFile, files: UploadFiles) => any) | undefined;
|
|
302
|
+
onProgress?: ((progress: ProgressEvent<EventTarget>, file: UploadFile, files: UploadFiles) => any) | undefined;
|
|
303
|
+
onSuccess?: ((response: any, file: UploadFile, files: UploadFiles) => any) | undefined;
|
|
304
|
+
onDelete?: ((file: UploadFile) => any) | undefined;
|
|
305
|
+
onHandPreview?: ((file: any) => any) | undefined;
|
|
306
|
+
onExceed?: ((file: any) => any) | undefined;
|
|
307
|
+
onOutSize?: (() => any) | undefined;
|
|
308
|
+
onProgressEnd?: ((progress: ProgressEvent<EventTarget>, file: UploadFile, files: UploadFiles) => any) | undefined;
|
|
309
|
+
}>, {
|
|
310
|
+
title: string;
|
|
311
|
+
type: UploadType;
|
|
312
|
+
showBg: boolean;
|
|
313
|
+
disabled: boolean;
|
|
314
|
+
size: number;
|
|
315
|
+
loadUrl: string;
|
|
316
|
+
accept: string;
|
|
317
|
+
preview: boolean;
|
|
318
|
+
isOnlyOfficePreview: boolean;
|
|
319
|
+
onlyOfficeAccept: string;
|
|
320
|
+
onlyofficeServer: string;
|
|
321
|
+
multiple: boolean;
|
|
322
|
+
iconSize: number;
|
|
323
|
+
onlyOfficeConfig: Record<string, any>;
|
|
324
|
+
jwtToken: string;
|
|
325
|
+
simple: boolean;
|
|
326
|
+
showType: ShowType;
|
|
327
|
+
showFileSize: boolean;
|
|
328
|
+
headers: Record<string, any>;
|
|
329
|
+
plain: boolean;
|
|
330
|
+
customIconData: Record<string, any>;
|
|
331
|
+
customIconFields: IconFieldInter;
|
|
332
|
+
showIcon: boolean;
|
|
333
|
+
tip: boolean;
|
|
334
|
+
tipText: string;
|
|
335
|
+
imageMode: boolean;
|
|
336
|
+
action: string;
|
|
337
|
+
limit: number;
|
|
338
|
+
limitText: string;
|
|
339
|
+
defaultFileds: FieldInter;
|
|
340
|
+
isShowDownLoad: boolean;
|
|
341
|
+
trueDelete: boolean;
|
|
342
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
343
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
344
|
+
export default _default;
|
|
345
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
346
|
+
new (): {
|
|
347
|
+
$slots: S;
|
|
348
|
+
};
|
|
349
|
+
};
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { UploadFile, UploadFiles, UploadProgressEvent, UploadUserFile } from 'element-plus';
|
|
2
|
+
|
|
3
|
+
export interface FieldInter {
|
|
4
|
+
name: string;
|
|
5
|
+
url: string;
|
|
6
|
+
suffix: string;
|
|
7
|
+
size: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IconFieldInter {
|
|
10
|
+
type: string;
|
|
11
|
+
icon: string;
|
|
12
|
+
}
|
|
13
|
+
export type ShowType = 'default' | 'simple' | 'simple-icon';
|
|
14
|
+
export type UploadType = 'button' | 'card';
|
|
15
|
+
export interface IkUploadFileProps {
|
|
16
|
+
showIcon: boolean;
|
|
17
|
+
title: string;
|
|
18
|
+
action: string;
|
|
19
|
+
type: UploadType;
|
|
20
|
+
headers: Record<string, string>;
|
|
21
|
+
loadUrl: string;
|
|
22
|
+
limit: number;
|
|
23
|
+
size: number;
|
|
24
|
+
accept: string;
|
|
25
|
+
multiple: boolean;
|
|
26
|
+
tip: boolean;
|
|
27
|
+
tipText: string;
|
|
28
|
+
limitText: string;
|
|
29
|
+
defaultFileds: FieldInter;
|
|
30
|
+
preview: boolean;
|
|
31
|
+
isShowDownLoad: boolean;
|
|
32
|
+
customIconData: Record<string, any>;
|
|
33
|
+
customIconFields: IconFieldInter;
|
|
34
|
+
disabled: boolean;
|
|
35
|
+
plain: boolean;
|
|
36
|
+
imageMode: boolean;
|
|
37
|
+
isOnlyOfficePreview: boolean;
|
|
38
|
+
onlyOfficeAccept: string;
|
|
39
|
+
onlyofficeServer: string;
|
|
40
|
+
onlyOfficeConfig: Record<string, any>;
|
|
41
|
+
jwtToken: string;
|
|
42
|
+
trueDelete: boolean;
|
|
43
|
+
showType: ShowType;
|
|
44
|
+
iconSize: number;
|
|
45
|
+
showBg: boolean;
|
|
46
|
+
showFileSize: boolean;
|
|
47
|
+
simple: boolean;
|
|
48
|
+
}
|
|
49
|
+
export declare const defaultProps: {
|
|
50
|
+
showIcon: boolean;
|
|
51
|
+
title: string;
|
|
52
|
+
action: string;
|
|
53
|
+
type: UploadType;
|
|
54
|
+
headers: () => {};
|
|
55
|
+
loadUrl: string;
|
|
56
|
+
limit: number;
|
|
57
|
+
size: number;
|
|
58
|
+
accept: string;
|
|
59
|
+
multiple: boolean;
|
|
60
|
+
tip: boolean;
|
|
61
|
+
tipText: string;
|
|
62
|
+
limitText: string;
|
|
63
|
+
defaultFileds: () => {
|
|
64
|
+
name: string;
|
|
65
|
+
url: string;
|
|
66
|
+
suffix: string;
|
|
67
|
+
size: string;
|
|
68
|
+
};
|
|
69
|
+
preview: boolean;
|
|
70
|
+
isShowDownLoad: boolean;
|
|
71
|
+
customIconData: () => {};
|
|
72
|
+
customIconFields: () => {
|
|
73
|
+
type: string;
|
|
74
|
+
icon: string;
|
|
75
|
+
};
|
|
76
|
+
disabled: boolean;
|
|
77
|
+
plain: boolean;
|
|
78
|
+
imageMode: boolean;
|
|
79
|
+
isOnlyOfficePreview: boolean;
|
|
80
|
+
onlyOfficeAccept: string;
|
|
81
|
+
onlyofficeServer: string;
|
|
82
|
+
onlyOfficeConfig: () => {};
|
|
83
|
+
jwtToken: string;
|
|
84
|
+
trueDelete: boolean;
|
|
85
|
+
showType: ShowType;
|
|
86
|
+
iconSize: number;
|
|
87
|
+
showBg: boolean;
|
|
88
|
+
showFileSize: boolean;
|
|
89
|
+
simple: boolean;
|
|
90
|
+
};
|
|
91
|
+
export interface IkUploadFileEmits {
|
|
92
|
+
(e: 'delete', file: UploadFile): void;
|
|
93
|
+
(e: 'exceed', file: any): void;
|
|
94
|
+
(e: 'handPreview', file: any): void;
|
|
95
|
+
(e: 'success', response: any, file: UploadFile, files: UploadFiles): void;
|
|
96
|
+
(e: 'error', error: any, file: UploadFile, files: UploadFiles): void;
|
|
97
|
+
(e: 'outSize'): void;
|
|
98
|
+
(e: 'change', file: UploadFile): void;
|
|
99
|
+
(e: 'progress', progress: ProgressEvent, file: UploadFile, files: UploadFiles): void;
|
|
100
|
+
(e: 'progressEnd', progress: ProgressEvent, file: UploadFile, files: UploadFiles): void;
|
|
101
|
+
}
|
|
102
|
+
export interface UploadInstance {
|
|
103
|
+
handleStart: (file: File) => void;
|
|
104
|
+
submit: () => void;
|
|
105
|
+
abort: (file?: UploadFile) => void;
|
|
106
|
+
handleRemove: (file: UploadFile) => void;
|
|
107
|
+
}
|
|
108
|
+
export interface FileItemProps {
|
|
109
|
+
file: UploadFile;
|
|
110
|
+
mixDefaultField: FieldInter;
|
|
111
|
+
customIconData: Record<string, any>;
|
|
112
|
+
customIconFields: IconFieldInter;
|
|
113
|
+
iconSize: number;
|
|
114
|
+
showBg: boolean;
|
|
115
|
+
showFileSize: boolean;
|
|
116
|
+
isShowDownLoad: boolean;
|
|
117
|
+
canViewFile: (file: any) => boolean;
|
|
118
|
+
}
|
|
119
|
+
export interface FileItemEmits {
|
|
120
|
+
(e: 'preview', file: any): void;
|
|
121
|
+
(e: 'download', file: any): void;
|
|
122
|
+
(e: 'delete', file: any): void;
|
|
123
|
+
}
|
|
124
|
+
export interface TriggerProps {
|
|
125
|
+
showIcon: boolean;
|
|
126
|
+
title: string;
|
|
127
|
+
tip: boolean;
|
|
128
|
+
tipText: string;
|
|
129
|
+
imageMode: boolean;
|
|
130
|
+
plain: boolean;
|
|
131
|
+
disabled: boolean;
|
|
132
|
+
}
|
|
133
|
+
export type { UploadFile, UploadFiles, UploadProgressEvent, UploadUserFile };
|
|
File without changes
|