bkui-vue 2.0.2-beta.41 → 2.0.2-beta.43
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 +40 -40
- package/dist/index.esm.js +2852 -2837
- package/dist/index.umd.js +25 -25
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +1 -0
- package/lib/alert/alert.variable.css +1 -0
- package/lib/backtop/backtop.variable.css +1 -0
- package/lib/badge/badge.variable.css +1 -0
- package/lib/breadcrumb/breadcrumb.variable.css +1 -0
- package/lib/button/button.variable.css +1 -0
- package/lib/card/card.variable.css +1 -0
- package/lib/cascader/cascader.variable.css +1 -0
- package/lib/checkbox/checkbox.variable.css +1 -0
- package/lib/code-diff/code-diff.variable.css +1 -0
- package/lib/collapse/collapse.variable.css +1 -0
- package/lib/collapse-transition/collapse-transition.variable.css +1 -0
- package/lib/color-picker/color-picker.variable.css +1 -0
- package/lib/config-provider/config-provider.variable.css +1 -0
- package/lib/container/container.variable.css +1 -0
- package/lib/date-picker/date-picker.variable.css +1 -0
- package/lib/dialog/dialog.css +20 -1
- package/lib/dialog/dialog.variable.css +21 -1
- package/lib/divider/divider.variable.css +1 -0
- package/lib/dropdown/dropdown.variable.css +1 -0
- package/lib/exception/exception.variable.css +1 -0
- package/lib/fixed-navbar/fixed-navbar.variable.css +1 -0
- package/lib/form/form.variable.css +1 -0
- package/lib/image/image-viewer.variable.css +1 -0
- package/lib/image/image.variable.css +1 -0
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +19 -4
- package/lib/info-box/info-box.css +20 -1
- package/lib/info-box/info-box.d.ts +1 -0
- package/lib/info-box/info-box.less +28 -2
- package/lib/info-box/info-box.variable.css +22 -2
- package/lib/input/input.variable.css +1 -0
- package/lib/link/link.variable.css +1 -0
- package/lib/loading/loading.variable.css +1 -0
- package/lib/menu/menu.variable.css +1 -0
- package/lib/menu/submenu.variable.css +1 -0
- package/lib/message/message.variable.css +1 -0
- package/lib/modal/modal.css +20 -1
- package/lib/modal/modal.variable.css +21 -1
- package/lib/navigation/navigation.variable.css +1 -0
- package/lib/notify/notify.variable.css +1 -0
- package/lib/pagination/pagination.variable.css +1 -0
- package/lib/pop-confirm/pop-confirm.variable.css +1 -0
- package/lib/popover/popover.variable.css +1 -0
- package/lib/process/process.variable.css +1 -0
- package/lib/progress/progress.variable.css +1 -0
- package/lib/radio/radio.variable.css +1 -0
- package/lib/rate/rate.variable.css +1 -0
- package/lib/resize-layout/resize-layout.variable.css +1 -0
- package/lib/scrollbar/css/scrollbar.variable.css +1 -0
- package/lib/search-select/search-select.variable.css +1 -0
- package/lib/select/index.d.ts +3 -3
- package/lib/select/index.js +9 -8
- package/lib/select/select.d.ts +1 -1
- package/lib/select/select.variable.css +1 -0
- package/lib/sideslider/sideslider.variable.css +1 -0
- package/lib/slider/slider.variable.css +1 -0
- package/lib/steps/steps.variable.css +1 -0
- package/lib/styles/mixins/animate.variable.css +1 -0
- package/lib/styles/mixins/popper.variable.css +1 -0
- package/lib/styles/mixins/scroll.variable.css +1 -0
- package/lib/styles/reset.variable.css +1 -0
- package/lib/styles/themes/themes.less +3 -0
- package/lib/swiper/swiper.variable.css +1 -0
- package/lib/switcher/switcher.variable.css +1 -0
- package/lib/tab/tab.variable.css +1 -0
- package/lib/table/plugins/head-filter.variable.css +1 -0
- package/lib/table/plugins/head-sort.variable.css +1 -0
- package/lib/table/plugins/settings.variable.css +1 -0
- package/lib/table/table.variable.css +1 -0
- package/lib/tag/tag.variable.css +1 -0
- package/lib/tag-input/tag-input.variable.css +1 -0
- package/lib/time-picker/time-picker.variable.css +1 -0
- package/lib/timeline/timeline.variable.css +1 -0
- package/lib/transfer/transfer.variable.css +1 -0
- package/lib/tree/tree.variable.css +1 -0
- package/lib/upload/upload.variable.css +1 -0
- package/lib/virtual-render/virtual-render.variable.css +1 -0
- package/package.json +1 -1
package/lib/select/index.d.ts
CHANGED
@@ -388,7 +388,7 @@ declare const BkSelect: {
|
|
388
388
|
inputRef: import("vue").Ref<HTMLElement>;
|
389
389
|
triggerRef: import("vue").Ref<HTMLElement>;
|
390
390
|
contentRef: import("vue").Ref<HTMLElement>;
|
391
|
-
searchRef: import("vue").Ref<
|
391
|
+
searchRef: import("vue").Ref<HTMLInputElement>;
|
392
392
|
scrollContainerRef: import("vue").Ref<HTMLElement>;
|
393
393
|
selectTagInputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
394
394
|
selected: {
|
@@ -1572,7 +1572,7 @@ declare const BkSelect: {
|
|
1572
1572
|
inputRef: import("vue").Ref<HTMLElement>;
|
1573
1573
|
triggerRef: import("vue").Ref<HTMLElement>;
|
1574
1574
|
contentRef: import("vue").Ref<HTMLElement>;
|
1575
|
-
searchRef: import("vue").Ref<
|
1575
|
+
searchRef: import("vue").Ref<HTMLInputElement>;
|
1576
1576
|
scrollContainerRef: import("vue").Ref<HTMLElement>;
|
1577
1577
|
selectTagInputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
1578
1578
|
selected: {
|
@@ -2391,7 +2391,7 @@ declare const BkSelect: {
|
|
2391
2391
|
inputRef: import("vue").Ref<HTMLElement>;
|
2392
2392
|
triggerRef: import("vue").Ref<HTMLElement>;
|
2393
2393
|
contentRef: import("vue").Ref<HTMLElement>;
|
2394
|
-
searchRef: import("vue").Ref<
|
2394
|
+
searchRef: import("vue").Ref<HTMLInputElement>;
|
2395
2395
|
scrollContainerRef: import("vue").Ref<HTMLElement>;
|
2396
2396
|
selectTagInputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
2397
2397
|
selected: {
|
package/lib/select/index.js
CHANGED
@@ -4292,6 +4292,10 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
4292
4292
|
emit('change', val, modelValue.value);
|
4293
4293
|
// 重置Selected 以model-value为主
|
4294
4294
|
handleSetSelectedData();
|
4295
|
+
if (multiple.value) {
|
4296
|
+
// 多选时enter之后变成tag不需要保存当前值
|
4297
|
+
customOptionName.value = '';
|
4298
|
+
}
|
4295
4299
|
};
|
4296
4300
|
// 派发toggle事件
|
4297
4301
|
var handleTogglePopover = function handleTogglePopover() {
|
@@ -4317,7 +4321,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
4317
4321
|
if (filterable.value && matchedOption) {
|
4318
4322
|
// 开启搜索后,正好匹配到自定义选项,则不进行创建操作
|
4319
4323
|
handleOptionSelected(matchedOption);
|
4320
|
-
customOptionName.value = '';
|
4321
4324
|
return;
|
4322
4325
|
}
|
4323
4326
|
var data = optionsMap.value.get(value);
|
@@ -4338,7 +4341,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
4338
4341
|
emitChange(value);
|
4339
4342
|
handleHidePopover();
|
4340
4343
|
}
|
4341
|
-
customOptionName.value = '';
|
4342
4344
|
};
|
4343
4345
|
// Option点击事件
|
4344
4346
|
var handleOptionSelected = function handleOptionSelected(option) {
|
@@ -4379,9 +4381,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
4379
4381
|
label: option.optionName || option.optionID,
|
4380
4382
|
value: option.optionID
|
4381
4383
|
}];
|
4382
|
-
if (filterable.value && allowCreate.value) {
|
4383
|
-
customOptionName.value = '';
|
4384
|
-
}
|
4385
4384
|
emitChange(option.optionID);
|
4386
4385
|
emit('select', option.optionID);
|
4387
4386
|
handleHidePopover();
|
@@ -4429,6 +4428,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
4429
4428
|
var handleClear = function handleClear(e) {
|
4430
4429
|
e.stopPropagation();
|
4431
4430
|
selected.value = [];
|
4431
|
+
customOptionName.value = '';
|
4432
4432
|
clearMultipleInputValue();
|
4433
4433
|
emitChange(multiple.value ? [] : '');
|
4434
4434
|
emit('clear', multiple.value ? [] : '');
|
@@ -4605,9 +4605,10 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
4605
4605
|
case 'NumpadEnter':
|
4606
4606
|
case 'Enter':
|
4607
4607
|
{
|
4608
|
+
var _searchRef$value2;
|
4608
4609
|
var value = e.target.value;
|
4609
4610
|
// 搜索和创建的时候不触发enter事件
|
4610
|
-
if (allowCreate.value && value || e.target === searchRef.value) return;
|
4611
|
+
if (allowCreate.value && value || e.target === searchRef.value && (_searchRef$value2 = searchRef.value) !== null && _searchRef$value2 !== void 0 && _searchRef$value2.value) return;
|
4611
4612
|
var option = optionsMap.value.get(activeOptionValue.value);
|
4612
4613
|
handleOptionSelected(option);
|
4613
4614
|
break;
|
@@ -4730,7 +4731,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
4730
4731
|
"theme": "primary"
|
4731
4732
|
}, null);
|
4732
4733
|
}
|
4733
|
-
if (_this.clearable && _this.isHover && _this.selected.length && !_this.isDisabled) {
|
4734
|
+
if (_this.clearable && _this.isHover && _this.selected.length && !_this.isDisabled || _this.allowCreate && _this.isHover && _this.customOptionName && !_this.isDisabled) {
|
4734
4735
|
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, {
|
4735
4736
|
"class": "clear-icon",
|
4736
4737
|
"onClick": _this.handleClear
|
@@ -4832,7 +4833,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
4832
4833
|
"ref": "inputRef",
|
4833
4834
|
"behavior": _this.behavior,
|
4834
4835
|
"disabled": _this.isDisabled,
|
4835
|
-
"modelValue": _this.isInput ? _this.customOptionName : _this.selectedLabel.join(','),
|
4836
|
+
"modelValue": _this.isInput && _this.customOptionName ? _this.customOptionName : _this.selectedLabel.join(','),
|
4836
4837
|
"placeholder": _this.isInput ? _this.selectedLabel.join(',') || _this.localPlaceholder : _this.localPlaceholder,
|
4837
4838
|
"readonly": !_this.isInput,
|
4838
4839
|
"selectReadonly": true,
|
package/lib/select/select.d.ts
CHANGED
@@ -375,7 +375,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
375
375
|
inputRef: import("vue").Ref<HTMLElement>;
|
376
376
|
triggerRef: import("vue").Ref<HTMLElement>;
|
377
377
|
contentRef: import("vue").Ref<HTMLElement>;
|
378
|
-
searchRef: import("vue").Ref<
|
378
|
+
searchRef: import("vue").Ref<HTMLInputElement>;
|
379
379
|
scrollContainerRef: import("vue").Ref<HTMLElement>;
|
380
380
|
selectTagInputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
381
381
|
selected: {
|
package/lib/tab/tab.variable.css
CHANGED
package/lib/tag/tag.variable.css
CHANGED