bkui-vue 0.0.2-beta.99 → 0.0.2-modal-refactor.1
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 +12578 -12295
- package/dist/index.umd.js +34 -34
- package/dist/locale/en.esm.js +1 -1
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +0 -122
- package/lib/affix/affix.variable.css +5 -245
- package/lib/alert/alert.css +3 -125
- package/lib/alert/alert.variable.css +5 -245
- package/lib/backtop/backtop.css +3 -125
- package/lib/backtop/backtop.variable.css +8 -370
- package/lib/badge/badge.css +34 -150
- package/lib/badge/badge.less +8 -4
- package/lib/badge/badge.variable.css +13 -247
- package/lib/breadcrumb/breadcrumb.css +5 -127
- package/lib/breadcrumb/breadcrumb.variable.css +10 -372
- package/lib/button/button-group.d.ts +2 -2
- package/lib/button/button.css +137 -256
- package/lib/button/button.d.ts +1 -1
- package/lib/button/button.less +98 -93
- package/lib/button/button.variable.css +23 -260
- package/lib/button/index.d.ts +5 -5
- package/lib/card/card.css +11 -133
- package/lib/card/card.less +7 -7
- package/lib/card/card.variable.css +16 -378
- package/lib/cascader/cascader-panel.d.ts +1 -0
- package/lib/cascader/cascader.css +26 -148
- package/lib/cascader/cascader.d.ts +1 -0
- package/lib/cascader/cascader.less +4 -6
- package/lib/cascader/cascader.variable.css +31 -393
- package/lib/cascader/index.d.ts +4 -0
- package/lib/cascader/index.js +31 -14
- package/lib/checkbox/checkbox.css +22 -132
- package/lib/checkbox/checkbox.d.ts +9 -8
- package/lib/checkbox/checkbox.less +15 -1
- package/lib/checkbox/checkbox.variable.css +18 -246
- package/lib/checkbox/common.d.ts +1 -0
- package/lib/checkbox/index.d.ts +15 -12
- package/lib/checkbox/index.js +33 -9
- package/lib/code-diff/code-diff.css +0 -122
- package/lib/code-diff/code-diff.variable.css +5 -245
- package/lib/collapse/collapse.css +1 -123
- package/lib/collapse/collapse.variable.css +5 -245
- package/lib/collapse-transition/collapse-transition.css +0 -122
- package/lib/collapse-transition/collapse-transition.variable.css +5 -245
- package/lib/color-picker/color-picker.css +0 -122
- package/lib/color-picker/color-picker.variable.css +5 -245
- package/lib/config-provider/config-provider.css +0 -122
- package/lib/config-provider/config-provider.d.ts +18 -0
- package/lib/config-provider/config-provider.variable.css +5 -245
- package/lib/config-provider/index.d.ts +24 -0
- package/lib/config-provider/token.d.ts +6 -0
- package/lib/container/container.css +0 -122
- package/lib/container/container.variable.css +5 -367
- package/lib/date-picker/common.d.ts +2 -0
- package/lib/date-picker/date-picker.css +17 -139
- package/lib/date-picker/date-picker.d.ts +2 -0
- package/lib/date-picker/date-picker.variable.css +5 -245
- package/lib/date-picker/index.d.ts +6 -0
- package/lib/date-picker/index.js +184 -110
- package/lib/date-picker/panel/date.d.ts +2 -2
- package/lib/date-picker/panel/time-range.d.ts +17 -0
- package/lib/date-picker/panel/time.d.ts +17 -1
- package/lib/date-picker/time-picker.d.ts +2 -0
- package/lib/dialog/dialog.css +66 -162
- package/lib/dialog/dialog.d.ts +16 -7
- package/lib/dialog/dialog.less +9 -8
- package/lib/dialog/dialog.variable.css +71 -407
- package/lib/dialog/index.d.ts +28 -12
- package/lib/dialog/index.js +4 -7
- package/lib/dialog/props.d.ts +7 -3
- package/lib/directives/index.js +15 -4
- package/lib/divider/divider.css +3 -125
- package/lib/divider/divider.variable.css +5 -245
- package/lib/dropdown/dropdown.css +1 -123
- package/lib/dropdown/dropdown.variable.css +6 -368
- package/lib/dropdown/index.js +2 -2
- package/lib/exception/exception.css +0 -122
- package/lib/exception/exception.variable.css +5 -245
- package/lib/fixed-navbar/fixed-navbar.css +4 -126
- package/lib/fixed-navbar/fixed-navbar.variable.css +5 -245
- package/lib/form/form.css +2 -123
- package/lib/form/form.less +3 -2
- package/lib/form/form.variable.css +7 -246
- package/lib/icon/index.d.ts +1 -0
- package/lib/icon/index.js +58 -25
- package/lib/icon/loading.d.ts +4 -0
- package/lib/icon/loading.js +276 -0
- package/lib/image/image-viewer.css +0 -122
- package/lib/image/image-viewer.variable.css +5 -245
- package/lib/image/image.css +0 -122
- package/lib/image/image.variable.css +5 -367
- package/lib/info-box/index.js +4 -7
- package/lib/info-box/info-box.css +0 -122
- package/lib/info-box/info-box.variable.css +5 -245
- package/lib/input/index.d.ts +4 -4
- package/lib/input/index.js +12 -5
- package/lib/input/input.css +84 -190
- package/lib/input/input.d.ts +3 -3
- package/lib/input/input.less +19 -0
- package/lib/input/input.variable.css +89 -435
- package/lib/link/link.css +16 -138
- package/lib/link/link.variable.css +5 -245
- package/lib/loading/index.d.ts +3 -3
- package/lib/loading/loading.css +25 -147
- package/lib/loading/loading.d.ts +1 -1
- package/lib/loading/loading.less +14 -9
- package/lib/loading/loading.variable.css +30 -392
- package/lib/locale/index.js +14 -2
- package/lib/locale/lang/en.d.ts +6 -0
- package/lib/menu/menu.css +18 -140
- package/lib/menu/menu.variable.css +23 -385
- package/lib/menu/submenu.css +0 -122
- package/lib/menu/submenu.variable.css +5 -245
- package/lib/message/message.css +21 -143
- package/lib/message/message.variable.css +5 -245
- package/lib/modal/index.d.ts +97 -54
- package/lib/modal/index.js +131 -103
- package/lib/modal/modal.css +25 -122
- package/lib/modal/modal.d.ts +36 -18
- package/lib/modal/modal.less +33 -0
- package/lib/modal/modal.variable.css +30 -367
- package/lib/modal/props.mixin.d.ts +7 -3
- package/lib/navigation/navigation.css +2 -124
- package/lib/navigation/navigation.variable.css +5 -245
- package/lib/notify/notify.css +13 -135
- package/lib/notify/notify.less +6 -6
- package/lib/notify/notify.variable.css +11 -251
- package/lib/overflow-title/components/overflow-title.d.ts +0 -1
- package/lib/overflow-title/index.js +2 -178
- package/lib/pagination/index.d.ts +4 -4
- package/lib/pagination/pagination.css +2 -123
- package/lib/pagination/pagination.d.ts +3 -3
- package/lib/pagination/pagination.less +1 -0
- package/lib/pagination/pagination.variable.css +6 -245
- package/lib/plugin-popover/index.js +31 -103
- package/lib/pop-confirm/index.d.ts +42 -3
- package/lib/pop-confirm/index.js +55 -47
- package/lib/pop-confirm/pop-confirm.css +4 -126
- package/lib/pop-confirm/pop-confirm.d.ts +14 -1
- package/lib/pop-confirm/pop-confirm.less +4 -4
- package/lib/pop-confirm/pop-confirm.variable.css +9 -249
- package/lib/popover/index.js +31 -103
- package/lib/popover/popover.css +1 -123
- package/lib/popover/popover.less +1 -1
- package/lib/popover/popover.variable.css +6 -246
- package/lib/preset.d.ts +12 -0
- package/lib/process/process.css +13 -135
- package/lib/process/process.variable.css +5 -245
- package/lib/progress/index.d.ts +4 -4
- package/lib/progress/progress.css +11 -129
- package/lib/progress/progress.d.ts +3 -3
- package/lib/progress/progress.less +8 -3
- package/lib/progress/progress.variable.css +16 -374
- package/lib/radio/common.d.ts +1 -0
- package/lib/radio/index.d.ts +8 -2
- package/lib/radio/index.js +11 -3
- package/lib/radio/radio-button.d.ts +4 -3
- package/lib/radio/radio-group.d.ts +3 -0
- package/lib/radio/radio.css +49 -157
- package/lib/radio/radio.d.ts +1 -0
- package/lib/radio/radio.less +42 -8
- package/lib/radio/radio.variable.css +25 -251
- package/lib/rate/index.d.ts +4 -4
- package/lib/rate/index.js +22 -6
- package/lib/rate/rate.css +0 -122
- package/lib/rate/rate.d.ts +2 -2
- package/lib/rate/rate.variable.css +5 -245
- package/lib/rate/star.css +3 -122
- package/lib/rate/star.less +3 -0
- package/lib/rate/star.variable.css +8 -245
- package/lib/resize-layout/index.d.ts +3 -3
- package/lib/resize-layout/resize-layout.css +2 -124
- package/lib/resize-layout/resize-layout.d.ts +1 -1
- package/lib/resize-layout/resize-layout.less +2 -2
- package/lib/resize-layout/resize-layout.variable.css +7 -247
- package/lib/search-select/index.js +6 -6
- package/lib/search-select/search-select.css +34 -156
- package/lib/search-select/search-select.less +9 -9
- package/lib/search-select/search-select.variable.css +39 -401
- package/lib/select/common.d.ts +3 -1
- package/lib/select/index.d.ts +92 -21
- package/lib/select/index.js +193 -63
- package/lib/select/option.d.ts +1 -0
- package/lib/select/select.css +27 -146
- package/lib/select/select.d.ts +38 -9
- package/lib/select/select.less +3 -0
- package/lib/select/select.variable.css +32 -391
- package/lib/select/selectTagInput.d.ts +2 -0
- package/lib/select/type.d.ts +3 -0
- package/lib/shared/index.d.ts +1 -0
- package/lib/shared/index.js +50 -5
- package/lib/shared/mask.d.ts +11 -0
- package/lib/shared/vue-types.d.ts +1 -1
- package/lib/sideslider/index.d.ts +28 -12
- package/lib/sideslider/index.js +0 -11
- package/lib/sideslider/sideslider.css +12 -134
- package/lib/sideslider/sideslider.d.ts +16 -7
- package/lib/sideslider/sideslider.less +80 -77
- package/lib/sideslider/sideslider.variable.css +16 -256
- package/lib/slider/index.js +7 -1
- package/lib/slider/slider.css +6 -126
- package/lib/slider/slider.less +2 -0
- package/lib/slider/slider.variable.css +7 -245
- package/lib/steps/index.d.ts +4 -4
- package/lib/steps/index.js +1 -1
- package/lib/steps/steps.css +53 -163
- package/lib/steps/steps.d.ts +3 -3
- package/lib/steps/steps.less +26 -5
- package/lib/steps/steps.variable.css +23 -251
- package/lib/styles/index.d.ts +1 -0
- package/lib/styles/mixins/animate.css +0 -122
- package/lib/styles/mixins/animate.variable.css +5 -245
- package/lib/styles/mixins/mixins.css +0 -122
- package/lib/styles/mixins/mixins.variable.css +0 -122
- package/lib/styles/mixins/popper.css +0 -122
- package/lib/styles/mixins/popper.variable.css +5 -245
- package/lib/styles/mixins/scroll.css +0 -122
- package/lib/styles/mixins/scroll.variable.css +5 -245
- package/lib/styles/reset.css +0 -122
- package/lib/styles/reset.variable.css +5 -245
- package/lib/styles/themes/themes.less +124 -289
- package/lib/swiper/swiper.css +0 -122
- package/lib/swiper/swiper.variable.css +5 -245
- package/lib/switcher/index.d.ts +4 -4
- package/lib/switcher/switcher.css +17 -139
- package/lib/switcher/switcher.d.ts +3 -3
- package/lib/switcher/switcher.variable.css +22 -384
- package/lib/tab/tab.css +17 -139
- package/lib/tab/tab.variable.css +5 -245
- package/lib/table/components/table-column.d.ts +5 -4
- package/lib/table/index.d.ts +8 -7
- package/lib/table/index.js +877 -630
- package/lib/table/plugins/body-empty.d.ts +1 -1
- package/lib/table/plugins/head-filter.css +1 -150
- package/lib/table/plugins/head-filter.less +2 -34
- package/lib/table/plugins/head-filter.variable.css +6 -273
- package/lib/table/plugins/head-sort.css +0 -122
- package/lib/table/plugins/head-sort.variable.css +5 -245
- package/lib/table/plugins/settings.css +0 -122
- package/lib/table/plugins/settings.d.ts +0 -7
- package/lib/table/plugins/settings.variable.css +5 -245
- package/lib/table/plugins/use-head-cell.d.ts +7 -0
- package/lib/table/plugins/use-pagination.d.ts +2 -1
- package/lib/table/props.d.ts +3 -1
- package/lib/table/table.css +207 -337
- package/lib/table/table.d.ts +1 -1
- package/lib/table/table.less +27 -21
- package/lib/table/table.variable.css +212 -582
- package/lib/table/use-attributes.d.ts +5 -1
- package/lib/table/use-column.d.ts +3 -0
- package/lib/table/use-common.d.ts +0 -1
- package/lib/table/utils.d.ts +6 -4
- package/lib/table-column/index.d.ts +13 -10
- package/lib/tag/tag.css +5 -127
- package/lib/tag/tag.variable.css +5 -245
- package/lib/tag-input/index.js +17 -13
- package/lib/tag-input/list-tag-render.d.ts +11 -0
- package/lib/tag-input/tag-input.css +18 -140
- package/lib/tag-input/tag-input.d.ts +14 -2
- package/lib/tag-input/tag-input.variable.css +5 -245
- package/lib/time-picker/index.d.ts +6 -0
- package/lib/time-picker/time-picker.css +4 -125
- package/lib/time-picker/time-picker.less +5 -9
- package/lib/time-picker/time-picker.variable.css +9 -248
- package/lib/timeline/timeline.css +19 -141
- package/lib/timeline/timeline.variable.css +5 -245
- package/lib/transfer/transfer.css +21 -143
- package/lib/transfer/transfer.less +2 -2
- package/lib/transfer/transfer.variable.css +7 -247
- package/lib/tree/index.d.ts +3 -3
- package/lib/tree/index.js +54 -8
- package/lib/tree/tree.css +22 -132
- package/lib/tree/tree.d.ts +5 -1
- package/lib/tree/tree.variable.css +27 -377
- package/lib/tree/use-empty.d.ts +1 -3
- package/lib/upload/index.js +2 -2
- package/lib/upload/upload.css +27 -149
- package/lib/upload/upload.variable.css +32 -394
- package/lib/virtual-render/index.js +71 -30
- package/lib/virtual-render/use-fix-top.d.ts +18 -0
- package/lib/virtual-render/v-virtual-render.d.ts +5 -0
- package/lib/virtual-render/virtual-render.css +0 -122
- package/lib/virtual-render/virtual-render.variable.css +5 -367
- package/package.json +4 -3
- package/lib/styles/themes/themes.css +0 -122
- package/lib/styles/themes/themes.variable.css +0 -122
- package/lib/table/render.d.ts +0 -130
- /package/lib/overflow-title/{overflow.css → overflow-title.css} +0 -0
- /package/lib/overflow-title/{overflow.less → overflow-title.less} +0 -0
- /package/lib/overflow-title/{overflow.variable.css → overflow-title.variable.css} +0 -0
package/lib/tree/index.js
CHANGED
@@ -221,7 +221,7 @@ var treeProps = {
|
|
221
221
|
/**
|
222
222
|
* 相邻级节点间的水平缩进,单位为像素
|
223
223
|
*/
|
224
|
-
indent: external_shared_namespaceObject.PropTypes.number.def(
|
224
|
+
indent: external_shared_namespaceObject.PropTypes.number.def(16),
|
225
225
|
/**
|
226
226
|
* 设置行高
|
227
227
|
*/
|
@@ -299,7 +299,7 @@ var treeProps = {
|
|
299
299
|
/**
|
300
300
|
* 是否显示匹配项的子节点
|
301
301
|
*/
|
302
|
-
showChildNodes: external_shared_namespaceObject.PropTypes.bool.def(
|
302
|
+
showChildNodes: external_shared_namespaceObject.PropTypes.bool.def(false)
|
303
303
|
}), external_shared_namespaceObject.PropTypes.string, external_shared_namespaceObject.PropTypes.number, external_shared_namespaceObject.PropTypes.bool]).def(undefined),
|
304
304
|
emptyText: external_shared_namespaceObject.PropTypes.string.def('没有数据'),
|
305
305
|
draggable: external_shared_namespaceObject.PropTypes.bool.def(false),
|
@@ -390,17 +390,15 @@ const external_exception_namespaceObject = external_exception_x({ ["default"]: (
|
|
390
390
|
* IN THE SOFTWARE.
|
391
391
|
*/
|
392
392
|
|
393
|
-
/* harmony default export */ const use_empty = (function (props
|
394
|
-
var slots = _ref.slots;
|
393
|
+
/* harmony default export */ const use_empty = (function (props) {
|
395
394
|
return {
|
396
395
|
renderEmpty: function renderEmpty(type) {
|
397
|
-
var _slots$default, _slots$default2;
|
398
396
|
return (0,external_vue_namespaceObject.createVNode)(external_exception_namespaceObject["default"], {
|
399
397
|
"scene": "part",
|
400
398
|
"type": type
|
401
399
|
}, {
|
402
400
|
"default": function _default() {
|
403
|
-
return [
|
401
|
+
return [props.emptyText];
|
404
402
|
}
|
405
403
|
});
|
406
404
|
}
|
@@ -1213,6 +1211,9 @@ var use_node_action_this = undefined;
|
|
1213
1211
|
event.stopImmediatePropagation();
|
1214
1212
|
event.stopPropagation();
|
1215
1213
|
setNodeAttr(item, NODE_ATTRIBUTES.IS_CHECKED, !!value);
|
1214
|
+
if (value) {
|
1215
|
+
setNodeAttr(item, NODE_ATTRIBUTES.IS_INDETERMINATE, false);
|
1216
|
+
}
|
1216
1217
|
deepUpdateChildNode(item, [NODE_ATTRIBUTES.IS_CHECKED, NODE_ATTRIBUTES.IS_INDETERMINATE], [!!value, false]);
|
1217
1218
|
updateParentChecked(item, value);
|
1218
1219
|
ctx.emit(EVENTS.NODE_CHECKED, flatData.data.filter(function (t) {
|
@@ -2371,7 +2372,8 @@ var use_tree_init_this = undefined;
|
|
2371
2372
|
isNodeChecked = _useNodeAttribute.isNodeChecked,
|
2372
2373
|
isNodeMatched = _useNodeAttribute.isNodeMatched,
|
2373
2374
|
hasChildNode = _useNodeAttribute.hasChildNode,
|
2374
|
-
getNodePath = _useNodeAttribute.getNodePath
|
2375
|
+
getNodePath = _useNodeAttribute.getNodePath,
|
2376
|
+
getNodeId = _useNodeAttribute.getNodeId;
|
2375
2377
|
var _useSearch = use_search(props),
|
2376
2378
|
searchFn = _useSearch.searchFn,
|
2377
2379
|
isSearchActive = _useSearch.isSearchActive,
|
@@ -2452,6 +2454,49 @@ var use_tree_init_this = undefined;
|
|
2452
2454
|
var _root$value;
|
2453
2455
|
(_root$value = root.value) === null || _root$value === void 0 ? void 0 : _root$value.reset();
|
2454
2456
|
};
|
2457
|
+
/**
|
2458
|
+
* 将制定元素滚动到顶部
|
2459
|
+
* @param option
|
2460
|
+
*/
|
2461
|
+
var scrollToTop = function scrollToTop(option) {
|
2462
|
+
if (option === undefined || option === null) {
|
2463
|
+
root.value.fixToTop({
|
2464
|
+
index: 1
|
2465
|
+
});
|
2466
|
+
return;
|
2467
|
+
}
|
2468
|
+
if (props.nodeKey && Object.prototype.hasOwnProperty.call(option, props.nodeKey)) {
|
2469
|
+
root.value.fixToTop({
|
2470
|
+
index: renderData.value.findIndex(function (node) {
|
2471
|
+
return node[props.nodeKey] === option[props.nodeKey];
|
2472
|
+
}) + 1
|
2473
|
+
});
|
2474
|
+
return;
|
2475
|
+
}
|
2476
|
+
if (option.id !== undefined && option.id !== null) {
|
2477
|
+
root.value.fixToTop({
|
2478
|
+
index: renderData.value.findIndex(function (node) {
|
2479
|
+
return node[props.nodeKey] === option.id;
|
2480
|
+
}) + 1
|
2481
|
+
});
|
2482
|
+
return;
|
2483
|
+
}
|
2484
|
+
if (option.index >= 0) {
|
2485
|
+
root.value.fixToTop({
|
2486
|
+
index: option.index
|
2487
|
+
});
|
2488
|
+
return;
|
2489
|
+
}
|
2490
|
+
var id = getNodeId(option);
|
2491
|
+
if (id) {
|
2492
|
+
root.value.fixToTop({
|
2493
|
+
index: renderData.value.findIndex(function (node) {
|
2494
|
+
return getNodeId(node) === id;
|
2495
|
+
}) + 1
|
2496
|
+
});
|
2497
|
+
return;
|
2498
|
+
}
|
2499
|
+
};
|
2455
2500
|
ctx.expose({
|
2456
2501
|
handleTreeNodeClick: handleTreeNodeClick,
|
2457
2502
|
isNodeChecked: isNodeChecked,
|
@@ -2464,11 +2509,12 @@ var use_tree_init_this = undefined;
|
|
2464
2509
|
setNodeAction: setNodeAction,
|
2465
2510
|
setNodeOpened: setNodeOpened,
|
2466
2511
|
setSelect: setSelect,
|
2512
|
+
scrollToTop: scrollToTop,
|
2467
2513
|
asyncNodeClick: asyncNodeClick,
|
2468
2514
|
getData: getData,
|
2469
2515
|
reset: reset
|
2470
2516
|
});
|
2471
|
-
var _useEmpty = use_empty(props
|
2517
|
+
var _useEmpty = use_empty(props),
|
2472
2518
|
renderEmpty = _useEmpty.renderEmpty;
|
2473
2519
|
use_node_drag(props, ctx, root, flatData);
|
2474
2520
|
var renderTreeContent = function renderTreeContent(scopedData) {
|
package/lib/tree/tree.css
CHANGED
@@ -1,125 +1,3 @@
|
|
1
|
-
:root {
|
2
|
-
--bk-prefix: bk;
|
3
|
-
--popover-max-height: 216px;
|
4
|
-
--primary-color: #3a84ff;
|
5
|
-
--success-color: #2dcb56;
|
6
|
-
--warning-color: #ff9c01;
|
7
|
-
--danger-color: #ea3636;
|
8
|
-
--default-color: #63656e;
|
9
|
-
--gray-color: #979ba5;
|
10
|
-
--light-gray: #c4c6cc;
|
11
|
-
--white-color: white;
|
12
|
-
--whitesmoke-color: #fafbfd;
|
13
|
-
--disable-color: #dcdee5;
|
14
|
-
--font-size-base: 12px;
|
15
|
-
--font-size-medium: 14px;
|
16
|
-
--font-size-large: 16px;
|
17
|
-
--line-height-base: 16px;
|
18
|
-
--line-height-medium: 16px;
|
19
|
-
--line-height-large: 18px;
|
20
|
-
--component-size-small: 26px;
|
21
|
-
--component-size-base: 32px;
|
22
|
-
--component-size-large: 40px;
|
23
|
-
--border-width-base: 1px;
|
24
|
-
--border-style-base: solid;
|
25
|
-
--border-radius-base: 2px;
|
26
|
-
--border-style-color: var(--light-gray);
|
27
|
-
--input-disabled-bg: #fafbfd;
|
28
|
-
--input-disabled-border: var(--disable-color);
|
29
|
-
--input-height-base: var(--component-size-base);
|
30
|
-
--input-color: var(--default-color);
|
31
|
-
--input-bg: white;
|
32
|
-
--input-border-color: var(--light-gray);
|
33
|
-
--input-broder-radius: 3px;
|
34
|
-
--input-shadow-color: #a3c5fd;
|
35
|
-
--input-horizontal-padding: 10px;
|
36
|
-
--input-block-color: #f5f7fa;
|
37
|
-
--input-block-hover-color: #eaebf0;
|
38
|
-
--input-icon-size: var(--font-size-medium);
|
39
|
-
--input-maxlength-color: #979ba5;
|
40
|
-
--button-primary-hover-color: #5594fa;
|
41
|
-
--button-danger-hover-color: #ff5656;
|
42
|
-
--button-success-hover-color: #45e35f;
|
43
|
-
--button-warning-hover-color: #ffb848;
|
44
|
-
--button-default-hover-border-color: #979ba5;
|
45
|
-
--button-primary-active-color: #2c77f4;
|
46
|
-
--button-danger-active-color: #db2626;
|
47
|
-
--button-success-active-color: #1ab943;
|
48
|
-
--button-warning-active-color: #eb9000;
|
49
|
-
--button-selected-bg-color: #e1ecff;
|
50
|
-
--button-disabled-selected-bg-color: #f0f1f5;
|
51
|
-
--radio-font-color: #63656e;
|
52
|
-
--radio-active-color: #3a84ff;
|
53
|
-
--radio-hover-border-color: #979ba5;
|
54
|
-
--radio-disabled-border: #dcdee5;
|
55
|
-
--radio-disabled-font-color: #c4c6cc;
|
56
|
-
--radio-disabled-checked-bg: #a3c5fd;
|
57
|
-
--radio-button-checked-bg: #e1ecff;
|
58
|
-
--radio-button-disabled-checked-bg: #fafbfd;
|
59
|
-
--checkbox-disabled-checked-bg: #a3c5fd;
|
60
|
-
--fixed-navbar-background: #fff;
|
61
|
-
--fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
|
62
|
-
--switch-default-color: #fff;
|
63
|
-
--switch-grey-color: #c4c6cc;
|
64
|
-
--breadcrumb-black-color: #979ba5;
|
65
|
-
--breadcrumb-primary-hover-color: #0082ff;
|
66
|
-
--breadcrumb-fn-main-color: #63656e;
|
67
|
-
--link-default-hover-color: #979ba5;
|
68
|
-
--link-primary-hover-color: #699df4;
|
69
|
-
--link-success-hover-color: #45e35f;
|
70
|
-
--link-warning-hover-color: #ffb848;
|
71
|
-
--link-danger-hover-color: #ff5656;
|
72
|
-
--link-default-disabled-color: #dcdee5;
|
73
|
-
--link-primary-disabled-color: #a3c5fd;
|
74
|
-
--link-success-disabled-color: #94f5a4;
|
75
|
-
--link-warning-disabled-color: #ffd695;
|
76
|
-
--link-danger-disabled-color: #fd9c9c;
|
77
|
-
--message-color: var(--default-color);
|
78
|
-
--message-primary-bg-color: #f0f8ff;
|
79
|
-
--message-primary-border-color: #e1ecff;
|
80
|
-
--message-primary-shadow-color: #e1e8f4;
|
81
|
-
--message-warning-bg-color: #fff4e2;
|
82
|
-
--message-warning-border-color: #ffe8c3;
|
83
|
-
--message-warning-shadow-color: #ede6db;
|
84
|
-
--message-success-bg-color: #f2fff4;
|
85
|
-
--message-success-border-color: #dcffe2;
|
86
|
-
--message-success-shadow-color: #cef0d7;
|
87
|
-
--message-danger-bg-color: #ffeded;
|
88
|
-
--message-danger-border-color: #ffdddd;
|
89
|
-
--message-danger-shadow-color: #f6dada;
|
90
|
-
--slider-default-bg: #dcdee5;
|
91
|
-
--slider-disable-bar-bg: #979ba5;
|
92
|
-
--menu-bg-color: #182132;
|
93
|
-
--submenu-bg-color: #151d2c;
|
94
|
-
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
95
|
-
--menu-color: #96a2b9;
|
96
|
-
--menu-group-color: var(--default-color);
|
97
|
-
--menu-width: 260px;
|
98
|
-
--menu-collapse-width: 60px;
|
99
|
-
--menu-active-color: white;
|
100
|
-
--nav-header-bg-color: #182132;
|
101
|
-
--nav-bg-color: #182132;
|
102
|
-
--date-picker-disabled-bg: #fafbfd;
|
103
|
-
--date-picker-dropdown-mb: 4px;
|
104
|
-
--date-picker-dropdown-bg: #fff;
|
105
|
-
--table-bg-color: var(--white-color);
|
106
|
-
--table-border-color: #dcdee5;
|
107
|
-
--table-head-bg-color: #fafbfd;
|
108
|
-
--table-head-font-color: #313238;
|
109
|
-
--table-body-font-color: #63656E;
|
110
|
-
--table-row-hover-bg-color: #f5f7fa;
|
111
|
-
--table-row-active-bg-color: #f0f1f5;
|
112
|
-
--cascader-panel-border-color: #dcdee5;
|
113
|
-
--cascader-panel-hover: #f5f7fa;
|
114
|
-
--cascader-panel-active: #e1ecff;
|
115
|
-
--cascader-panel-disabled-bg: #fff;
|
116
|
-
--search-select-focus-border-color: var(--primary-color);
|
117
|
-
--search-select-focus-color: #3c96ff;
|
118
|
-
--search-select-font-color: var(--default-color);
|
119
|
-
--search-select-placeholder-color: var(--light-gray);
|
120
|
-
--search-select-message-color: var(--danger-color);
|
121
|
-
--search-select-menu-border-color: var(--disable-color);
|
122
|
-
}
|
123
1
|
.bk-F-scroll-x {
|
124
2
|
overflow-x: auto;
|
125
3
|
scrollbar-color: #a0a0a0 transparent;
|
@@ -168,11 +46,11 @@
|
|
168
46
|
user-select: none;
|
169
47
|
}
|
170
48
|
.bk-checkbox ~ .bk-checkbox {
|
171
|
-
margin-left:
|
49
|
+
margin-left: 24px;
|
172
50
|
}
|
173
51
|
.bk-checkbox.is-checked .bk-checkbox-input {
|
174
|
-
background:
|
175
|
-
border-color:
|
52
|
+
background: #3a84ff;
|
53
|
+
border-color: #3a84ff;
|
176
54
|
transition: all 0.1s;
|
177
55
|
}
|
178
56
|
.bk-checkbox.is-checked .bk-checkbox-input.small::after {
|
@@ -193,8 +71,8 @@
|
|
193
71
|
transform-origin: center;
|
194
72
|
}
|
195
73
|
.bk-checkbox.is-indeterminated .bk-checkbox-input {
|
196
|
-
background:
|
197
|
-
border-color:
|
74
|
+
background: #3a84ff;
|
75
|
+
border-color: #3a84ff;
|
198
76
|
transition: all 0.1s;
|
199
77
|
}
|
200
78
|
.bk-checkbox.is-indeterminated .bk-checkbox-input.small::after {
|
@@ -219,17 +97,23 @@
|
|
219
97
|
}
|
220
98
|
.bk-checkbox.is-disabled .bk-checkbox-input {
|
221
99
|
background: #fafbfd;
|
222
|
-
border-color:
|
100
|
+
border-color: #dcdee5;
|
223
101
|
}
|
224
102
|
.bk-checkbox.is-disabled .bk-checkbox-input::after {
|
225
|
-
background:
|
103
|
+
background: #dcdee5;
|
226
104
|
}
|
227
105
|
.bk-checkbox.is-disabled.is-checked .bk-checkbox-input {
|
228
|
-
background:
|
229
|
-
border-color:
|
106
|
+
background: #a3c5fd;
|
107
|
+
border-color: #a3c5fd;
|
230
108
|
}
|
231
109
|
.bk-checkbox.is-disabled.is-checked .bk-checkbox-input::after {
|
232
|
-
background:
|
110
|
+
background: #a3c5fd;
|
111
|
+
}
|
112
|
+
.bk-checkbox.is-prechecking {
|
113
|
+
position: relative;
|
114
|
+
}
|
115
|
+
.bk-checkbox.is-prechecking .bk-checkbox-input {
|
116
|
+
visibility: hidden;
|
233
117
|
}
|
234
118
|
.bk-checkbox-input {
|
235
119
|
position: relative;
|
@@ -257,6 +141,12 @@
|
|
257
141
|
margin-left: 6px;
|
258
142
|
vertical-align: middle;
|
259
143
|
}
|
144
|
+
.bk-checkbox-checking {
|
145
|
+
position: absolute;
|
146
|
+
font-size: 16px;
|
147
|
+
color: #3a84ff;
|
148
|
+
animation: loading 1s linear infinite;
|
149
|
+
}
|
260
150
|
.bk-tree {
|
261
151
|
font-size: 14px;
|
262
152
|
}
|
package/lib/tree/tree.d.ts
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
import { TreePropTypes as defineTypes } from './props';
|
2
2
|
export type TreePropTypes = defineTypes;
|
3
|
+
export type ITreeScrollTopOption = {
|
4
|
+
id?: string;
|
5
|
+
index?: number;
|
6
|
+
};
|
3
7
|
declare const _default: import("vue").DefineComponent<{
|
4
8
|
data: import("vue-types").VueTypeDef<any[]> & {
|
5
9
|
default: () => any[];
|
@@ -269,9 +273,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
269
273
|
};
|
270
274
|
prefixIcon: any;
|
271
275
|
checked: any[];
|
276
|
+
emptyText: string;
|
272
277
|
children: string;
|
273
278
|
offsetLeft: number;
|
274
|
-
emptyText: string;
|
275
279
|
nodeKey: string;
|
276
280
|
indent: number;
|
277
281
|
levelLine: any;
|