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
@@ -654,21 +654,22 @@ var TableColumnProp = {
|
|
654
654
|
return;
|
655
655
|
}
|
656
656
|
nodes.forEach(function (node) {
|
657
|
-
var
|
657
|
+
var _node$type, _node$children2;
|
658
658
|
if (Array.isArray(node)) {
|
659
659
|
reduceColumns(node);
|
660
660
|
return;
|
661
661
|
}
|
662
662
|
var skipValidateKey0 = true;
|
663
|
-
if (((
|
663
|
+
if (((_node$type = node.type) === null || _node$type === void 0 ? void 0 : _node$type.name) === 'TableColumn') {
|
664
|
+
var _node$children;
|
664
665
|
skipValidateKey0 = Object.hasOwnProperty.call(node.props || {}, 'key');
|
665
666
|
var resolveProp = Object.assign({}, node.props, {
|
666
667
|
field: node.props.prop || node.props.field,
|
667
|
-
render: (
|
668
|
+
render: (_node$children = node.children) === null || _node$children === void 0 ? void 0 : _node$children["default"]
|
668
669
|
});
|
669
670
|
sortColumns.push((0,external_vue_namespaceObject.unref)(resolveProp));
|
670
671
|
}
|
671
|
-
if ((
|
672
|
+
if ((_node$children2 = node.children) !== null && _node$children2 !== void 0 && _node$children2.length && skipValidateKey0) {
|
672
673
|
reduceColumns(node.children);
|
673
674
|
}
|
674
675
|
});
|
@@ -690,8 +691,8 @@ var TableColumnProp = {
|
|
690
691
|
}
|
691
692
|
},
|
692
693
|
render: function render() {
|
693
|
-
var
|
694
|
-
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(
|
694
|
+
var _this$$slots$default, _this$$slots;
|
695
|
+
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots, {
|
695
696
|
row: {}
|
696
697
|
})]);
|
697
698
|
}
|
package/lib/tag/index.js
CHANGED
@@ -184,7 +184,7 @@ var TagStrokeType;
|
|
184
184
|
};
|
185
185
|
},
|
186
186
|
render: function render() {
|
187
|
-
var
|
187
|
+
var _this$$slots$default, _this$$slots;
|
188
188
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
189
189
|
"class": this.wrapperCls,
|
190
190
|
"style": this.wrapperStyle,
|
@@ -193,7 +193,7 @@ var TagStrokeType;
|
|
193
193
|
"class": "".concat(this.resolveClassName('tag-icon'))
|
194
194
|
}, [this.$slots.icon()]) : '', (0,external_vue_namespaceObject.createVNode)("span", {
|
195
195
|
"class": "".concat(this.resolveClassName('tag-text'))
|
196
|
-
}, [(
|
196
|
+
}, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)]), this.closable ? (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Error, {
|
197
197
|
"class": "".concat(this.resolveClassName('tag-close')),
|
198
198
|
"onClick": this.handleClose
|
199
199
|
}, null) : '']);
|
package/lib/tag-input/index.js
CHANGED
@@ -196,6 +196,9 @@ var external_popover_y = x => () => x
|
|
196
196
|
const external_popover_namespaceObject = external_popover_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE__popover_cf5f8dce__["default"] });
|
197
197
|
;// CONCATENATED MODULE: ../../packages/tag-input/src/common.ts
|
198
198
|
|
199
|
+
|
200
|
+
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; }
|
201
|
+
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; }
|
199
202
|
/*
|
200
203
|
* Tencent is pleased to support the open source community by making
|
201
204
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -298,7 +301,7 @@ function useFlatList(props) {
|
|
298
301
|
var children = [];
|
299
302
|
if (item.children) {
|
300
303
|
children = item.children.map(function (child) {
|
301
|
-
return
|
304
|
+
return _objectSpread({
|
302
305
|
group: {
|
303
306
|
groupId: item[saveKey.value],
|
304
307
|
groupName: item[displayKey.value]
|
@@ -538,6 +541,9 @@ var tagProps = function tagProps() {
|
|
538
541
|
/* harmony default export */ const tag_props = (tagProps);
|
539
542
|
;// CONCATENATED MODULE: ../../packages/tag-input/src/tag-render.tsx
|
540
543
|
|
544
|
+
|
545
|
+
function 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; }
|
546
|
+
function tag_render_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? tag_render_ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : tag_render_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
541
547
|
/*
|
542
548
|
* Tencent is pleased to support the open source community by making
|
543
549
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -592,7 +598,7 @@ var tagProps = function tagProps() {
|
|
592
598
|
var tagRef = (0,external_vue_namespaceObject.ref)();
|
593
599
|
var isOverflow = (0,external_vue_namespaceObject.ref)(false);
|
594
600
|
var overflowTips = (0,external_vue_namespaceObject.computed)(function () {
|
595
|
-
return
|
601
|
+
return tag_render_objectSpread({
|
596
602
|
boundary: 'window',
|
597
603
|
theme: 'light',
|
598
604
|
distance: 12,
|
@@ -626,6 +632,8 @@ var tagProps = function tagProps() {
|
|
626
632
|
|
627
633
|
|
628
634
|
|
635
|
+
function tag_input_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; }
|
636
|
+
function tag_input_objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? tag_input_ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : tag_input_ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
629
637
|
/*
|
630
638
|
* Tencent is pleased to support the open source community by making
|
631
639
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
@@ -679,7 +687,7 @@ var tagProps = function tagProps() {
|
|
679
687
|
isHover: false,
|
680
688
|
focusItemIndex: props.allowCreate ? -1 : 0
|
681
689
|
});
|
682
|
-
var popoverProps = (0,external_vue_namespaceObject.reactive)(
|
690
|
+
var popoverProps = (0,external_vue_namespaceObject.reactive)(tag_input_objectSpread({
|
683
691
|
isShow: false,
|
684
692
|
width: 190,
|
685
693
|
offset: {
|
@@ -783,13 +791,13 @@ var tagProps = function tagProps() {
|
|
783
791
|
(0,external_vue_namespaceObject.watch)(function () {
|
784
792
|
return props.modelValue;
|
785
793
|
}, function (val) {
|
786
|
-
var _a;
|
787
794
|
if (!shallowCompareArray(tagList.value, val)) {
|
788
795
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
789
796
|
initData();
|
790
797
|
});
|
791
798
|
if (props.withValidate) {
|
792
|
-
|
799
|
+
var _formItem$validate;
|
800
|
+
formItem === null || formItem === void 0 || (_formItem$validate = formItem.validate) === null || _formItem$validate === void 0 ? void 0 : _formItem$validate.call(formItem, 'change');
|
793
801
|
}
|
794
802
|
}
|
795
803
|
});
|
@@ -824,9 +832,9 @@ var tagProps = function tagProps() {
|
|
824
832
|
initData();
|
825
833
|
});
|
826
834
|
var changePopoverOffset = function changePopoverOffset() {
|
827
|
-
var
|
835
|
+
var _tagInputItemRef$valu;
|
828
836
|
// 修改popover offset
|
829
|
-
popoverProps.offset.crossAxis = isSingleSelect.value ? 0 : (
|
837
|
+
popoverProps.offset.crossAxis = isSingleSelect.value ? 0 : (_tagInputItemRef$valu = tagInputItemRef.value) === null || _tagInputItemRef$valu === void 0 ? void 0 : _tagInputItemRef$valu.offsetLeft;
|
830
838
|
};
|
831
839
|
var scrollHandler = function scrollHandler() {
|
832
840
|
if (pageState.isPageLoading || selectorListRef.value.scrollTop === 0) {
|
@@ -848,8 +856,8 @@ var tagProps = function tagProps() {
|
|
848
856
|
};
|
849
857
|
// 获取选中元素节点
|
850
858
|
var getSelectedTagNodes = function getSelectedTagNodes() {
|
851
|
-
var
|
852
|
-
var nodes = Array.from(((
|
859
|
+
var _tagListRef$value;
|
860
|
+
var nodes = Array.from(((_tagListRef$value = tagListRef.value) === null || _tagListRef$value === void 0 ? void 0 : _tagListRef$value.childNodes) || []);
|
853
861
|
return nodes.filter(function (node) {
|
854
862
|
return ![Node.TEXT_NODE, Node.COMMENT_NODE].includes(node.nodeType);
|
855
863
|
});
|
@@ -860,7 +868,7 @@ var tagProps = function tagProps() {
|
|
860
868
|
*/
|
861
869
|
var focusInputTrigger = function focusInputTrigger(e) {
|
862
870
|
if (props.disabled) return;
|
863
|
-
if (e
|
871
|
+
if (e !== null && e !== void 0 && e.target) {
|
864
872
|
var className = e.target.className;
|
865
873
|
if (className.indexOf("".concat(resolveClassName('tag-input-trigger'))) > -1 || className.indexOf('tag-list') > -1) {
|
866
874
|
// 如果没点在节点上,重置input位置(在最后插入input)
|
@@ -878,8 +886,8 @@ var tagProps = function tagProps() {
|
|
878
886
|
}
|
879
887
|
state.isEdit = true;
|
880
888
|
setTimeout(function () {
|
881
|
-
var
|
882
|
-
(
|
889
|
+
var _tagInputRef$value;
|
890
|
+
(_tagInputRef$value = tagInputRef.value) === null || _tagInputRef$value === void 0 ? void 0 : _tagInputRef$value.focus();
|
883
891
|
if (props.trigger === 'focus' && listState.localList.length !== 0) {
|
884
892
|
filterData();
|
885
893
|
if (popoverProps.isShow) {
|
@@ -1020,7 +1028,7 @@ var tagProps = function tagProps() {
|
|
1020
1028
|
trigger = props.trigger,
|
1021
1029
|
allowCreate = props.allowCreate;
|
1022
1030
|
if (maxData === -1 || maxData > tagList.value.length) {
|
1023
|
-
var _ref5 =
|
1031
|
+
var _ref5 = e !== null && e !== void 0 && e.target ? e.target : curInputValue,
|
1024
1032
|
value = _ref5.value;
|
1025
1033
|
var charLen = getCharLength(value);
|
1026
1034
|
if (charLen) {
|
@@ -1042,16 +1050,16 @@ var tagProps = function tagProps() {
|
|
1042
1050
|
emit('input', curInputValue.value);
|
1043
1051
|
};
|
1044
1052
|
var handleFocus = function handleFocus() {
|
1045
|
-
var
|
1053
|
+
var _bkTagSelectorRef$val;
|
1046
1054
|
// this.dispatch('bk-form-item', 'form-focus')
|
1047
|
-
popoverProps.width = isSingleSelect.value ? (
|
1055
|
+
popoverProps.width = isSingleSelect.value ? (_bkTagSelectorRef$val = bkTagSelectorRef.value) === null || _bkTagSelectorRef$val === void 0 ? void 0 : _bkTagSelectorRef$val.clientWidth : props.contentWidth;
|
1048
1056
|
emit('focus');
|
1049
1057
|
// e.currentTarget.select();
|
1050
1058
|
};
|
1051
1059
|
|
1052
1060
|
var handleBlur = function handleBlur() {
|
1053
1061
|
timer.value = setTimeout(function () {
|
1054
|
-
var
|
1062
|
+
var _formItem$validate2;
|
1055
1063
|
var inputValue = curInputValue.value;
|
1056
1064
|
clearInput();
|
1057
1065
|
// 通知表单组件,可用于实时验证
|
@@ -1086,7 +1094,7 @@ var tagProps = function tagProps() {
|
|
1086
1094
|
}
|
1087
1095
|
popoverProps.isShow = false;
|
1088
1096
|
emit('blur', inputValue, tagList.value);
|
1089
|
-
|
1097
|
+
formItem === null || formItem === void 0 || (_formItem$validate2 = formItem.validate) === null || _formItem$validate2 === void 0 ? void 0 : _formItem$validate2.call(formItem, 'blur');
|
1090
1098
|
}, 200);
|
1091
1099
|
};
|
1092
1100
|
/**
|
@@ -1453,9 +1461,9 @@ var tagProps = function tagProps() {
|
|
1453
1461
|
});
|
1454
1462
|
var _useTagsOverflow = useTagsOverflow(bkTagSelectorRef, localCollapseTags, tagList),
|
1455
1463
|
overflowTagIndex = _useTagsOverflow.overflowTagIndex;
|
1456
|
-
return
|
1464
|
+
return tag_input_objectSpread(tag_input_objectSpread(tag_input_objectSpread(tag_input_objectSpread({
|
1457
1465
|
popoverProps: popoverProps
|
1458
|
-
}, (0,external_vue_namespaceObject.toRefs)(state)), (0,external_vue_namespaceObject.toRefs)(listState)), (0,external_vue_namespaceObject.toRefs)(pageState)), {
|
1466
|
+
}, (0,external_vue_namespaceObject.toRefs)(state)), (0,external_vue_namespaceObject.toRefs)(listState)), (0,external_vue_namespaceObject.toRefs)(pageState)), {}, {
|
1459
1467
|
isShowPlaceholder: isShowPlaceholder,
|
1460
1468
|
isShowClear: isShowClear,
|
1461
1469
|
placeholderText: placeholderText,
|
@@ -1503,7 +1511,7 @@ var tagProps = function tagProps() {
|
|
1503
1511
|
"arrow": false
|
1504
1512
|
}, this.popoverProps), {
|
1505
1513
|
"default": function _default() {
|
1506
|
-
var
|
1514
|
+
var _this$$slots$suffix, _this$$slots, _this$$slots$suffix2;
|
1507
1515
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
1508
1516
|
"class": _this.triggerClass
|
1509
1517
|
}, [(0,external_vue_namespaceObject.createVNode)("ul", {
|
@@ -1562,7 +1570,7 @@ var tagProps = function tagProps() {
|
|
1562
1570
|
"class": "text"
|
1563
1571
|
}, [(0,external_vue_namespaceObject.createTextVNode)("+"), _this.selectedTagList.length - _this.overflowTagIndex])])])]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("p", {
|
1564
1572
|
"class": "placeholder"
|
1565
|
-
}, [_this.placeholderText]), [[external_vue_namespaceObject.vShow, _this.isShowPlaceholder]]), (
|
1573
|
+
}, [_this.placeholderText]), [[external_vue_namespaceObject.vShow, _this.isShowPlaceholder]]), (_this$$slots$suffix = (_this$$slots = _this.$slots) === null || _this$$slots === void 0 || (_this$$slots$suffix2 = _this$$slots.suffix) === null || _this$$slots$suffix2 === void 0 ? void 0 : _this$$slots$suffix2.call(_this$$slots)) !== null && _this$$slots$suffix !== void 0 ? _this$$slots$suffix : _this.isShowClear && (0,external_vue_namespaceObject.createVNode)(external_icon_namespaceObject.Close, {
|
1566
1574
|
"class": "clear-icon",
|
1567
1575
|
"onClick": _this.handleClear
|
1568
1576
|
}, null)]);
|
package/lib/timeline/index.js
CHANGED
@@ -99,7 +99,7 @@ var timelineProps = {
|
|
99
99
|
var _defaultTimelines$val;
|
100
100
|
var defaults = [];
|
101
101
|
timelines.forEach(function (timeline) {
|
102
|
-
var
|
102
|
+
var _timeline$border;
|
103
103
|
defaults.push({
|
104
104
|
tag: timeline.tag,
|
105
105
|
content: timeline.content,
|
@@ -108,14 +108,13 @@ var timelineProps = {
|
|
108
108
|
color: timeline.color,
|
109
109
|
icon: timeline.icon,
|
110
110
|
filled: timeline.filled,
|
111
|
-
border: (
|
111
|
+
border: (_timeline$border = timeline.border) !== null && _timeline$border !== void 0 ? _timeline$border : true
|
112
112
|
});
|
113
113
|
});
|
114
114
|
(_defaultTimelines$val = defaultTimelines.value).splice.apply(_defaultTimelines$val, [0, defaultTimelines.value.length].concat(defaults));
|
115
115
|
};
|
116
116
|
var init = function init() {
|
117
|
-
var _defaultTimelines$val2;
|
118
|
-
var _a;
|
117
|
+
var _defaultTimelines$val2, _props$list;
|
119
118
|
(_defaultTimelines$val2 = defaultTimelines.value).splice.apply(_defaultTimelines$val2, [0, defaultTimelines.value.length].concat([{
|
120
119
|
tag: '步骤1',
|
121
120
|
content: '内容1'
|
@@ -126,7 +125,7 @@ var timelineProps = {
|
|
126
125
|
tag: '步骤3',
|
127
126
|
content: '内容3'
|
128
127
|
}]));
|
129
|
-
if ((
|
128
|
+
if ((_props$list = props.list) !== null && _props$list !== void 0 && _props$list.length) {
|
130
129
|
updateTimelines(props.list);
|
131
130
|
}
|
132
131
|
};
|
@@ -184,7 +183,7 @@ var timelineProps = {
|
|
184
183
|
return (0,external_vue_namespaceObject.createVNode)("ul", {
|
185
184
|
"class": ["".concat(this.resolveClassName('timeline')), this.extCls]
|
186
185
|
}, [this.defaultTimelines.map(function (item) {
|
187
|
-
var
|
186
|
+
var _this$$slots$default, _this$$slots$default2, _this$$slots;
|
188
187
|
return (0,external_vue_namespaceObject.createVNode)("li", {
|
189
188
|
"class": ["".concat(_this.resolveClassName('timeline-dot')), makeClass(item)]
|
190
189
|
}, [isIcon(item) ? (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -202,7 +201,7 @@ var timelineProps = {
|
|
202
201
|
"onClick": function onClick() {
|
203
202
|
_this.titleSelect(item);
|
204
203
|
}
|
205
|
-
}, [(
|
204
|
+
}, [(_this$$slots$default = (_this$$slots$default2 = (_this$$slots = _this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots, item)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : (0,external_vue_namespaceObject.createVNode)("span", {
|
206
205
|
"innerHTML": item.tag
|
207
206
|
}, null)]), item.content ? getContent(item) : ''])]);
|
208
207
|
})]);
|
package/lib/transfer/index.js
CHANGED
@@ -484,10 +484,10 @@ function useSelectListSearch(selectList, displayCode) {
|
|
484
484
|
var leftList = this.sortable ? this.selectListSort : this.selectListSearch;
|
485
485
|
var rightList = this.sortable ? this.selectedListSort : this.selectedList;
|
486
486
|
var getHeaderHtml = function getHeaderHtml(dirct) {
|
487
|
-
var
|
487
|
+
var _this$title$, _this$title$2;
|
488
488
|
var isLeft = dirct === 'left-header';
|
489
489
|
var selectField = isLeft ? 'source' : 'target';
|
490
|
-
var titleText = isLeft ? "".concat((
|
490
|
+
var titleText = isLeft ? "".concat((_this$title$ = _this.title[0]) !== null && _this$title$ !== void 0 ? _this$title$ : _this.t.sourceList) : "".concat((_this$title$2 = _this.title[1]) !== null && _this$title$2 !== void 0 ? _this$title$2 : _this.t.targetList);
|
491
491
|
var isDisabled = isLeft ? !leftList.length : !rightList.length;
|
492
492
|
// eslint-disable-next-line max-len
|
493
493
|
var isIndeterminate = !!_this.multipleSelectList[selectField].length && !_this.multipleSelectAllValue[selectField];
|
@@ -530,9 +530,9 @@ function useSelectListSearch(selectList, displayCode) {
|
|
530
530
|
}, [isLeft ? _this.t.selectAll : _this.t.removeAll])]);
|
531
531
|
};
|
532
532
|
var getEmptyHtml = function getEmptyHtml(dirct) {
|
533
|
-
var
|
533
|
+
var _ref2;
|
534
534
|
var isLeft = dirct === 'left-empty-content';
|
535
|
-
var emptyText = (
|
535
|
+
var emptyText = (_ref2 = isLeft ? _this.emptyContent[0] : _this.emptyContent[1]) !== null && _ref2 !== void 0 ? _ref2 : isLeft ? _this.t.noData : _this.t.noSelected;
|
536
536
|
return _this.$slots[dirct] ? (0,external_vue_namespaceObject.createVNode)("div", null, [_this.$slots[dirct]()]) : (0,external_vue_namespaceObject.createVNode)("div", {
|
537
537
|
"class": "empty"
|
538
538
|
}, [emptyText]);
|
@@ -571,13 +571,13 @@ function useSelectListSearch(selectList, displayCode) {
|
|
571
571
|
return _this.handleItemChecked(selectField);
|
572
572
|
}
|
573
573
|
}, _isSlot(_slot = list.map(function (item) {
|
574
|
-
var
|
574
|
+
var _this$$slots$slotName, _this$$slots$slotName2, _this$$slots;
|
575
575
|
return (0,external_vue_namespaceObject.createVNode)("div", null, [(0,external_vue_namespaceObject.createVNode)(external_checkbox_namespaceObject["default"], {
|
576
576
|
"class": "checkbox-item",
|
577
577
|
"label": item[_this.settingCode]
|
578
578
|
}, {
|
579
579
|
"default": function _default() {
|
580
|
-
return [(
|
580
|
+
return [(_this$$slots$slotName = (_this$$slots$slotName2 = (_this$$slots = _this.$slots)[slotName]) === null || _this$$slots$slotName2 === void 0 ? void 0 : _this$$slots$slotName2.call(_this$$slots, item)) !== null && _this$$slots$slotName !== void 0 ? _this$$slots$slotName : getDefaultListHtml(item, isLeft)];
|
581
581
|
}
|
582
582
|
})]);
|
583
583
|
})) ? _slot : {
|
@@ -587,14 +587,14 @@ function useSelectListSearch(selectList, displayCode) {
|
|
587
587
|
}) : (0,external_vue_namespaceObject.createVNode)("ul", {
|
588
588
|
"class": ['content', _this.searchable && isLeft ? 'is-search' : '']
|
589
589
|
}, [list.map(function (item) {
|
590
|
-
var
|
590
|
+
var _this$$slots$slotName3, _this$$slots$slotName4, _this$$slots2;
|
591
591
|
return (0,external_vue_namespaceObject.createVNode)("li", {
|
592
592
|
"key": item[_this.settingCode],
|
593
593
|
"class": [_this.$slots[slotName] ? 'custom-item' : ''],
|
594
594
|
"onClick": function onClick() {
|
595
595
|
return _this.handleItemClick(item, isLeft);
|
596
596
|
}
|
597
|
-
}, [(
|
597
|
+
}, [(_this$$slots$slotName3 = (_this$$slots$slotName4 = (_this$$slots2 = _this.$slots)[slotName]) === null || _this$$slots$slotName4 === void 0 ? void 0 : _this$$slots$slotName4.call(_this$$slots2, item)) !== null && _this$$slots$slotName3 !== void 0 ? _this$$slots$slotName3 : getDefaultListHtml(item, isLeft)]);
|
598
598
|
})]);
|
599
599
|
return list.length ? contentMode : getEmptyHtml(emptySlotName);
|
600
600
|
};
|