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/switcher/index.js
CHANGED
@@ -184,10 +184,10 @@ var switcherEmitEventsType = (_switcherEmitEventsTy = {}, _defineProperty(_switc
|
|
184
184
|
(0,external_vue_namespaceObject.watch)(function () {
|
185
185
|
return props.modelValue;
|
186
186
|
}, function () {
|
187
|
-
var _a;
|
188
187
|
isModelValue.value = true;
|
189
188
|
if (props.withValidate) {
|
190
|
-
|
189
|
+
var _formItem$validate;
|
190
|
+
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 ? void 0 : _formItem$validate.call(formItem, 'change');
|
191
191
|
}
|
192
192
|
});
|
193
193
|
(0,external_vue_namespaceObject.watch)(function () {
|
package/lib/tab/index.js
CHANGED
@@ -41,12 +41,60 @@ __webpack_require__.d(__webpack_exports__, {
|
|
41
41
|
var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
42
42
|
var y = x => () => x
|
43
43
|
const external_shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.PropTypes, ["renderDirectiveType"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.renderDirectiveType, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE__shared_65459f0a__.withInstallProps });
|
44
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
45
|
+
function _typeof(obj) {
|
46
|
+
"@babel/helpers - typeof";
|
47
|
+
|
48
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
49
|
+
return typeof obj;
|
50
|
+
} : function (obj) {
|
51
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
52
|
+
}, _typeof(obj);
|
53
|
+
}
|
54
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
55
|
+
|
56
|
+
function _toPrimitive(input, hint) {
|
57
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
58
|
+
var prim = input[Symbol.toPrimitive];
|
59
|
+
if (prim !== undefined) {
|
60
|
+
var res = prim.call(input, hint || "default");
|
61
|
+
if (_typeof(res) !== "object") return res;
|
62
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
63
|
+
}
|
64
|
+
return (hint === "string" ? String : Number)(input);
|
65
|
+
}
|
66
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
67
|
+
|
68
|
+
|
69
|
+
function _toPropertyKey(arg) {
|
70
|
+
var key = _toPrimitive(arg, "string");
|
71
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
72
|
+
}
|
73
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
74
|
+
|
75
|
+
function _defineProperty(obj, key, value) {
|
76
|
+
key = _toPropertyKey(key);
|
77
|
+
if (key in obj) {
|
78
|
+
Object.defineProperty(obj, key, {
|
79
|
+
value: value,
|
80
|
+
enumerable: true,
|
81
|
+
configurable: true,
|
82
|
+
writable: true
|
83
|
+
});
|
84
|
+
} else {
|
85
|
+
obj[key] = value;
|
86
|
+
}
|
87
|
+
return obj;
|
88
|
+
}
|
44
89
|
;// CONCATENATED MODULE: external "vue-types"
|
45
90
|
var external_vue_types_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
46
91
|
var external_vue_types_y = x => () => x
|
47
92
|
const external_vue_types_namespaceObject = external_vue_types_x({ ["toType"]: () => __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__.toType });
|
48
93
|
;// CONCATENATED MODULE: ../../packages/tab/src/props.ts
|
49
94
|
|
95
|
+
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; }
|
96
|
+
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; }
|
97
|
+
|
50
98
|
|
51
99
|
var TabTypeEnum;
|
52
100
|
(function (TabTypeEnum) {
|
@@ -167,7 +215,7 @@ var tabProps = {
|
|
167
215
|
activeBarSize: external_shared_namespaceObject.PropTypes.number.def(2),
|
168
216
|
activeBarColor: external_shared_namespaceObject.PropTypes.string.def('#3a84ff')
|
169
217
|
};
|
170
|
-
var tabNavProps =
|
218
|
+
var tabNavProps = _objectSpread({
|
171
219
|
active: external_shared_namespaceObject.PropTypes.oneOfType([external_shared_namespaceObject.PropTypes.number, external_shared_namespaceObject.PropTypes.string]).def(''),
|
172
220
|
type: (0,external_vue_types_namespaceObject.toType)('type', {}).def(TabTypeEnum.BORDER_CARD),
|
173
221
|
activeBarColor: external_shared_namespaceObject.PropTypes.string.def('#3a84ff'),
|
@@ -244,6 +292,9 @@ var _y = x => () => x
|
|
244
292
|
const _namespaceObject = _x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE__icon__2ba2075d__.Close, ["Plus"]: () => __WEBPACK_EXTERNAL_MODULE__icon__2ba2075d__.Plus });
|
245
293
|
;// CONCATENATED MODULE: ../../packages/tab/src/tab-nav.tsx
|
246
294
|
|
295
|
+
|
296
|
+
function tab_nav_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; }
|
297
|
+
function tab_nav_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? tab_nav_ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : tab_nav_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
247
298
|
/*
|
248
299
|
* Tencent is pleased to support the open source community by making
|
249
300
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -431,7 +482,7 @@ const _namespaceObject = _x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE__icon__
|
|
431
482
|
};
|
432
483
|
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
433
484
|
resolveClassName = _usePrefix.resolveClassName;
|
434
|
-
return
|
485
|
+
return tab_nav_objectSpread(tab_nav_objectSpread({}, methods), {}, {
|
435
486
|
activeRef: activeRef,
|
436
487
|
activeBarStyle: activeBarStyle,
|
437
488
|
navs: navs,
|
@@ -516,10 +567,10 @@ const _namespaceObject = _x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE__icon__
|
|
516
567
|
});
|
517
568
|
};
|
518
569
|
var renderOperation = function renderOperation() {
|
519
|
-
var _a, _b;
|
520
570
|
var list = [];
|
521
571
|
if (typeof _this.$slots.add === 'function') {
|
522
|
-
|
572
|
+
var _this$$slots$add, _this$$slots;
|
573
|
+
list.push((_this$$slots$add = (_this$$slots = _this.$slots).add) === null || _this$$slots$add === void 0 ? void 0 : _this$$slots$add.call(_this$$slots, external_vue_namespaceObject.h));
|
523
574
|
} else if (addable) {
|
524
575
|
list.push((0,external_vue_namespaceObject.createVNode)("div", {
|
525
576
|
"onClick": _this.handleTabAdd
|
@@ -567,6 +618,9 @@ const _namespaceObject = _x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE__icon__
|
|
567
618
|
;// CONCATENATED MODULE: ../../packages/tab/src/tab.tsx
|
568
619
|
|
569
620
|
|
621
|
+
|
622
|
+
function tab_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; }
|
623
|
+
function tab_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? tab_ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : tab_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
570
624
|
/*
|
571
625
|
* Tencent is pleased to support the open source community by making
|
572
626
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -704,15 +758,16 @@ const _namespaceObject = _x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE__icon__
|
|
704
758
|
};
|
705
759
|
var _usePrefix = (0,external_config_provider_namespaceObject.usePrefix)(),
|
706
760
|
resolveClassName = _usePrefix.resolveClassName;
|
707
|
-
return
|
761
|
+
return tab_objectSpread(tab_objectSpread({}, methods), {}, {
|
708
762
|
isMounted: isMounted,
|
709
763
|
panels: panels,
|
710
764
|
resolveClassName: resolveClassName
|
711
765
|
});
|
712
766
|
},
|
713
767
|
render: function render() {
|
714
|
-
var _this = this
|
715
|
-
|
768
|
+
var _this = this,
|
769
|
+
_this$$slots$default,
|
770
|
+
_this$$slots;
|
716
771
|
var getTabBoxClass = function getTabBoxClass() {
|
717
772
|
var arr = [_this.resolveClassName('tab'), _this.extCls];
|
718
773
|
if (_this.tabPosition === PositionEnum.TOP) {
|
@@ -778,7 +833,7 @@ const _namespaceObject = _x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE__icon__
|
|
778
833
|
"class": getTabBoxClass()
|
779
834
|
}, [getTabHeader(), (0,external_vue_namespaceObject.createVNode)("div", {
|
780
835
|
"class": this.resolveClassName('tab-content')
|
781
|
-
}, [(
|
836
|
+
}, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)])]);
|
782
837
|
}
|
783
838
|
}));
|
784
839
|
;// CONCATENATED MODULE: ../../packages/tab/src/tab-panel.tsx
|