bkui-vue 0.0.2-beta.75 → 0.0.2-beta.78
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 +48 -48
- package/dist/index.esm.js +8323 -8377
- package/dist/index.umd.js +48 -48
- package/lib/affix/index.js +5 -3
- package/lib/alert/index.js +2 -3
- package/lib/backtop/index.js +2 -2
- package/lib/badge/index.js +3 -4
- package/lib/breadcrumb/index.js +4 -4
- package/lib/button/index.js +6 -6
- package/lib/card/index.js +16 -5
- package/lib/cascader/index.js +70 -53
- package/lib/checkbox/index.js +4 -4
- package/lib/collapse/index.js +58 -6
- package/lib/color-picker/index.js +14 -11
- package/lib/config-provider/index.js +51 -3
- package/lib/container/index.js +55 -7
- package/lib/date-picker/index.js +202 -156
- package/lib/dialog/index.js +140 -431
- package/lib/directives/index.js +59 -19
- package/lib/dropdown/index.js +8 -8
- package/lib/exception/index.js +5 -5
- package/lib/form/index.js +22 -16
- package/lib/icon/angle-double-down-line.js +84 -374
- package/lib/icon/angle-double-left-line.js +84 -374
- package/lib/icon/angle-double-left.js +84 -374
- package/lib/icon/angle-double-right-line.js +84 -374
- package/lib/icon/angle-double-right.js +84 -374
- package/lib/icon/angle-double-up-line.js +84 -374
- package/lib/icon/angle-down-fill.js +84 -374
- package/lib/icon/angle-down-line.js +84 -374
- package/lib/icon/angle-down.js +84 -374
- package/lib/icon/angle-left.js +84 -374
- package/lib/icon/angle-right.js +84 -374
- package/lib/icon/angle-up-fill.js +84 -374
- package/lib/icon/angle-up.js +84 -374
- package/lib/icon/archive-fill.js +84 -374
- package/lib/icon/arrows-left.js +84 -374
- package/lib/icon/arrows-right.js +84 -374
- package/lib/icon/assistant.js +84 -374
- package/lib/icon/audio-fill.js +84 -374
- package/lib/icon/bk.js +84 -374
- package/lib/icon/circle.js +84 -374
- package/lib/icon/close-line.js +84 -374
- package/lib/icon/close.js +84 -374
- package/lib/icon/code.js +84 -374
- package/lib/icon/cog-shape.js +84 -374
- package/lib/icon/collapse-left.js +84 -374
- package/lib/icon/copy-shape.js +84 -374
- package/lib/icon/copy.js +84 -374
- package/lib/icon/data-shape.js +84 -374
- package/lib/icon/del.js +84 -374
- package/lib/icon/doc-fill.js +84 -374
- package/lib/icon/done.js +84 -374
- package/lib/icon/down-shape.js +84 -374
- package/lib/icon/down-small.js +84 -374
- package/lib/icon/edit-line.js +84 -374
- package/lib/icon/ellipsis.js +84 -374
- package/lib/icon/enlarge-line.js +84 -374
- package/lib/icon/error.js +84 -374
- package/lib/icon/excel-fill.js +84 -374
- package/lib/icon/exclamation-circle-shape.js +84 -374
- package/lib/icon/eye.js +84 -374
- package/lib/icon/filliscreen-line.js +84 -374
- package/lib/icon/fix-line.js +84 -374
- package/lib/icon/fix-shape.js +84 -374
- package/lib/icon/folder-open.js +84 -374
- package/lib/icon/folder-shape-open.js +84 -374
- package/lib/icon/folder-shape.js +84 -374
- package/lib/icon/folder.js +84 -374
- package/lib/icon/funnel.js +84 -374
- package/lib/icon/help-document-fill.js +84 -374
- package/lib/icon/help-fill.js +84 -374
- package/lib/icon/help.js +84 -374
- package/lib/icon/image-fill.js +131 -382
- package/lib/icon/img-error.js +131 -382
- package/lib/icon/img-placehoulder.js +131 -382
- package/lib/icon/index.js +563 -531
- package/lib/icon/info-line.js +131 -382
- package/lib/icon/info.js +131 -382
- package/lib/icon/left-shape.js +131 -382
- package/lib/icon/left-turn-line.js +131 -382
- package/lib/icon/narrow-line.js +131 -382
- package/lib/icon/original.js +131 -382
- package/lib/icon/pdf-fill.js +131 -382
- package/lib/icon/play-shape.js +131 -382
- package/lib/icon/plus.js +131 -382
- package/lib/icon/ppt-fill.js +131 -382
- package/lib/icon/qq.js +131 -382
- package/lib/icon/right-shape.js +131 -382
- package/lib/icon/right-turn-line.js +131 -382
- package/lib/icon/search.js +131 -382
- package/lib/icon/share.js +131 -382
- package/lib/icon/spinner.js +131 -382
- package/lib/icon/success.js +131 -382
- package/lib/icon/switcher-loading.js +131 -382
- package/lib/icon/text-file.js +131 -382
- package/lib/icon/text-fill.js +131 -382
- package/lib/icon/transfer.js +131 -382
- package/lib/icon/tree-application-shape.js +131 -382
- package/lib/icon/unfull-screen.js +131 -382
- package/lib/icon/unvisible.js +131 -382
- package/lib/icon/up-shape.js +131 -382
- package/lib/icon/upload.js +131 -382
- package/lib/icon/video-fill.js +131 -382
- package/lib/icon/warn.js +131 -382
- package/lib/icon/weixin-pro.js +131 -382
- package/lib/icon/weixin.js +131 -382
- package/lib/image/index.js +57 -9
- package/lib/info-box/index.js +145 -436
- package/lib/input/index.js +105 -415
- package/lib/link/index.js +2 -2
- package/lib/loading/index.js +18 -16
- package/lib/menu/index.js +22 -23
- package/lib/message/index.js +62 -57
- package/lib/modal/index.js +77 -18
- package/lib/navigation/index.js +11 -11
- package/lib/notify/index.js +51 -48
- package/lib/overflow-title/index.js +6 -5
- package/lib/plugin-popover/index.js +202 -364
- package/lib/popover/index.js +202 -364
- package/lib/process/index.js +55 -395
- package/lib/progress/index.js +51 -48
- package/lib/radio/index.js +4 -4
- package/lib/rate/index.js +2 -2
- package/lib/resize-layout/index.js +4 -5
- package/lib/search-select/index.js +179 -486
- package/lib/select/index.js +148 -479
- package/lib/shared/index.js +176 -352
- package/lib/sideslider/index.js +82 -373
- package/lib/slider/index.js +48 -386
- package/lib/steps/index.js +67 -405
- package/lib/swiper/index.js +10 -10
- package/lib/switcher/index.js +2 -2
- package/lib/tab/index.js +63 -8
- package/lib/table/index.js +262 -424
- package/lib/table-column/index.js +7 -6
- package/lib/tag/index.js +2 -2
- package/lib/tag-input/index.js +29 -21
- package/lib/timeline/index.js +6 -7
- package/lib/transfer/index.js +8 -8
- package/lib/tree/index.js +139 -319
- package/lib/upload/index.js +104 -423
- package/lib/virtual-render/index.js +60 -16
- package/package.json +2 -1
package/lib/progress/index.js
CHANGED
@@ -34,6 +34,51 @@ __webpack_require__.d(__webpack_exports__, {
|
|
34
34
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
35
35
|
var y = x => () => x
|
36
36
|
const external_shared_namespaceObject = x({ ["ProgressStrokeLineCapType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.ProgressStrokeLineCapType, ["ProgressType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.ProgressType, ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["ThemeEnum"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.ThemeEnum, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.classes, ["withInstall"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstall });
|
37
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
38
|
+
function _typeof(obj) {
|
39
|
+
"@babel/helpers - typeof";
|
40
|
+
|
41
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
42
|
+
return typeof obj;
|
43
|
+
} : function (obj) {
|
44
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
45
|
+
}, _typeof(obj);
|
46
|
+
}
|
47
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
48
|
+
|
49
|
+
function _toPrimitive(input, hint) {
|
50
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
51
|
+
var prim = input[Symbol.toPrimitive];
|
52
|
+
if (prim !== undefined) {
|
53
|
+
var res = prim.call(input, hint || "default");
|
54
|
+
if (_typeof(res) !== "object") return res;
|
55
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
56
|
+
}
|
57
|
+
return (hint === "string" ? String : Number)(input);
|
58
|
+
}
|
59
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
60
|
+
|
61
|
+
|
62
|
+
function _toPropertyKey(arg) {
|
63
|
+
var key = _toPrimitive(arg, "string");
|
64
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
65
|
+
}
|
66
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
67
|
+
|
68
|
+
function _defineProperty(obj, key, value) {
|
69
|
+
key = _toPropertyKey(key);
|
70
|
+
if (key in obj) {
|
71
|
+
Object.defineProperty(obj, key, {
|
72
|
+
value: value,
|
73
|
+
enumerable: true,
|
74
|
+
configurable: true,
|
75
|
+
writable: true
|
76
|
+
});
|
77
|
+
} else {
|
78
|
+
obj[key] = value;
|
79
|
+
}
|
80
|
+
return obj;
|
81
|
+
}
|
37
82
|
;// CONCATENATED MODULE: external "vue"
|
38
83
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
39
84
|
var external_vue_y = x => () => x
|
@@ -145,51 +190,6 @@ var Circle = function Circle(_, _ref) {
|
|
145
190
|
}, [slots === null || slots === void 0 ? void 0 : slots["default"]()])]);
|
146
191
|
};
|
147
192
|
/* harmony default export */ const circle = (Circle);
|
148
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
149
|
-
function _typeof(obj) {
|
150
|
-
"@babel/helpers - typeof";
|
151
|
-
|
152
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
153
|
-
return typeof obj;
|
154
|
-
} : function (obj) {
|
155
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
156
|
-
}, _typeof(obj);
|
157
|
-
}
|
158
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
159
|
-
|
160
|
-
function _toPrimitive(input, hint) {
|
161
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
162
|
-
var prim = input[Symbol.toPrimitive];
|
163
|
-
if (prim !== undefined) {
|
164
|
-
var res = prim.call(input, hint || "default");
|
165
|
-
if (_typeof(res) !== "object") return res;
|
166
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
167
|
-
}
|
168
|
-
return (hint === "string" ? String : Number)(input);
|
169
|
-
}
|
170
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
171
|
-
|
172
|
-
|
173
|
-
function _toPropertyKey(arg) {
|
174
|
-
var key = _toPrimitive(arg, "string");
|
175
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
176
|
-
}
|
177
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
178
|
-
|
179
|
-
function _defineProperty(obj, key, value) {
|
180
|
-
key = _toPropertyKey(key);
|
181
|
-
if (key in obj) {
|
182
|
-
Object.defineProperty(obj, key, {
|
183
|
-
value: value,
|
184
|
-
enumerable: true,
|
185
|
-
configurable: true,
|
186
|
-
writable: true
|
187
|
-
});
|
188
|
-
} else {
|
189
|
-
obj[key] = value;
|
190
|
-
}
|
191
|
-
return obj;
|
192
|
-
}
|
193
193
|
;// CONCATENATED MODULE: ../../packages/progress/src/line.tsx
|
194
194
|
|
195
195
|
|
@@ -271,6 +271,9 @@ var Line = function Line(_, _ref) {
|
|
271
271
|
/* harmony default export */ const line = (Line);
|
272
272
|
;// CONCATENATED MODULE: ../../packages/progress/src/progress.tsx
|
273
273
|
|
274
|
+
|
275
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
276
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
274
277
|
/*
|
275
278
|
* Tencent is pleased to support the open source community by making
|
276
279
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -350,7 +353,7 @@ var progressType = {
|
|
350
353
|
return percent;
|
351
354
|
},
|
352
355
|
/** text 区域展示内容*/renderProcessInfo: function renderProcessInfo() {
|
353
|
-
var
|
356
|
+
var _this$validPercent;
|
354
357
|
var _this$$props = this.$props,
|
355
358
|
showText = _this$$props.showText,
|
356
359
|
format = _this$$props.format,
|
@@ -358,7 +361,7 @@ var progressType = {
|
|
358
361
|
textInside = _this$$props.textInside,
|
359
362
|
titleStyle = _this$$props.titleStyle,
|
360
363
|
fixed = _this$$props.fixed;
|
361
|
-
var formatPercent = format((
|
364
|
+
var formatPercent = format((_this$validPercent = this.validPercent(percent)) === null || _this$validPercent === void 0 ? void 0 : _this$validPercent.toFixed(fixed));
|
362
365
|
if ((showText || this.$slots["default"]) && textInside) {
|
363
366
|
return this.$slots["default"] ? this.$slots["default"]() : (0,external_vue_namespaceObject.createVNode)("span", null, [formatPercent]);
|
364
367
|
}
|
@@ -371,7 +374,7 @@ var progressType = {
|
|
371
374
|
},
|
372
375
|
render: function render() {
|
373
376
|
var progressInfo = this.renderProcessInfo();
|
374
|
-
var $props =
|
377
|
+
var $props = _objectSpread(_objectSpread({}, this.$props), {}, {
|
375
378
|
percent: this.validPercent(this.percent)
|
376
379
|
});
|
377
380
|
var progress = (0,external_vue_namespaceObject.createVNode)(line, $props, _isSlot(progressInfo) ? progressInfo : {
|
package/lib/radio/index.js
CHANGED
@@ -558,9 +558,9 @@ var radioGroupProps = {
|
|
558
558
|
(0,external_vue_namespaceObject.watch)(function () {
|
559
559
|
return props.modelValue;
|
560
560
|
}, function () {
|
561
|
-
var _a;
|
562
561
|
if (props.withValidate) {
|
563
|
-
|
562
|
+
var _formItem$validate;
|
563
|
+
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 ? void 0 : _formItem$validate.call(formItem, 'change');
|
564
564
|
}
|
565
565
|
});
|
566
566
|
(0,external_vue_namespaceObject.onMounted)(function () {
|
@@ -578,10 +578,10 @@ var radioGroupProps = {
|
|
578
578
|
};
|
579
579
|
},
|
580
580
|
render: function render() {
|
581
|
-
var
|
581
|
+
var _this$$slots;
|
582
582
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
583
583
|
"class": ["".concat(this.resolveClassName('radio-group')), "".concat(this.resolveClassName("radio-".concat(this.type)))]
|
584
|
-
}, [(
|
584
|
+
}, [(_this$$slots = this.$slots) === null || _this$$slots === void 0 ? void 0 : _this$$slots["default"]()]);
|
585
585
|
}
|
586
586
|
}));
|
587
587
|
;// CONCATENATED MODULE: ../../packages/radio/src/index.ts
|
package/lib/rate/index.js
CHANGED
@@ -276,9 +276,9 @@ const external_config_provider_namespaceObject = external_config_provider_x({ ["
|
|
276
276
|
(0,external_vue_namespaceObject.watch)(function () {
|
277
277
|
return props.modelValue;
|
278
278
|
}, function () {
|
279
|
-
var _a;
|
280
279
|
if (props.withValidate) {
|
281
|
-
|
280
|
+
var _formItem$validate;
|
281
|
+
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 ? void 0 : _formItem$validate.call(formItem, 'change');
|
282
282
|
}
|
283
283
|
});
|
284
284
|
return function () {
|
@@ -359,8 +359,7 @@ const external_icon_namespaceObject = external_icon_x({ ["AngleLeft"]: () => __W
|
|
359
359
|
};
|
360
360
|
},
|
361
361
|
render: function render() {
|
362
|
-
var _ref3;
|
363
|
-
var _a, _b, _c, _d, _e, _f;
|
362
|
+
var _ref3, _this$$slots$aside, _this$$slots, _this$$slots$collapse, _this$$slots2, _this$$slots$main, _this$$slots3;
|
364
363
|
var bkResizeLayoutClass = ["".concat(this.resolveClassName('resize-layout')), "".concat(this.resolveClassName("resize-layout-".concat(this.placement))), (_ref3 = {}, _defineProperty(_ref3, "".concat(this.resolveClassName('resize-layout-collapsed')), this.collapsed), _defineProperty(_ref3, "".concat(this.resolveClassName('resize-layout-border')), this.border), _defineProperty(_ref3, "".concat(this.resolveClassName('resize-layout-collapsible')), this.collapsible), _ref3)];
|
365
364
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
366
365
|
"ref": "bkResizeLayoutRef",
|
@@ -371,14 +370,14 @@ const external_icon_namespaceObject = external_icon_x({ ["AngleLeft"]: () => __W
|
|
371
370
|
"style": this.asideStyle
|
372
371
|
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
373
372
|
"class": "".concat(this.resolveClassName('resize-layout-aside-content'))
|
374
|
-
}, [(
|
373
|
+
}, [(_this$$slots$aside = (_this$$slots = this.$slots).aside) === null || _this$$slots$aside === void 0 ? void 0 : _this$$slots$aside.call(_this$$slots)]), [[external_vue_namespaceObject.vShow, this.asideContentVisible]]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("i", {
|
375
374
|
"class": "".concat(this.resolveClassName('resize-trigger')),
|
376
375
|
"style": this.triggerStyle,
|
377
376
|
"onMousedown": (0,external_vue_namespaceObject.withModifiers)(this.handleMousedown, ['left'])
|
378
377
|
}, null), [[external_vue_namespaceObject.vShow, !this.disabled && (!this.collapsed || this.autoMinimize)]]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("i", {
|
379
378
|
"class": ["".concat(this.resolveClassName('resize-proxy')), this.placement],
|
380
379
|
"ref": "resizeProxyRef"
|
381
|
-
}, null), [[external_vue_namespaceObject.vShow, !this.collapsed || this.autoMinimize]]), this.collapsible && (((
|
380
|
+
}, null), [[external_vue_namespaceObject.vShow, !this.collapsed || this.autoMinimize]]), this.collapsible && (((_this$$slots$collapse = (_this$$slots2 = this.$slots)['collapse-trigger']) === null || _this$$slots$collapse === void 0 ? void 0 : _this$$slots$collapse.call(_this$$slots2)) || (this.collapsed ? (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.AngleRight, {
|
382
381
|
"width": 26,
|
383
382
|
"height": 26,
|
384
383
|
"class": "".concat(this.resolveClassName('resize-collapse')),
|
@@ -390,7 +389,7 @@ const external_icon_namespaceObject = external_icon_x({ ["AngleLeft"]: () => __W
|
|
390
389
|
"onClick": this.setCollapse
|
391
390
|
}, null)))]), (0,external_vue_namespaceObject.createVNode)("main", {
|
392
391
|
"class": "".concat(this.resolveClassName('resize-layout-main'))
|
393
|
-
}, [(
|
392
|
+
}, [(_this$$slots$main = (_this$$slots3 = this.$slots).main) === null || _this$$slots$main === void 0 ? void 0 : _this$$slots$main.call(_this$$slots3)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
394
393
|
"class": "".concat(this.resolveClassName('resize-mask')),
|
395
394
|
"ref": "resizeMaskRef"
|
396
395
|
}, null)]);
|