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
@@ -82,6 +82,41 @@ function _typeof(obj) {
|
|
82
82
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
83
83
|
}, _typeof(obj);
|
84
84
|
}
|
85
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
86
|
+
|
87
|
+
function _toPrimitive(input, hint) {
|
88
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
89
|
+
var prim = input[Symbol.toPrimitive];
|
90
|
+
if (prim !== undefined) {
|
91
|
+
var res = prim.call(input, hint || "default");
|
92
|
+
if (_typeof(res) !== "object") return res;
|
93
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
94
|
+
}
|
95
|
+
return (hint === "string" ? String : Number)(input);
|
96
|
+
}
|
97
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
98
|
+
|
99
|
+
|
100
|
+
function _toPropertyKey(arg) {
|
101
|
+
var key = _toPrimitive(arg, "string");
|
102
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
103
|
+
}
|
104
|
+
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
105
|
+
|
106
|
+
function _defineProperty(obj, key, value) {
|
107
|
+
key = _toPropertyKey(key);
|
108
|
+
if (key in obj) {
|
109
|
+
Object.defineProperty(obj, key, {
|
110
|
+
value: value,
|
111
|
+
enumerable: true,
|
112
|
+
configurable: true,
|
113
|
+
writable: true
|
114
|
+
});
|
115
|
+
} else {
|
116
|
+
obj[key] = value;
|
117
|
+
}
|
118
|
+
return obj;
|
119
|
+
}
|
85
120
|
;// CONCATENATED MODULE: external "vue"
|
86
121
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
87
122
|
var external_vue_y = x => () => x
|
@@ -91,6 +126,9 @@ var external_config_provider_x = y => { var x = {}; __webpack_require__.d(x, y);
|
|
91
126
|
var external_config_provider_y = x => () => x
|
92
127
|
const external_config_provider_namespaceObject = external_config_provider_x({ ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE__config_provider_9d0186d9__.usePrefix });
|
93
128
|
;// CONCATENATED MODULE: ../../packages/virtual-render/src/props.ts
|
129
|
+
|
130
|
+
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; }
|
131
|
+
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; }
|
94
132
|
/*
|
95
133
|
* Tencent is pleased to support the open source community by making
|
96
134
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -120,7 +158,7 @@ const external_config_provider_namespaceObject = external_config_provider_x({ ["
|
|
120
158
|
var EventProps = {
|
121
159
|
onContentScroll: Function
|
122
160
|
};
|
123
|
-
var virtualRenderProps =
|
161
|
+
var virtualRenderProps = _objectSpread({
|
124
162
|
/** 传入原始数据源 */
|
125
163
|
list: external_shared_namespaceObject.PropTypes.array.def([]),
|
126
164
|
/**
|
@@ -206,6 +244,9 @@ var virtualRenderProps = Object.assign({
|
|
206
244
|
wrapperStyle: external_shared_namespaceObject.PropTypes.any.def({})
|
207
245
|
}, EventProps);
|
208
246
|
;// CONCATENATED MODULE: ../../packages/virtual-render/src/use-tag-render.tsx
|
247
|
+
|
248
|
+
function use_tag_render_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; }
|
249
|
+
function use_tag_render_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? use_tag_render_ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : use_tag_render_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
209
250
|
/*
|
210
251
|
* Tencent is pleased to support the open source community by making
|
211
252
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -262,7 +303,7 @@ var virtualRenderProps = Object.assign({
|
|
262
303
|
/** 虚拟渲染外层容器样式 */
|
263
304
|
var wrapperStyle = (0,external_vue_namespaceObject.computed)(function () {
|
264
305
|
var height = typeof props.height === 'number' ? "".concat(props.height, "px") : props.height;
|
265
|
-
return
|
306
|
+
return use_tag_render_objectSpread({
|
266
307
|
height: height,
|
267
308
|
width: typeof props.width === 'number' ? "".concat(props.width, "px") : props.width,
|
268
309
|
display: 'inline-block',
|
@@ -274,19 +315,19 @@ var virtualRenderProps = Object.assign({
|
|
274
315
|
});
|
275
316
|
return {
|
276
317
|
rendAsTag: function rendAsTag() {
|
277
|
-
var
|
318
|
+
var _ctx$slots$beforeCont, _ctx$slots$beforeCont2, _ctx$slots, _ctx$slots$default, _ctx$slots$default2, _ctx$slots2, _ctx$slots$afterConte, _ctx$slots$afterConte2, _ctx$slots3, _ctx$slots$afterSecti, _ctx$slots$afterSecti2, _ctx$slots4;
|
278
319
|
return (0,external_vue_namespaceObject.h)(
|
279
320
|
// @ts-ignore:next-line
|
280
321
|
renderAs, {
|
281
322
|
"class": props.className,
|
282
323
|
style: wrapperStyle.value,
|
283
324
|
ref: refRoot
|
284
|
-
}, [(
|
325
|
+
}, [(_ctx$slots$beforeCont = (_ctx$slots$beforeCont2 = (_ctx$slots = ctx.slots).beforeContent) === null || _ctx$slots$beforeCont2 === void 0 ? void 0 : _ctx$slots$beforeCont2.call(_ctx$slots)) !== null && _ctx$slots$beforeCont !== void 0 ? _ctx$slots$beforeCont : '', (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.h)(contentAs, {
|
285
326
|
"class": props.contentClassName,
|
286
327
|
style: props.contentStyle
|
287
|
-
}, [(
|
328
|
+
}, [(_ctx$slots$default = (_ctx$slots$default2 = (_ctx$slots2 = ctx.slots)["default"]) === null || _ctx$slots$default2 === void 0 ? void 0 : _ctx$slots$default2.call(_ctx$slots2, {
|
288
329
|
data: props.list
|
289
|
-
})) !== null &&
|
330
|
+
})) !== null && _ctx$slots$default !== void 0 ? _ctx$slots$default : '']), [[vVirtualRender, dirModifier]]), (_ctx$slots$afterConte = (_ctx$slots$afterConte2 = (_ctx$slots3 = ctx.slots).afterContent) === null || _ctx$slots$afterConte2 === void 0 ? void 0 : _ctx$slots$afterConte2.call(_ctx$slots3)) !== null && _ctx$slots$afterConte !== void 0 ? _ctx$slots$afterConte : '', (_ctx$slots$afterSecti = (_ctx$slots$afterSecti2 = (_ctx$slots4 = ctx.slots).afterSection) === null || _ctx$slots$afterSecti2 === void 0 ? void 0 : _ctx$slots$afterSecti2.call(_ctx$slots4)) !== null && _ctx$slots$afterSecti !== void 0 ? _ctx$slots$afterSecti : '']);
|
290
331
|
}
|
291
332
|
};
|
292
333
|
});
|
@@ -446,6 +487,9 @@ var executeThrottledRender = function executeThrottledRender(e, wrapper, binding
|
|
446
487
|
;// CONCATENATED MODULE: ../../packages/virtual-render/src/virtual-render.tsx
|
447
488
|
|
448
489
|
|
490
|
+
|
491
|
+
function virtual_render_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; }
|
492
|
+
function virtual_render_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? virtual_render_ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : virtual_render_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
449
493
|
/*
|
450
494
|
* Tencent is pleased to support the open source community by making
|
451
495
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -600,12 +644,12 @@ var executeThrottledRender = function executeThrottledRender(e, wrapper, binding
|
|
600
644
|
};
|
601
645
|
/** 列表数据重置之后的处理事项 */
|
602
646
|
var afterListDataReset = function afterListDataReset() {
|
647
|
+
var _refRoot$value;
|
603
648
|
var scrollToOpt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
604
649
|
left: 0,
|
605
650
|
top: 0
|
606
651
|
};
|
607
|
-
var
|
608
|
-
var el = (_a = refRoot.value) === null || _a === void 0 ? void 0 : _a.parentNode;
|
652
|
+
var el = (_refRoot$value = refRoot.value) === null || _refRoot$value === void 0 ? void 0 : _refRoot$value.parentNode;
|
609
653
|
computedVirtualIndex(props.lineHeight, handleScrollCallback, pagination, el, null);
|
610
654
|
if (scrollToOpt && refRoot.value && props.autoReset) {
|
611
655
|
scrollTo(scrollToOpt);
|
@@ -617,7 +661,7 @@ var executeThrottledRender = function executeThrottledRender(e, wrapper, binding
|
|
617
661
|
return props.list;
|
618
662
|
}
|
619
663
|
return (props.list || []).map(function (item, index) {
|
620
|
-
return
|
664
|
+
return virtual_render_objectSpread(virtual_render_objectSpread({}, item), {}, {
|
621
665
|
$index: index
|
622
666
|
});
|
623
667
|
});
|
@@ -636,7 +680,7 @@ var executeThrottledRender = function executeThrottledRender(e, wrapper, binding
|
|
636
680
|
/** 虚拟渲染外层容器样式 */
|
637
681
|
var wrapperStyle = (0,external_vue_namespaceObject.computed)(function () {
|
638
682
|
var height = typeof props.height === 'number' ? "".concat(props.height, "px") : props.height;
|
639
|
-
return
|
683
|
+
return virtual_render_objectSpread(virtual_render_objectSpread({
|
640
684
|
height: height,
|
641
685
|
width: typeof props.width === 'number' ? "".concat(props.width, "px") : props.width,
|
642
686
|
display: 'inline-block',
|
@@ -690,22 +734,22 @@ var executeThrottledRender = function executeThrottledRender(e, wrapper, binding
|
|
690
734
|
scrollTo: scrollTo
|
691
735
|
});
|
692
736
|
return function () {
|
693
|
-
var
|
737
|
+
var _ctx$slots$beforeCont, _ctx$slots$beforeCont2, _ctx$slots, _ctx$slots$default, _ctx$slots$default2, _ctx$slots2, _ctx$slots$afterConte, _ctx$slots$afterConte2, _ctx$slots3, _ctx$slots$afterSecti, _ctx$slots$afterSecti2, _ctx$slots4;
|
694
738
|
return (0,external_vue_namespaceObject.h)(
|
695
739
|
// @ts-ignore:next-line
|
696
740
|
renderAs || 'div', {
|
697
741
|
ref: refRoot,
|
698
742
|
"class": wrapperClass.value,
|
699
743
|
style: wrapperStyle.value
|
700
|
-
}, [(
|
744
|
+
}, [(_ctx$slots$beforeCont = (_ctx$slots$beforeCont2 = (_ctx$slots = ctx.slots).beforeContent) === null || _ctx$slots$beforeCont2 === void 0 ? void 0 : _ctx$slots$beforeCont2.call(_ctx$slots)) !== null && _ctx$slots$beforeCont !== void 0 ? _ctx$slots$beforeCont : '', (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.h)(contentAs || 'div', {
|
701
745
|
"class": innerClass.value,
|
702
|
-
style:
|
703
|
-
}, [(
|
746
|
+
style: virtual_render_objectSpread(virtual_render_objectSpread({}, innerContentStyle.value), props.contentStyle)
|
747
|
+
}, [(_ctx$slots$default = (_ctx$slots$default2 = (_ctx$slots2 = ctx.slots)["default"]) === null || _ctx$slots$default2 === void 0 ? void 0 : _ctx$slots$default2.call(_ctx$slots2, {
|
704
748
|
data: calcList.value
|
705
|
-
})) !== null &&
|
749
|
+
})) !== null && _ctx$slots$default !== void 0 ? _ctx$slots$default : '']), [[vVirtualRender, dirModifier]]), (_ctx$slots$afterConte = (_ctx$slots$afterConte2 = (_ctx$slots3 = ctx.slots).afterContent) === null || _ctx$slots$afterConte2 === void 0 ? void 0 : _ctx$slots$afterConte2.call(_ctx$slots3)) !== null && _ctx$slots$afterConte !== void 0 ? _ctx$slots$afterConte : '', (0,external_vue_namespaceObject.h)('div', {
|
706
750
|
"class": [resolveClassName('virtual-section')],
|
707
751
|
style: innerStyle.value
|
708
|
-
}), (
|
752
|
+
}), (_ctx$slots$afterSecti = (_ctx$slots$afterSecti2 = (_ctx$slots4 = ctx.slots).afterSection) === null || _ctx$slots$afterSecti2 === void 0 ? void 0 : _ctx$slots$afterSecti2.call(_ctx$slots4)) !== null && _ctx$slots$afterSecti !== void 0 ? _ctx$slots$afterSecti : '']);
|
709
753
|
};
|
710
754
|
}
|
711
755
|
}));
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "bkui-vue",
|
3
|
-
"version": "0.0.2-beta.
|
3
|
+
"version": "0.0.2-beta.78",
|
4
4
|
"workspaces": {
|
5
5
|
"packages": [
|
6
6
|
"packages/!(**.bak)*",
|
@@ -101,6 +101,7 @@
|
|
101
101
|
"ts-jest": "~29.1.1",
|
102
102
|
"ts-node": "~10.9.1",
|
103
103
|
"typescript": "~4.9.5",
|
104
|
+
"uuid": "~9.0.1",
|
104
105
|
"vite": "~4.4.7",
|
105
106
|
"vite-plugin-vue-markdown": "~0.23.7",
|
106
107
|
"vue": "~3.3.4",
|