bkui-vue 2.0.1-beta.6 → 2.0.1-beta.60.fix.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +166 -166
- package/dist/index.esm.js +32099 -32092
- package/dist/index.umd.js +166 -166
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/index.js +7 -7
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/index.d.ts +11 -11
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/index.d.ts +3 -3
- package/lib/backtop/index.js +6 -6
- package/lib/badge/index.js +1 -1
- package/lib/button/button.d.ts +7 -7
- package/lib/button/index.d.ts +8 -8
- package/lib/button/index.js +6 -7
- package/lib/cascader/cascader-panel.d.ts +1 -1
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/cascader.less +1 -1
- package/lib/cascader/index.js +32 -32
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox.d.ts +7 -7
- package/lib/checkbox/index.d.ts +11 -11
- package/lib/checkbox/index.js +12 -4
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/index.js +8 -8
- package/lib/collapse/index.js +2 -2
- package/lib/collapse/utils.d.ts +2 -2
- package/lib/color-picker/index.js +44 -44
- package/lib/components.d.ts +32 -32
- package/lib/components.js +31 -31
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/container/index.js +6 -7
- package/lib/date-picker/base/date-table.d.ts +1 -1
- package/lib/date-picker/base/month-table.d.ts +1 -1
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/year-table.d.ts +1 -1
- package/lib/date-picker/date-picker.d.ts +0 -1
- package/lib/date-picker/index.d.ts +0 -3
- package/lib/date-picker/index.js +246 -220
- package/lib/date-picker/interface.d.ts +9 -9
- package/lib/date-picker/panel/date-range.d.ts +5 -5
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +1 -1
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/props.d.ts +1 -1
- package/lib/date-picker/utils.d.ts +1 -1
- package/lib/dialog/dialog.d.ts +25 -20
- package/lib/dialog/index.d.ts +55 -44
- package/lib/dialog/index.js +22 -22
- package/lib/dialog/props.d.ts +10 -8
- package/lib/directives/index.d.ts +3 -3
- package/lib/directives/index.js +166 -166
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +2 -4
- package/lib/divider/divider.d.ts +5 -5
- package/lib/divider/index.d.ts +11 -11
- package/lib/divider/index.js +2 -2
- package/lib/divider/props.d.ts +2 -2
- package/lib/dropdown/dropdown.d.ts +5 -5
- package/lib/dropdown/index.d.ts +11 -11
- package/lib/dropdown/index.js +7 -7
- package/lib/exception/exception.d.ts +9 -9
- package/lib/exception/index.d.ts +11 -11
- package/lib/exception/index.js +10 -10
- package/lib/exception/typings/index.d.ts +1 -1
- package/lib/fixed-navbar/index.js +2 -2
- package/lib/form/form.d.ts +2 -2
- package/lib/form/index.js +14 -15
- package/lib/form/type.d.ts +2 -2
- package/lib/icon/index.d.ts +11 -11
- package/lib/icon/index.js +11 -11
- package/lib/image/image-viewer.d.ts +1 -1
- package/lib/image/index.js +20 -21
- package/lib/index.d.ts +9 -3
- package/lib/index.js +5 -29
- package/lib/info-box/index.js +13 -13
- package/lib/info-box/info-box.d.ts +15 -15
- package/lib/input/index.d.ts +15 -15
- package/lib/input/index.js +16 -17
- package/lib/input/input.d.ts +15 -15
- package/lib/link/index.d.ts +11 -11
- package/lib/link/index.js +3 -3
- package/lib/link/link.d.ts +5 -5
- package/lib/loading/index.d.ts +4 -4
- package/lib/loading/index.js +6 -6
- package/lib/loading/loading.d.ts +6 -6
- package/lib/locale/index.d.ts +1 -1
- package/lib/menu/index.js +0 -1
- package/lib/menu/utils.d.ts +3 -3
- package/lib/message/index.js +18 -18
- package/lib/message/messageConstructor.d.ts +11 -11
- package/lib/modal/index.d.ts +21 -8
- package/lib/modal/index.js +14 -8
- package/lib/modal/modal.d.ts +8 -3
- package/lib/modal/props.mixin.d.ts +3 -1
- package/lib/navigation/index.js +20 -20
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/notify/index.js +4 -4
- package/lib/overflow-title/components/overflow-title.d.ts +9 -9
- package/lib/overflow-title/index.d.ts +19 -19
- package/lib/overflow-title/index.js +61 -11
- package/lib/overflow-title/props.d.ts +18 -18
- package/lib/pagination/index.js +16 -16
- package/lib/pagination/type.d.ts +1 -1
- package/lib/pagination/use-limit.d.ts +1 -1
- package/lib/pagination/use-total.d.ts +1 -1
- package/lib/plugin-popover/index.js +18 -20
- package/lib/pop-confirm/index.d.ts +11 -11
- package/lib/pop-confirm/index.js +11 -10
- package/lib/pop-confirm/pop-confirm.d.ts +5 -5
- package/lib/pop-confirm/props.d.ts +4 -4
- package/lib/popover/const.d.ts +3 -3
- package/lib/popover/index.d.ts +19 -19
- package/lib/popover/index.js +18 -20
- package/lib/popover/plugin-popover.d.ts +1 -1
- package/lib/popover/popover.d.ts +7 -7
- package/lib/popover/props.d.ts +4 -4
- package/lib/preset.d.ts +0 -1
- package/lib/preset.js +0 -1
- package/lib/process/index.js +3 -3
- package/lib/progress/index.d.ts +11 -11
- package/lib/progress/index.js +10 -11
- package/lib/progress/progress.d.ts +7 -7
- package/lib/radio/index.d.ts +21 -21
- package/lib/radio/index.js +28 -17
- package/lib/radio/radio-button.d.ts +7 -7
- package/lib/radio/radio-group.d.ts +7 -7
- package/lib/radio/radio.d.ts +7 -7
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.js +8 -8
- package/lib/rate/rate.css +27 -0
- package/lib/rate/rate.less +33 -0
- package/lib/rate/rate.variable.css +27 -0
- package/lib/resize-layout/index.d.ts +34 -11
- package/lib/resize-layout/index.js +29 -14
- package/lib/resize-layout/resize-layout.d.ts +16 -5
- package/lib/scrollbar/index.js +0 -1
- package/lib/scrollbar/scrollbar-core/index.d.ts +9 -9
- package/lib/search-select/index.js +66 -66
- package/lib/search-select/menu.d.ts +1 -1
- package/lib/search-select/selected.d.ts +1 -1
- package/lib/search-select/utils.d.ts +3 -3
- package/lib/select/common.d.ts +4 -4
- package/lib/select/index.d.ts +88 -70
- package/lib/select/index.js +134 -125
- package/lib/select/option.d.ts +1 -1
- package/lib/select/select.d.ts +35 -27
- package/lib/select/selectTagInput.d.ts +6 -6
- package/lib/select/type.d.ts +2 -2
- package/lib/shared/index.d.ts +1 -1
- package/lib/shared/index.js +38 -46
- package/lib/shared/popover.d.ts +3 -3
- package/lib/shared/token.d.ts +1 -1
- package/lib/shared/vue-types.d.ts +46 -46
- package/lib/shared/z-index-manager.d.ts +6 -6
- package/lib/sideslider/index.d.ts +18 -7
- package/lib/sideslider/index.js +11 -11
- package/lib/sideslider/sideslider.d.ts +8 -3
- package/lib/slider/index.js +21 -23
- package/lib/steps/index.d.ts +11 -11
- package/lib/steps/index.js +3 -3
- package/lib/steps/steps.d.ts +7 -7
- package/lib/styles/index.d.ts +0 -1
- package/lib/swiper/index.js +5 -5
- package/lib/switcher/index.js +2 -2
- package/lib/switcher/switcher.d.ts +2 -2
- package/lib/tab/index.d.ts +22 -22
- package/lib/tab/index.js +15 -15
- package/lib/tab/props.d.ts +15 -15
- package/lib/tab/tab-nav.d.ts +10 -10
- package/lib/tab/tab.d.ts +10 -10
- package/lib/table/components/table-column.d.ts +27 -87
- package/lib/table/const.d.ts +8 -8
- package/lib/table/events.d.ts +21 -21
- package/lib/table/index.d.ts +194 -244
- package/lib/table/index.js +126 -130
- package/lib/table/props.d.ts +33 -33
- package/lib/table/table.css +3 -4
- package/lib/table/table.d.ts +47 -47
- package/lib/table/table.less +4 -12
- package/lib/table/table.variable.css +3 -4
- package/lib/table/use-attributes.d.ts +3 -3
- package/lib/table/use-column.d.ts +9 -129
- package/lib/table/use-common.d.ts +4 -4
- package/lib/table/utils.d.ts +5 -5
- package/lib/table-column/index.d.ts +42 -172
- package/lib/table-column/index.js +18 -18
- package/lib/tag/index.d.ts +11 -11
- package/lib/tag/index.js +2 -2
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag-input/common.d.ts +1 -1
- package/lib/tag-input/index.d.ts +8 -8
- package/lib/tag-input/index.js +30 -30
- package/lib/tag-input/tag-input.d.ts +4 -4
- package/lib/tag-input/tag-props.d.ts +2 -2
- package/lib/timeline/index.js +2 -2
- package/lib/transfer/const.d.ts +2 -2
- package/lib/transfer/index.js +3 -5
- package/lib/tree/constant.d.ts +20 -20
- package/lib/tree/index.d.ts +20 -20
- package/lib/tree/index.js +48 -40
- package/lib/tree/props.d.ts +6 -6
- package/lib/tree/tree.d.ts +8 -14
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-node-action.d.ts +2 -2
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/upload/index.js +25 -26
- package/lib/upload/props.d.ts +1 -1
- package/lib/upload/upload.type.d.ts +6 -6
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/lib/virtual-render/index.js +2 -3
- package/package.json +17 -55
- package/lib/rate/star.css +0 -27
- package/lib/rate/star.less +0 -34
- package/lib/rate/star.variable.css +0 -156
@@ -481,6 +481,18 @@ function _defineProperty(obj, key, value) {
|
|
481
481
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
482
482
|
var external_vue_y = x => () => x
|
483
483
|
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["shallowRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.shallowRef, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
484
|
+
;// CONCATENATED MODULE: external "../config-provider"
|
485
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
486
|
+
var config_provider_y = x => () => x
|
487
|
+
const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
488
|
+
;// CONCATENATED MODULE: external "../directives"
|
489
|
+
var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
490
|
+
var directives_y = x => () => x
|
491
|
+
const directives_namespaceObject = directives_x({ ["clickoutside"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.clickoutside });
|
492
|
+
;// CONCATENATED MODULE: external "../icon"
|
493
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
494
|
+
var icon_y = x => () => x
|
495
|
+
const icon_namespaceObject = icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error, ["ExclamationCircleShape"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.ExclamationCircleShape, ["Search"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Search });
|
484
496
|
;// CONCATENATED MODULE: ../../node_modules/resize-detector/esm/index.js
|
485
497
|
var raf = null;
|
486
498
|
function requestAnimationFrame (callback) {
|
@@ -797,18 +809,6 @@ function resetTriggers (elem) {
|
|
797
809
|
|
798
810
|
|
799
811
|
|
800
|
-
;// CONCATENATED MODULE: external "../config-provider"
|
801
|
-
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
802
|
-
var config_provider_y = x => () => x
|
803
|
-
const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
804
|
-
;// CONCATENATED MODULE: external "../directives"
|
805
|
-
var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
806
|
-
var directives_y = x => () => x
|
807
|
-
const directives_namespaceObject = directives_x({ ["clickoutside"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.clickoutside });
|
808
|
-
;// CONCATENATED MODULE: external "../icon"
|
809
|
-
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
810
|
-
var icon_y = x => () => x
|
811
|
-
const icon_namespaceObject = icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error, ["ExclamationCircleShape"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.ExclamationCircleShape, ["Search"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Search });
|
812
812
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
813
813
|
function _arrayWithHoles(arr) {
|
814
814
|
if (Array.isArray(arr)) return arr;
|
@@ -1409,9 +1409,9 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
1409
1409
|
"class": "menu-content"
|
1410
1410
|
}, [(_this$list = this.list) === null || _this$list === void 0 ? void 0 : _this$list.map(function (item) {
|
1411
1411
|
return (0,external_vue_namespaceObject.createVNode)("li", {
|
1412
|
-
"class": "menu-item ".concat(item.disabled ? 'is-disabled' : '', " ").concat(_this.hoverId === item.id && !item.disabled ? 'is-hover' : ''),
|
1413
|
-
"key": item.id,
|
1414
1412
|
"id": item.id,
|
1413
|
+
"key": item.id,
|
1414
|
+
"class": "menu-item ".concat(item.disabled ? 'is-disabled' : '', " ").concat(_this.hoverId === item.id && !item.disabled ? 'is-hover' : ''),
|
1415
1415
|
"tabindex": "-1",
|
1416
1416
|
"onClick": function onClick() {
|
1417
1417
|
return !item.disabled && _this.handleClick(item);
|
@@ -1421,8 +1421,8 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
1421
1421
|
return _this.handleSelectedChange(e, item);
|
1422
1422
|
}
|
1423
1423
|
}, [(0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
1424
|
-
"
|
1425
|
-
"
|
1424
|
+
"class": "is-selected",
|
1425
|
+
"modelValue": _this.selected.includes(item.id)
|
1426
1426
|
}, null)]), _this.getSearchNode(item)])]);
|
1427
1427
|
})]);
|
1428
1428
|
var getListMenu = function getListMenu() {
|
@@ -1434,17 +1434,17 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
1434
1434
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
1435
1435
|
"class": "menu-condition-title"
|
1436
1436
|
}, [_this.t.logical]), (0,external_vue_namespaceObject.createVNode)(radio_namespaceObject["default"], {
|
1437
|
+
"label": "|",
|
1437
1438
|
"modelValue": _this.logical,
|
1438
|
-
"onChange": _this.handleLogicalChange
|
1439
|
-
"label": "|"
|
1439
|
+
"onChange": _this.handleLogicalChange
|
1440
1440
|
}, {
|
1441
1441
|
"default": function _default() {
|
1442
1442
|
return [_this.t.or, (0,external_vue_namespaceObject.createTextVNode)(" |")];
|
1443
1443
|
}
|
1444
1444
|
}), (0,external_vue_namespaceObject.createVNode)(radio_namespaceObject["default"], {
|
1445
|
+
"label": "&",
|
1445
1446
|
"modelValue": _this.logical,
|
1446
|
-
"onChange": _this.handleLogicalChange
|
1447
|
-
"label": "&"
|
1447
|
+
"onChange": _this.handleLogicalChange
|
1448
1448
|
}, {
|
1449
1449
|
"default": function _default() {
|
1450
1450
|
return [_this.t.and, (0,external_vue_namespaceObject.createTextVNode)(" &")];
|
@@ -2397,32 +2397,32 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2397
2397
|
"data-placeholder": !inputInnerHtml && !_this.keyword ? _this.placeholder : '',
|
2398
2398
|
"data-tips": placeholder || '',
|
2399
2399
|
"spellcheck": "false",
|
2400
|
-
"onPaste": _this.handleInputPaste,
|
2401
2400
|
"onFocus": _this.handleInputFocus,
|
2402
2401
|
"onInput": _this.handleInputChange,
|
2403
|
-
"onKeydown": _this.handleInputKeyup
|
2402
|
+
"onKeydown": _this.handleInputKeyup,
|
2403
|
+
"onPaste": _this.handleInputPaste
|
2404
2404
|
}, [((_this$usingItem = _this.usingItem) === null || _this$usingItem === void 0 ? void 0 : _this$usingItem.name) && (!_this.usingItem.isSpecialType() ? (0,external_vue_namespaceObject.createVNode)("span", {
|
2405
|
+
"key": _this.usingItem.nameRenderkey,
|
2406
|
+
"style": {
|
2407
|
+
color: '#979BA5'
|
2408
|
+
},
|
2409
|
+
"contenteditable": false,
|
2405
2410
|
"data-key": _this.usingItem.name,
|
2406
2411
|
"data-type": _this.usingItem.type,
|
2407
|
-
"key": _this.usingItem.nameRenderkey,
|
2408
2412
|
"onMousedown": function onMousedown(e) {
|
2409
2413
|
return e.preventDefault();
|
2410
|
-
},
|
2411
|
-
"contenteditable": false,
|
2412
|
-
"style": {
|
2413
|
-
color: '#979BA5'
|
2414
2414
|
}
|
2415
2415
|
}, [_this.usingItem.name, (0,external_vue_namespaceObject.createTextVNode)(":\xA0")]) : (0,external_vue_namespaceObject.createVNode)("span", {
|
2416
|
+
"key": _this.usingItem.nameRenderkey,
|
2416
2417
|
"data-key": _this.usingItem.name,
|
2417
|
-
"data-type": _this.usingItem.type
|
2418
|
-
"key": _this.usingItem.nameRenderkey
|
2418
|
+
"data-type": _this.usingItem.type
|
2419
2419
|
}, [_this.usingItem.name])), (_this$usingItem2 = _this.usingItem) === null || _this$usingItem2 === void 0 || (_this$usingItem2 = _this$usingItem2.values) === null || _this$usingItem2 === void 0 ? void 0 : _this$usingItem2.map(function (item, index) {
|
2420
2420
|
return (0,external_vue_namespaceObject.createVNode)("span", {
|
2421
2421
|
"key": index,
|
2422
|
-
"data-key": item.name,
|
2423
|
-
"data-type": "value",
|
2424
2422
|
"data-id": item.id,
|
2425
|
-
"data-index": index
|
2423
|
+
"data-index": index,
|
2424
|
+
"data-key": item.name,
|
2425
|
+
"data-type": "value"
|
2426
2426
|
}, [item.name, index < _this.usingItem.values.length - 1 ? " ".concat(_this.usingItem.logical, " ") : '']);
|
2427
2427
|
})]), [[(0,external_vue_namespaceObject.resolveDirective)("clickoutside"), _this.handleClickOutside]]);
|
2428
2428
|
};
|
@@ -2450,29 +2450,29 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2450
2450
|
"ref": "popoverRef",
|
2451
2451
|
"class": _this.resolveClassName('search-select-popover')
|
2452
2452
|
}, [(0,external_vue_namespaceObject.createVNode)(menu, {
|
2453
|
-
"
|
2453
|
+
"conditions": showCondition ? _this.conditions : [],
|
2454
|
+
"hoverId": _this.menuHoverId,
|
2454
2455
|
"keyword": _this.keyword,
|
2456
|
+
"list": _this.menuList,
|
2457
|
+
"logical": (_this$usingItem4 = _this.usingItem) === null || _this$usingItem4 === void 0 ? void 0 : _this$usingItem4.logical,
|
2455
2458
|
"multiple": !!multiple,
|
2456
|
-
"hoverId": _this.menuHoverId,
|
2457
2459
|
"selected": (values === null || values === void 0 ? void 0 : values.map(function (item) {
|
2458
2460
|
return item.id;
|
2459
2461
|
})) || [],
|
2460
|
-
"conditions": showCondition ? _this.conditions : [],
|
2461
|
-
"logical": (_this$usingItem4 = _this.usingItem) === null || _this$usingItem4 === void 0 ? void 0 : _this$usingItem4.logical,
|
2462
2462
|
"showLogical": (_this$usingItem5 = _this.usingItem) === null || _this$usingItem5 === void 0 ? void 0 : _this$usingItem5.showLogical,
|
2463
|
-
"
|
2464
|
-
"onSelectItem": _this.handleSelectItem,
|
2463
|
+
"onFooterClick": _this.handleMenuFooterClick,
|
2465
2464
|
"onSelectCondition": _this.handleSelectCondtionItem,
|
2466
|
-
"
|
2465
|
+
"onSelectItem": _this.handleSelectItem,
|
2466
|
+
"onUpdate:logical": _this.handleLogicalChange
|
2467
2467
|
}, null)]) : undefined;
|
2468
2468
|
};
|
2469
2469
|
return (0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], {
|
2470
|
-
"trigger": "manual",
|
2471
|
-
"theme": "light",
|
2472
|
-
"placement": "bottom-start",
|
2473
2470
|
"arrow": false,
|
2474
2471
|
"disableOutsideClick": true,
|
2475
|
-
"isShow": showPopover
|
2472
|
+
"isShow": showPopover,
|
2473
|
+
"placement": "bottom-start",
|
2474
|
+
"theme": "light",
|
2475
|
+
"trigger": "manual"
|
2476
2476
|
}, {
|
2477
2477
|
"default": inputContent,
|
2478
2478
|
content: popoverContent
|
@@ -2598,19 +2598,19 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
2598
2598
|
var _this = this;
|
2599
2599
|
var contentComponent = function contentComponent(item, index) {
|
2600
2600
|
return _this.editKey === "".concat(item.id, "_").concat(index) ? (0,external_vue_namespaceObject.createVNode)("div", {
|
2601
|
-
"class": "selected-input",
|
2602
2601
|
"key": _this.editKey.toString(),
|
2603
|
-
"ref": "selectedInputRef"
|
2602
|
+
"ref": "selectedInputRef",
|
2603
|
+
"class": "selected-input"
|
2604
2604
|
}, [(0,external_vue_namespaceObject.createVNode)(input, {
|
2605
|
-
"ref": "inputRef",
|
2606
2605
|
"key": _this.editKey.toString(),
|
2607
|
-
"
|
2608
|
-
"
|
2609
|
-
"showCondition": false,
|
2606
|
+
"ref": "inputRef",
|
2607
|
+
"clickOutside": _this.handleInputOutside,
|
2610
2608
|
"conditions": _this.conditions,
|
2609
|
+
"data": _this.data,
|
2611
2610
|
"defautUsingItem": _this.copySeletedItem(item),
|
2612
|
-
"clickOutside": _this.handleInputOutside,
|
2613
2611
|
"getMenuList": _this.getMenuList,
|
2612
|
+
"mode": SearchInputMode.EDIT,
|
2613
|
+
"showCondition": false,
|
2614
2614
|
"validateValues": _this.validateValues,
|
2615
2615
|
"valueBehavior": _this.valueBehavior,
|
2616
2616
|
"onAdd": function onAdd(v) {
|
@@ -2618,8 +2618,8 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
2618
2618
|
},
|
2619
2619
|
"onFocus": _this.handleInputFocus
|
2620
2620
|
}, selected_objectSpread({}, _this.$slots))]) : (0,external_vue_namespaceObject.createVNode)("li", {
|
2621
|
-
"
|
2622
|
-
"
|
2621
|
+
"key": "".concat(item.id, "_").concat(index),
|
2622
|
+
"class": "search-container-selected ".concat(!(_this.overflowIndex >= 0 ? index < _this.overflowIndex : index >= 0) ? 'hidden-selected' : '')
|
2623
2623
|
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
2624
2624
|
"class": "selected-name",
|
2625
2625
|
"onClick": function onClick(e) {
|
@@ -2990,24 +2990,24 @@ var SearchSelectProps = {
|
|
2990
2990
|
} : {});
|
2991
2991
|
// render
|
2992
2992
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
2993
|
-
"
|
2994
|
-
"
|
2993
|
+
"ref": "wrapRef",
|
2994
|
+
"class": this.resolveClassName('search-select')
|
2995
2995
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
2996
2996
|
"class": _defineProperty(_defineProperty({}, this.resolveClassName('search-select-container'), true), 'is-focus', this.isFocus),
|
2997
2997
|
"onClick": this.handleWrapClick
|
2998
2998
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
2999
2999
|
"class": "search-prefix"
|
3000
3000
|
}, [(_this$$slots$prepend = (_this$$slots2 = this.$slots).prepend) === null || _this$$slots$prepend === void 0 ? void 0 : _this$$slots$prepend.call(_this$$slots2)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
3001
|
-
"class": "search-container",
|
3002
3001
|
"style": {
|
3003
3002
|
maxHeight: maxHeight
|
3004
|
-
}
|
3003
|
+
},
|
3004
|
+
"class": "search-container"
|
3005
3005
|
}, [(0,external_vue_namespaceObject.createVNode)(selected, {
|
3006
|
-
"data": this.copyData,
|
3007
3006
|
"conditions": this.localConditions,
|
3008
|
-
"
|
3009
|
-
"overflowIndex": this.overflowIndex,
|
3007
|
+
"data": this.copyData,
|
3010
3008
|
"getMenuList": this.getMenuList,
|
3009
|
+
"overflowIndex": this.overflowIndex,
|
3010
|
+
"selectedList": this.selectedList,
|
3011
3011
|
"validateValues": this.validateValues,
|
3012
3012
|
"valueBehavior": this.valueBehavior,
|
3013
3013
|
"onDelete": this.handleDeleteSelected,
|
@@ -3016,13 +3016,13 @@ var SearchSelectProps = {
|
|
3016
3016
|
"class": "search-container-input"
|
3017
3017
|
}, [(0,external_vue_namespaceObject.createVNode)(input, {
|
3018
3018
|
"ref": "inputRef",
|
3019
|
-
"data": this.copyData,
|
3020
|
-
"showInputBefore": !this.selectedList.length,
|
3021
|
-
"showCondition": showCondition,
|
3022
|
-
"conditions": this.localConditions,
|
3023
|
-
"placeholder": this.placeholder || this.t.pleaseSelect,
|
3024
3019
|
"clickOutside": this.handleInputOutside,
|
3020
|
+
"conditions": this.localConditions,
|
3021
|
+
"data": this.copyData,
|
3025
3022
|
"getMenuList": this.getMenuList,
|
3023
|
+
"placeholder": this.placeholder || this.t.pleaseSelect,
|
3024
|
+
"showCondition": showCondition,
|
3025
|
+
"showInputBefore": !this.selectedList.length,
|
3026
3026
|
"validateValues": this.validateValues,
|
3027
3027
|
"valueBehavior": this.valueBehavior,
|
3028
3028
|
"onAdd": this.handleAddSelected,
|
@@ -3035,8 +3035,8 @@ var SearchSelectProps = {
|
|
3035
3035
|
"class": "search-clear",
|
3036
3036
|
"onClick": this.handleClearAll
|
3037
3037
|
}, null), this.$slots.append ? this.$slots.append() : (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Search, {
|
3038
|
-
"
|
3039
|
-
"
|
3038
|
+
"class": "search-nextfix-icon ".concat(this.isFocus ? 'is-focus' : ''),
|
3039
|
+
"onClick": this.handleClickSearch
|
3040
3040
|
}, null)])]), !!this.validateStr.length && (0,external_vue_namespaceObject.createVNode)("div", {
|
3041
3041
|
"class": this.resolveClassName('search-select-tips')
|
3042
3042
|
}, [this.$slots.validate ? this.$slots.validate() : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.ExclamationCircleShape, {
|
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
39
39
|
handleSelectedChange: (e: MouseEvent, item: ICommonItem) => void;
|
40
40
|
handleLogicalChange: (value: unknown) => void;
|
41
41
|
filterList: import("vue").ComputedRef<ICommonItem[]>;
|
42
|
-
getSearchNode: (item: ICommonItem) =>
|
42
|
+
getSearchNode: (item: ICommonItem) => (VNode | string)[] | string;
|
43
43
|
localFooterBtns: import("vue").ComputedRef<IMenuFooterItem[] | ({
|
44
44
|
id: string;
|
45
45
|
name: string;
|
@@ -232,7 +232,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
232
232
|
showCondition: boolean;
|
233
233
|
}>>;
|
234
234
|
selectedInputRef: import("vue").Ref<HTMLDivElement>;
|
235
|
-
editKey: import("vue").Ref<
|
235
|
+
editKey: import("vue").Ref<string>;
|
236
236
|
copySeletedItem: (item: SelectedItem) => SelectedItem;
|
237
237
|
handleDeleteSelected: (index: number) => void;
|
238
238
|
handleEditSeleted: (e: MouseEvent, item: SelectedItem, index: number) => void;
|
@@ -26,7 +26,7 @@ export interface ISearchSelectProvider {
|
|
26
26
|
onEditEnter: (item: SelectedItem, index: number) => void;
|
27
27
|
onEditBlur: () => void;
|
28
28
|
onValidate: (str: string) => void;
|
29
|
-
editKey: Ref<
|
29
|
+
editKey: Ref<string>;
|
30
30
|
searchData: ComputedRef<ISearchItem[]>;
|
31
31
|
isClickOutside: (target: Node) => boolean;
|
32
32
|
}
|
@@ -73,11 +73,11 @@ export declare enum SearchLogical {
|
|
73
73
|
OR = "|"
|
74
74
|
}
|
75
75
|
export interface IMenuFooterItem {
|
76
|
-
id: '
|
76
|
+
id: 'cancel' | 'confirm';
|
77
77
|
name: string;
|
78
78
|
disabled?: boolean;
|
79
79
|
}
|
80
|
-
export type SearchItemType = '
|
80
|
+
export type SearchItemType = 'condition' | 'default' | 'text';
|
81
81
|
export declare class SelectedItem {
|
82
82
|
searchItem: ISearchItem;
|
83
83
|
type: SearchItemType;
|
package/lib/select/common.d.ts
CHANGED
@@ -7,9 +7,9 @@ export declare function useHover(): {
|
|
7
7
|
setHover: () => void;
|
8
8
|
cancelHover: () => void;
|
9
9
|
};
|
10
|
-
export declare function useRegistry<T>(data: Ref<Map<
|
11
|
-
register: (key:
|
12
|
-
unregister: (key:
|
10
|
+
export declare function useRegistry<T>(data: Ref<Map<string, T>>): {
|
11
|
+
register: (key: string, item: T) => Map<string, T>;
|
12
|
+
unregister: (key: string) => void;
|
13
13
|
};
|
14
14
|
export declare function useDebouncedRef<T>(value: any, delay?: number): Ref<T>;
|
15
15
|
export declare function usePopover(config: IPopoverConfig, triggerRef: Ref<HTMLElement>): {
|
@@ -19,7 +19,7 @@ export declare function usePopover(config: IPopoverConfig, triggerRef: Ref<HTMLE
|
|
19
19
|
hidePopover: () => void;
|
20
20
|
showPopover: () => void;
|
21
21
|
};
|
22
|
-
export declare function useRemoteSearch(method:
|
22
|
+
export declare function useRemoteSearch(method: (v: string) => Promise<void>, callBack?: () => void): {
|
23
23
|
customOptionName: Ref<string>;
|
24
24
|
searchValue: Ref<string>;
|
25
25
|
curSearchValue: import("vue").ComputedRef<string>;
|