bkui-vue 1.0.3-beta.3 → 1.0.3-beta.30
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 +71 -71
- package/dist/index.esm.js +16194 -15009
- package/dist/index.umd.js +70 -70
- 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.variable.css +3 -0
- package/lib/alert/alert.variable.css +3 -0
- package/lib/backtop/backtop.variable.css +3 -0
- package/lib/badge/badge.variable.css +3 -0
- package/lib/breadcrumb/breadcrumb.variable.css +3 -0
- package/lib/button/button.variable.css +3 -0
- package/lib/card/card.variable.css +3 -0
- package/lib/cascader/cascader.variable.css +3 -0
- package/lib/checkbox/checkbox.variable.css +3 -0
- package/lib/code-diff/code-diff.variable.css +3 -0
- package/lib/collapse/collapse.variable.css +3 -0
- package/lib/collapse-transition/collapse-transition.variable.css +3 -0
- package/lib/color-picker/color-picker.variable.css +3 -0
- package/lib/components.js +0 -4
- package/lib/config-provider/config-provider.d.ts +3 -0
- package/lib/config-provider/config-provider.variable.css +3 -0
- package/lib/config-provider/index.d.ts +4 -0
- package/lib/config-provider/token.d.ts +1 -0
- package/lib/container/container.variable.css +3 -0
- package/lib/date-picker/date-picker.d.ts +1 -0
- package/lib/date-picker/date-picker.variable.css +3 -0
- package/lib/date-picker/index.d.ts +3 -0
- package/lib/date-picker/index.js +9 -3
- package/lib/date-picker/time-picker.d.ts +1 -0
- package/lib/dialog/dialog.d.ts +11 -0
- package/lib/dialog/dialog.variable.css +3 -0
- package/lib/dialog/index.d.ts +23 -0
- package/lib/dialog/index.js +3 -1
- package/lib/dialog/props.d.ts +5 -0
- package/lib/dist.index.js +0 -1
- package/lib/divider/divider.variable.css +3 -0
- package/lib/dropdown/dropdown.css +3 -1
- package/lib/dropdown/dropdown.variable.css +6 -1
- package/lib/exception/exception.variable.css +3 -0
- package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
- package/lib/form/form.css +1 -0
- package/lib/form/form.less +2 -1
- package/lib/form/form.variable.css +4 -0
- package/lib/hooks.js +1 -8
- package/lib/icon/index.d.ts +1 -0
- package/lib/icon/index.js +34 -1
- package/lib/icon/text-all.d.ts +4 -0
- package/lib/icon/text-all.js +276 -0
- package/lib/image/image-viewer.variable.css +3 -0
- package/lib/image/image.variable.css +3 -0
- package/lib/image/index.js +5 -2
- package/lib/index.js +0 -1
- package/lib/info-box/index.js +40 -455
- package/lib/info-box/info-box.variable.css +3 -0
- package/lib/input/index.js +5 -0
- package/lib/input/input.variable.css +3 -0
- package/lib/link/link.variable.css +3 -0
- package/lib/loading/loading.variable.css +3 -0
- package/lib/locale/index.js +4 -2
- package/lib/locale/lang/en.d.ts +1 -0
- package/lib/menu/menu.variable.css +3 -0
- package/lib/menu/submenu.variable.css +3 -0
- package/lib/message/message.variable.css +3 -0
- package/lib/modal/index.d.ts +34 -6
- package/lib/modal/index.js +8 -6
- package/lib/modal/modal.d.ts +13 -2
- package/lib/modal/modal.variable.css +3 -0
- package/lib/modal/props.mixin.d.ts +5 -0
- package/lib/navigation/navigation.variable.css +3 -0
- package/lib/notify/notify.variable.css +3 -0
- package/lib/pagination/index.js +2 -2
- package/lib/pagination/pagination.variable.css +3 -0
- package/lib/plugin-popover/index.d.ts +1 -1
- package/lib/plugin-popover/index.js +55 -31
- package/lib/pop-confirm/pop-confirm.variable.css +3 -0
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.js +55 -31
- package/lib/popover/plugin-popover.d.ts +4 -1
- package/lib/popover/popover.css +3 -1
- package/lib/popover/popover.less +4 -1
- package/lib/popover/popover.variable.css +6 -1
- package/lib/preset.d.ts +2 -0
- package/lib/preset.js +14 -20
- package/lib/process/process.variable.css +3 -0
- package/lib/progress/progress.variable.css +3 -0
- package/lib/radio/radio.variable.css +3 -0
- package/lib/rate/rate.variable.css +3 -0
- package/lib/rate/star.variable.css +3 -0
- package/lib/resize-layout/resize-layout.variable.css +3 -0
- package/lib/search-select/search-select.variable.css +3 -0
- package/lib/select/index.d.ts +68 -6
- package/lib/select/index.js +1326 -68
- package/lib/select/option.d.ts +3 -1
- package/lib/select/pinyin/core.d.ts +14 -0
- package/lib/select/pinyin/dict.d.ts +34 -0
- package/lib/select/pinyin/index.d.ts +2 -0
- package/lib/select/select.css +36 -7
- package/lib/select/select.d.ts +28 -2
- package/lib/select/select.less +43 -13
- package/lib/select/select.variable.css +39 -7
- package/lib/select/type.d.ts +2 -3
- package/lib/shared/index.js +44 -3
- package/lib/shared/utils.d.ts +12 -0
- package/lib/sideslider/index.d.ts +29 -6
- package/lib/sideslider/index.js +5 -2
- package/lib/sideslider/sideslider.d.ts +13 -2
- package/lib/sideslider/sideslider.variable.css +3 -0
- package/lib/slider/slider.variable.css +3 -0
- package/lib/steps/steps.variable.css +3 -0
- package/lib/styles/mixins/animate.variable.css +3 -0
- package/lib/styles/mixins/popper.variable.css +3 -0
- package/lib/styles/mixins/scroll.variable.css +3 -0
- package/lib/styles/reset.css +3 -1
- package/lib/styles/reset.less +3 -1
- package/lib/styles/reset.variable.css +6 -1
- package/lib/styles/themes/themes.less +5 -0
- package/lib/swiper/swiper.variable.css +3 -0
- package/lib/switcher/switcher.variable.css +3 -0
- package/lib/tab/tab.variable.css +3 -0
- package/lib/table/cache.d.ts +11 -3
- package/lib/table/components/table-column.d.ts +7 -4
- package/lib/table/index.d.ts +22 -4
- package/lib/table/index.js +1382 -1118
- package/lib/table/plugins/head-filter.variable.css +3 -0
- package/lib/table/plugins/head-sort.d.ts +7 -0
- package/lib/table/plugins/head-sort.variable.css +3 -0
- package/lib/table/plugins/settings.variable.css +3 -0
- package/lib/table/plugins/use-draggable.d.ts +2 -2
- package/lib/table/plugins/use-observer-resize.d.ts +5 -0
- package/lib/table/props.d.ts +15 -4
- package/lib/table/table.css +6 -12
- package/lib/table/table.d.ts +7 -0
- package/lib/table/table.less +12 -9
- package/lib/table/table.variable.css +9 -12
- package/lib/table/use-attributes.d.ts +5 -43
- package/lib/table/utils.d.ts +5 -4
- package/lib/table-column/index.d.ts +125 -116
- package/lib/table-column/index.js +97 -26
- package/lib/tag/tag.variable.css +3 -0
- package/lib/tag-input/index.d.ts +4 -4
- package/lib/tag-input/tag-input.d.ts +2 -2
- package/lib/tag-input/tag-input.variable.css +3 -0
- package/lib/tag-input/tag-props.d.ts +1 -1
- package/lib/tag-input/tag-render.d.ts +1 -1
- package/lib/time-picker/index.d.ts +38 -35
- package/lib/time-picker/time-picker.variable.css +3 -0
- package/lib/timeline/timeline.variable.css +3 -0
- package/lib/transfer/transfer.variable.css +3 -0
- package/lib/tree/tree.variable.css +3 -0
- package/lib/upload/upload.variable.css +3 -0
- package/lib/virtual-render/index.d.ts +9 -9
- package/lib/virtual-render/virtual-render.d.ts +3 -3
- package/lib/virtual-render/virtual-render.variable.css +3 -0
- package/package.json +3 -2
@@ -83,7 +83,7 @@ function _defineProperty(obj, key, value) {
|
|
83
83
|
;// CONCATENATED MODULE: external "vue"
|
84
84
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
85
85
|
var external_vue_y = x => () => x
|
86
|
-
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["unref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.unref });
|
86
|
+
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["unref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.unref });
|
87
87
|
;// CONCATENATED MODULE: ../../packages/table/src/const.ts
|
88
88
|
|
89
89
|
/*
|
@@ -263,7 +263,7 @@ var ColumnTypeEnum;
|
|
263
263
|
ColumnTypeEnum["SELECTION"] = "selection";
|
264
264
|
ColumnTypeEnum["INDEX"] = "index";
|
265
265
|
ColumnTypeEnum["EXPAND"] = "expand";
|
266
|
-
ColumnTypeEnum["NONE"] = "
|
266
|
+
ColumnTypeEnum["NONE"] = "__COL_TYPE_NONE";
|
267
267
|
})(ColumnTypeEnum || (ColumnTypeEnum = {}));
|
268
268
|
var TableAlignEnum;
|
269
269
|
(function (TableAlignEnum) {
|
@@ -415,6 +415,13 @@ var tableProps = {
|
|
415
415
|
* 是否显示Head
|
416
416
|
*/
|
417
417
|
showHead: shared_namespaceObject.PropTypes.bool.def(true),
|
418
|
+
/**
|
419
|
+
* 排序时对需要排序的字符串数值进行格式化
|
420
|
+
* 这里需要配置为正则或者回调函数,(str) => string | number | boolean
|
421
|
+
* 如果配置为正则,程序会提取匹配到的第一个结果尝试转换为数值
|
422
|
+
* 如果为多个,程序会顺序执行所有正则表达式,直到转换成功
|
423
|
+
*/
|
424
|
+
sortValFormat: shared_namespaceObject.PropTypes.arrayOf(shared_namespaceObject.PropTypes.any).def(['']),
|
418
425
|
/**
|
419
426
|
* table header config
|
420
427
|
*/
|
@@ -594,6 +601,7 @@ var tableProps = {
|
|
594
601
|
;// CONCATENATED MODULE: ../../packages/table/src/components/table-column.tsx
|
595
602
|
|
596
603
|
|
604
|
+
|
597
605
|
/*
|
598
606
|
* Tencent is pleased to support the open source community by making
|
599
607
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -658,18 +666,38 @@ var TableColumnProp = {
|
|
658
666
|
var column = (0,external_vue_namespaceObject.reactive)(Object.assign({}, props, {
|
659
667
|
field: props.prop || props.field
|
660
668
|
}));
|
669
|
+
var isIndexPropChanged = (0,external_vue_namespaceObject.ref)(false);
|
670
|
+
var setIsIndexChanged = function setIsIndexChanged(val) {
|
671
|
+
isIndexPropChanged.value = val;
|
672
|
+
};
|
661
673
|
return {
|
674
|
+
isIndexPropChanged: isIndexPropChanged,
|
675
|
+
setIsIndexChanged: setIsIndexChanged,
|
662
676
|
initColumns: initColumns,
|
663
677
|
bkTableCache: bkTableCache,
|
664
678
|
column: column
|
665
679
|
};
|
666
680
|
},
|
681
|
+
watch: {
|
682
|
+
index: {
|
683
|
+
handler: function handler() {
|
684
|
+
this.setIsIndexChanged(!this.isIndexPropChanged);
|
685
|
+
},
|
686
|
+
deep: true
|
687
|
+
}
|
688
|
+
},
|
667
689
|
unmounted: function unmounted() {
|
668
690
|
this.updateColumnDefine(true);
|
669
691
|
},
|
670
692
|
mounted: function mounted() {
|
671
693
|
this.updateColumnDefine();
|
672
694
|
},
|
695
|
+
updated: function updated() {
|
696
|
+
if (this.isIndexPropChanged) {
|
697
|
+
this.updateColumnDefineByParent();
|
698
|
+
this.setIsIndexChanged(!this.isIndexPropChanged);
|
699
|
+
}
|
700
|
+
},
|
673
701
|
methods: {
|
674
702
|
updateColumnDefine: function updateColumnDefine() {
|
675
703
|
var unmounted = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
@@ -687,43 +715,86 @@ var TableColumnProp = {
|
|
687
715
|
return Object.assign(result, _defineProperty({}, target, props[key]));
|
688
716
|
}, {});
|
689
717
|
},
|
718
|
+
rsolveIndexedColumn: function rsolveIndexedColumn() {
|
719
|
+
// 如果是设置了Index,则先添加Index列,不做自动递归读取Column
|
720
|
+
if (/\d+\.?\d*/.test("".concat(this.$props.index))) {
|
721
|
+
var resolveProp = Object.assign({}, this.copyProps(this.$props), {
|
722
|
+
field: this.$props.prop || this.$props.field,
|
723
|
+
render: this.$slots["default"]
|
724
|
+
});
|
725
|
+
this.initColumns(resolveProp);
|
726
|
+
return false;
|
727
|
+
}
|
728
|
+
return true;
|
729
|
+
},
|
690
730
|
updateColumnDefineByParent: function updateColumnDefineByParent() {
|
691
731
|
var _this = this;
|
732
|
+
if (!this.rsolveIndexedColumn()) {
|
733
|
+
return;
|
734
|
+
}
|
692
735
|
var fn = function fn() {
|
693
736
|
// @ts-ignore
|
694
737
|
var selfVnode = _this._;
|
695
|
-
var
|
738
|
+
var getTableNode = function getTableNode(root) {
|
739
|
+
var _parentVnode$type;
|
740
|
+
if (root === document.body || !root) {
|
741
|
+
return null;
|
742
|
+
}
|
743
|
+
var parentVnode = root.parent;
|
744
|
+
if (((_parentVnode$type = parentVnode.type) === null || _parentVnode$type === void 0 ? void 0 : _parentVnode$type.name) === 'Table') {
|
745
|
+
return parentVnode.vnode;
|
746
|
+
}
|
747
|
+
return getTableNode(parentVnode);
|
748
|
+
};
|
749
|
+
var tableNode = getTableNode(selfVnode);
|
750
|
+
if (!tableNode) {
|
751
|
+
return;
|
752
|
+
}
|
696
753
|
var sortColumns = [];
|
697
754
|
var index = 0;
|
755
|
+
var resolveChildNode = function resolveChildNode(node) {
|
756
|
+
var _node$type;
|
757
|
+
if (!node) {
|
758
|
+
return null;
|
759
|
+
}
|
760
|
+
if (((_node$type = node.type) === null || _node$type === void 0 ? void 0 : _node$type.name) === 'TableColumn') {
|
761
|
+
var _node$children;
|
762
|
+
var resolveProp = Object.assign({
|
763
|
+
index: index
|
764
|
+
}, _this.copyProps(node.props), {
|
765
|
+
field: node.props.prop || node.props.field,
|
766
|
+
render: (_node$children = node.children) === null || _node$children === void 0 ? void 0 : _node$children["default"]
|
767
|
+
});
|
768
|
+
sortColumns.push((0,external_vue_namespaceObject.unref)(resolveProp));
|
769
|
+
index = index + 1;
|
770
|
+
return null;
|
771
|
+
}
|
772
|
+
if (Array.isArray(node.children)) {
|
773
|
+
return node.children;
|
774
|
+
}
|
775
|
+
if ((0,external_vue_namespaceObject.isVNode)(node) && _typeof(node.children) === 'object') {
|
776
|
+
return Object.keys(node.children).map(function (key) {
|
777
|
+
return node.children[key];
|
778
|
+
});
|
779
|
+
}
|
780
|
+
if (typeof node === 'function') {
|
781
|
+
return node();
|
782
|
+
}
|
783
|
+
return null;
|
784
|
+
};
|
698
785
|
var reduceColumns = function reduceColumns(nodes) {
|
699
786
|
if (!Array.isArray(nodes)) {
|
787
|
+
var children = resolveChildNode(nodes);
|
788
|
+
if (children) {
|
789
|
+
reduceColumns(children);
|
790
|
+
}
|
700
791
|
return;
|
701
792
|
}
|
702
|
-
nodes.forEach(function (node) {
|
703
|
-
|
704
|
-
if (Array.isArray(node)) {
|
705
|
-
reduceColumns(node);
|
706
|
-
return;
|
707
|
-
}
|
708
|
-
var skipValidateKey0 = true;
|
709
|
-
if (((_node$type = node.type) === null || _node$type === void 0 ? void 0 : _node$type.name) === 'TableColumn') {
|
710
|
-
var _node$children;
|
711
|
-
skipValidateKey0 = Object.hasOwnProperty.call(node.props || {}, 'key');
|
712
|
-
var resolveProp = Object.assign({
|
713
|
-
index: index
|
714
|
-
}, _this.copyProps(node.props), {
|
715
|
-
field: node.props.prop || node.props.field,
|
716
|
-
render: (_node$children = node.children) === null || _node$children === void 0 ? void 0 : _node$children["default"]
|
717
|
-
});
|
718
|
-
sortColumns.push((0,external_vue_namespaceObject.unref)(resolveProp));
|
719
|
-
index = index + 1;
|
720
|
-
}
|
721
|
-
if ((_node$children2 = node.children) !== null && _node$children2 !== void 0 && _node$children2.length && skipValidateKey0) {
|
722
|
-
reduceColumns(node.children);
|
723
|
-
}
|
793
|
+
nodes === null || nodes === void 0 || nodes.forEach(function (node) {
|
794
|
+
return reduceColumns(node);
|
724
795
|
});
|
725
796
|
};
|
726
|
-
reduceColumns(
|
797
|
+
reduceColumns(tableNode);
|
727
798
|
_this.initColumns(sortColumns);
|
728
799
|
};
|
729
800
|
if (typeof this.bkTableCache.queueStack === 'function') {
|
package/lib/tag/tag.variable.css
CHANGED
@@ -12,6 +12,7 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
.bk-tag {
|
128
131
|
display: inline-flex;
|
package/lib/tag-input/index.d.ts
CHANGED
@@ -274,7 +274,7 @@ declare const TagInput: {
|
|
274
274
|
default: boolean;
|
275
275
|
};
|
276
276
|
tagOverflowTips: {
|
277
|
-
type: import("vue").PropType<Partial<import("../directives/
|
277
|
+
type: import("vue").PropType<Partial<import("../directives/tooltips").IOptions>>;
|
278
278
|
default: () => {};
|
279
279
|
};
|
280
280
|
}>> & {
|
@@ -617,7 +617,7 @@ declare const TagInput: {
|
|
617
617
|
default: boolean;
|
618
618
|
};
|
619
619
|
tagOverflowTips: {
|
620
|
-
type: import("vue").PropType<Partial<import("../directives/
|
620
|
+
type: import("vue").PropType<Partial<import("../directives/tooltips").IOptions>>;
|
621
621
|
default: () => {};
|
622
622
|
};
|
623
623
|
}>> & {
|
@@ -941,7 +941,7 @@ declare const TagInput: {
|
|
941
941
|
default: boolean;
|
942
942
|
};
|
943
943
|
tagOverflowTips: {
|
944
|
-
type: import("vue").PropType<Partial<import("../directives/
|
944
|
+
type: import("vue").PropType<Partial<import("../directives/tooltips").IOptions>>;
|
945
945
|
default: () => {};
|
946
946
|
};
|
947
947
|
}>> & {
|
@@ -1318,7 +1318,7 @@ declare const TagInput: {
|
|
1318
1318
|
default: boolean;
|
1319
1319
|
};
|
1320
1320
|
tagOverflowTips: {
|
1321
|
-
type: import("vue").PropType<Partial<import("../directives/
|
1321
|
+
type: import("vue").PropType<Partial<import("../directives/tooltips").IOptions>>;
|
1322
1322
|
default: () => {};
|
1323
1323
|
};
|
1324
1324
|
}>> & {
|
@@ -274,7 +274,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
274
274
|
default: boolean;
|
275
275
|
};
|
276
276
|
tagOverflowTips: {
|
277
|
-
type: import("vue").PropType<Partial<import("../directives/
|
277
|
+
type: import("vue").PropType<Partial<import("../directives/tooltips").IOptions>>; /**
|
278
278
|
* 不显示条件:
|
279
279
|
* 1. 设置不可清除
|
280
280
|
* 2. 禁用时
|
@@ -614,7 +614,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
614
614
|
default: boolean;
|
615
615
|
};
|
616
616
|
tagOverflowTips: {
|
617
|
-
type: import("vue").PropType<Partial<import("../directives/
|
617
|
+
type: import("vue").PropType<Partial<import("../directives/tooltips").IOptions>>; /**
|
618
618
|
* 不显示条件:
|
619
619
|
* 1. 设置不可清除
|
620
620
|
* 2. 禁用时
|
@@ -12,6 +12,7 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
.bk-tag-input {
|
128
131
|
position: relative;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ExtractPropTypes, PropType, VNode } from 'vue';
|
2
|
-
import { IOptions } from '../directives/
|
2
|
+
import { IOptions } from '../directives/tooltips';
|
3
3
|
declare const tagProps: () => {
|
4
4
|
modelValue: import("vue-types").VueTypeDef<string[]> & {
|
5
5
|
default: () => string[];
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { PropType } from 'vue';
|
2
|
-
import { IOptions } from '../directives/
|
2
|
+
import { IOptions } from '../directives/tooltips';
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
4
4
|
node: import("vue-types").VueTypeValidableDef<{
|
5
5
|
[key: string]: any;
|
@@ -25,7 +25,7 @@ declare const BkTimePicker: {
|
|
25
25
|
readonly default: true;
|
26
26
|
};
|
27
27
|
type: {
|
28
|
-
type: import("vue").PropType<import("
|
28
|
+
type: import("vue").PropType<import("../date-picker/interface").PickerTypeType>;
|
29
29
|
default: string;
|
30
30
|
validator(value: any): boolean;
|
31
31
|
};
|
@@ -89,7 +89,7 @@ declare const BkTimePicker: {
|
|
89
89
|
readonly default: false;
|
90
90
|
};
|
91
91
|
shortcuts: {
|
92
|
-
readonly type: import("vue").PropType<import("
|
92
|
+
readonly type: import("vue").PropType<import("../date-picker/interface").DatePickerShortcutsType>;
|
93
93
|
readonly default: () => any[];
|
94
94
|
};
|
95
95
|
shortcutClose: {
|
@@ -97,10 +97,10 @@ declare const BkTimePicker: {
|
|
97
97
|
readonly default: false;
|
98
98
|
};
|
99
99
|
modelValue: {
|
100
|
-
readonly type: import("vue").PropType<import("
|
100
|
+
readonly type: import("vue").PropType<import("../date-picker/interface").DatePickerValueType>;
|
101
101
|
};
|
102
102
|
value: {
|
103
|
-
readonly type: import("vue").PropType<import("
|
103
|
+
readonly type: import("vue").PropType<import("../date-picker/interface").DatePickerValueType>;
|
104
104
|
};
|
105
105
|
options: {
|
106
106
|
readonly type: ObjectConstructor;
|
@@ -135,7 +135,7 @@ declare const BkTimePicker: {
|
|
135
135
|
readonly default: "normal";
|
136
136
|
readonly validator: (v: any) => boolean;
|
137
137
|
};
|
138
|
-
disabledDate: import("vue").PropType<import("
|
138
|
+
disabledDate: import("vue").PropType<import("../date-picker/interface").DisabledDateType>;
|
139
139
|
withValidate: {
|
140
140
|
readonly type: BooleanConstructor;
|
141
141
|
readonly default: true;
|
@@ -149,7 +149,7 @@ declare const BkTimePicker: {
|
|
149
149
|
"onOpen-change"?: (...args: any[]) => any;
|
150
150
|
"onShortcut-change"?: (...args: any[]) => any;
|
151
151
|
}, {
|
152
|
-
panel: import("vue").ComputedRef<import("
|
152
|
+
panel: import("vue").ComputedRef<import("../date-picker/interface").DatePickerPanelType>;
|
153
153
|
publicStringValue: import("vue").ComputedRef<any>;
|
154
154
|
opened: import("vue").ComputedRef<boolean>;
|
155
155
|
visualValue: import("vue").ComputedRef<any>;
|
@@ -172,6 +172,7 @@ declare const BkTimePicker: {
|
|
172
172
|
inputRef: import("vue").Ref<any>;
|
173
173
|
triggerRef: import("vue").Ref<HTMLElement>;
|
174
174
|
pickerPanelRef: import("vue").Ref<any>;
|
175
|
+
teleportTo: import("vue").Ref<any>;
|
175
176
|
handleClose: (e?: Event) => boolean;
|
176
177
|
handleIconClick: () => void;
|
177
178
|
handleInputMouseenter: () => void;
|
@@ -191,7 +192,7 @@ declare const BkTimePicker: {
|
|
191
192
|
internalValue: import("vue").Ref<any>;
|
192
193
|
disableClickOutSide: import("vue").Ref<boolean>;
|
193
194
|
disableCloseUnderTransfer: import("vue").Ref<boolean>;
|
194
|
-
selectionMode: import("vue").Ref<import("
|
195
|
+
selectionMode: import("vue").Ref<import("../date-picker/interface").SelectionModeType>;
|
195
196
|
forceInputRerender: import("vue").Ref<number>;
|
196
197
|
isFocused: import("vue").Ref<boolean>;
|
197
198
|
focusedDate: import("vue").Ref<any>;
|
@@ -204,7 +205,7 @@ declare const BkTimePicker: {
|
|
204
205
|
internalFocus: import("vue").Ref<boolean>;
|
205
206
|
timeEnterMode: import("vue").Ref<boolean>;
|
206
207
|
shortcut: import("vue").Ref<any>;
|
207
|
-
onSelectionModeChange: import("vue").Ref<(_type: any) => import("
|
208
|
+
onSelectionModeChange: import("vue").Ref<(_type: any) => import("../date-picker/interface").SelectionModeType>;
|
208
209
|
tmpValue: import("vue").Ref<any>;
|
209
210
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "input" | "clear" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
210
211
|
disabledHours: {
|
@@ -232,7 +233,7 @@ declare const BkTimePicker: {
|
|
232
233
|
readonly default: true;
|
233
234
|
};
|
234
235
|
type: {
|
235
|
-
type: import("vue").PropType<import("
|
236
|
+
type: import("vue").PropType<import("../date-picker/interface").PickerTypeType>;
|
236
237
|
default: string;
|
237
238
|
validator(value: any): boolean;
|
238
239
|
};
|
@@ -296,7 +297,7 @@ declare const BkTimePicker: {
|
|
296
297
|
readonly default: false;
|
297
298
|
};
|
298
299
|
shortcuts: {
|
299
|
-
readonly type: import("vue").PropType<import("
|
300
|
+
readonly type: import("vue").PropType<import("../date-picker/interface").DatePickerShortcutsType>;
|
300
301
|
readonly default: () => any[];
|
301
302
|
};
|
302
303
|
shortcutClose: {
|
@@ -304,10 +305,10 @@ declare const BkTimePicker: {
|
|
304
305
|
readonly default: false;
|
305
306
|
};
|
306
307
|
modelValue: {
|
307
|
-
readonly type: import("vue").PropType<import("
|
308
|
+
readonly type: import("vue").PropType<import("../date-picker/interface").DatePickerValueType>;
|
308
309
|
};
|
309
310
|
value: {
|
310
|
-
readonly type: import("vue").PropType<import("
|
311
|
+
readonly type: import("vue").PropType<import("../date-picker/interface").DatePickerValueType>;
|
311
312
|
};
|
312
313
|
options: {
|
313
314
|
readonly type: ObjectConstructor;
|
@@ -342,7 +343,7 @@ declare const BkTimePicker: {
|
|
342
343
|
readonly default: "normal";
|
343
344
|
readonly validator: (v: any) => boolean;
|
344
345
|
};
|
345
|
-
disabledDate: import("vue").PropType<import("
|
346
|
+
disabledDate: import("vue").PropType<import("../date-picker/interface").DisabledDateType>;
|
346
347
|
withValidate: {
|
347
348
|
readonly type: BooleanConstructor;
|
348
349
|
readonly default: true;
|
@@ -356,7 +357,7 @@ declare const BkTimePicker: {
|
|
356
357
|
"onOpen-change"?: (...args: any[]) => any;
|
357
358
|
"onShortcut-change"?: (...args: any[]) => any;
|
358
359
|
}, {
|
359
|
-
type: import("
|
360
|
+
type: import("../date-picker/interface").PickerTypeType;
|
360
361
|
width: number;
|
361
362
|
disabled: boolean;
|
362
363
|
placement: import("@popperjs/core").ComputedPlacement;
|
@@ -375,7 +376,7 @@ declare const BkTimePicker: {
|
|
375
376
|
timePickerOptions: {};
|
376
377
|
splitPanels: boolean;
|
377
378
|
appendToBody: boolean;
|
378
|
-
shortcuts: import("
|
379
|
+
shortcuts: import("../date-picker/interface").DatePickerShortcutsType;
|
379
380
|
shortcutClose: boolean;
|
380
381
|
upToNow: boolean;
|
381
382
|
useShortcutText: boolean;
|
@@ -429,7 +430,7 @@ declare const BkTimePicker: {
|
|
429
430
|
readonly default: true;
|
430
431
|
};
|
431
432
|
type: {
|
432
|
-
type: import("vue").PropType<import("
|
433
|
+
type: import("vue").PropType<import("../date-picker/interface").PickerTypeType>;
|
433
434
|
default: string;
|
434
435
|
validator(value: any): boolean;
|
435
436
|
};
|
@@ -493,7 +494,7 @@ declare const BkTimePicker: {
|
|
493
494
|
readonly default: false;
|
494
495
|
};
|
495
496
|
shortcuts: {
|
496
|
-
readonly type: import("vue").PropType<import("
|
497
|
+
readonly type: import("vue").PropType<import("../date-picker/interface").DatePickerShortcutsType>;
|
497
498
|
readonly default: () => any[];
|
498
499
|
};
|
499
500
|
shortcutClose: {
|
@@ -501,10 +502,10 @@ declare const BkTimePicker: {
|
|
501
502
|
readonly default: false;
|
502
503
|
};
|
503
504
|
modelValue: {
|
504
|
-
readonly type: import("vue").PropType<import("
|
505
|
+
readonly type: import("vue").PropType<import("../date-picker/interface").DatePickerValueType>;
|
505
506
|
};
|
506
507
|
value: {
|
507
|
-
readonly type: import("vue").PropType<import("
|
508
|
+
readonly type: import("vue").PropType<import("../date-picker/interface").DatePickerValueType>;
|
508
509
|
};
|
509
510
|
options: {
|
510
511
|
readonly type: ObjectConstructor;
|
@@ -539,7 +540,7 @@ declare const BkTimePicker: {
|
|
539
540
|
readonly default: "normal";
|
540
541
|
readonly validator: (v: any) => boolean;
|
541
542
|
};
|
542
|
-
disabledDate: import("vue").PropType<import("
|
543
|
+
disabledDate: import("vue").PropType<import("../date-picker/interface").DisabledDateType>;
|
543
544
|
withValidate: {
|
544
545
|
readonly type: BooleanConstructor;
|
545
546
|
readonly default: true;
|
@@ -553,7 +554,7 @@ declare const BkTimePicker: {
|
|
553
554
|
"onOpen-change"?: (...args: any[]) => any;
|
554
555
|
"onShortcut-change"?: (...args: any[]) => any;
|
555
556
|
}, {
|
556
|
-
panel: import("vue").ComputedRef<import("
|
557
|
+
panel: import("vue").ComputedRef<import("../date-picker/interface").DatePickerPanelType>;
|
557
558
|
publicStringValue: import("vue").ComputedRef<any>;
|
558
559
|
opened: import("vue").ComputedRef<boolean>;
|
559
560
|
visualValue: import("vue").ComputedRef<any>;
|
@@ -576,6 +577,7 @@ declare const BkTimePicker: {
|
|
576
577
|
inputRef: import("vue").Ref<any>;
|
577
578
|
triggerRef: import("vue").Ref<HTMLElement>;
|
578
579
|
pickerPanelRef: import("vue").Ref<any>;
|
580
|
+
teleportTo: import("vue").Ref<any>;
|
579
581
|
handleClose: (e?: Event) => boolean;
|
580
582
|
handleIconClick: () => void;
|
581
583
|
handleInputMouseenter: () => void;
|
@@ -595,7 +597,7 @@ declare const BkTimePicker: {
|
|
595
597
|
internalValue: import("vue").Ref<any>;
|
596
598
|
disableClickOutSide: import("vue").Ref<boolean>;
|
597
599
|
disableCloseUnderTransfer: import("vue").Ref<boolean>;
|
598
|
-
selectionMode: import("vue").Ref<import("
|
600
|
+
selectionMode: import("vue").Ref<import("../date-picker/interface").SelectionModeType>;
|
599
601
|
forceInputRerender: import("vue").Ref<number>;
|
600
602
|
isFocused: import("vue").Ref<boolean>;
|
601
603
|
focusedDate: import("vue").Ref<any>;
|
@@ -608,10 +610,10 @@ declare const BkTimePicker: {
|
|
608
610
|
internalFocus: import("vue").Ref<boolean>;
|
609
611
|
timeEnterMode: import("vue").Ref<boolean>;
|
610
612
|
shortcut: import("vue").Ref<any>;
|
611
|
-
onSelectionModeChange: import("vue").Ref<(_type: any) => import("
|
613
|
+
onSelectionModeChange: import("vue").Ref<(_type: any) => import("../date-picker/interface").SelectionModeType>;
|
612
614
|
tmpValue: import("vue").Ref<any>;
|
613
615
|
}, {}, {}, {}, {
|
614
|
-
type: import("
|
616
|
+
type: import("../date-picker/interface").PickerTypeType;
|
615
617
|
width: number;
|
616
618
|
disabled: boolean;
|
617
619
|
placement: import("@popperjs/core").ComputedPlacement;
|
@@ -630,7 +632,7 @@ declare const BkTimePicker: {
|
|
630
632
|
timePickerOptions: {};
|
631
633
|
splitPanels: boolean;
|
632
634
|
appendToBody: boolean;
|
633
|
-
shortcuts: import("
|
635
|
+
shortcuts: import("../date-picker/interface").DatePickerShortcutsType;
|
634
636
|
shortcutClose: boolean;
|
635
637
|
upToNow: boolean;
|
636
638
|
useShortcutText: boolean;
|
@@ -673,7 +675,7 @@ declare const BkTimePicker: {
|
|
673
675
|
readonly default: true;
|
674
676
|
};
|
675
677
|
type: {
|
676
|
-
type: import("vue").PropType<import("
|
678
|
+
type: import("vue").PropType<import("../date-picker/interface").PickerTypeType>;
|
677
679
|
default: string;
|
678
680
|
validator(value: any): boolean;
|
679
681
|
};
|
@@ -737,7 +739,7 @@ declare const BkTimePicker: {
|
|
737
739
|
readonly default: false;
|
738
740
|
};
|
739
741
|
shortcuts: {
|
740
|
-
readonly type: import("vue").PropType<import("
|
742
|
+
readonly type: import("vue").PropType<import("../date-picker/interface").DatePickerShortcutsType>;
|
741
743
|
readonly default: () => any[];
|
742
744
|
};
|
743
745
|
shortcutClose: {
|
@@ -745,10 +747,10 @@ declare const BkTimePicker: {
|
|
745
747
|
readonly default: false;
|
746
748
|
};
|
747
749
|
modelValue: {
|
748
|
-
readonly type: import("vue").PropType<import("
|
750
|
+
readonly type: import("vue").PropType<import("../date-picker/interface").DatePickerValueType>;
|
749
751
|
};
|
750
752
|
value: {
|
751
|
-
readonly type: import("vue").PropType<import("
|
753
|
+
readonly type: import("vue").PropType<import("../date-picker/interface").DatePickerValueType>;
|
752
754
|
};
|
753
755
|
options: {
|
754
756
|
readonly type: ObjectConstructor;
|
@@ -783,7 +785,7 @@ declare const BkTimePicker: {
|
|
783
785
|
readonly default: "normal";
|
784
786
|
readonly validator: (v: any) => boolean;
|
785
787
|
};
|
786
|
-
disabledDate: import("vue").PropType<import("
|
788
|
+
disabledDate: import("vue").PropType<import("../date-picker/interface").DisabledDateType>;
|
787
789
|
withValidate: {
|
788
790
|
readonly type: BooleanConstructor;
|
789
791
|
readonly default: true;
|
@@ -797,7 +799,7 @@ declare const BkTimePicker: {
|
|
797
799
|
"onOpen-change"?: (...args: any[]) => any;
|
798
800
|
"onShortcut-change"?: (...args: any[]) => any;
|
799
801
|
}, {
|
800
|
-
panel: import("vue").ComputedRef<import("
|
802
|
+
panel: import("vue").ComputedRef<import("../date-picker/interface").DatePickerPanelType>;
|
801
803
|
publicStringValue: import("vue").ComputedRef<any>;
|
802
804
|
opened: import("vue").ComputedRef<boolean>;
|
803
805
|
visualValue: import("vue").ComputedRef<any>;
|
@@ -820,6 +822,7 @@ declare const BkTimePicker: {
|
|
820
822
|
inputRef: import("vue").Ref<any>;
|
821
823
|
triggerRef: import("vue").Ref<HTMLElement>;
|
822
824
|
pickerPanelRef: import("vue").Ref<any>;
|
825
|
+
teleportTo: import("vue").Ref<any>;
|
823
826
|
handleClose: (e?: Event) => boolean;
|
824
827
|
handleIconClick: () => void;
|
825
828
|
handleInputMouseenter: () => void;
|
@@ -839,7 +842,7 @@ declare const BkTimePicker: {
|
|
839
842
|
internalValue: import("vue").Ref<any>;
|
840
843
|
disableClickOutSide: import("vue").Ref<boolean>;
|
841
844
|
disableCloseUnderTransfer: import("vue").Ref<boolean>;
|
842
|
-
selectionMode: import("vue").Ref<import("
|
845
|
+
selectionMode: import("vue").Ref<import("../date-picker/interface").SelectionModeType>;
|
843
846
|
forceInputRerender: import("vue").Ref<number>;
|
844
847
|
isFocused: import("vue").Ref<boolean>;
|
845
848
|
focusedDate: import("vue").Ref<any>;
|
@@ -852,10 +855,10 @@ declare const BkTimePicker: {
|
|
852
855
|
internalFocus: import("vue").Ref<boolean>;
|
853
856
|
timeEnterMode: import("vue").Ref<boolean>;
|
854
857
|
shortcut: import("vue").Ref<any>;
|
855
|
-
onSelectionModeChange: import("vue").Ref<(_type: any) => import("
|
858
|
+
onSelectionModeChange: import("vue").Ref<(_type: any) => import("../date-picker/interface").SelectionModeType>;
|
856
859
|
tmpValue: import("vue").Ref<any>;
|
857
860
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "input" | "clear" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change")[], "change" | "input" | "clear" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change", {
|
858
|
-
type: import("
|
861
|
+
type: import("../date-picker/interface").PickerTypeType;
|
859
862
|
width: number;
|
860
863
|
disabled: boolean;
|
861
864
|
placement: import("@popperjs/core").ComputedPlacement;
|
@@ -874,7 +877,7 @@ declare const BkTimePicker: {
|
|
874
877
|
timePickerOptions: {};
|
875
878
|
splitPanels: boolean;
|
876
879
|
appendToBody: boolean;
|
877
|
-
shortcuts: import("
|
880
|
+
shortcuts: import("../date-picker/interface").DatePickerShortcutsType;
|
878
881
|
shortcutClose: boolean;
|
879
882
|
upToNow: boolean;
|
880
883
|
useShortcutText: boolean;
|
@@ -12,6 +12,7 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
.bk-time-picker-header {
|
128
131
|
height: 46px;
|
@@ -12,6 +12,7 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
* {
|
128
131
|
box-sizing: border-box;
|
@@ -12,6 +12,7 @@
|
|
12
12
|
--whitesmoke-color: #fafbfd;
|
13
13
|
--disable-color: #dcdee5;
|
14
14
|
--disable-bg-color: #f9fafd;
|
15
|
+
--border-color: #dcdee5;
|
15
16
|
--font-size-base: 12px;
|
16
17
|
--font-size-medium: 14px;
|
17
18
|
--font-size-large: 16px;
|
@@ -123,6 +124,8 @@
|
|
123
124
|
--search-select-placeholder-color: var(--light-gray);
|
124
125
|
--search-select-message-color: var(--danger-color);
|
125
126
|
--search-select-menu-border-color: var(--disable-color);
|
127
|
+
--select-active-color: #e1ecff;
|
128
|
+
--select-hover-color: #f5f7fa;
|
126
129
|
}
|
127
130
|
.bk-transfer {
|
128
131
|
display: flex;
|