bkui-vue 2.0.2-beta.57 → 2.0.2-beta.59
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/cli.css +1 -1
- package/dist/index.cjs.js +24 -24
- package/dist/index.esm.js +3689 -3680
- package/dist/index.umd.js +21 -21
- package/dist/style.variable.css +1 -1
- package/lib/cascader/index.js +29 -3
- package/lib/date-picker/date-picker.d.ts +2 -1
- package/lib/date-picker/index.d.ts +6 -2
- package/lib/date-picker/index.js +6 -2
- package/lib/date-picker/panel/date-range.d.ts +2 -1
- package/lib/index.js +1 -1
- package/lib/input/index.js +1 -7
- package/lib/transfer/index.d.ts +0 -23
- package/lib/transfer/index.js +17 -7
- package/lib/transfer/props.d.ts +0 -5
- package/lib/transfer/transfer.css +26 -8
- package/lib/transfer/transfer.d.ts +0 -11
- package/lib/transfer/transfer.less +18 -8
- package/lib/transfer/transfer.variable.css +26 -8
- package/lib/volar.components.d.ts +1 -0
- package/package.json +1 -1
package/lib/cascader/index.js
CHANGED
@@ -1840,6 +1840,17 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
1840
1840
|
}
|
1841
1841
|
});
|
1842
1842
|
};
|
1843
|
+
// 监听store.config.multiple属性的变化,当切换单选/多选模式时需要重新初始化面板
|
1844
|
+
(0,external_vue_.watch)(function () {
|
1845
|
+
return store.value.config.multiple;
|
1846
|
+
}, function (newVal, oldVal) {
|
1847
|
+
if (newVal !== oldVal) {
|
1848
|
+
// 当multiple属性变化时,重置面板状态
|
1849
|
+
menus.list = [store.value.getNodes()];
|
1850
|
+
activePath.value = [];
|
1851
|
+
checkValue.value = [];
|
1852
|
+
}
|
1853
|
+
});
|
1843
1854
|
var noDataText = t.value.noData;
|
1844
1855
|
var emptyText = t.value.emptyText;
|
1845
1856
|
/**
|
@@ -2460,8 +2471,7 @@ var Store = /*#__PURE__*/function () {
|
|
2460
2471
|
var emit = _ref.emit,
|
2461
2472
|
slots = _ref.slots;
|
2462
2473
|
var t = (0,config_provider_namespaceObject.useLocale)('cascader');
|
2463
|
-
var separator = props.separator
|
2464
|
-
multiple = props.multiple;
|
2474
|
+
var separator = props.separator;
|
2465
2475
|
// 用useHover自定义hook来处理鼠标hover状态
|
2466
2476
|
var _useHover = (0,select_namespaceObject.useHover)(),
|
2467
2477
|
isHover = _useHover.isHover,
|
@@ -2535,7 +2545,7 @@ var Store = /*#__PURE__*/function () {
|
|
2535
2545
|
// 更新选中
|
2536
2546
|
var updateValue = function updateValue(val) {
|
2537
2547
|
// 更新多选情况下的选中标签
|
2538
|
-
if (multiple) {
|
2548
|
+
if (props.multiple) {
|
2539
2549
|
store.value.setNodesCheck(val); // 同步节点选中的状态
|
2540
2550
|
selectedTags.value = store.value.getCheckedNodes().filter(function (node) {
|
2541
2551
|
return store.value.config.checkAnyLevel || node.isLeaf;
|
@@ -2677,6 +2687,22 @@ var Store = /*#__PURE__*/function () {
|
|
2677
2687
|
deep: true,
|
2678
2688
|
immediate: true
|
2679
2689
|
});
|
2690
|
+
// 监听multiple属性的变化,当切换单选/多选模式时需要重新初始化组件
|
2691
|
+
(0,external_vue_.watch)(function () {
|
2692
|
+
return props.multiple;
|
2693
|
+
}, function (newVal, oldVal) {
|
2694
|
+
if (newVal !== oldVal) {
|
2695
|
+
// 重新初始化store
|
2696
|
+
store.value = new src_store(props);
|
2697
|
+
// 重置selectedTags和selectedText状态
|
2698
|
+
selectedTags.value = [];
|
2699
|
+
selectedText.value = '';
|
2700
|
+
// 更新组件状态
|
2701
|
+
updateValue(props.modelValue);
|
2702
|
+
}
|
2703
|
+
}, {
|
2704
|
+
immediate: true
|
2705
|
+
});
|
2680
2706
|
// 定义overflowTagIndex变量,用于处理tag的折叠
|
2681
2707
|
var tagList = (0,external_vue_.computed)(function () {
|
2682
2708
|
return props.customTagsFillback ? props.customTagsFillback(props.modelValue, store.value.getFlattedNodes()) : selectedTags.value.map(function (item) {
|
@@ -168,7 +168,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
168
168
|
shortcut: import("vue").Ref<any>;
|
169
169
|
onSelectionModeChange: import("vue").Ref<(_type: any) => SelectionModeType>;
|
170
170
|
tmpValue: import("vue").Ref<any>;
|
171
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "change" | "focus" | "input" | "clear" | "update:modelValue" | "pick-success" | "pick-first" | "open-change" | "shortcut-change")[], "blur" | "change" | "focus" | "input" | "clear" | "update:modelValue" | "pick-success" | "pick-first" | "open-change" | "shortcut-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
171
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "change" | "focus" | "input" | "clear" | "update:modelValue" | "pick-success" | "selection-mode-change" | "pick-first" | "open-change" | "shortcut-change")[], "blur" | "change" | "focus" | "input" | "clear" | "update:modelValue" | "pick-success" | "selection-mode-change" | "pick-first" | "open-change" | "shortcut-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
172
172
|
readonly type: {
|
173
173
|
readonly type: import("vue").PropType<import("./interface").PickerTypeType>;
|
174
174
|
readonly default: "date";
|
@@ -289,6 +289,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
289
289
|
onClear?: (...args: any[]) => any;
|
290
290
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
291
291
|
"onPick-success"?: (...args: any[]) => any;
|
292
|
+
"onSelection-mode-change"?: (...args: any[]) => any;
|
292
293
|
"onPick-first"?: (...args: any[]) => any;
|
293
294
|
"onOpen-change"?: (...args: any[]) => any;
|
294
295
|
"onShortcut-change"?: (...args: any[]) => any;
|
@@ -122,6 +122,7 @@ declare const BkDatePicker: {
|
|
122
122
|
onClear?: (...args: any[]) => any;
|
123
123
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
124
124
|
"onPick-success"?: (...args: any[]) => any;
|
125
|
+
"onSelection-mode-change"?: (...args: any[]) => any;
|
125
126
|
"onPick-first"?: (...args: any[]) => any;
|
126
127
|
"onOpen-change"?: (...args: any[]) => any;
|
127
128
|
"onShortcut-change"?: (...args: any[]) => any;
|
@@ -180,7 +181,7 @@ declare const BkDatePicker: {
|
|
180
181
|
shortcut: import("vue").Ref<any>;
|
181
182
|
onSelectionModeChange: import("vue").Ref<(_type: any) => import("./interface").SelectionModeType>;
|
182
183
|
tmpValue: import("vue").Ref<any>;
|
183
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "change" | "focus" | "input" | "clear" | "update:modelValue" | "pick-success" | "pick-first" | "open-change" | "shortcut-change")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
184
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "change" | "focus" | "input" | "clear" | "update:modelValue" | "pick-success" | "selection-mode-change" | "pick-first" | "open-change" | "shortcut-change")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
184
185
|
readonly type: {
|
185
186
|
readonly type: import("vue").PropType<import("./interface").PickerTypeType>;
|
186
187
|
readonly default: "date";
|
@@ -301,6 +302,7 @@ declare const BkDatePicker: {
|
|
301
302
|
onClear?: (...args: any[]) => any;
|
302
303
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
303
304
|
"onPick-success"?: (...args: any[]) => any;
|
305
|
+
"onSelection-mode-change"?: (...args: any[]) => any;
|
304
306
|
"onPick-first"?: (...args: any[]) => any;
|
305
307
|
"onOpen-change"?: (...args: any[]) => any;
|
306
308
|
"onShortcut-change"?: (...args: any[]) => any;
|
@@ -466,6 +468,7 @@ declare const BkDatePicker: {
|
|
466
468
|
onClear?: (...args: any[]) => any;
|
467
469
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
468
470
|
"onPick-success"?: (...args: any[]) => any;
|
471
|
+
"onSelection-mode-change"?: (...args: any[]) => any;
|
469
472
|
"onPick-first"?: (...args: any[]) => any;
|
470
473
|
"onOpen-change"?: (...args: any[]) => any;
|
471
474
|
"onShortcut-change"?: (...args: any[]) => any;
|
@@ -675,6 +678,7 @@ declare const BkDatePicker: {
|
|
675
678
|
onClear?: (...args: any[]) => any;
|
676
679
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
677
680
|
"onPick-success"?: (...args: any[]) => any;
|
681
|
+
"onSelection-mode-change"?: (...args: any[]) => any;
|
678
682
|
"onPick-first"?: (...args: any[]) => any;
|
679
683
|
"onOpen-change"?: (...args: any[]) => any;
|
680
684
|
"onShortcut-change"?: (...args: any[]) => any;
|
@@ -733,7 +737,7 @@ declare const BkDatePicker: {
|
|
733
737
|
shortcut: import("vue").Ref<any>;
|
734
738
|
onSelectionModeChange: import("vue").Ref<(_type: any) => import("./interface").SelectionModeType>;
|
735
739
|
tmpValue: import("vue").Ref<any>;
|
736
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "change" | "focus" | "input" | "clear" | "update:modelValue" | "pick-success" | "pick-first" | "open-change" | "shortcut-change")[], "blur" | "change" | "focus" | "input" | "clear" | "update:modelValue" | "pick-success" | "pick-first" | "open-change" | "shortcut-change", {
|
740
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "change" | "focus" | "input" | "clear" | "update:modelValue" | "pick-success" | "selection-mode-change" | "pick-first" | "open-change" | "shortcut-change")[], "blur" | "change" | "focus" | "input" | "clear" | "update:modelValue" | "pick-success" | "selection-mode-change" | "pick-first" | "open-change" | "shortcut-change", {
|
737
741
|
readonly type: import("./interface").PickerTypeType;
|
738
742
|
readonly disabled: boolean;
|
739
743
|
readonly placement: import("@popperjs/core").ComputedPlacement;
|
package/lib/date-picker/index.js
CHANGED
@@ -5035,7 +5035,7 @@ var dateRangePanelProps = {
|
|
5035
5035
|
/* harmony default export */ const date_range = ((0,external_vue_.defineComponent)({
|
5036
5036
|
name: 'DateRangePanel',
|
5037
5037
|
props: dateRangePanelProps,
|
5038
|
-
emits: ['pick', 'pick-success', 'pick-clear', 'pick-click', 'pick-first'],
|
5038
|
+
emits: ['pick', 'pick-success', 'pick-clear', 'pick-click', 'pick-first', 'selection-mode-change'],
|
5039
5039
|
setup: function setup(props, _ref) {
|
5040
5040
|
var slots = _ref.slots,
|
5041
5041
|
emit = _ref.emit;
|
@@ -5330,6 +5330,8 @@ var dateRangePanelProps = {
|
|
5330
5330
|
var leftMonth = state.leftPanelDate.getMonth();
|
5331
5331
|
var rightMonth = state.rightPanelDate.getMonth();
|
5332
5332
|
var isSameYear = state.leftPanelDate.getFullYear() === state.rightPanelDate.getFullYear();
|
5333
|
+
// 抛出选择时间/选择日期面板切换事件
|
5334
|
+
emit('selection-mode-change', v);
|
5333
5335
|
if (v === 'date' && isSameYear && leftMonth === rightMonth) {
|
5334
5336
|
changePanelDate('right', 'Month', 1);
|
5335
5337
|
}
|
@@ -5761,7 +5763,7 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5761
5763
|
clickoutside: src.clickoutside
|
5762
5764
|
},
|
5763
5765
|
props: datePickerProps,
|
5764
|
-
emits: ['open-change', 'input', 'change', 'update:modelValue', 'clear', 'shortcut-change', 'pick-success', 'pick-first', 'blur', 'focus'],
|
5766
|
+
emits: ['open-change', 'input', 'change', 'update:modelValue', 'clear', 'shortcut-change', 'pick-success', 'pick-first', 'blur', 'focus', 'selection-mode-change'],
|
5765
5767
|
// slots: ['header'],
|
5766
5768
|
slots: Object,
|
5767
5769
|
setup: function setup(props, _ref) {
|
@@ -5824,6 +5826,8 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
5824
5826
|
}
|
5825
5827
|
// return ['year', 'month', 'date', 'time'].indexOf(type) > -1 && type;
|
5826
5828
|
state.selectionMode = ['year', 'month', 'date', 'time'].indexOf(type) > -1 && type;
|
5829
|
+
// 抛出选择时间/选择日期面板切换事件,处理不同面板自定义交互
|
5830
|
+
emit('selection-mode-change', _type);
|
5827
5831
|
return state.selectionMode;
|
5828
5832
|
}
|
5829
5833
|
var publicVModelValue = (0,external_vue_.computed)(function () {
|
@@ -200,7 +200,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
200
200
|
upToNowEnable: import("vue").Ref<boolean>;
|
201
201
|
dates: import("vue").Ref<any>;
|
202
202
|
selectedIndex: import("vue").Ref<number>;
|
203
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("pick-clear" | "pick-success" | "pick" | "pick-click" | "pick-first")[], "pick-clear" | "pick-success" | "pick" | "pick-click" | "pick-first", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
203
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("pick-clear" | "pick-success" | "pick" | "pick-click" | "selection-mode-change" | "pick-first")[], "pick-clear" | "pick-success" | "pick" | "pick-click" | "selection-mode-change" | "pick-first", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
204
204
|
readonly modelValue: {
|
205
205
|
readonly type: PropType<DatePickerValueType>;
|
206
206
|
};
|
@@ -267,6 +267,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
267
267
|
"onPick-success"?: (...args: any[]) => any;
|
268
268
|
onPick?: (...args: any[]) => any;
|
269
269
|
"onPick-click"?: (...args: any[]) => any;
|
270
|
+
"onSelection-mode-change"?: (...args: any[]) => any;
|
270
271
|
"onPick-first"?: (...args: any[]) => any;
|
271
272
|
}, {
|
272
273
|
readonly type: PickerTypeType;
|
package/lib/index.js
CHANGED
package/lib/input/index.js
CHANGED
@@ -1890,7 +1890,6 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
1890
1890
|
// 事件句柄生成器
|
1891
1891
|
function eventHandler(eventName) {
|
1892
1892
|
return function (e) {
|
1893
|
-
// console.error('eventNameeventName', eventName);
|
1894
1893
|
props.stopPropagation && e.stopPropagation();
|
1895
1894
|
if (showMaxLimit.value && !props.overMaxLengthLimit) {
|
1896
1895
|
var limit = getValueLimits(e.target.value);
|
@@ -1905,14 +1904,12 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
1905
1904
|
}
|
1906
1905
|
}
|
1907
1906
|
if (eventName === EVENTS.KEYDOWN && (e.code === 'Enter' || e.key === 'Enter' || e.keyCode === 13)) {
|
1908
|
-
// console.error('KEYDOWN Enter', handleNumber(e.target.value, 0), e.target.value);
|
1909
1907
|
ctx.emit(EVENTS.ENTER, isNumberInput.value ? handleNumber(e.target.value, 0) : e.target.value, e);
|
1910
1908
|
}
|
1911
1909
|
if (isCNInput.value && [EVENTS.INPUT, EVENTS.CHANGE, EVENTS.KEYDOWN].some(function (e) {
|
1912
1910
|
return eventName === e;
|
1913
1911
|
})) return;
|
1914
1912
|
if (eventName === EVENTS.INPUT) {
|
1915
|
-
// console.error('INPUT', e.target.value);
|
1916
1913
|
// ctx.emit(EVENTS.UPDATE, isNumberInput.value ? handleNumber(e.target.value, 0) : e.target.value, e);
|
1917
1914
|
ctx.emit(EVENTS.UPDATE, isNumberInput.value ?
|
1918
1915
|
// 这里不直接使用 handleNumber,是因为 handleNumber 里有 min 和 max 的判断
|
@@ -1928,16 +1925,13 @@ var inputEmitEventsType = (_inputEmitEventsType = {}, _defineProperty(_definePro
|
|
1928
1925
|
}
|
1929
1926
|
return (+val).toFixed(precision);
|
1930
1927
|
}() : e.target.value, e);
|
1931
|
-
} else if (eventName === EVENTS.CHANGE && isNumberInput.value
|
1932
|
-
// console.error('CHANGE', handleNumber(e.target.value, 0), e.target.value);
|
1928
|
+
} else if (eventName === EVENTS.CHANGE && isNumberInput.value) {
|
1933
1929
|
var _val = handleNumber(e.target.value, 0);
|
1934
1930
|
ctx.emit(EVENTS.UPDATE, _val, e);
|
1935
1931
|
ctx.emit(eventName, _val, e);
|
1936
1932
|
return;
|
1937
1933
|
}
|
1938
|
-
// console.error('e.target.value', e.target.value);
|
1939
1934
|
ctx.emit(eventName, isNumberInput.value ? handleNumber(e.target.value, 0) : e.target.value, e);
|
1940
|
-
// ctx.emit(eventName, e.target.value, e);
|
1941
1935
|
};
|
1942
1936
|
}
|
1943
1937
|
var _map = [EVENTS.KEYUP, EVENTS.KEYDOWN, EVENTS.KEYPRESS, EVENTS.PASTE, EVENTS.CHANGE, EVENTS.INPUT].map(eventHandler),
|
package/lib/transfer/index.d.ts
CHANGED
@@ -53,11 +53,6 @@ declare const Transfer: {
|
|
53
53
|
} & {
|
54
54
|
default: string;
|
55
55
|
};
|
56
|
-
showOverflowTips: import("vue-types").VueTypeValidableDef<boolean> & {
|
57
|
-
default: boolean;
|
58
|
-
} & {
|
59
|
-
default: boolean;
|
60
|
-
};
|
61
56
|
searchable: import("vue-types").VueTypeValidableDef<boolean> & {
|
62
57
|
default: boolean;
|
63
58
|
} & {
|
@@ -146,11 +141,6 @@ declare const Transfer: {
|
|
146
141
|
} & {
|
147
142
|
default: string;
|
148
143
|
};
|
149
|
-
showOverflowTips: import("vue-types").VueTypeValidableDef<boolean> & {
|
150
|
-
default: boolean;
|
151
|
-
} & {
|
152
|
-
default: boolean;
|
153
|
-
};
|
154
144
|
searchable: import("vue-types").VueTypeValidableDef<boolean> & {
|
155
145
|
default: boolean;
|
156
146
|
} & {
|
@@ -187,7 +177,6 @@ declare const Transfer: {
|
|
187
177
|
sortable: boolean;
|
188
178
|
settingKey: string;
|
189
179
|
sortKey: string;
|
190
|
-
showOverflowTips: boolean;
|
191
180
|
searchable: boolean;
|
192
181
|
sourceList: any[];
|
193
182
|
targetList: any[];
|
@@ -228,11 +217,6 @@ declare const Transfer: {
|
|
228
217
|
} & {
|
229
218
|
default: string;
|
230
219
|
};
|
231
|
-
showOverflowTips: import("vue-types").VueTypeValidableDef<boolean> & {
|
232
|
-
default: boolean;
|
233
|
-
} & {
|
234
|
-
default: boolean;
|
235
|
-
};
|
236
220
|
searchable: import("vue-types").VueTypeValidableDef<boolean> & {
|
237
221
|
default: boolean;
|
238
222
|
} & {
|
@@ -301,7 +285,6 @@ declare const Transfer: {
|
|
301
285
|
sortable: boolean;
|
302
286
|
settingKey: string;
|
303
287
|
sortKey: string;
|
304
|
-
showOverflowTips: boolean;
|
305
288
|
searchable: boolean;
|
306
289
|
sourceList: any[];
|
307
290
|
targetList: any[];
|
@@ -339,11 +322,6 @@ declare const Transfer: {
|
|
339
322
|
} & {
|
340
323
|
default: string;
|
341
324
|
};
|
342
|
-
showOverflowTips: import("vue-types").VueTypeValidableDef<boolean> & {
|
343
|
-
default: boolean;
|
344
|
-
} & {
|
345
|
-
default: boolean;
|
346
|
-
};
|
347
325
|
searchable: import("vue-types").VueTypeValidableDef<boolean> & {
|
348
326
|
default: boolean;
|
349
327
|
} & {
|
@@ -412,7 +390,6 @@ declare const Transfer: {
|
|
412
390
|
sortable: boolean;
|
413
391
|
settingKey: string;
|
414
392
|
sortKey: string;
|
415
|
-
showOverflowTips: boolean;
|
416
393
|
searchable: boolean;
|
417
394
|
sourceList: any[];
|
418
395
|
targetList: any[];
|
package/lib/transfer/index.js
CHANGED
@@ -8,6 +8,7 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ fr
|
|
8
8
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
9
9
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_input_d525237e__ from "../input";
|
10
10
|
import "../input/input.less";
|
11
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_overflow_title_051a85a5__ from "../overflow-title";
|
11
12
|
/******/ // The require scope
|
12
13
|
/******/ var __webpack_require__ = {};
|
13
14
|
/******/
|
@@ -106,6 +107,10 @@ const input_namespaceObject = input_x({ ["default"]: () => __WEBPACK_EXTERNAL_MO
|
|
106
107
|
var input_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
107
108
|
var input_less_y = x => () => x
|
108
109
|
const input_less_namespaceObject = input_less_x({ });
|
110
|
+
;// CONCATENATED MODULE: external "../overflow-title"
|
111
|
+
var overflow_title_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
112
|
+
var overflow_title_y = x => () => x
|
113
|
+
const overflow_title_namespaceObject = overflow_title_x({ ["OverflowTitle"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_overflow_title_051a85a5__.OverflowTitle });
|
109
114
|
;// CONCATENATED MODULE: ../../packages/transfer/src/const.ts
|
110
115
|
/*
|
111
116
|
* Tencent is pleased to support the open source community by making
|
@@ -179,8 +184,6 @@ var transferProps = {
|
|
179
184
|
displayKey: shared_namespaceObject.PropTypes.string.def('value'),
|
180
185
|
// 排序所依据的key(当list为普通数组时可不传,默认按照index值排序)
|
181
186
|
sortKey: shared_namespaceObject.PropTypes.string.def('value'),
|
182
|
-
// 内容超出是否显示tooltip
|
183
|
-
showOverflowTips: shared_namespaceObject.PropTypes.bool.def(false),
|
184
187
|
// 是否开启搜索
|
185
188
|
searchable: shared_namespaceObject.PropTypes.bool.def(false),
|
186
189
|
// 是否开启排序功能
|
@@ -232,6 +235,7 @@ var transferProps = {
|
|
232
235
|
|
233
236
|
|
234
237
|
|
238
|
+
|
235
239
|
// 生成数据
|
236
240
|
function _isSlot(s) {
|
237
241
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
@@ -557,9 +561,14 @@ function useSelectListSearch(selectList, displayCode) {
|
|
557
561
|
'is-disabled': item.disabled
|
558
562
|
}]
|
559
563
|
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
560
|
-
"class": "content-text"
|
561
|
-
|
562
|
-
|
564
|
+
"class": "content-text"
|
565
|
+
}, [(0,external_vue_namespaceObject.createVNode)(overflow_title_namespaceObject.OverflowTitle, {
|
566
|
+
"resizeable": true
|
567
|
+
}, {
|
568
|
+
"default": function _default() {
|
569
|
+
return [item[_this.displayCode]];
|
570
|
+
}
|
571
|
+
})]), !multiple && (0,external_vue_namespaceObject.createVNode)("span", {
|
563
572
|
"class": "icon-wrapper"
|
564
573
|
}, [isLeft ? // <ArrowsRight class={`${this.resolveClassName('icon')} icon-move`} />
|
565
574
|
(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.ArrowsRight, {
|
@@ -587,14 +596,15 @@ function useSelectListSearch(selectList, displayCode) {
|
|
587
596
|
}
|
588
597
|
}, _isSlot(_slot = list.map(function (item) {
|
589
598
|
var _this$$slots$slotName, _this$$slots$slotName2, _this$$slots;
|
590
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
599
|
+
return (0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
600
|
+
"key": item[_this.settingCode],
|
591
601
|
"class": "checkbox-item",
|
592
602
|
"label": item[_this.settingCode]
|
593
603
|
}, {
|
594
604
|
"default": function _default() {
|
595
605
|
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)];
|
596
606
|
}
|
597
|
-
})
|
607
|
+
});
|
598
608
|
})) ? _slot : {
|
599
609
|
"default": function _default() {
|
600
610
|
return [_slot];
|
package/lib/transfer/props.d.ts
CHANGED
@@ -27,11 +27,6 @@ export declare const transferProps: {
|
|
27
27
|
} & {
|
28
28
|
default: string;
|
29
29
|
};
|
30
|
-
showOverflowTips: import("vue-types").VueTypeValidableDef<boolean> & {
|
31
|
-
default: boolean;
|
32
|
-
} & {
|
33
|
-
default: boolean;
|
34
|
-
};
|
35
30
|
searchable: import("vue-types").VueTypeValidableDef<boolean> & {
|
36
31
|
default: boolean;
|
37
32
|
} & {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.bk-transfer {
|
2
2
|
display: flex;
|
3
|
-
justify-content: center;
|
4
3
|
align-items: center;
|
4
|
+
justify-content: center;
|
5
5
|
font-size: 14px;
|
6
6
|
}
|
7
7
|
.bk-transfer .bk-transfer-icon {
|
@@ -14,6 +14,8 @@
|
|
14
14
|
}
|
15
15
|
.bk-transfer .transfer-button-group .transfer-button {
|
16
16
|
display: flex;
|
17
|
+
align-items: center;
|
18
|
+
justify-content: center;
|
17
19
|
width: 24px;
|
18
20
|
height: 24px;
|
19
21
|
color: white;
|
@@ -21,8 +23,6 @@
|
|
21
23
|
background-color: #3a84ff;
|
22
24
|
border: 1px solid #3a84ff;
|
23
25
|
border-radius: 2px;
|
24
|
-
align-items: center;
|
25
|
-
justify-content: center;
|
26
26
|
}
|
27
27
|
.bk-transfer .transfer-button-group .transfer-button:first-child {
|
28
28
|
margin-bottom: 8px;
|
@@ -38,11 +38,11 @@
|
|
38
38
|
}
|
39
39
|
.bk-transfer .source-list,
|
40
40
|
.bk-transfer .target-list {
|
41
|
-
flex: 1;
|
42
41
|
display: flex;
|
42
|
+
flex: 1;
|
43
43
|
flex-direction: column;
|
44
|
-
height: 400px;
|
45
44
|
min-width: 200px;
|
45
|
+
height: 400px;
|
46
46
|
overflow: hidden;
|
47
47
|
background-color: white;
|
48
48
|
border: 1px solid #dcdee5;
|
@@ -86,8 +86,8 @@
|
|
86
86
|
width: calc(100% - 32px);
|
87
87
|
height: 30px;
|
88
88
|
margin: 8px 16px 0;
|
89
|
-
border-bottom: 1px solid #dcdee5;
|
90
89
|
border-width: 0 0 1px 0;
|
90
|
+
border-bottom: 1px solid #dcdee5;
|
91
91
|
border-radius: 0;
|
92
92
|
outline: none;
|
93
93
|
}
|
@@ -107,8 +107,8 @@
|
|
107
107
|
}
|
108
108
|
.bk-transfer .source-list .empty,
|
109
109
|
.bk-transfer .target-list .empty {
|
110
|
-
flex: 1;
|
111
110
|
display: flex;
|
111
|
+
flex: 1;
|
112
112
|
align-items: center;
|
113
113
|
justify-content: center;
|
114
114
|
padding-bottom: 30px;
|
@@ -133,11 +133,12 @@
|
|
133
133
|
.bk-transfer .source-list .content .checkbox-item,
|
134
134
|
.bk-transfer .target-list .content .checkbox-item {
|
135
135
|
display: flex;
|
136
|
+
align-items: center;
|
136
137
|
height: 32px;
|
137
138
|
padding: 0 16px;
|
138
139
|
margin-bottom: 4px;
|
140
|
+
margin-left: 0;
|
139
141
|
cursor: pointer;
|
140
|
-
align-items: center;
|
141
142
|
}
|
142
143
|
.bk-transfer .source-list .content li.custom-item:hover:not(.is-disabled),
|
143
144
|
.bk-transfer .target-list .content li.custom-item:hover:not(.is-disabled),
|
@@ -202,6 +203,23 @@
|
|
202
203
|
color: #c4c6cc;
|
203
204
|
cursor: not-allowed;
|
204
205
|
}
|
206
|
+
.bk-transfer .source-list .content li.custom-item .bk-checkbox-input,
|
207
|
+
.bk-transfer .target-list .content li.custom-item .bk-checkbox-input,
|
208
|
+
.bk-transfer .source-list .content li .item-content .bk-checkbox-input,
|
209
|
+
.bk-transfer .target-list .content li .item-content .bk-checkbox-input,
|
210
|
+
.bk-transfer .source-list .content .checkbox-item .bk-checkbox-input,
|
211
|
+
.bk-transfer .target-list .content .checkbox-item .bk-checkbox-input {
|
212
|
+
flex: none;
|
213
|
+
}
|
214
|
+
.bk-transfer .source-list .content li.custom-item .bk-checkbox-label,
|
215
|
+
.bk-transfer .target-list .content li.custom-item .bk-checkbox-label,
|
216
|
+
.bk-transfer .source-list .content li .item-content .bk-checkbox-label,
|
217
|
+
.bk-transfer .target-list .content li .item-content .bk-checkbox-label,
|
218
|
+
.bk-transfer .source-list .content .checkbox-item .bk-checkbox-label,
|
219
|
+
.bk-transfer .target-list .content .checkbox-item .bk-checkbox-label {
|
220
|
+
flex: 1;
|
221
|
+
overflow: hidden;
|
222
|
+
}
|
205
223
|
.bk-transfer .source-list .content .checkbox-item .item-content,
|
206
224
|
.bk-transfer .target-list .content .checkbox-item .item-content {
|
207
225
|
display: flex;
|
@@ -52,11 +52,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
52
52
|
} & {
|
53
53
|
default: string;
|
54
54
|
};
|
55
|
-
showOverflowTips: import("vue-types").VueTypeValidableDef<boolean> & {
|
56
|
-
default: boolean;
|
57
|
-
} & {
|
58
|
-
default: boolean;
|
59
|
-
};
|
60
55
|
searchable: import("vue-types").VueTypeValidableDef<boolean> & {
|
61
56
|
default: boolean;
|
62
57
|
} & {
|
@@ -142,11 +137,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
142
137
|
} & {
|
143
138
|
default: string;
|
144
139
|
};
|
145
|
-
showOverflowTips: import("vue-types").VueTypeValidableDef<boolean> & {
|
146
|
-
default: boolean;
|
147
|
-
} & {
|
148
|
-
default: boolean;
|
149
|
-
};
|
150
140
|
searchable: import("vue-types").VueTypeValidableDef<boolean> & {
|
151
141
|
default: boolean;
|
152
142
|
} & {
|
@@ -183,7 +173,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
183
173
|
sortable: boolean;
|
184
174
|
settingKey: string;
|
185
175
|
sortKey: string;
|
186
|
-
showOverflowTips: boolean;
|
187
176
|
searchable: boolean;
|
188
177
|
sourceList: any[];
|
189
178
|
targetList: any[];
|
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
.@{bk-prefix}-transfer {
|
6
6
|
display: flex;
|
7
|
-
justify-content: center;
|
8
7
|
align-items: center;
|
8
|
+
justify-content: center;
|
9
9
|
font-size: 14px;
|
10
10
|
|
11
11
|
.@{bk-prefix}-transfer-icon {
|
@@ -19,6 +19,8 @@
|
|
19
19
|
|
20
20
|
.transfer-button {
|
21
21
|
display: flex;
|
22
|
+
align-items: center;
|
23
|
+
justify-content: center;
|
22
24
|
width: 24px;
|
23
25
|
height: 24px;
|
24
26
|
color: @white-color;
|
@@ -26,8 +28,6 @@
|
|
26
28
|
background-color: @primary-color;
|
27
29
|
border: 1px solid @primary-color;
|
28
30
|
border-radius: 2px;
|
29
|
-
align-items: center;
|
30
|
-
justify-content: center;
|
31
31
|
|
32
32
|
&:first-child {
|
33
33
|
margin-bottom: 8px;
|
@@ -48,11 +48,11 @@
|
|
48
48
|
|
49
49
|
.source-list,
|
50
50
|
.target-list {
|
51
|
-
flex: 1;
|
52
51
|
display: flex;
|
52
|
+
flex: 1;
|
53
53
|
flex-direction: column;
|
54
|
-
height: 400px;
|
55
54
|
min-width: 200px;
|
55
|
+
height: 400px;
|
56
56
|
overflow: hidden;
|
57
57
|
background-color: @white-color;
|
58
58
|
border: 1px solid @disable-color;
|
@@ -94,8 +94,8 @@
|
|
94
94
|
width: calc(100% - 32px);
|
95
95
|
height: 30px;
|
96
96
|
margin: 8px 16px 0;
|
97
|
-
border-bottom: 1px solid @disable-color;
|
98
97
|
border-width: 0 0 1px 0;
|
98
|
+
border-bottom: 1px solid @disable-color;
|
99
99
|
border-radius: 0;
|
100
100
|
outline: none;
|
101
101
|
|
@@ -115,8 +115,8 @@
|
|
115
115
|
}
|
116
116
|
|
117
117
|
.empty {
|
118
|
-
flex: 1;
|
119
118
|
display: flex;
|
119
|
+
flex: 1;
|
120
120
|
align-items: center;
|
121
121
|
justify-content: center;
|
122
122
|
padding-bottom: 30px;
|
@@ -138,11 +138,12 @@
|
|
138
138
|
li .item-content,
|
139
139
|
.checkbox-item {
|
140
140
|
display: flex;
|
141
|
+
align-items: center;
|
141
142
|
height: 32px;
|
142
143
|
padding: 0 16px;
|
143
144
|
margin-bottom: 4px;
|
145
|
+
margin-left: 0;
|
144
146
|
cursor: pointer;
|
145
|
-
align-items: center;
|
146
147
|
|
147
148
|
&:hover:not(.is-disabled) {
|
148
149
|
color: @primary-color;
|
@@ -178,6 +179,15 @@
|
|
178
179
|
color: @light-gray;
|
179
180
|
cursor: not-allowed;
|
180
181
|
}
|
182
|
+
|
183
|
+
.bk-checkbox-input {
|
184
|
+
flex: none;
|
185
|
+
}
|
186
|
+
|
187
|
+
.bk-checkbox-label {
|
188
|
+
flex: 1;
|
189
|
+
overflow: hidden;
|
190
|
+
}
|
181
191
|
}
|
182
192
|
|
183
193
|
.checkbox-item {
|