bkui-vue 0.0.1-beta.61 → 0.0.1-beta.62
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/index.cjs.js +30 -30
- package/dist/index.esm.js +1434 -298
- package/dist/index.umd.js +28 -28
- package/dist/style.css +1 -1
- package/lib/affix/affix.css +3 -0
- package/lib/affix/affix.d.ts +47 -0
- package/lib/affix/affix.less +5 -0
- package/lib/affix/affix.variable.css +102 -0
- package/lib/affix/index.d.ts +143 -0
- package/lib/affix/index.js +1 -0
- package/lib/alert/alert.variable.css +5 -0
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/backtop.variable.css +5 -0
- package/lib/backtop/index.d.ts +4 -4
- package/lib/badge/badge.d.ts +1 -1
- package/lib/badge/badge.variable.css +5 -0
- package/lib/badge/index.d.ts +4 -4
- package/lib/breadcrumb/breadcrumb.variable.css +5 -0
- package/lib/button/button.css +2 -1
- package/lib/button/button.less +9 -8
- package/lib/button/button.variable.css +7 -1
- package/lib/button/index.js +1 -1
- package/lib/card/card.variable.css +5 -0
- package/lib/cascader/cascader-panel.d.ts +48 -0
- package/lib/cascader/cascader.css +130 -0
- package/lib/cascader/cascader.d.ts +271 -0
- package/lib/cascader/cascader.less +146 -0
- package/lib/cascader/cascader.variable.css +229 -0
- package/lib/cascader/index.d.ts +721 -0
- package/lib/cascader/index.js +1 -0
- package/lib/cascader/interface.d.ts +44 -0
- package/lib/cascader/node.d.ts +24 -0
- package/lib/cascader/store.d.ts +15 -0
- package/lib/checkbox/checkbox.variable.css +5 -0
- package/lib/code-diff/code-diff.variable.css +5 -0
- package/lib/code-diff/index.js +1 -1
- package/lib/components.d.ts +12 -9
- package/lib/components.js +1 -1
- package/lib/container/container.variable.css +5 -0
- package/lib/container/index.js +1 -1
- package/lib/date-picker/date-picker.css +1 -0
- package/lib/date-picker/date-picker.d.ts +9 -2
- package/lib/date-picker/date-picker.less +1 -0
- package/lib/date-picker/date-picker.variable.css +6 -0
- package/lib/date-picker/index.d.ts +22 -7
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/props.d.ts +3 -0
- package/lib/dialog/dialog.css +10 -1
- package/lib/dialog/dialog.d.ts +75 -8
- package/lib/dialog/dialog.variable.css +10 -1
- package/lib/dialog/index.d.ts +166 -25
- package/lib/dialog/index.js +1 -1
- package/lib/divider/divider.d.ts +1 -1
- package/lib/divider/divider.variable.css +5 -0
- package/lib/divider/index.d.ts +4 -4
- package/lib/dropdown/dropdown.css +4 -0
- package/lib/dropdown/dropdown.less +5 -0
- package/lib/dropdown/dropdown.variable.css +9 -0
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/exception.variable.css +5 -0
- package/lib/fixed-navbar/fixed-navbar.d.ts +17 -3
- package/lib/fixed-navbar/fixed-navbar.variable.css +5 -0
- package/lib/fixed-navbar/index.d.ts +43 -8
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/form-item.d.ts +1 -1
- package/lib/form/form.css +4 -0
- package/lib/form/form.d.ts +5 -2
- package/lib/form/form.less +4 -0
- package/lib/form/form.variable.css +9 -0
- package/lib/form/index.d.ts +19 -8
- package/lib/form/index.js +1 -1
- package/lib/icon/archive-fill.d.ts +4 -0
- package/lib/icon/archive-fill.js +1 -0
- package/lib/icon/audio-fill.d.ts +4 -0
- package/lib/icon/audio-fill.js +1 -0
- package/lib/icon/del.d.ts +4 -0
- package/lib/icon/del.js +1 -0
- package/lib/icon/doc-fill.d.ts +4 -0
- package/lib/icon/doc-fill.js +1 -0
- package/lib/icon/excel-fill.d.ts +4 -0
- package/lib/icon/excel-fill.js +1 -0
- package/lib/icon/image-fill.d.ts +4 -0
- package/lib/icon/image-fill.js +1 -0
- package/lib/icon/index.d.ts +12 -1
- package/lib/icon/index.js +1 -1
- package/lib/icon/pdf-fill.d.ts +4 -0
- package/lib/icon/pdf-fill.js +1 -0
- package/lib/icon/ppt-fill.d.ts +4 -0
- package/lib/icon/ppt-fill.js +1 -0
- package/lib/icon/text-fill.d.ts +4 -0
- package/lib/icon/text-fill.js +1 -0
- package/lib/icon/upload.d.ts +4 -0
- package/lib/icon/upload.js +1 -0
- package/lib/icon/video-fill.d.ts +4 -0
- package/lib/icon/video-fill.js +1 -0
- package/lib/input/index.d.ts +8 -8
- package/lib/input/input.css +3 -0
- package/lib/input/input.d.ts +2 -2
- package/lib/input/input.less +3 -0
- package/lib/input/input.variable.css +8 -0
- package/lib/link/index.d.ts +4 -4
- package/lib/link/link.d.ts +1 -1
- package/lib/link/link.variable.css +5 -0
- package/lib/loading/loading.variable.css +5 -0
- package/lib/menu/menu.variable.css +5 -0
- package/lib/menu/submenu.variable.css +5 -0
- package/lib/message/index.js +1 -1
- package/lib/message/message.css +4 -4
- package/lib/message/message.less +4 -4
- package/lib/message/message.variable.css +9 -4
- package/lib/modal/index.d.ts +277 -24
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +10 -1
- package/lib/modal/modal.d.ts +108 -9
- package/lib/modal/modal.less +15 -4
- package/lib/modal/modal.variable.css +10 -1
- package/lib/modal/props.mixin.d.ts +47 -3
- package/lib/navigation/index.d.ts +291 -1
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation.variable.css +5 -0
- package/lib/notify/index.js +1 -1
- package/lib/notify/notify.css +17 -1
- package/lib/notify/notify.less +19 -1
- package/lib/notify/notify.variable.css +22 -1
- package/lib/notify/notifyConstructor.d.ts +49 -5
- package/lib/pagination/index.d.ts +4 -4
- package/lib/pagination/pagination.d.ts +1 -1
- package/lib/pagination/pagination.variable.css +5 -0
- package/lib/popover/index.d.ts +57 -11
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +3 -0
- package/lib/popover/popover.d.ts +26 -4
- package/lib/popover/popover.less +2 -0
- package/lib/popover/popover.variable.css +8 -0
- package/lib/popover/props.d.ts +11 -1
- package/lib/process/process.variable.css +5 -0
- package/lib/progress/index.d.ts +7 -7
- package/lib/progress/progress.d.ts +2 -2
- package/lib/progress/progress.variable.css +5 -0
- package/lib/radio/radio.variable.css +5 -0
- package/lib/resize-layout/resize-layout.variable.css +5 -0
- package/lib/select/select.variable.css +5 -0
- package/lib/shared/index.d.ts +18 -0
- package/lib/shared/index.js +1 -1
- package/lib/shared/mask-manager.d.ts +3 -2
- package/lib/shared/pop-manager.d.ts +3 -2
- package/lib/shared/popover.d.ts +3 -0
- package/lib/sideslider/index.d.ts +227 -33
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.css +48 -3
- package/lib/sideslider/sideslider.d.ts +103 -12
- package/lib/sideslider/sideslider.less +65 -6
- package/lib/sideslider/sideslider.variable.css +53 -3
- package/lib/slider/index.d.ts +414 -1
- package/lib/slider/index.js +1 -1
- package/lib/slider/slider.variable.css +5 -0
- package/lib/steps/steps.variable.css +5 -0
- package/lib/styles/index.d.ts +3 -0
- package/lib/styles/themes/themes.less +7 -0
- package/lib/switcher/switcher.variable.css +5 -0
- package/lib/tab/index.d.ts +6 -6
- package/lib/tab/tab-panel.d.ts +2 -2
- package/lib/tab/tab.d.ts +1 -1
- package/lib/tab/tab.variable.css +5 -0
- package/lib/table/index.d.ts +4 -4
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.variable.css +5 -0
- package/lib/table/plugins/head-sort.variable.css +5 -0
- package/lib/table/plugins/settings.variable.css +5 -0
- package/lib/table/props.d.ts +4 -0
- package/lib/table/render.d.ts +1 -0
- package/lib/table/table.css +54 -2
- package/lib/table/table.d.ts +1 -1
- package/lib/table/table.less +52 -2
- package/lib/table/table.variable.css +59 -2
- package/lib/table/use-common.d.ts +5 -3
- package/lib/table/utils.d.ts +10 -0
- package/lib/tag/index.d.ts +3 -3
- package/lib/tag/tag.d.ts +1 -1
- package/lib/tag/tag.variable.css +5 -0
- package/lib/tag-input/index.d.ts +893 -1
- package/lib/tag-input/index.js +1 -1
- package/lib/tag-input/tag-input.d.ts +1 -1
- package/lib/tag-input/tag-input.variable.css +5 -0
- package/lib/timeline/timeline.variable.css +5 -0
- package/lib/transfer/transfer.variable.css +5 -0
- package/lib/tree/index.d.ts +39 -1
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +19 -0
- package/lib/tree/tree.css +3 -1
- package/lib/tree/tree.d.ts +18 -0
- package/lib/tree/tree.less +3 -1
- package/lib/tree/tree.variable.css +8 -1
- package/lib/tree/use-empty.d.ts +6 -0
- package/lib/tree/use-node-attribute.d.ts +1 -0
- package/lib/tree/use-search.d.ts +11 -0
- package/lib/tree/util.d.ts +2 -1
- package/lib/upload/index.d.ts +2 -0
- package/lib/upload/index.js +1 -0
- package/lib/upload/props.d.ts +113 -0
- package/lib/upload/upload-list.d.ts +46 -0
- package/lib/upload/upload-trigger.d.ts +54 -0
- package/lib/upload/upload.css +374 -0
- package/lib/upload/upload.d.ts +252 -0
- package/lib/upload/upload.less +455 -0
- package/lib/upload/upload.type.d.ts +78 -0
- package/lib/upload/upload.variable.css +473 -0
- package/lib/upload/use-ajax-upload.d.ts +3 -0
- package/lib/upload/use-file-handler.d.ts +44 -0
- package/lib/virtual-render/index.d.ts +27 -4
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +10 -0
- package/lib/virtual-render/use-tag-render.d.ts +7 -0
- package/lib/virtual-render/virtual-render.d.ts +14 -3
- package/package.json +2 -2
@@ -0,0 +1,252 @@
|
|
1
|
+
import { APIResponse, EThemes, UploadFile, UploadRawFile } from './upload.type';
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
3
|
+
theme: {
|
4
|
+
type: import("vue").PropType<"button" | "picture" | "draggable">;
|
5
|
+
default: "button" | "picture" | "draggable";
|
6
|
+
validator: (val: EThemes) => boolean;
|
7
|
+
};
|
8
|
+
files: {
|
9
|
+
type: import("vue").PropType<UploadFile[]>;
|
10
|
+
default: () => UploadFile[];
|
11
|
+
};
|
12
|
+
name: {
|
13
|
+
type: StringConstructor;
|
14
|
+
default: string;
|
15
|
+
};
|
16
|
+
multiple: {
|
17
|
+
type: BooleanConstructor;
|
18
|
+
default: boolean;
|
19
|
+
};
|
20
|
+
disabled: {
|
21
|
+
type: BooleanConstructor;
|
22
|
+
default: boolean;
|
23
|
+
};
|
24
|
+
autoUpload: {
|
25
|
+
type: BooleanConstructor;
|
26
|
+
default: boolean;
|
27
|
+
};
|
28
|
+
accept: {
|
29
|
+
type: StringConstructor;
|
30
|
+
};
|
31
|
+
delayTime: {
|
32
|
+
type: NumberConstructor;
|
33
|
+
default: number;
|
34
|
+
};
|
35
|
+
url: {
|
36
|
+
type: StringConstructor;
|
37
|
+
required: boolean;
|
38
|
+
};
|
39
|
+
method: {
|
40
|
+
type: StringConstructor;
|
41
|
+
default: string;
|
42
|
+
};
|
43
|
+
size: {
|
44
|
+
type: import("vue").PropType<number | import("./upload.type").MaxSize>;
|
45
|
+
default(): {
|
46
|
+
maxFileSize: number;
|
47
|
+
maxImgSize: number;
|
48
|
+
};
|
49
|
+
};
|
50
|
+
handleResCode: {
|
51
|
+
type: import("vue").PropType<(res: APIResponse) => boolean>;
|
52
|
+
default(res: APIResponse): boolean;
|
53
|
+
};
|
54
|
+
headers: {
|
55
|
+
type: import("vue").PropType<Headers>;
|
56
|
+
default: () => {};
|
57
|
+
};
|
58
|
+
header: {
|
59
|
+
type: import("vue").PropType<import("./upload.type").HeaderDataAttr | import("./upload.type").HeaderDataAttr[]>;
|
60
|
+
default: () => any[];
|
61
|
+
};
|
62
|
+
tip: {
|
63
|
+
type: StringConstructor;
|
64
|
+
default: string;
|
65
|
+
};
|
66
|
+
validateName: {
|
67
|
+
type: RegExpConstructor;
|
68
|
+
};
|
69
|
+
withCredentials: {
|
70
|
+
type: BooleanConstructor;
|
71
|
+
default: boolean;
|
72
|
+
};
|
73
|
+
limit: NumberConstructor;
|
74
|
+
data: {
|
75
|
+
type: import("vue").PropType<import("./upload.type").ExtraFormData | import("./upload.type").ExtraFormData[]>;
|
76
|
+
default: () => any[];
|
77
|
+
};
|
78
|
+
formDataAttributes: {
|
79
|
+
type: import("vue").PropType<import("./upload.type").FormDataAttr | import("./upload.type").FormDataAttr[]>;
|
80
|
+
default: () => any[];
|
81
|
+
};
|
82
|
+
extCls: {
|
83
|
+
type: StringConstructor;
|
84
|
+
default: string;
|
85
|
+
};
|
86
|
+
customRequest: import("vue").PropType<import("./upload.type").UploadRequestHandler>;
|
87
|
+
beforeUpload: {
|
88
|
+
type: import("vue").PropType<(file: UploadRawFile) => boolean | Promise<boolean>>;
|
89
|
+
default: any;
|
90
|
+
};
|
91
|
+
beforeRemove: {
|
92
|
+
type: import("vue").PropType<(file: UploadFile, uploadFiles: UploadFile[]) => boolean | Promise<boolean>>;
|
93
|
+
default: any;
|
94
|
+
};
|
95
|
+
sliceUpload: {
|
96
|
+
type: BooleanConstructor;
|
97
|
+
default: boolean;
|
98
|
+
};
|
99
|
+
sliceUrl: {
|
100
|
+
type: StringConstructor;
|
101
|
+
default: string;
|
102
|
+
};
|
103
|
+
mergeUrl: {
|
104
|
+
type: StringConstructor;
|
105
|
+
default: string;
|
106
|
+
};
|
107
|
+
chunkSize: {
|
108
|
+
type: NumberConstructor;
|
109
|
+
default: number;
|
110
|
+
};
|
111
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("on-exceed" | "on-progress" | "on-success" | "on-error" | "on-delete" | "on-done")[], "on-exceed" | "on-progress" | "on-success" | "on-error" | "on-delete" | "on-done", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
112
|
+
theme: {
|
113
|
+
type: import("vue").PropType<"button" | "picture" | "draggable">;
|
114
|
+
default: "button" | "picture" | "draggable";
|
115
|
+
validator: (val: EThemes) => boolean;
|
116
|
+
};
|
117
|
+
files: {
|
118
|
+
type: import("vue").PropType<UploadFile[]>;
|
119
|
+
default: () => UploadFile[];
|
120
|
+
};
|
121
|
+
name: {
|
122
|
+
type: StringConstructor;
|
123
|
+
default: string;
|
124
|
+
};
|
125
|
+
multiple: {
|
126
|
+
type: BooleanConstructor;
|
127
|
+
default: boolean;
|
128
|
+
};
|
129
|
+
disabled: {
|
130
|
+
type: BooleanConstructor;
|
131
|
+
default: boolean;
|
132
|
+
};
|
133
|
+
autoUpload: {
|
134
|
+
type: BooleanConstructor;
|
135
|
+
default: boolean;
|
136
|
+
};
|
137
|
+
accept: {
|
138
|
+
type: StringConstructor;
|
139
|
+
};
|
140
|
+
delayTime: {
|
141
|
+
type: NumberConstructor;
|
142
|
+
default: number;
|
143
|
+
};
|
144
|
+
url: {
|
145
|
+
type: StringConstructor;
|
146
|
+
required: boolean;
|
147
|
+
};
|
148
|
+
method: {
|
149
|
+
type: StringConstructor;
|
150
|
+
default: string;
|
151
|
+
};
|
152
|
+
size: {
|
153
|
+
type: import("vue").PropType<number | import("./upload.type").MaxSize>;
|
154
|
+
default(): {
|
155
|
+
maxFileSize: number;
|
156
|
+
maxImgSize: number;
|
157
|
+
};
|
158
|
+
};
|
159
|
+
handleResCode: {
|
160
|
+
type: import("vue").PropType<(res: APIResponse) => boolean>;
|
161
|
+
default(res: APIResponse): boolean;
|
162
|
+
};
|
163
|
+
headers: {
|
164
|
+
type: import("vue").PropType<Headers>;
|
165
|
+
default: () => {};
|
166
|
+
};
|
167
|
+
header: {
|
168
|
+
type: import("vue").PropType<import("./upload.type").HeaderDataAttr | import("./upload.type").HeaderDataAttr[]>;
|
169
|
+
default: () => any[];
|
170
|
+
};
|
171
|
+
tip: {
|
172
|
+
type: StringConstructor;
|
173
|
+
default: string;
|
174
|
+
};
|
175
|
+
validateName: {
|
176
|
+
type: RegExpConstructor;
|
177
|
+
};
|
178
|
+
withCredentials: {
|
179
|
+
type: BooleanConstructor;
|
180
|
+
default: boolean;
|
181
|
+
};
|
182
|
+
limit: NumberConstructor;
|
183
|
+
data: {
|
184
|
+
type: import("vue").PropType<import("./upload.type").ExtraFormData | import("./upload.type").ExtraFormData[]>;
|
185
|
+
default: () => any[];
|
186
|
+
};
|
187
|
+
formDataAttributes: {
|
188
|
+
type: import("vue").PropType<import("./upload.type").FormDataAttr | import("./upload.type").FormDataAttr[]>;
|
189
|
+
default: () => any[];
|
190
|
+
};
|
191
|
+
extCls: {
|
192
|
+
type: StringConstructor;
|
193
|
+
default: string;
|
194
|
+
};
|
195
|
+
customRequest: import("vue").PropType<import("./upload.type").UploadRequestHandler>;
|
196
|
+
beforeUpload: {
|
197
|
+
type: import("vue").PropType<(file: UploadRawFile) => boolean | Promise<boolean>>;
|
198
|
+
default: any;
|
199
|
+
};
|
200
|
+
beforeRemove: {
|
201
|
+
type: import("vue").PropType<(file: UploadFile, uploadFiles: UploadFile[]) => boolean | Promise<boolean>>;
|
202
|
+
default: any;
|
203
|
+
};
|
204
|
+
sliceUpload: {
|
205
|
+
type: BooleanConstructor;
|
206
|
+
default: boolean;
|
207
|
+
};
|
208
|
+
sliceUrl: {
|
209
|
+
type: StringConstructor;
|
210
|
+
default: string;
|
211
|
+
};
|
212
|
+
mergeUrl: {
|
213
|
+
type: StringConstructor;
|
214
|
+
default: string;
|
215
|
+
};
|
216
|
+
chunkSize: {
|
217
|
+
type: NumberConstructor;
|
218
|
+
default: number;
|
219
|
+
};
|
220
|
+
}>> & {
|
221
|
+
"onOn-exceed"?: (...args: any[]) => any;
|
222
|
+
"onOn-progress"?: (...args: any[]) => any;
|
223
|
+
"onOn-success"?: (...args: any[]) => any;
|
224
|
+
"onOn-error"?: (...args: any[]) => any;
|
225
|
+
"onOn-delete"?: (...args: any[]) => any;
|
226
|
+
"onOn-done"?: (...args: any[]) => any;
|
227
|
+
}, {
|
228
|
+
data: import("./upload.type").ExtraFormData | import("./upload.type").ExtraFormData[];
|
229
|
+
header: import("./upload.type").HeaderDataAttr | import("./upload.type").HeaderDataAttr[];
|
230
|
+
name: string;
|
231
|
+
theme: "button" | "picture" | "draggable";
|
232
|
+
size: number | import("./upload.type").MaxSize;
|
233
|
+
extCls: string;
|
234
|
+
multiple: boolean;
|
235
|
+
disabled: boolean;
|
236
|
+
tip: string;
|
237
|
+
files: UploadFile[];
|
238
|
+
autoUpload: boolean;
|
239
|
+
delayTime: number;
|
240
|
+
method: string;
|
241
|
+
handleResCode: (res: APIResponse) => boolean;
|
242
|
+
headers: Headers;
|
243
|
+
withCredentials: boolean;
|
244
|
+
formDataAttributes: import("./upload.type").FormDataAttr | import("./upload.type").FormDataAttr[];
|
245
|
+
beforeUpload: (file: UploadRawFile) => boolean | Promise<boolean>;
|
246
|
+
beforeRemove: (file: UploadFile, uploadFiles: UploadFile[]) => boolean | Promise<boolean>;
|
247
|
+
sliceUpload: boolean;
|
248
|
+
sliceUrl: string;
|
249
|
+
mergeUrl: string;
|
250
|
+
chunkSize: number;
|
251
|
+
}>;
|
252
|
+
export default _default;
|
@@ -0,0 +1,455 @@
|
|
1
|
+
@import '../styles/themes/themes.less';
|
2
|
+
@import '../styles/mixins/mixins.less';
|
3
|
+
|
4
|
+
.picture-item-thumbnail(@thumbnail-size: 32px) {
|
5
|
+
width: @thumbnail-size;
|
6
|
+
height: @thumbnail-size;
|
7
|
+
object-fit: contain;
|
8
|
+
}
|
9
|
+
|
10
|
+
.picture-item-actions() {
|
11
|
+
position: absolute;
|
12
|
+
display: flex;
|
13
|
+
width: 100%;
|
14
|
+
height: 100%;
|
15
|
+
color: #fff;
|
16
|
+
background: rgba(0, 0, 0, .45);
|
17
|
+
opacity: 0;
|
18
|
+
transition: opacity .35s;
|
19
|
+
align-items: center;
|
20
|
+
justify-content: center;
|
21
|
+
|
22
|
+
.action-icon {
|
23
|
+
margin: 0 4px;
|
24
|
+
font-size: 18px;
|
25
|
+
cursor: pointer;
|
26
|
+
}
|
27
|
+
|
28
|
+
&:hover {
|
29
|
+
opacity: 1;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
.picture-item-progress() {
|
34
|
+
position: absolute;
|
35
|
+
}
|
36
|
+
|
37
|
+
.@{bk-prefix}-upload {
|
38
|
+
&__input-file {
|
39
|
+
display: none;
|
40
|
+
}
|
41
|
+
|
42
|
+
&__tip {
|
43
|
+
font-size: 12px;
|
44
|
+
color: @default-color;
|
45
|
+
}
|
46
|
+
|
47
|
+
&--disabled {
|
48
|
+
.@{bk-prefix}-upload__tip {
|
49
|
+
color: @light-gray;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
&--button {
|
54
|
+
.@{bk-prefix}-upload-trigger {
|
55
|
+
display: inline-flex;
|
56
|
+
}
|
57
|
+
.@{bk-prefix}-upload__tip {
|
58
|
+
display: inline-flex;
|
59
|
+
margin-left: 8px;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
&--picture {
|
64
|
+
display: flex;
|
65
|
+
flex-wrap: wrap;
|
66
|
+
|
67
|
+
.@{bk-prefix}-upload__tip {
|
68
|
+
order: 1;
|
69
|
+
flex: 1 0 100%;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
&--single-picture {
|
74
|
+
.@{bk-prefix}-upload__tip {
|
75
|
+
margin-top: 8px;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
&--draggable {
|
80
|
+
.@{bk-prefix}-upload__tip {
|
81
|
+
margin-top: 8px;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
.@{bk-prefix}-upload-trigger {
|
87
|
+
color: @default-color;
|
88
|
+
|
89
|
+
&__picture-inner {
|
90
|
+
display: flex;
|
91
|
+
width: 100%;
|
92
|
+
height: 100%;
|
93
|
+
align-items: center;
|
94
|
+
justify-content: center;
|
95
|
+
flex-direction: column;
|
96
|
+
}
|
97
|
+
|
98
|
+
&__picture-icon {
|
99
|
+
font-size: 24px;
|
100
|
+
font-weight: bold;
|
101
|
+
color: @gray-color;
|
102
|
+
}
|
103
|
+
|
104
|
+
&__picture-text {
|
105
|
+
font-size: 12px;
|
106
|
+
}
|
107
|
+
|
108
|
+
// 单图片/头像模式
|
109
|
+
&__picture-thumbnail {
|
110
|
+
.picture-item-thumbnail(88px)
|
111
|
+
}
|
112
|
+
|
113
|
+
&__picture-actions {
|
114
|
+
.picture-item-actions()
|
115
|
+
}
|
116
|
+
|
117
|
+
&__picture-progress {
|
118
|
+
.picture-item-progress()
|
119
|
+
}
|
120
|
+
|
121
|
+
&--button {
|
122
|
+
font-size: 12px;
|
123
|
+
}
|
124
|
+
|
125
|
+
&__button-icon {
|
126
|
+
font-size: 18px;
|
127
|
+
}
|
128
|
+
|
129
|
+
&__button-text {
|
130
|
+
font-size: 12px;
|
131
|
+
}
|
132
|
+
|
133
|
+
&--draggable {
|
134
|
+
height: 80px;
|
135
|
+
cursor: pointer;
|
136
|
+
background-color: @whitesmoke-color;
|
137
|
+
border: @border-width-base dashed @light-gray;
|
138
|
+
border-radius: @border-radius-base;
|
139
|
+
}
|
140
|
+
|
141
|
+
&--dragover {
|
142
|
+
border-color: @primary-color;
|
143
|
+
}
|
144
|
+
|
145
|
+
&__draggable {
|
146
|
+
display: flex;
|
147
|
+
width: 100%;
|
148
|
+
height: 100%;
|
149
|
+
align-items: center;
|
150
|
+
justify-content: center;
|
151
|
+
flex-direction: column;
|
152
|
+
}
|
153
|
+
|
154
|
+
&__draggable-icon {
|
155
|
+
font-size: 24px;
|
156
|
+
font-weight: bold;
|
157
|
+
color: @gray-color;
|
158
|
+
}
|
159
|
+
|
160
|
+
&__draggable-text {
|
161
|
+
font-size: 12px;
|
162
|
+
}
|
163
|
+
|
164
|
+
&__draggable-upload-link {
|
165
|
+
color: @primary-color;
|
166
|
+
}
|
167
|
+
|
168
|
+
&--picture {
|
169
|
+
position: relative;
|
170
|
+
display: inline-flex;
|
171
|
+
width: 96px;
|
172
|
+
height: 96px;
|
173
|
+
margin: 0 8px 8px 0;
|
174
|
+
overflow: hidden;
|
175
|
+
cursor: pointer;
|
176
|
+
background-color: @whitesmoke-color;
|
177
|
+
border: @border-width-base dashed @light-gray;
|
178
|
+
border-radius: @border-radius-base;
|
179
|
+
align-items: center;
|
180
|
+
justify-content: center;
|
181
|
+
}
|
182
|
+
|
183
|
+
&--single-picture {
|
184
|
+
&.@{bk-prefix}-upload-trigger {
|
185
|
+
&--uploading {
|
186
|
+
background: rgba(0, 0, 0, .65);
|
187
|
+
}
|
188
|
+
}
|
189
|
+
}
|
190
|
+
|
191
|
+
&--has-file {
|
192
|
+
border-style: solid;
|
193
|
+
}
|
194
|
+
|
195
|
+
&--fail {
|
196
|
+
background: rgba(254, 221, 220, .40);
|
197
|
+
border-color: #ff5656;
|
198
|
+
}
|
199
|
+
|
200
|
+
&--disabled {
|
201
|
+
&.@{bk-prefix}-upload-trigger {
|
202
|
+
color: @light-gray;
|
203
|
+
|
204
|
+
&--draggable,
|
205
|
+
&--picture {
|
206
|
+
cursor: not-allowed;
|
207
|
+
background-color: #fff;
|
208
|
+
border-color: @disable-color;
|
209
|
+
}
|
210
|
+
}
|
211
|
+
.@{bk-prefix}-upload-trigger {
|
212
|
+
&__draggable-inner,
|
213
|
+
&__draggable-icon,
|
214
|
+
&__draggable-upload-link,
|
215
|
+
&__picture-inner,
|
216
|
+
&__picture-icon,
|
217
|
+
&__picture-upload-link {
|
218
|
+
color: @light-gray;
|
219
|
+
}
|
220
|
+
}
|
221
|
+
}
|
222
|
+
|
223
|
+
&:not(.@{bk-prefix}-upload-trigger--disabled) {
|
224
|
+
&:hover {
|
225
|
+
color: @primary-color;
|
226
|
+
border-color: @primary-color;
|
227
|
+
|
228
|
+
.@{bk-prefix}-upload-trigger {
|
229
|
+
&__picture-icon,
|
230
|
+
&__draggable-icon {
|
231
|
+
color: @primary-color;
|
232
|
+
}
|
233
|
+
}
|
234
|
+
}
|
235
|
+
}
|
236
|
+
|
237
|
+
&--single-picture {
|
238
|
+
&.@{bk-prefix}-upload-trigger--fail {
|
239
|
+
&.@{bk-prefix}-upload-trigger--has-file {
|
240
|
+
&:hover {
|
241
|
+
border-color: #ff5656;
|
242
|
+
}
|
243
|
+
}
|
244
|
+
}
|
245
|
+
&.@{bk-prefix}-upload-trigger--has-file {
|
246
|
+
&:hover {
|
247
|
+
border-color: @light-gray;
|
248
|
+
}
|
249
|
+
}
|
250
|
+
}
|
251
|
+
|
252
|
+
}
|
253
|
+
|
254
|
+
.@{bk-prefix}-upload-list {
|
255
|
+
@thumbnail-size: 32px;
|
256
|
+
|
257
|
+
&__item {
|
258
|
+
display: flex;
|
259
|
+
padding: 10px;
|
260
|
+
margin: 8px 0;
|
261
|
+
background: #fff;
|
262
|
+
border: 1px solid @light-gray;
|
263
|
+
border-radius: 2px;
|
264
|
+
transition: all .125s cubic-bezier(.55, 0, .1, 1);
|
265
|
+
|
266
|
+
&:hover {
|
267
|
+
border-color: @gray-color;
|
268
|
+
.@{bk-prefix}-upload-list {
|
269
|
+
&__item-speed {
|
270
|
+
display: none;
|
271
|
+
}
|
272
|
+
|
273
|
+
&__item-actions {
|
274
|
+
display: block;
|
275
|
+
}
|
276
|
+
}
|
277
|
+
}
|
278
|
+
|
279
|
+
&-enter-active,
|
280
|
+
&-leave-active {
|
281
|
+
transition: all 1s;
|
282
|
+
}
|
283
|
+
|
284
|
+
&-enter-from,
|
285
|
+
&-leave-to {
|
286
|
+
opacity: 0;
|
287
|
+
transform: translateY(-30px);
|
288
|
+
}
|
289
|
+
}
|
290
|
+
|
291
|
+
&__item-icon {
|
292
|
+
display: inline-flex;
|
293
|
+
align-items: center;
|
294
|
+
justify-content: center;
|
295
|
+
color: @gray-color;
|
296
|
+
}
|
297
|
+
|
298
|
+
&__item-thumbnail {
|
299
|
+
width: @thumbnail-size;
|
300
|
+
height: @thumbnail-size;
|
301
|
+
object-fit: contain;
|
302
|
+
}
|
303
|
+
|
304
|
+
&__item-file-icon {
|
305
|
+
font-size: @thumbnail-size;
|
306
|
+
}
|
307
|
+
|
308
|
+
&__item-summary {
|
309
|
+
flex: 1;
|
310
|
+
position: relative;
|
311
|
+
padding: 2px 2px 2px 10px;
|
312
|
+
overflow: hidden;
|
313
|
+
}
|
314
|
+
|
315
|
+
&__item-name {
|
316
|
+
font-size: 12px;
|
317
|
+
color: @default-color;
|
318
|
+
text-align: left;
|
319
|
+
direction: rtl;
|
320
|
+
.ellipsis-style(85%, block);
|
321
|
+
}
|
322
|
+
|
323
|
+
&__item-speed {
|
324
|
+
position: absolute;
|
325
|
+
top: 0;
|
326
|
+
right: 0;
|
327
|
+
font-size: 12px;
|
328
|
+
font-weight: 700;
|
329
|
+
color: @default-color;
|
330
|
+
}
|
331
|
+
|
332
|
+
&__item-speed-rate {
|
333
|
+
margin-left: 4px;
|
334
|
+
}
|
335
|
+
|
336
|
+
&__item-speed-percentage {
|
337
|
+
margin-left: 16px;
|
338
|
+
}
|
339
|
+
|
340
|
+
&__item-message {
|
341
|
+
.ellipsis-style(85%, block);
|
342
|
+
}
|
343
|
+
|
344
|
+
&__item-actions {
|
345
|
+
position: absolute;
|
346
|
+
top: 50%;
|
347
|
+
right: 0;
|
348
|
+
display: none;
|
349
|
+
font-size: 12px;
|
350
|
+
transform: translateY(-50%);
|
351
|
+
}
|
352
|
+
|
353
|
+
&__item-del-icon {
|
354
|
+
font-size: 14px;
|
355
|
+
color: @gray-color;
|
356
|
+
cursor: pointer;
|
357
|
+
}
|
358
|
+
|
359
|
+
&__item-progress {
|
360
|
+
margin-top: 8px;
|
361
|
+
font-size: 12px;
|
362
|
+
}
|
363
|
+
|
364
|
+
&__item--success {
|
365
|
+
.@{bk-prefix}-upload-list {
|
366
|
+
&__item-speed {
|
367
|
+
top: 50%;
|
368
|
+
transform: translateY(-50%);
|
369
|
+
}
|
370
|
+
|
371
|
+
&__item-message {
|
372
|
+
color: @success-color;
|
373
|
+
}
|
374
|
+
|
375
|
+
&__item-message-success-icon {
|
376
|
+
display: inline-block;
|
377
|
+
font-size: 22px;
|
378
|
+
line-height: 18px;
|
379
|
+
}
|
380
|
+
}
|
381
|
+
|
382
|
+
&:hover {
|
383
|
+
.@{bk-prefix}-upload-list {
|
384
|
+
&__item-speed {
|
385
|
+
display: none;
|
386
|
+
}
|
387
|
+
}
|
388
|
+
}
|
389
|
+
}
|
390
|
+
|
391
|
+
&__item--fail {
|
392
|
+
background: rgba(254, 221, 220, .40);
|
393
|
+
border-color: #ff5656;
|
394
|
+
.@{bk-prefix}-upload-list {
|
395
|
+
&__item-message {
|
396
|
+
color: #ff5656;
|
397
|
+
}
|
398
|
+
|
399
|
+
&__item-actions {
|
400
|
+
display: block;
|
401
|
+
}
|
402
|
+
}
|
403
|
+
|
404
|
+
&:hover {
|
405
|
+
border-color: #ff5656;
|
406
|
+
}
|
407
|
+
}
|
408
|
+
|
409
|
+
// 图片列表模式
|
410
|
+
&__item-picture {
|
411
|
+
position: relative;
|
412
|
+
display: flex;
|
413
|
+
width: 96px;
|
414
|
+
height: 96px;
|
415
|
+
padding: 0;
|
416
|
+
margin: 0 8px 8px 0;
|
417
|
+
overflow: hidden;
|
418
|
+
flex-wrap: wrap;
|
419
|
+
align-items: center;
|
420
|
+
justify-content: center;
|
421
|
+
|
422
|
+
&.@{bk-prefix}-upload-list {
|
423
|
+
&__item {
|
424
|
+
&--uploading {
|
425
|
+
background: rgba(0, 0, 0, .65);
|
426
|
+
}
|
427
|
+
}
|
428
|
+
}
|
429
|
+
}
|
430
|
+
|
431
|
+
&__picture-item-thumbnail {
|
432
|
+
.picture-item-thumbnail(88px)
|
433
|
+
}
|
434
|
+
|
435
|
+
&__picture-item-actions {
|
436
|
+
.picture-item-actions()
|
437
|
+
}
|
438
|
+
|
439
|
+
&__picture-item-progress {
|
440
|
+
.picture-item-progress()
|
441
|
+
}
|
442
|
+
|
443
|
+
&--picture {
|
444
|
+
display: flex;
|
445
|
+
flex-wrap: wrap;
|
446
|
+
}
|
447
|
+
|
448
|
+
&--disabled {
|
449
|
+
.@{bk-prefix}-upload-list {
|
450
|
+
&__item {
|
451
|
+
pointer-events: none;
|
452
|
+
}
|
453
|
+
}
|
454
|
+
}
|
455
|
+
}
|