bkui-vue 0.0.1-beta.400 → 0.0.1-beta.401
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 +58 -58
- package/dist/index.esm.js +412 -128
- package/dist/index.umd.js +58 -58
- package/dist/locale/en.esm.js +2 -0
- package/dist/locale/en.esm.js.map +1 -0
- package/dist/locale/en.umd.js +2 -0
- package/dist/locale/en.umd.js.map +1 -0
- package/dist/locale/zh-cn.esm.js +2 -0
- package/dist/locale/zh-cn.esm.js.map +1 -0
- package/dist/locale/zh-cn.umd.js +2 -0
- package/dist/locale/zh-cn.umd.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/index.d.ts +4 -4
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/index.d.ts +4 -4
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -1
- package/lib/config-provider/config-provider.css +0 -0
- package/lib/config-provider/config-provider.d.ts +239 -0
- package/lib/config-provider/config-provider.less +1 -0
- package/lib/config-provider/config-provider.variable.css +120 -0
- package/lib/config-provider/index.d.ts +521 -0
- package/lib/config-provider/index.js +1 -0
- package/lib/config-provider/type.d.ts +115 -0
- package/lib/date-picker/base/time-spinner.d.ts +20 -1
- package/lib/date-picker/date-picker.d.ts +2 -2
- package/lib/date-picker/index.d.ts +8 -8
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/panel/date-range.d.ts +19 -0
- package/lib/date-picker/panel/time-range.d.ts +2 -2
- package/lib/date-picker/panel/time.d.ts +2 -2
- package/lib/date-picker/time-picker.d.ts +2 -2
- package/lib/dialog/dialog.d.ts +6 -18
- package/lib/dialog/index.d.ts +19 -39
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/props.d.ts +0 -8
- package/lib/form/form-item.d.ts +5 -5
- package/lib/form/index.js +1 -1
- package/lib/info-box/index.js +1 -1
- package/lib/input/index.d.ts +4 -4
- package/lib/input/input.d.ts +1 -1
- package/lib/locale/index.d.ts +3 -0
- package/lib/locale/index.js +1 -0
- package/lib/locale/lang/en.d.ts +110 -0
- package/lib/locale/lang/zh-cn.d.ts +3 -0
- package/lib/modal/index.d.ts +4 -4
- package/lib/modal/modal.d.ts +1 -1
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/use-limit.d.ts +3 -1
- package/lib/pagination/use-total.d.ts +3 -1
- package/lib/preset.d.ts +224 -2
- package/lib/preset.js +1 -1
- package/lib/process/index.js +1 -1
- package/lib/process/process.css +9 -0
- package/lib/process/process.less +14 -3
- package/lib/process/process.variable.css +9 -0
- package/lib/search-select/index.d.ts +34 -16
- package/lib/search-select/index.js +1 -1
- package/lib/search-select/input.d.ts +9 -0
- package/lib/search-select/menu.d.ts +11 -18
- package/lib/search-select/search-select.d.ts +13 -12
- package/lib/search-select/selected.d.ts +9 -0
- package/lib/select/index.d.ts +19 -55
- package/lib/select/index.js +1 -1
- package/lib/select/select.d.ts +6 -26
- package/lib/sideslider/index.d.ts +4 -4
- package/lib/sideslider/sideslider.d.ts +1 -1
- package/lib/steps/index.d.ts +4 -4
- package/lib/steps/index.js +1 -1
- package/lib/steps/steps.d.ts +1 -1
- package/lib/styles/index.d.ts +1 -0
- package/lib/table/const.d.ts +3 -1
- package/lib/table/index.d.ts +10 -18
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/body-empty.d.ts +0 -4
- package/lib/table/props.d.ts +0 -2
- package/lib/table/render.d.ts +4 -2
- package/lib/table/table.d.ts +3 -7
- package/lib/table-column/index.js +1 -1
- package/lib/time-picker/index.d.ts +8 -8
- package/lib/transfer/index.d.ts +27 -0
- package/lib/transfer/index.js +1 -1
- package/lib/transfer/transfer.d.ts +9 -0
- package/lib/upload/index.js +1 -1
- package/package.json +5 -1
@@ -0,0 +1,521 @@
|
|
1
|
+
/**
|
2
|
+
* Tencent is pleased to support the open source community by making
|
3
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
4
|
+
*
|
5
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
6
|
+
*
|
7
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
8
|
+
*
|
9
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
10
|
+
*
|
11
|
+
* ---------------------------------------------------
|
12
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
13
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
14
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
15
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
16
|
+
*
|
17
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
18
|
+
* the Software.
|
19
|
+
*
|
20
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
21
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
22
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
23
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
24
|
+
* IN THE SOFTWARE.
|
25
|
+
*/
|
26
|
+
declare const BkConfigProvider: {
|
27
|
+
new (...args: any[]): {
|
28
|
+
$: import("vue").ComponentInternalInstance;
|
29
|
+
$data: {};
|
30
|
+
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
31
|
+
locale: {
|
32
|
+
type: import("vue").PropType<{
|
33
|
+
lang: string;
|
34
|
+
steps: {
|
35
|
+
step1: string;
|
36
|
+
step2: string;
|
37
|
+
step3: string;
|
38
|
+
};
|
39
|
+
datePicker: {
|
40
|
+
selectDate: string;
|
41
|
+
selectTime: string;
|
42
|
+
clear: string;
|
43
|
+
ok: string;
|
44
|
+
weekdays: {
|
45
|
+
sun: string;
|
46
|
+
mon: string;
|
47
|
+
tue: string;
|
48
|
+
wed: string;
|
49
|
+
thu: string;
|
50
|
+
fri: string;
|
51
|
+
sat: string;
|
52
|
+
};
|
53
|
+
hour: string;
|
54
|
+
min: string;
|
55
|
+
sec: string;
|
56
|
+
toNow: string;
|
57
|
+
};
|
58
|
+
dialog: {
|
59
|
+
ok: string;
|
60
|
+
cancel: string;
|
61
|
+
prev: string;
|
62
|
+
next: string;
|
63
|
+
};
|
64
|
+
form: {
|
65
|
+
notBeEmpty: string;
|
66
|
+
incorrectFormat: string;
|
67
|
+
max: string;
|
68
|
+
min: string;
|
69
|
+
maxLen: string;
|
70
|
+
verifyError: string;
|
71
|
+
};
|
72
|
+
pagination: {
|
73
|
+
eachPage: string;
|
74
|
+
strip: string;
|
75
|
+
total: string;
|
76
|
+
};
|
77
|
+
process: {
|
78
|
+
step1: string;
|
79
|
+
step2: string;
|
80
|
+
step3: string;
|
81
|
+
step4: string;
|
82
|
+
};
|
83
|
+
searchSelect: {
|
84
|
+
pleaseSelect: string;
|
85
|
+
loading: string;
|
86
|
+
filterQueryMustHasValue: string;
|
87
|
+
ok: string;
|
88
|
+
cancel: string;
|
89
|
+
or: string;
|
90
|
+
and: string;
|
91
|
+
};
|
92
|
+
select: {
|
93
|
+
noData: string;
|
94
|
+
noMatchedData: string;
|
95
|
+
loading: string;
|
96
|
+
pleaseSelect: string;
|
97
|
+
enterKeywords: string;
|
98
|
+
all: string;
|
99
|
+
};
|
100
|
+
table: {
|
101
|
+
emptyText: string;
|
102
|
+
confirm: string;
|
103
|
+
reset: string;
|
104
|
+
setting: {
|
105
|
+
title: string;
|
106
|
+
fields: {
|
107
|
+
title: string;
|
108
|
+
subtitle: (max: number) => string;
|
109
|
+
selectAll: string;
|
110
|
+
};
|
111
|
+
lineHeight: {
|
112
|
+
title: string;
|
113
|
+
small: string;
|
114
|
+
medium: string;
|
115
|
+
large: string;
|
116
|
+
};
|
117
|
+
options: {
|
118
|
+
ok: string;
|
119
|
+
cancel: string;
|
120
|
+
};
|
121
|
+
};
|
122
|
+
};
|
123
|
+
transfer: {
|
124
|
+
sourceList: string;
|
125
|
+
targetList: string;
|
126
|
+
removeAll: string;
|
127
|
+
selectAll: string;
|
128
|
+
noData: string;
|
129
|
+
noSelected: string;
|
130
|
+
search: string;
|
131
|
+
};
|
132
|
+
upload: {
|
133
|
+
uploadSuccess: string;
|
134
|
+
uploadFailed: string;
|
135
|
+
drapFileOr: string;
|
136
|
+
clickUpload: string;
|
137
|
+
uploadLabel: string;
|
138
|
+
};
|
139
|
+
}>;
|
140
|
+
};
|
141
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, never>;
|
142
|
+
$attrs: {
|
143
|
+
[x: string]: unknown;
|
144
|
+
};
|
145
|
+
$refs: {
|
146
|
+
[x: string]: unknown;
|
147
|
+
};
|
148
|
+
$slots: Readonly<{
|
149
|
+
[name: string]: import("vue").Slot;
|
150
|
+
}>;
|
151
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
152
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
153
|
+
$emit: (event: string, ...args: any[]) => void;
|
154
|
+
$el: any;
|
155
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
156
|
+
locale: {
|
157
|
+
type: import("vue").PropType<{
|
158
|
+
lang: string;
|
159
|
+
steps: {
|
160
|
+
step1: string;
|
161
|
+
step2: string;
|
162
|
+
step3: string;
|
163
|
+
};
|
164
|
+
datePicker: {
|
165
|
+
selectDate: string;
|
166
|
+
selectTime: string;
|
167
|
+
clear: string;
|
168
|
+
ok: string;
|
169
|
+
weekdays: {
|
170
|
+
sun: string;
|
171
|
+
mon: string;
|
172
|
+
tue: string;
|
173
|
+
wed: string;
|
174
|
+
thu: string;
|
175
|
+
fri: string;
|
176
|
+
sat: string;
|
177
|
+
};
|
178
|
+
hour: string;
|
179
|
+
min: string;
|
180
|
+
sec: string;
|
181
|
+
toNow: string;
|
182
|
+
};
|
183
|
+
dialog: {
|
184
|
+
ok: string;
|
185
|
+
cancel: string;
|
186
|
+
prev: string;
|
187
|
+
next: string;
|
188
|
+
};
|
189
|
+
form: {
|
190
|
+
notBeEmpty: string;
|
191
|
+
incorrectFormat: string;
|
192
|
+
max: string;
|
193
|
+
min: string;
|
194
|
+
maxLen: string;
|
195
|
+
verifyError: string;
|
196
|
+
};
|
197
|
+
pagination: {
|
198
|
+
eachPage: string;
|
199
|
+
strip: string;
|
200
|
+
total: string;
|
201
|
+
};
|
202
|
+
process: {
|
203
|
+
step1: string;
|
204
|
+
step2: string;
|
205
|
+
step3: string;
|
206
|
+
step4: string;
|
207
|
+
};
|
208
|
+
searchSelect: {
|
209
|
+
pleaseSelect: string;
|
210
|
+
loading: string;
|
211
|
+
filterQueryMustHasValue: string;
|
212
|
+
ok: string;
|
213
|
+
cancel: string;
|
214
|
+
or: string;
|
215
|
+
and: string;
|
216
|
+
};
|
217
|
+
select: {
|
218
|
+
noData: string;
|
219
|
+
noMatchedData: string;
|
220
|
+
loading: string;
|
221
|
+
pleaseSelect: string;
|
222
|
+
enterKeywords: string;
|
223
|
+
all: string;
|
224
|
+
};
|
225
|
+
table: {
|
226
|
+
emptyText: string;
|
227
|
+
confirm: string;
|
228
|
+
reset: string;
|
229
|
+
setting: {
|
230
|
+
title: string;
|
231
|
+
fields: {
|
232
|
+
title: string;
|
233
|
+
subtitle: (max: number) => string;
|
234
|
+
selectAll: string;
|
235
|
+
};
|
236
|
+
lineHeight: {
|
237
|
+
title: string;
|
238
|
+
small: string;
|
239
|
+
medium: string;
|
240
|
+
large: string;
|
241
|
+
};
|
242
|
+
options: {
|
243
|
+
ok: string;
|
244
|
+
cancel: string;
|
245
|
+
};
|
246
|
+
};
|
247
|
+
};
|
248
|
+
transfer: {
|
249
|
+
sourceList: string;
|
250
|
+
targetList: string;
|
251
|
+
removeAll: string;
|
252
|
+
selectAll: string;
|
253
|
+
noData: string;
|
254
|
+
noSelected: string;
|
255
|
+
search: string;
|
256
|
+
};
|
257
|
+
upload: {
|
258
|
+
uploadSuccess: string;
|
259
|
+
uploadFailed: string;
|
260
|
+
drapFileOr: string;
|
261
|
+
clickUpload: string;
|
262
|
+
uploadLabel: string;
|
263
|
+
};
|
264
|
+
}>;
|
265
|
+
};
|
266
|
+
}>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
267
|
+
[key: string]: any;
|
268
|
+
}>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & {
|
269
|
+
beforeCreate?: (() => void) | (() => void)[];
|
270
|
+
created?: (() => void) | (() => void)[];
|
271
|
+
beforeMount?: (() => void) | (() => void)[];
|
272
|
+
mounted?: (() => void) | (() => void)[];
|
273
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
274
|
+
updated?: (() => void) | (() => void)[];
|
275
|
+
activated?: (() => void) | (() => void)[];
|
276
|
+
deactivated?: (() => void) | (() => void)[];
|
277
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
278
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
279
|
+
destroyed?: (() => void) | (() => void)[];
|
280
|
+
unmounted?: (() => void) | (() => void)[];
|
281
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
282
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
283
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
|
284
|
+
};
|
285
|
+
$forceUpdate: () => void;
|
286
|
+
$nextTick: typeof import("vue").nextTick;
|
287
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
288
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
289
|
+
locale: {
|
290
|
+
type: import("vue").PropType<{
|
291
|
+
lang: string;
|
292
|
+
steps: {
|
293
|
+
step1: string;
|
294
|
+
step2: string;
|
295
|
+
step3: string;
|
296
|
+
};
|
297
|
+
datePicker: {
|
298
|
+
selectDate: string;
|
299
|
+
selectTime: string;
|
300
|
+
clear: string;
|
301
|
+
ok: string;
|
302
|
+
weekdays: {
|
303
|
+
sun: string;
|
304
|
+
mon: string;
|
305
|
+
tue: string;
|
306
|
+
wed: string;
|
307
|
+
thu: string;
|
308
|
+
fri: string;
|
309
|
+
sat: string;
|
310
|
+
};
|
311
|
+
hour: string;
|
312
|
+
min: string;
|
313
|
+
sec: string;
|
314
|
+
toNow: string;
|
315
|
+
};
|
316
|
+
dialog: {
|
317
|
+
ok: string;
|
318
|
+
cancel: string;
|
319
|
+
prev: string;
|
320
|
+
next: string;
|
321
|
+
};
|
322
|
+
form: {
|
323
|
+
notBeEmpty: string;
|
324
|
+
incorrectFormat: string;
|
325
|
+
max: string;
|
326
|
+
min: string;
|
327
|
+
maxLen: string;
|
328
|
+
verifyError: string;
|
329
|
+
};
|
330
|
+
pagination: {
|
331
|
+
eachPage: string;
|
332
|
+
strip: string;
|
333
|
+
total: string;
|
334
|
+
};
|
335
|
+
process: {
|
336
|
+
step1: string;
|
337
|
+
step2: string;
|
338
|
+
step3: string;
|
339
|
+
step4: string;
|
340
|
+
};
|
341
|
+
searchSelect: {
|
342
|
+
pleaseSelect: string;
|
343
|
+
loading: string;
|
344
|
+
filterQueryMustHasValue: string;
|
345
|
+
ok: string;
|
346
|
+
cancel: string;
|
347
|
+
or: string;
|
348
|
+
and: string;
|
349
|
+
};
|
350
|
+
select: {
|
351
|
+
noData: string;
|
352
|
+
noMatchedData: string;
|
353
|
+
loading: string;
|
354
|
+
pleaseSelect: string;
|
355
|
+
enterKeywords: string;
|
356
|
+
all: string;
|
357
|
+
};
|
358
|
+
table: {
|
359
|
+
emptyText: string;
|
360
|
+
confirm: string;
|
361
|
+
reset: string;
|
362
|
+
setting: {
|
363
|
+
title: string;
|
364
|
+
fields: {
|
365
|
+
title: string;
|
366
|
+
subtitle: (max: number) => string;
|
367
|
+
selectAll: string;
|
368
|
+
};
|
369
|
+
lineHeight: {
|
370
|
+
title: string;
|
371
|
+
small: string;
|
372
|
+
medium: string;
|
373
|
+
large: string;
|
374
|
+
};
|
375
|
+
options: {
|
376
|
+
ok: string;
|
377
|
+
cancel: string;
|
378
|
+
};
|
379
|
+
};
|
380
|
+
};
|
381
|
+
transfer: {
|
382
|
+
sourceList: string;
|
383
|
+
targetList: string;
|
384
|
+
removeAll: string;
|
385
|
+
selectAll: string;
|
386
|
+
noData: string;
|
387
|
+
noSelected: string;
|
388
|
+
search: string;
|
389
|
+
};
|
390
|
+
upload: {
|
391
|
+
uploadSuccess: string;
|
392
|
+
uploadFailed: string;
|
393
|
+
drapFileOr: string;
|
394
|
+
clickUpload: string;
|
395
|
+
uploadLabel: string;
|
396
|
+
};
|
397
|
+
}>;
|
398
|
+
};
|
399
|
+
}>> & import("vue").ShallowUnwrapRef<() => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
400
|
+
[key: string]: any;
|
401
|
+
}>[]> & {} & {} & import("vue").ComponentCustomProperties;
|
402
|
+
__isFragment?: never;
|
403
|
+
__isTeleport?: never;
|
404
|
+
__isSuspense?: never;
|
405
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
406
|
+
locale: {
|
407
|
+
type: import("vue").PropType<{
|
408
|
+
lang: string;
|
409
|
+
steps: {
|
410
|
+
step1: string;
|
411
|
+
step2: string;
|
412
|
+
step3: string;
|
413
|
+
};
|
414
|
+
datePicker: {
|
415
|
+
selectDate: string;
|
416
|
+
selectTime: string;
|
417
|
+
clear: string;
|
418
|
+
ok: string;
|
419
|
+
weekdays: {
|
420
|
+
sun: string;
|
421
|
+
mon: string;
|
422
|
+
tue: string;
|
423
|
+
wed: string;
|
424
|
+
thu: string;
|
425
|
+
fri: string;
|
426
|
+
sat: string;
|
427
|
+
};
|
428
|
+
hour: string;
|
429
|
+
min: string;
|
430
|
+
sec: string;
|
431
|
+
toNow: string;
|
432
|
+
};
|
433
|
+
dialog: {
|
434
|
+
ok: string;
|
435
|
+
cancel: string;
|
436
|
+
prev: string;
|
437
|
+
next: string;
|
438
|
+
};
|
439
|
+
form: {
|
440
|
+
notBeEmpty: string;
|
441
|
+
incorrectFormat: string;
|
442
|
+
max: string;
|
443
|
+
min: string;
|
444
|
+
maxLen: string;
|
445
|
+
verifyError: string;
|
446
|
+
};
|
447
|
+
pagination: {
|
448
|
+
eachPage: string;
|
449
|
+
strip: string;
|
450
|
+
total: string;
|
451
|
+
};
|
452
|
+
process: {
|
453
|
+
step1: string;
|
454
|
+
step2: string;
|
455
|
+
step3: string;
|
456
|
+
step4: string;
|
457
|
+
};
|
458
|
+
searchSelect: {
|
459
|
+
pleaseSelect: string;
|
460
|
+
loading: string;
|
461
|
+
filterQueryMustHasValue: string;
|
462
|
+
ok: string;
|
463
|
+
cancel: string;
|
464
|
+
or: string;
|
465
|
+
and: string;
|
466
|
+
};
|
467
|
+
select: {
|
468
|
+
noData: string;
|
469
|
+
noMatchedData: string;
|
470
|
+
loading: string;
|
471
|
+
pleaseSelect: string;
|
472
|
+
enterKeywords: string;
|
473
|
+
all: string;
|
474
|
+
};
|
475
|
+
table: {
|
476
|
+
emptyText: string;
|
477
|
+
confirm: string;
|
478
|
+
reset: string;
|
479
|
+
setting: {
|
480
|
+
title: string;
|
481
|
+
fields: {
|
482
|
+
title: string;
|
483
|
+
subtitle: (max: number) => string;
|
484
|
+
selectAll: string;
|
485
|
+
};
|
486
|
+
lineHeight: {
|
487
|
+
title: string;
|
488
|
+
small: string;
|
489
|
+
medium: string;
|
490
|
+
large: string;
|
491
|
+
};
|
492
|
+
options: {
|
493
|
+
ok: string;
|
494
|
+
cancel: string;
|
495
|
+
};
|
496
|
+
};
|
497
|
+
};
|
498
|
+
transfer: {
|
499
|
+
sourceList: string;
|
500
|
+
targetList: string;
|
501
|
+
removeAll: string;
|
502
|
+
selectAll: string;
|
503
|
+
noData: string;
|
504
|
+
noSelected: string;
|
505
|
+
search: string;
|
506
|
+
};
|
507
|
+
upload: {
|
508
|
+
uploadSuccess: string;
|
509
|
+
uploadFailed: string;
|
510
|
+
drapFileOr: string;
|
511
|
+
clickUpload: string;
|
512
|
+
uploadLabel: string;
|
513
|
+
};
|
514
|
+
}>;
|
515
|
+
};
|
516
|
+
}>>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
517
|
+
[key: string]: any;
|
518
|
+
}>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
519
|
+
export default BkConfigProvider;
|
520
|
+
export { useLocale, rootProviderKey, provideGlobalConfig, } from './config-provider';
|
521
|
+
export * from './type';
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,r){if("object"==typeof exports&&"object"==typeof module)module.exports=r(require("../shared"),require("lodash"),require("vue"),require("../locale"));else if("function"==typeof define&&define.amd)define(["../shared","lodash","vue","../locale"],r);else{var o="object"==typeof exports?r(require("../shared"),require("lodash"),require("vue"),require("../locale")):r(e["../shared"],e.lodash,e.vue,e["../locale"]);for(var t in o)("object"==typeof exports?exports:e)[t]=o[t]}}(self,((e,r,o,t)=>(()=>{"use strict";var n={5684:e=>{e.exports=t},4212:r=>{r.exports=e},467:e=>{e.exports=r},748:e=>{e.exports=o}},a={};function i(e){var r=a[e];if(void 0!==r)return r.exports;var o=a[e]={exports:{}};return n[e](o,o.exports,i),o.exports}i.d=(e,r)=>{for(var o in r)i.o(r,o)&&!i.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},i.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{i.r(l),i.d(l,{default:()=>d,provideGlobalConfig:()=>s,rootProviderKey:()=>u,useLocale:()=>c});var e=i(4212),r=i(467),o=i(748),t=i(5684);const n={locale:{type:Object}};var a=(0,o.reactive)({locale:t.zhCn}),u=Symbol("rootProviderData");function c(e){var r=(0,o.inject)(u,a);return(0,o.computed)((function(){var o=r.locale;return o&&e?o[e]:{}}))}var s=function(e){var t=(0,o.reactive)(Object.assign({},(0,r.merge)(a,e)));Object.keys(e).forEach((function(r){(0,o.watch)((function(){return e[r]}),(function(){t[r]=e[r]}))})),(0,o.provide)(u,t)};const f=(0,o.defineComponent)({name:"ConfigProvider",inheritAttrs:!1,props:n,setup:function(e,r){var o=r.slots;return s(e),function(){var e;return null===(e=o.default)||void 0===e?void 0:e.call(o)}}}),d=(0,e.withInstall)(f)})(),l})()));
|
@@ -0,0 +1,115 @@
|
|
1
|
+
import type { ExtractPropTypes, PropType } from 'vue';
|
2
|
+
declare const configProviderProps: {
|
3
|
+
locale: {
|
4
|
+
type: PropType<{
|
5
|
+
lang: string;
|
6
|
+
steps: {
|
7
|
+
step1: string;
|
8
|
+
step2: string;
|
9
|
+
step3: string;
|
10
|
+
};
|
11
|
+
datePicker: {
|
12
|
+
selectDate: string;
|
13
|
+
selectTime: string;
|
14
|
+
clear: string;
|
15
|
+
ok: string;
|
16
|
+
weekdays: {
|
17
|
+
sun: string;
|
18
|
+
mon: string;
|
19
|
+
tue: string;
|
20
|
+
wed: string;
|
21
|
+
thu: string;
|
22
|
+
fri: string;
|
23
|
+
sat: string;
|
24
|
+
};
|
25
|
+
hour: string;
|
26
|
+
min: string;
|
27
|
+
sec: string;
|
28
|
+
toNow: string;
|
29
|
+
};
|
30
|
+
dialog: {
|
31
|
+
ok: string;
|
32
|
+
cancel: string;
|
33
|
+
prev: string;
|
34
|
+
next: string;
|
35
|
+
};
|
36
|
+
form: {
|
37
|
+
notBeEmpty: string;
|
38
|
+
incorrectFormat: string;
|
39
|
+
max: string;
|
40
|
+
min: string;
|
41
|
+
maxLen: string;
|
42
|
+
verifyError: string;
|
43
|
+
};
|
44
|
+
pagination: {
|
45
|
+
eachPage: string;
|
46
|
+
strip: string;
|
47
|
+
total: string;
|
48
|
+
};
|
49
|
+
process: {
|
50
|
+
step1: string;
|
51
|
+
step2: string;
|
52
|
+
step3: string;
|
53
|
+
step4: string;
|
54
|
+
};
|
55
|
+
searchSelect: {
|
56
|
+
pleaseSelect: string;
|
57
|
+
loading: string;
|
58
|
+
filterQueryMustHasValue: string;
|
59
|
+
ok: string;
|
60
|
+
cancel: string;
|
61
|
+
or: string;
|
62
|
+
and: string;
|
63
|
+
};
|
64
|
+
select: {
|
65
|
+
noData: string;
|
66
|
+
noMatchedData: string;
|
67
|
+
loading: string;
|
68
|
+
pleaseSelect: string;
|
69
|
+
enterKeywords: string;
|
70
|
+
all: string;
|
71
|
+
};
|
72
|
+
table: {
|
73
|
+
emptyText: string;
|
74
|
+
confirm: string;
|
75
|
+
reset: string;
|
76
|
+
setting: {
|
77
|
+
title: string;
|
78
|
+
fields: {
|
79
|
+
title: string;
|
80
|
+
subtitle: (max: number) => string;
|
81
|
+
selectAll: string;
|
82
|
+
};
|
83
|
+
lineHeight: {
|
84
|
+
title: string;
|
85
|
+
small: string;
|
86
|
+
medium: string;
|
87
|
+
large: string;
|
88
|
+
};
|
89
|
+
options: {
|
90
|
+
ok: string;
|
91
|
+
cancel: string;
|
92
|
+
};
|
93
|
+
};
|
94
|
+
};
|
95
|
+
transfer: {
|
96
|
+
sourceList: string;
|
97
|
+
targetList: string;
|
98
|
+
removeAll: string;
|
99
|
+
selectAll: string;
|
100
|
+
noData: string;
|
101
|
+
noSelected: string;
|
102
|
+
search: string;
|
103
|
+
};
|
104
|
+
upload: {
|
105
|
+
uploadSuccess: string;
|
106
|
+
uploadFailed: string;
|
107
|
+
drapFileOr: string;
|
108
|
+
clickUpload: string;
|
109
|
+
uploadLabel: string;
|
110
|
+
};
|
111
|
+
}>;
|
112
|
+
};
|
113
|
+
};
|
114
|
+
export declare type ConfigProviderProps = Partial<ExtractPropTypes<typeof configProviderProps>>;
|
115
|
+
export default configProviderProps;
|
@@ -83,6 +83,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
83
83
|
handleClick: (type: any, cell: any) => void;
|
84
84
|
updateScroll: () => void;
|
85
85
|
padTime: (text: any) => any;
|
86
|
+
t: import("vue").ComputedRef<{
|
87
|
+
selectDate: string;
|
88
|
+
selectTime: string;
|
89
|
+
clear: string;
|
90
|
+
ok: string;
|
91
|
+
weekdays: {
|
92
|
+
sun: string;
|
93
|
+
mon: string;
|
94
|
+
tue: string;
|
95
|
+
wed: string;
|
96
|
+
thu: string;
|
97
|
+
fri: string;
|
98
|
+
sat: string;
|
99
|
+
};
|
100
|
+
hour: string;
|
101
|
+
min: string;
|
102
|
+
sec: string;
|
103
|
+
toNow: string;
|
104
|
+
}>;
|
86
105
|
spinerSteps: import("vue").Ref<number[]>;
|
87
106
|
compiled: import("vue").Ref<boolean>;
|
88
107
|
focusedColumn: import("vue").Ref<number>;
|
@@ -136,6 +155,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
136
155
|
onChange?: (...args: any[]) => any;
|
137
156
|
"onPick-click"?: (...args: any[]) => any;
|
138
157
|
}, {
|
158
|
+
steps: number[];
|
139
159
|
width: number;
|
140
160
|
disabledHours: unknown[];
|
141
161
|
disabledMinutes: unknown[];
|
@@ -146,6 +166,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
146
166
|
minutes: string | number;
|
147
167
|
seconds: string | number;
|
148
168
|
showSeconds: boolean;
|
149
|
-
steps: number[];
|
150
169
|
}>;
|
151
170
|
export default _default;
|