bkui-vue 0.0.3-beta.5 → 1.0.0
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 +36 -36
- package/dist/index.esm.js +9724 -9973
- package/dist/index.umd.js +36 -36
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/index.js +16 -15
- package/lib/alert/index.js +25 -24
- package/lib/animate-number/index.js +7 -7
- package/lib/backtop/index.js +23 -22
- package/lib/badge/index.js +22 -21
- package/lib/breadcrumb/index.js +31 -30
- package/lib/button/index.js +42 -34
- package/lib/card/index.js +44 -37
- package/lib/cascader/index.js +105 -86
- package/lib/checkbox/index.js +39 -38
- package/lib/code-diff/code-diff.css +0 -1
- package/lib/code-diff/code-diff.d.ts +1 -0
- package/lib/code-diff/code-diff.less +1 -1
- package/lib/code-diff/code-diff.variable.css +0 -1
- package/lib/code-diff/index.js +152 -15
- package/lib/collapse/index.js +46 -45
- package/lib/collapse-transition/index.js +10 -10
- package/lib/color-picker/index.js +51 -50
- package/lib/components.js +63 -504
- package/lib/config-provider/index.js +30 -26
- package/lib/config-provider/use-global-config.d.ts +2 -2
- package/lib/container/index.js +28 -27
- package/lib/date-picker/index.js +72 -66
- package/lib/dialog/dialog.css +61 -35
- package/lib/dialog/dialog.d.ts +20 -11
- package/lib/dialog/dialog.less +2 -2
- package/lib/dialog/dialog.variable.css +61 -35
- package/lib/dialog/index.d.ts +38 -22
- package/lib/dialog/index.js +68 -54
- package/lib/dialog/props.d.ts +8 -4
- package/lib/directives/index.js +24 -24
- package/lib/dist.index.js +5 -61
- package/lib/divider/index.js +16 -15
- package/lib/dropdown/index.js +39 -32
- package/lib/exception/index.js +20 -19
- package/lib/fixed-navbar/index.js +16 -15
- package/lib/form/index.js +60 -59
- package/lib/hooks.js +8 -48
- package/lib/icon/angle-double-down-line.js +2 -2
- package/lib/icon/angle-double-left-line.js +2 -2
- package/lib/icon/angle-double-left.js +2 -2
- package/lib/icon/angle-double-right-line.js +2 -2
- package/lib/icon/angle-double-right.js +2 -2
- package/lib/icon/angle-double-up-line.js +2 -2
- package/lib/icon/angle-down-fill.js +2 -2
- package/lib/icon/angle-down-line.js +2 -2
- package/lib/icon/angle-down.js +2 -2
- package/lib/icon/angle-left.js +2 -2
- package/lib/icon/angle-right.js +2 -2
- package/lib/icon/angle-up-fill.js +2 -2
- package/lib/icon/angle-up.js +2 -2
- package/lib/icon/archive-fill.js +2 -2
- package/lib/icon/arrows-left.js +2 -2
- package/lib/icon/arrows-right.js +2 -2
- package/lib/icon/assistant.js +2 -2
- package/lib/icon/audio-fill.js +2 -2
- package/lib/icon/bk.js +2 -2
- package/lib/icon/circle.js +2 -2
- package/lib/icon/close-line.js +2 -2
- package/lib/icon/close.js +2 -2
- package/lib/icon/code.js +2 -2
- package/lib/icon/cog-shape.js +2 -2
- package/lib/icon/collapse-left.js +2 -2
- package/lib/icon/copy-shape.js +2 -2
- package/lib/icon/copy.js +2 -2
- package/lib/icon/data-shape.js +2 -2
- package/lib/icon/del.js +2 -2
- package/lib/icon/doc-fill.js +2 -2
- package/lib/icon/done.js +2 -2
- package/lib/icon/down-shape.js +2 -2
- package/lib/icon/down-small.js +2 -2
- package/lib/icon/edit-line.js +2 -2
- package/lib/icon/ellipsis.js +2 -2
- package/lib/icon/enlarge-line.js +2 -2
- package/lib/icon/error.js +2 -2
- package/lib/icon/excel-fill.js +2 -2
- package/lib/icon/exclamation-circle-shape.js +2 -2
- package/lib/icon/eye.js +2 -2
- package/lib/icon/filliscreen-line.js +2 -2
- package/lib/icon/fix-line.js +2 -2
- package/lib/icon/fix-shape.js +2 -2
- package/lib/icon/folder-open.js +2 -2
- package/lib/icon/folder-shape-open.js +2 -2
- package/lib/icon/folder-shape.js +2 -2
- package/lib/icon/folder.js +2 -2
- package/lib/icon/funnel.js +2 -2
- package/lib/icon/grag-fill.js +2 -2
- package/lib/icon/help-document-fill.js +2 -2
- package/lib/icon/help-fill.js +2 -2
- package/lib/icon/help.js +2 -2
- package/lib/icon/image-fill.js +15 -15
- package/lib/icon/img-error.js +15 -15
- package/lib/icon/img-placehoulder.js +15 -15
- package/lib/icon/index.js +386 -386
- package/lib/icon/info-line.js +15 -15
- package/lib/icon/info.js +15 -15
- package/lib/icon/left-shape.js +15 -15
- package/lib/icon/left-turn-line.js +15 -15
- package/lib/icon/loading.js +15 -15
- package/lib/icon/narrow-line.js +15 -15
- package/lib/icon/original.js +15 -15
- package/lib/icon/pdf-fill.js +15 -15
- package/lib/icon/play-shape.js +15 -15
- package/lib/icon/plus.js +15 -15
- package/lib/icon/ppt-fill.js +15 -15
- package/lib/icon/qq.js +15 -15
- package/lib/icon/right-shape.js +15 -15
- package/lib/icon/right-turn-line.js +15 -15
- package/lib/icon/search.js +15 -15
- package/lib/icon/share.js +15 -15
- package/lib/icon/spinner.js +15 -15
- package/lib/icon/success.js +15 -15
- package/lib/icon/switcher-loading.js +15 -15
- package/lib/icon/text-file.js +15 -15
- package/lib/icon/text-fill.js +15 -15
- package/lib/icon/transfer.js +15 -15
- package/lib/icon/tree-application-shape.js +15 -15
- package/lib/icon/unfull-screen.js +15 -15
- package/lib/icon/unvisible.js +15 -15
- package/lib/icon/up-shape.js +15 -15
- package/lib/icon/upload.js +15 -15
- package/lib/icon/video-fill.js +15 -15
- package/lib/icon/warn.js +15 -15
- package/lib/icon/weixin-pro.js +15 -15
- package/lib/icon/weixin.js +15 -15
- package/lib/image/index.js +43 -43
- package/lib/index.js +8 -72
- package/lib/info-box/index.d.ts +1 -0
- package/lib/info-box/index.js +177 -17384
- package/lib/info-box/info-box.css +10 -10
- package/lib/info-box/info-box.d.ts +4 -3
- package/lib/info-box/info-box.less +37 -34
- package/lib/info-box/info-box.variable.css +10 -10
- package/lib/input/index.js +62 -61
- package/lib/link/index.js +16 -15
- package/lib/loading/index.js +28 -27
- package/lib/locale/index.js +2 -2
- package/lib/menu/index.js +24 -23
- package/lib/message/index.js +41 -40
- package/lib/modal/index.d.ts +108 -65
- package/lib/modal/index.js +193 -135
- package/lib/modal/modal.css +36 -10
- package/lib/modal/modal.d.ts +40 -22
- package/lib/modal/modal.less +34 -0
- package/lib/modal/modal.variable.css +36 -10
- package/lib/modal/props.mixin.d.ts +8 -4
- package/lib/navigation/index.js +17 -16
- package/lib/notify/index.js +34 -33
- package/lib/overflow-title/index.js +31 -24
- package/lib/pagination/index.js +68 -54
- package/lib/plugin-popover/index.js +55 -55
- package/lib/plugins/index.js +2 -2
- package/lib/pop-confirm/index.js +43 -30
- package/lib/popover/index.js +59 -58
- package/lib/popover2/index.js +5 -5
- package/lib/preset.d.ts +2 -281
- package/lib/preset.js +16 -58
- package/lib/process/index.js +28 -28
- package/lib/progress/index.js +29 -28
- package/lib/radio/index.js +41 -40
- package/lib/rate/index.js +25 -24
- package/lib/resize-layout/index.d.ts +3 -3
- package/lib/resize-layout/index.js +28 -27
- package/lib/resize-layout/resize-layout.d.ts +1 -1
- package/lib/search-select/index.js +71 -53
- package/lib/select/index.js +172 -134
- package/lib/shared/index.d.ts +1 -2
- package/lib/shared/index.js +638 -1285
- package/lib/shared/mask.d.ts +11 -0
- package/lib/sideslider/index.d.ts +38 -22
- package/lib/sideslider/index.js +23 -17
- package/lib/sideslider/sideslider.css +12 -11
- package/lib/sideslider/sideslider.d.ts +20 -11
- package/lib/sideslider/sideslider.less +79 -77
- package/lib/sideslider/sideslider.variable.css +12 -11
- package/lib/slider/index.js +37 -24
- package/lib/steps/index.js +31 -30
- package/lib/swiper/index.js +17 -16
- package/lib/switcher/index.js +32 -31
- package/lib/tab/index.js +55 -54
- package/lib/table/components/table-column.d.ts +1 -0
- package/lib/table/index.d.ts +1 -0
- package/lib/table/index.js +200 -147
- package/lib/table/props.d.ts +1 -0
- package/lib/table/use-column.d.ts +3 -0
- package/lib/table-column/index.d.ts +3 -0
- package/lib/table-column/index.js +43 -43
- package/lib/tag/index.js +22 -21
- package/lib/tag-input/index.js +81 -67
- package/lib/time-picker/index.js +10 -9
- package/lib/timeline/index.js +14 -14
- package/lib/transfer/index.js +52 -38
- package/lib/tree/index.js +93 -74
- package/lib/upload/index.js +64 -50
- package/lib/virtual-render/index.js +36 -35
- package/package.json +8 -4
- package/lib/shared/mask-manager.d.ts +0 -89
- package/lib/shared/pop-manager.d.ts +0 -41
package/lib/preset.d.ts
CHANGED
@@ -1,285 +1,6 @@
|
|
1
|
-
import { App } from 'vue';
|
2
1
|
declare const _default: {
|
3
|
-
createInstall: (prefix?: string) => (app:
|
4
|
-
|
5
|
-
type: import("vue").PropType<{
|
6
|
-
lang: string;
|
7
|
-
steps: {
|
8
|
-
step1: string;
|
9
|
-
step2: string;
|
10
|
-
step3: string;
|
11
|
-
};
|
12
|
-
datePicker: {
|
13
|
-
selectDate: string;
|
14
|
-
selectTime: string;
|
15
|
-
clear: string;
|
16
|
-
ok: string;
|
17
|
-
weekdays: {
|
18
|
-
sun: string;
|
19
|
-
mon: string;
|
20
|
-
tue: string;
|
21
|
-
wed: string;
|
22
|
-
thu: string;
|
23
|
-
fri: string;
|
24
|
-
sat: string;
|
25
|
-
};
|
26
|
-
hour: string;
|
27
|
-
min: string;
|
28
|
-
sec: string;
|
29
|
-
toNow: string;
|
30
|
-
};
|
31
|
-
dialog: {
|
32
|
-
ok: string;
|
33
|
-
cancel: string;
|
34
|
-
prev: string;
|
35
|
-
next: string;
|
36
|
-
};
|
37
|
-
popConfirm: {
|
38
|
-
ok: string;
|
39
|
-
cancel: string;
|
40
|
-
};
|
41
|
-
form: {
|
42
|
-
notBeEmpty: string;
|
43
|
-
incorrectFormat: string;
|
44
|
-
max: string;
|
45
|
-
min: string;
|
46
|
-
maxLen: string;
|
47
|
-
verifyError: string;
|
48
|
-
};
|
49
|
-
pagination: {
|
50
|
-
eachPage: string;
|
51
|
-
strip: string;
|
52
|
-
total: string;
|
53
|
-
};
|
54
|
-
process: {
|
55
|
-
step1: string;
|
56
|
-
step2: string;
|
57
|
-
step3: string;
|
58
|
-
step4: string;
|
59
|
-
};
|
60
|
-
searchSelect: {
|
61
|
-
pleaseSelect: string;
|
62
|
-
loading: string;
|
63
|
-
filterQueryMustHasValue: string;
|
64
|
-
ok: string;
|
65
|
-
cancel: string;
|
66
|
-
or: string;
|
67
|
-
and: string;
|
68
|
-
logical: string;
|
69
|
-
};
|
70
|
-
select: {
|
71
|
-
noData: string;
|
72
|
-
noMatchedData: string;
|
73
|
-
loading: string;
|
74
|
-
pleaseSelect: string;
|
75
|
-
enterKeywords: string;
|
76
|
-
all: string;
|
77
|
-
selectAll: string;
|
78
|
-
};
|
79
|
-
table: {
|
80
|
-
emptyText: string;
|
81
|
-
confirm: string;
|
82
|
-
reset: string;
|
83
|
-
sort: string;
|
84
|
-
setting: {
|
85
|
-
title: string;
|
86
|
-
fields: {
|
87
|
-
title: string;
|
88
|
-
subtitle: (max: number) => string;
|
89
|
-
selectAll: string;
|
90
|
-
};
|
91
|
-
lineHeight: {
|
92
|
-
title: string;
|
93
|
-
small: string;
|
94
|
-
medium: string;
|
95
|
-
large: string;
|
96
|
-
};
|
97
|
-
options: {
|
98
|
-
ok: string;
|
99
|
-
cancel: string;
|
100
|
-
};
|
101
|
-
};
|
102
|
-
};
|
103
|
-
transfer: {
|
104
|
-
sourceList: string;
|
105
|
-
targetList: string;
|
106
|
-
removeAll: string;
|
107
|
-
selectAll: string;
|
108
|
-
noData: string;
|
109
|
-
noSelected: string;
|
110
|
-
search: string;
|
111
|
-
};
|
112
|
-
upload: {
|
113
|
-
uploadSuccess: string;
|
114
|
-
uploadFailed: string;
|
115
|
-
drapFileOr: string;
|
116
|
-
clickUpload: string;
|
117
|
-
uploadLabel: string;
|
118
|
-
};
|
119
|
-
input: {
|
120
|
-
placeholder: string;
|
121
|
-
};
|
122
|
-
tagInput: {
|
123
|
-
placeholder: string;
|
124
|
-
};
|
125
|
-
message: {
|
126
|
-
assistant: string;
|
127
|
-
details: string;
|
128
|
-
copySuccess: string;
|
129
|
-
copyFailed: string;
|
130
|
-
};
|
131
|
-
cascader: {
|
132
|
-
pleaseSelect: string;
|
133
|
-
noData: string;
|
134
|
-
emptyText: string;
|
135
|
-
};
|
136
|
-
}>;
|
137
|
-
};
|
138
|
-
prefix: {
|
139
|
-
type: StringConstructor;
|
140
|
-
default: string;
|
141
|
-
};
|
142
|
-
}>>) => void;
|
143
|
-
install: (app: App<any>, options?: Partial<import("vue").ExtractPropTypes<{
|
144
|
-
locale: {
|
145
|
-
type: import("vue").PropType<{
|
146
|
-
lang: string;
|
147
|
-
steps: {
|
148
|
-
step1: string;
|
149
|
-
step2: string;
|
150
|
-
step3: string;
|
151
|
-
};
|
152
|
-
datePicker: {
|
153
|
-
selectDate: string;
|
154
|
-
selectTime: string;
|
155
|
-
clear: string;
|
156
|
-
ok: string;
|
157
|
-
weekdays: {
|
158
|
-
sun: string;
|
159
|
-
mon: string;
|
160
|
-
tue: string;
|
161
|
-
wed: string;
|
162
|
-
thu: string;
|
163
|
-
fri: string;
|
164
|
-
sat: string;
|
165
|
-
};
|
166
|
-
hour: string;
|
167
|
-
min: string;
|
168
|
-
sec: string;
|
169
|
-
toNow: string;
|
170
|
-
};
|
171
|
-
dialog: {
|
172
|
-
ok: string;
|
173
|
-
cancel: string;
|
174
|
-
prev: string;
|
175
|
-
next: string;
|
176
|
-
};
|
177
|
-
popConfirm: {
|
178
|
-
ok: string;
|
179
|
-
cancel: string;
|
180
|
-
};
|
181
|
-
form: {
|
182
|
-
notBeEmpty: string;
|
183
|
-
incorrectFormat: string;
|
184
|
-
max: string;
|
185
|
-
min: string;
|
186
|
-
maxLen: string;
|
187
|
-
verifyError: string;
|
188
|
-
};
|
189
|
-
pagination: {
|
190
|
-
eachPage: string;
|
191
|
-
strip: string;
|
192
|
-
total: string;
|
193
|
-
};
|
194
|
-
process: {
|
195
|
-
step1: string;
|
196
|
-
step2: string;
|
197
|
-
step3: string;
|
198
|
-
step4: string;
|
199
|
-
};
|
200
|
-
searchSelect: {
|
201
|
-
pleaseSelect: string;
|
202
|
-
loading: string;
|
203
|
-
filterQueryMustHasValue: string;
|
204
|
-
ok: string;
|
205
|
-
cancel: string;
|
206
|
-
or: string;
|
207
|
-
and: string;
|
208
|
-
logical: string;
|
209
|
-
};
|
210
|
-
select: {
|
211
|
-
noData: string;
|
212
|
-
noMatchedData: string;
|
213
|
-
loading: string;
|
214
|
-
pleaseSelect: string;
|
215
|
-
enterKeywords: string;
|
216
|
-
all: string;
|
217
|
-
selectAll: string;
|
218
|
-
};
|
219
|
-
table: {
|
220
|
-
emptyText: string;
|
221
|
-
confirm: string;
|
222
|
-
reset: string;
|
223
|
-
sort: string;
|
224
|
-
setting: {
|
225
|
-
title: string;
|
226
|
-
fields: {
|
227
|
-
title: string;
|
228
|
-
subtitle: (max: number) => string;
|
229
|
-
selectAll: string;
|
230
|
-
};
|
231
|
-
lineHeight: {
|
232
|
-
title: string;
|
233
|
-
small: string;
|
234
|
-
medium: string;
|
235
|
-
large: string;
|
236
|
-
};
|
237
|
-
options: {
|
238
|
-
ok: string;
|
239
|
-
cancel: string;
|
240
|
-
};
|
241
|
-
};
|
242
|
-
};
|
243
|
-
transfer: {
|
244
|
-
sourceList: string;
|
245
|
-
targetList: string;
|
246
|
-
removeAll: string;
|
247
|
-
selectAll: string;
|
248
|
-
noData: string;
|
249
|
-
noSelected: string;
|
250
|
-
search: string;
|
251
|
-
};
|
252
|
-
upload: {
|
253
|
-
uploadSuccess: string;
|
254
|
-
uploadFailed: string;
|
255
|
-
drapFileOr: string;
|
256
|
-
clickUpload: string;
|
257
|
-
uploadLabel: string;
|
258
|
-
};
|
259
|
-
input: {
|
260
|
-
placeholder: string;
|
261
|
-
};
|
262
|
-
tagInput: {
|
263
|
-
placeholder: string;
|
264
|
-
};
|
265
|
-
message: {
|
266
|
-
assistant: string;
|
267
|
-
details: string;
|
268
|
-
copySuccess: string;
|
269
|
-
copyFailed: string;
|
270
|
-
};
|
271
|
-
cascader: {
|
272
|
-
pleaseSelect: string;
|
273
|
-
noData: string;
|
274
|
-
emptyText: string;
|
275
|
-
};
|
276
|
-
}>;
|
277
|
-
};
|
278
|
-
prefix: {
|
279
|
-
type: StringConstructor;
|
280
|
-
default: string;
|
281
|
-
};
|
282
|
-
}>>) => void;
|
2
|
+
createInstall: (prefix?: string) => (app: any, options: any) => void;
|
3
|
+
install: (app: any, options: any) => void;
|
283
4
|
version: string;
|
284
5
|
};
|
285
6
|
export default _default;
|
package/lib/preset.js
CHANGED
@@ -1,43 +1,3 @@
|
|
1
|
-
import * as __WEBPACK_EXTERNAL_MODULE__config_provider_e8e4cbd4__ from "./config-provider";
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE__components_96ad247a__ from "./components";
|
3
|
-
/******/ // The require scope
|
4
|
-
/******/ var __webpack_require__ = {};
|
5
|
-
/******/
|
6
|
-
/************************************************************************/
|
7
|
-
/******/ /* webpack/runtime/define property getters */
|
8
|
-
/******/ (() => {
|
9
|
-
/******/ // define getter functions for harmony exports
|
10
|
-
/******/ __webpack_require__.d = (exports, definition) => {
|
11
|
-
/******/ for(var key in definition) {
|
12
|
-
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
13
|
-
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
14
|
-
/******/ }
|
15
|
-
/******/ }
|
16
|
-
/******/ };
|
17
|
-
/******/ })();
|
18
|
-
/******/
|
19
|
-
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
20
|
-
/******/ (() => {
|
21
|
-
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
22
|
-
/******/ })();
|
23
|
-
/******/
|
24
|
-
/************************************************************************/
|
25
|
-
var __webpack_exports__ = {};
|
26
|
-
|
27
|
-
// EXPORTS
|
28
|
-
__webpack_require__.d(__webpack_exports__, {
|
29
|
-
Z: () => (/* binding */ preset)
|
30
|
-
});
|
31
|
-
|
32
|
-
;// CONCATENATED MODULE: external "./config-provider"
|
33
|
-
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
34
|
-
var y = x => () => x
|
35
|
-
const external_config_provider_namespaceObject = x({ ["provideGlobalConfig"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_e8e4cbd4__.provideGlobalConfig });
|
36
|
-
;// CONCATENATED MODULE: external "./components"
|
37
|
-
var external_components_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
38
|
-
var external_components_y = x => () => x
|
39
|
-
const external_components_namespaceObject = __WEBPACK_EXTERNAL_MODULE__components_96ad247a__;
|
40
|
-
;// CONCATENATED MODULE: ../../packages/bkui-vue/preset.ts
|
41
1
|
/*
|
42
2
|
* Tencent is pleased to support the open source community by making
|
43
3
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -64,30 +24,28 @@ const external_components_namespaceObject = __WEBPACK_EXTERNAL_MODULE__component
|
|
64
24
|
* IN THE SOFTWARE.
|
65
25
|
*/
|
66
26
|
|
27
|
+
import { provideGlobalConfig } from './config-provider';
|
28
|
+
|
29
|
+
import * as components from './components';
|
67
30
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
Object.keys(
|
73
|
-
|
31
|
+
const createInstall =
|
32
|
+
(prefix = 'Bk') =>
|
33
|
+
(app, options) => {
|
34
|
+
const pre = app.config.globalProperties.bkUIPrefix || prefix;
|
35
|
+
Object.keys(components).forEach(key => {
|
36
|
+
const component = components[key];
|
74
37
|
if ('install' in component) {
|
75
|
-
app.use(component, {
|
76
|
-
prefix: pre
|
77
|
-
});
|
38
|
+
app.use(component, { prefix: pre });
|
78
39
|
} else {
|
79
|
-
app.component(pre + key,
|
40
|
+
app.component(pre + key, components[key]);
|
80
41
|
}
|
81
42
|
});
|
82
43
|
if (options) {
|
83
|
-
|
44
|
+
provideGlobalConfig(options, app);
|
84
45
|
}
|
85
46
|
};
|
86
|
-
|
87
|
-
|
88
|
-
createInstall: createInstall,
|
47
|
+
export default {
|
48
|
+
createInstall,
|
89
49
|
install: createInstall(),
|
90
|
-
version: '0.0.1'
|
91
|
-
}
|
92
|
-
var __webpack_exports__default = __webpack_exports__.Z;
|
93
|
-
export { __webpack_exports__default as default };
|
50
|
+
version: '0.0.1',
|
51
|
+
};
|
package/lib/process/index.js
CHANGED
@@ -1,7 +1,8 @@
|
|
1
|
-
import
|
1
|
+
import "./process.less";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
3
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
|
-
import * as
|
4
|
-
import * as
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
5
6
|
/******/ var __webpack_modules__ = ({
|
6
7
|
|
7
8
|
/***/ 7609:
|
@@ -415,13 +416,13 @@ var __webpack_exports__ = {};
|
|
415
416
|
|
416
417
|
// EXPORTS
|
417
418
|
__webpack_require__.d(__webpack_exports__, {
|
418
|
-
|
419
|
+
"default": () => (/* binding */ src)
|
419
420
|
});
|
420
421
|
|
421
422
|
;// CONCATENATED MODULE: external "../shared"
|
422
423
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
423
424
|
var y = x => () => x
|
424
|
-
const
|
425
|
+
const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
425
426
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
426
427
|
function _typeof(obj) {
|
427
428
|
"@babel/helpers - typeof";
|
@@ -543,13 +544,13 @@ const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __W
|
|
543
544
|
var regenerator = __webpack_require__(2841);
|
544
545
|
var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
545
546
|
;// CONCATENATED MODULE: external "../config-provider"
|
546
|
-
var
|
547
|
-
var
|
548
|
-
const
|
547
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
548
|
+
var config_provider_y = x => () => x
|
549
|
+
const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
549
550
|
;// CONCATENATED MODULE: external "../icon"
|
550
|
-
var
|
551
|
-
var
|
552
|
-
const
|
551
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
552
|
+
var icon_y = x => () => x
|
553
|
+
const icon_namespaceObject = icon_x({ ["Circle"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Circle, ["Done"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Done, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error });
|
553
554
|
;// CONCATENATED MODULE: ../../packages/process/src/process.tsx
|
554
555
|
|
555
556
|
|
@@ -584,15 +585,14 @@ const external_icon_namespaceObject = external_icon_x({ ["Circle"]: () => __WEBP
|
|
584
585
|
|
585
586
|
|
586
587
|
|
587
|
-
|
588
|
-
// import { Error, Circle, Done } from '@bkui-vue/icon';
|
588
|
+
// import { Error, Circle, Done } from '@bkui-vue/icon';
|
589
589
|
var processProps = {
|
590
|
-
list:
|
591
|
-
controllable:
|
592
|
-
showSteps:
|
593
|
-
curProcess:
|
594
|
-
displayKey:
|
595
|
-
extCls:
|
590
|
+
list: shared_namespaceObject.PropTypes.array.def([]),
|
591
|
+
controllable: shared_namespaceObject.PropTypes.bool.def(false),
|
592
|
+
showSteps: shared_namespaceObject.PropTypes.bool.def(false),
|
593
|
+
curProcess: shared_namespaceObject.PropTypes.number.def(0),
|
594
|
+
displayKey: shared_namespaceObject.PropTypes.string.def('content'),
|
595
|
+
extCls: shared_namespaceObject.PropTypes.string
|
596
596
|
};
|
597
597
|
/* harmony default export */ const process = ((0,external_vue_namespaceObject.defineComponent)({
|
598
598
|
name: 'Process',
|
@@ -600,8 +600,8 @@ var processProps = {
|
|
600
600
|
emits: ['update:curProcess', 'click'],
|
601
601
|
setup: function setup(props, _ref) {
|
602
602
|
var emit = _ref.emit;
|
603
|
-
var t = (0,
|
604
|
-
var lang = (0,
|
603
|
+
var t = (0,config_provider_namespaceObject.useLocale)('process');
|
604
|
+
var lang = (0,config_provider_namespaceObject.useLocale)('lang');
|
605
605
|
var defaultProcessList = (0,external_vue_namespaceObject.ref)([]);
|
606
606
|
var paddingBottom = (0,external_vue_namespaceObject.ref)(0);
|
607
607
|
var init = function init() {
|
@@ -649,7 +649,7 @@ var processProps = {
|
|
649
649
|
};
|
650
650
|
}();
|
651
651
|
(0,external_vue_namespaceObject.onMounted)(init);
|
652
|
-
var _usePrefix = (0,
|
652
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
653
653
|
resolveClassName = _usePrefix.resolveClassName;
|
654
654
|
return {
|
655
655
|
defaultProcessList: defaultProcessList,
|
@@ -661,7 +661,7 @@ var processProps = {
|
|
661
661
|
render: function render() {
|
662
662
|
var _this = this;
|
663
663
|
var processClsPrefix = this.resolveClassName('process');
|
664
|
-
var processCls = (0,
|
664
|
+
var processCls = (0,shared_namespaceObject.classes)(_defineProperty({}, "".concat(this.extCls), !!this.extCls), "".concat(processClsPrefix));
|
665
665
|
var isLoadingStatus = function isLoadingStatus(item) {
|
666
666
|
return item.status === 'loading';
|
667
667
|
};
|
@@ -676,12 +676,12 @@ var processProps = {
|
|
676
676
|
};
|
677
677
|
var renderIcon = function renderIcon(index, item) {
|
678
678
|
if (index === _this.curProcess - 1 && isLoadingStatus(item)) {
|
679
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
679
|
+
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Circle, {
|
680
680
|
"class": "".concat(_this.resolveClassName('icon'), " ").concat(_this.resolveClassName('process-icon'), " icon-loading")
|
681
681
|
}, null);
|
682
682
|
}
|
683
683
|
if (index === _this.curProcess - 1 && isErrorStatus(item)) {
|
684
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
684
|
+
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Error, {
|
685
685
|
"class": "".concat(_this.resolveClassName('process-icon'), " icon-error")
|
686
686
|
}, null);
|
687
687
|
}
|
@@ -691,7 +691,7 @@ var processProps = {
|
|
691
691
|
}, [(0,external_vue_namespaceObject.createVNode)(item.icon, null, null)]);
|
692
692
|
}
|
693
693
|
if (isDone(index)) {
|
694
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
694
|
+
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Done, {
|
695
695
|
"class": "".concat(_this.resolveClassName('process-icon-done'))
|
696
696
|
}, null);
|
697
697
|
}
|
@@ -751,9 +751,9 @@ var processProps = {
|
|
751
751
|
*/
|
752
752
|
|
753
753
|
|
754
|
-
var BkProcess = (0,
|
754
|
+
var BkProcess = (0,shared_namespaceObject.withInstall)(process);
|
755
755
|
/* harmony default export */ const src = (BkProcess);
|
756
756
|
})();
|
757
757
|
|
758
|
-
var __webpack_exports__default = __webpack_exports__
|
758
|
+
var __webpack_exports__default = __webpack_exports__["default"];
|
759
759
|
export { __webpack_exports__default as default };
|
package/lib/progress/index.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
import
|
1
|
+
import "./progress.less";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
3
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
3
|
-
import * as
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
4
5
|
/******/ // The require scope
|
5
6
|
/******/ var __webpack_require__ = {};
|
6
7
|
/******/
|
@@ -27,13 +28,13 @@ var __webpack_exports__ = {};
|
|
27
28
|
|
28
29
|
// EXPORTS
|
29
30
|
__webpack_require__.d(__webpack_exports__, {
|
30
|
-
|
31
|
+
"default": () => (/* binding */ src)
|
31
32
|
});
|
32
33
|
|
33
34
|
;// CONCATENATED MODULE: external "../shared"
|
34
35
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
35
36
|
var y = x => () => x
|
36
|
-
const
|
37
|
+
const shared_namespaceObject = x({ ["ProgressStrokeLineCapType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.ProgressStrokeLineCapType, ["ProgressType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.ProgressType, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["ThemeEnum"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.ThemeEnum, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstall });
|
37
38
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
38
39
|
function _typeof(obj) {
|
39
40
|
"@babel/helpers - typeof";
|
@@ -84,9 +85,9 @@ var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
84
85
|
var external_vue_y = x => () => x
|
85
86
|
const external_vue_namespaceObject = external_vue_x({ ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode });
|
86
87
|
;// CONCATENATED MODULE: external "../config-provider"
|
87
|
-
var
|
88
|
-
var
|
89
|
-
const
|
88
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
89
|
+
var config_provider_y = x => () => x
|
90
|
+
const config_provider_namespaceObject = config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
90
91
|
;// CONCATENATED MODULE: ../../packages/progress/src/circle.tsx
|
91
92
|
|
92
93
|
/*
|
@@ -119,7 +120,7 @@ const external_config_provider_namespaceObject = external_config_provider_x({ ["
|
|
119
120
|
var Circle = function Circle(_, _ref) {
|
120
121
|
var attrs = _ref.attrs,
|
121
122
|
slots = _ref.slots;
|
122
|
-
var _usePrefix = (0,
|
123
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
123
124
|
resolveClassName = _usePrefix.resolveClassName;
|
124
125
|
var width = attrs.width,
|
125
126
|
percent = attrs.percent,
|
@@ -223,7 +224,7 @@ var Circle = function Circle(_, _ref) {
|
|
223
224
|
var Line = function Line(_, _ref) {
|
224
225
|
var attrs = _ref.attrs,
|
225
226
|
slots = _ref.slots;
|
226
|
-
var _usePrefix = (0,
|
227
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
227
228
|
resolveClassName = _usePrefix.resolveClassName;
|
228
229
|
var percent = attrs.percent,
|
229
230
|
strokeWidth = attrs.strokeWidth,
|
@@ -308,25 +309,25 @@ function _isSlot(s) {
|
|
308
309
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
309
310
|
}
|
310
311
|
var progressType = {
|
311
|
-
extCls:
|
312
|
-
type: (0,
|
313
|
-
percent:
|
314
|
-
theme:
|
315
|
-
size:
|
316
|
-
width:
|
317
|
-
strokeWidth:
|
318
|
-
strokeLinecap: (0,
|
319
|
-
textInside:
|
320
|
-
showText:
|
321
|
-
color:
|
322
|
-
bgColor:
|
323
|
-
fixed:
|
312
|
+
extCls: shared_namespaceObject.PropTypes.string,
|
313
|
+
type: (0,shared_namespaceObject.ProgressType)(),
|
314
|
+
percent: shared_namespaceObject.PropTypes.number.def(0),
|
315
|
+
theme: shared_namespaceObject.PropTypes.theme().def(shared_namespaceObject.ThemeEnum.PRIMARY),
|
316
|
+
size: shared_namespaceObject.PropTypes.size(),
|
317
|
+
width: shared_namespaceObject.PropTypes.number.def(126),
|
318
|
+
strokeWidth: shared_namespaceObject.PropTypes.number,
|
319
|
+
strokeLinecap: (0,shared_namespaceObject.ProgressStrokeLineCapType)(),
|
320
|
+
textInside: shared_namespaceObject.PropTypes.bool.def(false),
|
321
|
+
showText: shared_namespaceObject.PropTypes.bool.def(true),
|
322
|
+
color: shared_namespaceObject.PropTypes.string,
|
323
|
+
bgColor: shared_namespaceObject.PropTypes.string,
|
324
|
+
fixed: shared_namespaceObject.PropTypes.number.validate(function (value) {
|
324
325
|
return value >= 0 && value <= 20;
|
325
326
|
}).def(0),
|
326
|
-
format:
|
327
|
+
format: shared_namespaceObject.PropTypes.func.def(function (percent) {
|
327
328
|
return "".concat(percent, "%");
|
328
329
|
}),
|
329
|
-
titleStyle:
|
330
|
+
titleStyle: shared_namespaceObject.PropTypes.object.def({
|
330
331
|
fontSize: '16px',
|
331
332
|
verticalAlign: 'middle'
|
332
333
|
})
|
@@ -336,7 +337,7 @@ var progressType = {
|
|
336
337
|
name: 'Progress',
|
337
338
|
props: progressType,
|
338
339
|
setup: function setup() {
|
339
|
-
var _usePrefix = (0,
|
340
|
+
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
340
341
|
resolveClassName = _usePrefix.resolveClassName;
|
341
342
|
return {
|
342
343
|
resolveClassName: resolveClassName
|
@@ -390,7 +391,7 @@ var progressType = {
|
|
390
391
|
});
|
391
392
|
}
|
392
393
|
var progressProps = {
|
393
|
-
"class": (0,
|
394
|
+
"class": (0,shared_namespaceObject.classes)({
|
394
395
|
extCls: !!this.extCls
|
395
396
|
}, "".concat(this.resolveClassName('progress'), " ").concat(this.resolveClassName("progress-".concat(this.type))))
|
396
397
|
};
|
@@ -425,7 +426,7 @@ var progressType = {
|
|
425
426
|
*/
|
426
427
|
|
427
428
|
|
428
|
-
var BkProgress = (0,
|
429
|
+
var BkProgress = (0,shared_namespaceObject.withInstall)(progress);
|
429
430
|
/* harmony default export */ const src = (BkProgress);
|
430
|
-
var __webpack_exports__default = __webpack_exports__
|
431
|
+
var __webpack_exports__default = __webpack_exports__["default"];
|
431
432
|
export { __webpack_exports__default as default };
|