bkui-vue 2.0.2-beta.7 → 2.0.2-beta.70
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/License.txt +1 -2
- package/dist/cli.css +1 -0
- package/dist/index.cjs.js +165 -138
- package/dist/index.esm.js +24235 -18488
- package/dist/index.umd.js +165 -138
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/ja-jp.esm.js +2 -0
- package/dist/locale/ja-jp.esm.js.map +1 -0
- package/dist/locale/ja-jp.umd.js +2 -0
- package/dist/locale/ja-jp.umd.js.map +1 -0
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +2 -1
- package/lib/affix/index.js +2 -2
- package/lib/alert/alert.variable.css +2 -1
- package/lib/alert/index.js +16 -5
- package/lib/animate-number/index.js +2 -2
- package/lib/backtop/backtop.variable.css +2 -1
- package/lib/backtop/index.js +2 -2
- package/lib/badge/badge.variable.css +2 -1
- package/lib/badge/index.js +2 -2
- package/lib/breadcrumb/breadcrumb.variable.css +2 -1
- package/lib/breadcrumb/index.js +3 -3
- package/lib/button/button.d.ts +1 -1
- package/lib/button/button.variable.css +2 -1
- package/lib/button/index.js +3 -3
- package/lib/card/card.variable.css +2 -1
- package/lib/card/index.js +2 -2
- package/lib/cascader/cascader.css +26 -24
- package/lib/cascader/cascader.d.ts +311 -0
- package/lib/cascader/cascader.less +78 -76
- package/lib/cascader/cascader.variable.css +28 -25
- package/lib/cascader/index.d.ts +610 -0
- package/lib/cascader/index.js +107 -49
- package/lib/checkbox/checkbox.variable.css +2 -1
- package/lib/checkbox/index.js +5 -5
- package/lib/code-diff/code-diff.variable.css +2 -1
- package/lib/code-diff/index.js +2 -2
- package/lib/collapse/collapse.variable.css +2 -1
- package/lib/collapse/index.js +3 -3
- package/lib/collapse-transition/collapse-transition.variable.css +2 -1
- package/lib/collapse-transition/index.js +2 -2
- package/lib/color-picker/color-picker.variable.css +2 -1
- package/lib/color-picker/index.js +62 -55
- package/lib/components.js +1 -1
- package/lib/config-provider/config-provider.variable.css +2 -1
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/config-provider/index.js +6 -6
- package/lib/container/container.variable.css +2 -1
- package/lib/container/index.js +5 -5
- package/lib/date-picker/date-picker.d.ts +2 -1
- package/lib/date-picker/date-picker.variable.css +2 -1
- package/lib/date-picker/index.d.ts +6 -2
- package/lib/date-picker/index.js +77 -76
- package/lib/date-picker/panel/date-range.d.ts +2 -1
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/utils.d.ts +5 -17
- package/lib/dialog/dialog.css +20 -1
- package/lib/dialog/dialog.variable.css +22 -2
- package/lib/dialog/index.js +13 -36
- package/lib/directives/index.js +6 -9
- package/lib/dist.index.js +1 -1
- package/lib/divider/divider.variable.css +2 -1
- package/lib/divider/index.js +3 -3
- package/lib/dropdown/dropdown.d.ts +1 -0
- package/lib/dropdown/dropdown.variable.css +2 -1
- package/lib/dropdown/index.d.ts +3 -0
- package/lib/dropdown/index.js +15 -10
- package/lib/exception/exception.variable.css +2 -1
- package/lib/exception/index.js +2 -2
- package/lib/fixed-navbar/fixed-navbar.variable.css +2 -1
- package/lib/fixed-navbar/index.js +2 -2
- package/lib/form/form-item.d.ts +19 -0
- package/lib/form/form.css +16 -4
- package/lib/form/form.less +24 -6
- package/lib/form/form.variable.css +18 -5
- package/lib/form/index.d.ts +13 -0
- package/lib/form/index.js +41 -50
- package/lib/hooks.js +1 -1
- package/lib/icon/angle-double-down-line.js +1 -1
- package/lib/icon/angle-double-left-line.js +1 -1
- package/lib/icon/angle-double-left.js +1 -1
- package/lib/icon/angle-double-right-line.js +1 -1
- package/lib/icon/angle-double-right.js +1 -1
- package/lib/icon/angle-double-up-line.js +1 -1
- package/lib/icon/angle-down-fill.js +1 -1
- package/lib/icon/angle-down-line.js +1 -1
- package/lib/icon/angle-down.js +1 -1
- package/lib/icon/angle-left.js +1 -1
- package/lib/icon/angle-right.js +1 -1
- package/lib/icon/angle-up-fill.js +1 -1
- package/lib/icon/angle-up.js +1 -1
- package/lib/icon/archive-fill.js +1 -1
- package/lib/icon/arrows-left.js +1 -1
- package/lib/icon/arrows-right.js +1 -1
- package/lib/icon/assistant.js +1 -1
- package/lib/icon/audio-fill.js +1 -1
- package/lib/icon/bk.js +1 -1
- package/lib/icon/circle.js +1 -1
- package/lib/icon/close-line.js +1 -1
- package/lib/icon/close.js +1 -1
- package/lib/icon/code.js +1 -1
- package/lib/icon/cog-shape.js +1 -1
- package/lib/icon/collapse-left.js +1 -1
- package/lib/icon/copy-shape.js +1 -1
- package/lib/icon/copy.js +1 -1
- package/lib/icon/data-shape.js +1 -1
- package/lib/icon/del.js +1 -1
- package/lib/icon/doc-fill.js +1 -1
- package/lib/icon/done.js +1 -1
- package/lib/icon/down-shape.js +1 -1
- package/lib/icon/down-small.js +1 -1
- package/lib/icon/edit-line.js +1 -1
- package/lib/icon/ellipsis.js +1 -1
- package/lib/icon/enlarge-line.js +1 -1
- package/lib/icon/error.js +1 -1
- package/lib/icon/excel-fill.js +1 -1
- package/lib/icon/exclamation-circle-shape.js +1 -1
- package/lib/icon/eye.js +1 -1
- package/lib/icon/filliscreen-line.js +1 -1
- package/lib/icon/fix-line.js +1 -1
- package/lib/icon/fix-shape.js +1 -1
- package/lib/icon/folder-open.js +1 -1
- package/lib/icon/folder-shape-open.js +1 -1
- package/lib/icon/folder-shape.js +1 -1
- package/lib/icon/folder.js +1 -1
- package/lib/icon/funnel.js +1 -1
- package/lib/icon/grag-fill.js +1 -1
- package/lib/icon/help-document-fill.js +1 -1
- package/lib/icon/help-fill.js +1 -1
- package/lib/icon/help.js +1 -1
- package/lib/icon/image-fill.js +1 -1
- package/lib/icon/img-error.js +1 -1
- package/lib/icon/img-placehoulder.js +1 -1
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.js +1 -1
- package/lib/icon/info.js +1 -1
- package/lib/icon/left-shape.js +1 -1
- package/lib/icon/left-turn-line.js +1 -1
- package/lib/icon/loading.js +1 -1
- package/lib/icon/narrow-line.js +1 -1
- package/lib/icon/original.js +1 -1
- package/lib/icon/pdf-fill.js +1 -1
- package/lib/icon/play-shape.js +1 -1
- package/lib/icon/plus.js +1 -1
- package/lib/icon/ppt-fill.js +1 -1
- package/lib/icon/qq.js +1 -1
- package/lib/icon/right-shape.js +1 -1
- package/lib/icon/right-turn-line.js +1 -1
- package/lib/icon/search.js +1 -1
- package/lib/icon/share.js +1 -1
- package/lib/icon/spinner.js +1 -1
- package/lib/icon/success.js +1 -1
- package/lib/icon/switcher-loading.js +1 -1
- package/lib/icon/text-all.js +1 -1
- package/lib/icon/text-file.js +1 -1
- package/lib/icon/text-fill.js +1 -1
- package/lib/icon/transfer.js +1 -1
- package/lib/icon/tree-application-shape.js +1 -1
- package/lib/icon/unfull-screen.js +1 -1
- package/lib/icon/unvisible.js +1 -1
- package/lib/icon/up-shape.js +1 -1
- package/lib/icon/upload.js +1 -1
- package/lib/icon/video-fill.js +1 -1
- package/lib/icon/warn.js +1 -1
- package/lib/icon/weixin-pro.js +1 -1
- package/lib/icon/weixin.js +1 -1
- package/lib/image/image-viewer.variable.css +2 -1
- package/lib/image/image.variable.css +2 -1
- package/lib/image/index.js +9 -12
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +22 -7
- 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 +23 -3
- package/lib/input/index.d.ts +39 -20
- package/lib/input/index.js +44 -27
- package/lib/input/input.css +6 -0
- package/lib/input/input.d.ts +30 -16
- package/lib/input/input.less +7 -0
- package/lib/input/input.variable.css +8 -1
- package/lib/link/index.js +2 -2
- package/lib/link/link.variable.css +2 -1
- package/lib/loading/index.js +3 -3
- package/lib/loading/loading.variable.css +2 -1
- package/lib/locale/index.d.ts +1 -0
- package/lib/locale/index.js +172 -4
- package/lib/locale/lang/ja-jp.d.ts +3 -0
- package/lib/menu/index.js +12 -9
- package/lib/menu/menu.css +5 -4
- package/lib/menu/menu.less +1 -0
- package/lib/menu/menu.variable.css +7 -5
- package/lib/menu/submenu.variable.css +2 -1
- package/lib/message/index.js +4 -4
- package/lib/message/message.variable.css +2 -1
- package/lib/modal/index.js +14 -6
- package/lib/modal/modal.css +20 -1
- package/lib/modal/modal.variable.css +22 -2
- package/lib/navigation/index.js +3 -3
- package/lib/navigation/navigation.css +29 -29
- package/lib/navigation/navigation.less +29 -29
- package/lib/navigation/navigation.variable.css +31 -30
- package/lib/notify/index.js +3 -3
- package/lib/notify/notify.variable.css +2 -1
- package/lib/overflow-title/index.js +3 -3
- package/lib/pagination/index.js +22 -14
- package/lib/pagination/pagination.css +1 -0
- package/lib/pagination/pagination.less +1 -0
- package/lib/pagination/pagination.variable.css +3 -1
- package/lib/pop-confirm/index.d.ts +584 -0
- package/lib/pop-confirm/index.js +10 -6
- package/lib/pop-confirm/pop-confirm.d.ts +292 -0
- package/lib/pop-confirm/pop-confirm.variable.css +2 -1
- package/lib/pop-confirm/props.d.ts +146 -0
- package/lib/popover/index.js +18 -21
- package/lib/popover/popover.variable.css +2 -1
- package/lib/popover2/index.js +2 -2
- package/lib/preset.js +1 -1
- package/lib/process/index.js +2 -2
- package/lib/process/process.d.ts +1 -1
- package/lib/process/process.variable.css +2 -1
- package/lib/progress/index.js +4 -4
- package/lib/progress/progress.variable.css +2 -1
- package/lib/radio/index.js +5 -5
- package/lib/radio/radio.variable.css +2 -1
- package/lib/rate/index.js +3 -3
- package/lib/rate/rate.variable.css +2 -1
- package/lib/resize-layout/index.js +2 -2
- package/lib/resize-layout/resize-layout.css +1 -0
- package/lib/resize-layout/resize-layout.less +1 -0
- package/lib/resize-layout/resize-layout.variable.css +3 -1
- package/lib/scrollbar/css/scrollbar.variable.css +2 -1
- package/lib/scrollbar/index.js +6 -6
- package/lib/search-select/index.d.ts +39 -11
- package/lib/search-select/index.js +86 -37
- package/lib/search-select/input.d.ts +5 -1
- package/lib/search-select/search-select.d.ts +13 -4
- package/lib/search-select/search-select.variable.css +2 -1
- package/lib/search-select/selected.d.ts +10 -2
- package/lib/search-select/utils.d.ts +1 -0
- package/lib/select/index.d.ts +22 -3
- package/lib/select/index.js +34 -28
- package/lib/select/select.d.ts +11 -1
- package/lib/select/select.variable.css +2 -1
- package/lib/shared/index.d.ts +1 -1
- package/lib/shared/index.js +10 -10
- package/lib/shared/z-index-manager.d.ts +1 -1
- package/lib/sideslider/index.js +5 -3
- package/lib/sideslider/sideslider.variable.css +2 -1
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/index.js +5 -4
- package/lib/slider/slider-button.d.ts +1 -1
- package/lib/slider/slider.d.ts +1 -1
- package/lib/slider/slider.variable.css +2 -1
- package/lib/steps/index.js +2 -2
- package/lib/steps/steps.d.ts +1 -1
- package/lib/steps/steps.variable.css +2 -1
- package/lib/styles/mixins/animate.variable.css +2 -1
- package/lib/styles/mixins/popper.variable.css +2 -1
- package/lib/styles/mixins/scroll.variable.css +2 -1
- package/lib/styles/reset.variable.css +2 -1
- package/lib/styles/themes/themes.less +4 -1
- package/lib/swiper/index.js +2 -2
- package/lib/swiper/swiper.variable.css +2 -1
- package/lib/switcher/index.js +2 -2
- package/lib/switcher/switcher.variable.css +2 -1
- package/lib/tab/index.d.ts +12 -0
- package/lib/tab/index.js +20 -17
- package/lib/tab/props.d.ts +3 -0
- package/lib/tab/tab.d.ts +6 -0
- package/lib/tab/tab.variable.css +2 -1
- package/lib/table/index.js +33 -36
- package/lib/table/plugins/head-filter.variable.css +2 -1
- package/lib/table/plugins/head-sort.variable.css +2 -1
- package/lib/table/plugins/settings.variable.css +2 -1
- package/lib/table/table.css +1 -0
- package/lib/table/table.variable.css +3 -1
- package/lib/table-column/index.js +1 -1
- package/lib/tag/index.js +2 -2
- package/lib/tag/tag.variable.css +2 -1
- package/lib/tag-input/index.d.ts +9 -0
- package/lib/tag-input/index.js +1569 -42
- package/lib/tag-input/tag-input.css +16 -0
- package/lib/tag-input/tag-input.d.ts +17 -2
- package/lib/tag-input/tag-input.less +16 -0
- package/lib/tag-input/tag-input.variable.css +18 -1
- package/lib/tag-input/tag-render.d.ts +24 -2
- package/lib/time-picker/index.js +1 -1
- package/lib/time-picker/time-picker.variable.css +2 -1
- package/lib/timeline/index.js +1353 -4
- package/lib/timeline/timeline.d.ts +1 -1
- package/lib/timeline/timeline.variable.css +2 -1
- package/lib/transfer/index.d.ts +1 -24
- package/lib/transfer/index.js +21 -11
- package/lib/transfer/props.d.ts +0 -5
- package/lib/transfer/transfer.css +26 -8
- package/lib/transfer/transfer.d.ts +1 -12
- package/lib/transfer/transfer.less +18 -8
- package/lib/transfer/transfer.variable.css +28 -9
- package/lib/tree/constant.d.ts +2 -0
- package/lib/tree/index.d.ts +48 -11
- package/lib/tree/index.js +17650 -106
- package/lib/tree/props.d.ts +30 -3
- package/lib/tree/tree.css +46 -0
- package/lib/tree/tree.d.ts +22 -5
- package/lib/tree/tree.less +57 -2
- package/lib/tree/tree.variable.css +48 -1
- package/lib/tree/use-array-move.d.ts +6 -0
- package/lib/tree/use-node-action.d.ts +2 -2
- package/lib/tree/use-node-attribute.d.ts +3 -0
- package/lib/upload/index.js +8 -8
- package/lib/upload/upload.variable.css +2 -1
- package/lib/virtual-render/index.js +7 -7
- package/lib/virtual-render/virtual-render.variable.css +2 -1
- package/lib/volar.components.d.ts +2 -1
- package/package.json +13 -2
- package/dist/style.css +0 -1
|
@@ -1100,7 +1100,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1100
1100
|
* Tencent is pleased to support the open source community by making
|
|
1101
1101
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1102
1102
|
*
|
|
1103
|
-
* Copyright (C)
|
|
1103
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1104
1104
|
*
|
|
1105
1105
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1106
1106
|
*
|
|
@@ -1228,7 +1228,7 @@ const popover_namespaceObject = popover_x({ ["$bkPopover"]: () => __WEBPACK_EXTE
|
|
|
1228
1228
|
* Tencent is pleased to support the open source community by making
|
|
1229
1229
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1230
1230
|
*
|
|
1231
|
-
* Copyright (C)
|
|
1231
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1232
1232
|
*
|
|
1233
1233
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1234
1234
|
*
|
|
@@ -1340,7 +1340,7 @@ var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel
|
|
|
1340
1340
|
* Tencent is pleased to support the open source community by making
|
|
1341
1341
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1342
1342
|
*
|
|
1343
|
-
* Copyright (C)
|
|
1343
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1344
1344
|
*
|
|
1345
1345
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1346
1346
|
*
|
|
@@ -1428,7 +1428,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
1428
1428
|
* Tencent is pleased to support the open source community by making
|
|
1429
1429
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1430
1430
|
*
|
|
1431
|
-
* Copyright (C)
|
|
1431
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1432
1432
|
*
|
|
1433
1433
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1434
1434
|
*
|
|
@@ -1483,9 +1483,6 @@ var tooltips = {
|
|
|
1483
1483
|
hide(el);
|
|
1484
1484
|
}, 100);
|
|
1485
1485
|
});
|
|
1486
|
-
el.addEventListener('click', function () {
|
|
1487
|
-
hide(el);
|
|
1488
|
-
});
|
|
1489
1486
|
popper.addEventListener('mouseleave', function () {
|
|
1490
1487
|
clearTimeout(delayTimeout);
|
|
1491
1488
|
hideTimeout = setTimeout(function () {
|
|
@@ -1499,7 +1496,7 @@ var tooltips = {
|
|
|
1499
1496
|
show(el);
|
|
1500
1497
|
clearTimeout(delayTimeout);
|
|
1501
1498
|
}, opts.delay);
|
|
1502
|
-
} else if (popper.hasAttribute('data-show')) {
|
|
1499
|
+
} else if (!el.contains(event.target) && popper.hasAttribute('data-show')) {
|
|
1503
1500
|
hide(el);
|
|
1504
1501
|
}
|
|
1505
1502
|
});
|
|
@@ -1723,7 +1720,7 @@ const external_overflow_title_namespaceObject = external_overflow_title_x({ });
|
|
|
1723
1720
|
* Tencent is pleased to support the open source community by making
|
|
1724
1721
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1725
1722
|
*
|
|
1726
|
-
* Copyright (C)
|
|
1723
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1727
1724
|
*
|
|
1728
1725
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1729
1726
|
*
|
|
@@ -2203,7 +2200,7 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
2203
2200
|
* Tencent is pleased to support the open source community by making
|
|
2204
2201
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
2205
2202
|
*
|
|
2206
|
-
* Copyright (C)
|
|
2203
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
2207
2204
|
*
|
|
2208
2205
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
2209
2206
|
*
|
|
@@ -2464,7 +2461,7 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
|
2464
2461
|
* Tencent is pleased to support the open source community by making
|
|
2465
2462
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
2466
2463
|
*
|
|
2467
|
-
* Copyright (C)
|
|
2464
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
2468
2465
|
*
|
|
2469
2466
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
2470
2467
|
*
|
|
@@ -2583,11 +2580,11 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
|
2583
2580
|
var _keyword;
|
|
2584
2581
|
if (!str) return str;
|
|
2585
2582
|
var keyword = props.keyword;
|
|
2586
|
-
|
|
2587
|
-
|
|
2583
|
+
if (!((_keyword = keyword) !== null && _keyword !== void 0 && _keyword.trim().length) || !str.toLocaleLowerCase().includes(keyword.toLocaleLowerCase().trim())) return str;
|
|
2584
|
+
var len = keyword.trim().length;
|
|
2588
2585
|
var list = [];
|
|
2589
2586
|
var lastIndex = -1;
|
|
2590
|
-
keyword = keyword.replace(/([.*/]{1})/gim, '\\$1');
|
|
2587
|
+
keyword = keyword.replace(/([.*/]{1})/gim, '\\$1').trim();
|
|
2591
2588
|
str.replace(new RegExp("".concat(keyword), 'igm'), function (key, index) {
|
|
2592
2589
|
if (list.length === 0 && index !== 0) {
|
|
2593
2590
|
list.push(str.slice(0, index));
|
|
@@ -2715,7 +2712,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
2715
2712
|
* Tencent is pleased to support the open source community by making
|
|
2716
2713
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
2717
2714
|
*
|
|
2718
|
-
* Copyright (C)
|
|
2715
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
2719
2716
|
*
|
|
2720
2717
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
2721
2718
|
*
|
|
@@ -2804,12 +2801,14 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
2804
2801
|
var _useSearchSelectInjec = useSearchSelectInject(),
|
|
2805
2802
|
editKey = _useSearchSelectInjec.editKey,
|
|
2806
2803
|
onValidate = _useSearchSelectInjec.onValidate,
|
|
2807
|
-
searchData = _useSearchSelectInjec.searchData
|
|
2804
|
+
searchData = _useSearchSelectInjec.searchData,
|
|
2805
|
+
onCopy = _useSearchSelectInjec.onCopy;
|
|
2808
2806
|
var valueLogic = (0,external_vue_namespaceObject.computed)(function () {
|
|
2809
2807
|
var _usingItem$value;
|
|
2810
2808
|
return ((_usingItem$value = usingItem.value) === null || _usingItem$value === void 0 ? void 0 : _usingItem$value.logical) || SearchLogical.OR;
|
|
2811
2809
|
});
|
|
2812
2810
|
var inputKey = (0,external_vue_namespaceObject.ref)((0,shared_namespaceObject.random)(10));
|
|
2811
|
+
var isComposition = (0,external_vue_namespaceObject.ref)(false);
|
|
2813
2812
|
(0,external_vue_namespaceObject.watch)(editKey, function () {
|
|
2814
2813
|
if (props.mode === SearchInputMode.DEFAULT && editKey.value) {
|
|
2815
2814
|
showPopover.value = false;
|
|
@@ -2959,7 +2958,9 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
2959
2958
|
debounceSetMenuList();
|
|
2960
2959
|
}
|
|
2961
2960
|
function handleInputChange(event) {
|
|
2962
|
-
|
|
2961
|
+
if (isComposition.value) return;
|
|
2962
|
+
clearInputBr();
|
|
2963
|
+
var text = event.target.innerText;
|
|
2963
2964
|
if (!usingItem.value) {
|
|
2964
2965
|
keyword.value = text;
|
|
2965
2966
|
debounceSetMenuList();
|
|
@@ -2978,7 +2979,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
2978
2979
|
return;
|
|
2979
2980
|
}
|
|
2980
2981
|
}
|
|
2981
|
-
keyword.value = usingItem.value.isSpecialType() ? text : text.replace(usingItem.value.name, '').replace(':', '')
|
|
2982
|
+
keyword.value = usingItem.value.isSpecialType() ? text : text.replace(usingItem.value.name, '').replace(':', '');
|
|
2982
2983
|
debounceSetMenuList();
|
|
2983
2984
|
}
|
|
2984
2985
|
function handleInputKeyup(event) {
|
|
@@ -2991,9 +2992,11 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
2991
2992
|
// }
|
|
2992
2993
|
// return;
|
|
2993
2994
|
// }
|
|
2995
|
+
if (isComposition.value) return;
|
|
2994
2996
|
switch (event.code) {
|
|
2995
2997
|
case 'Enter':
|
|
2996
2998
|
case 'NumpadEnter':
|
|
2999
|
+
event.preventDefault();
|
|
2997
3000
|
if (props.valueBehavior === ValueBehavior.NEED_KEY && menuList.value.some(function (item) {
|
|
2998
3001
|
return item.id === menuHoverId.value;
|
|
2999
3002
|
})) {
|
|
@@ -3008,12 +3011,20 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
3008
3011
|
});
|
|
3009
3012
|
break;
|
|
3010
3013
|
case 'Backspace':
|
|
3014
|
+
case 'Delete':
|
|
3011
3015
|
handleKeyBackspace(event);
|
|
3016
|
+
break;
|
|
3012
3017
|
default:
|
|
3013
3018
|
showNoSelectValueError.value = false;
|
|
3014
3019
|
break;
|
|
3015
3020
|
}
|
|
3016
3021
|
}
|
|
3022
|
+
var handleInputCopy = function handleInputCopy(event) {
|
|
3023
|
+
var copyText = window.getSelection().toString();
|
|
3024
|
+
if (copyText) {
|
|
3025
|
+
onCopy(event, copyText, usingItem.value.toValue());
|
|
3026
|
+
}
|
|
3027
|
+
};
|
|
3017
3028
|
function handleKeyEnter(_x) {
|
|
3018
3029
|
return _handleKeyEnter.apply(this, arguments);
|
|
3019
3030
|
}
|
|
@@ -3114,7 +3125,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
3114
3125
|
setInputFocus(false, false);
|
|
3115
3126
|
return;
|
|
3116
3127
|
}
|
|
3117
|
-
} else if (!keyword.value) {
|
|
3128
|
+
} else if (!keyword.value || keyword.value.length === 1) {
|
|
3118
3129
|
usingItem.value = null;
|
|
3119
3130
|
keyword.value = '';
|
|
3120
3131
|
setMenuList();
|
|
@@ -3322,7 +3333,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
3322
3333
|
function _setMenuList() {
|
|
3323
3334
|
_setMenuList = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee5() {
|
|
3324
3335
|
var _props$data, _usingItem$value$sear, _usingItem$value$valu;
|
|
3325
|
-
var list, _usingItem$value14, _keyword$value3, _iterator, _step, item, isMatched, _list, filterList, _iterator2, _step2, child, _list2, _filterList, _iterator3, _step3, _child, hoverItem;
|
|
3336
|
+
var list, _usingItem$value14, _usingItem$value15, _keyword$value3, _iterator, _step, item, isMatched, _list, filterList, _iterator2, _step2, child, _list2, _filterList, _iterator3, _step3, _child, hoverItem;
|
|
3326
3337
|
return regenerator_default().wrap(function _callee5$(_context5) {
|
|
3327
3338
|
while (1) switch (_context5.prev = _context5.next) {
|
|
3328
3339
|
case 0:
|
|
@@ -3333,7 +3344,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
3333
3344
|
}
|
|
3334
3345
|
loading.value = true;
|
|
3335
3346
|
_context5.next = 5;
|
|
3336
|
-
return props.getMenuList((_usingItem$value14 = usingItem.value) === null || _usingItem$value14 === void 0 ? void 0 : _usingItem$value14.searchItem, keyword.value)["catch"](function () {
|
|
3347
|
+
return props.getMenuList((_usingItem$value14 = usingItem.value) === null || _usingItem$value14 === void 0 ? void 0 : _usingItem$value14.searchItem, keyword.value.trim() || ((_usingItem$value15 = usingItem.value) === null || _usingItem$value15 === void 0 || (_usingItem$value15 = _usingItem$value15.values) === null || _usingItem$value15 === void 0 || (_usingItem$value15 = _usingItem$value15[0]) === null || _usingItem$value15 === void 0 ? void 0 : _usingItem$value15.name) || '')["catch"](function () {
|
|
3337
3348
|
return [];
|
|
3338
3349
|
});
|
|
3339
3350
|
case 5:
|
|
@@ -3390,7 +3401,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
3390
3401
|
try {
|
|
3391
3402
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
3392
3403
|
_child = _step3.value;
|
|
3393
|
-
if (_child.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase())) {
|
|
3404
|
+
if (_child.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase().trim())) {
|
|
3394
3405
|
_filterList.push(input_objectSpread(input_objectSpread({}, item), {}, {
|
|
3395
3406
|
realId: item.id,
|
|
3396
3407
|
id: (0,shared_namespaceObject.random)(10),
|
|
@@ -3424,7 +3435,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
3424
3435
|
list = props.conditions;
|
|
3425
3436
|
} else if (!((_usingItem$value$valu = usingItem.value.values) !== null && _usingItem$value$valu !== void 0 && _usingItem$value$valu.length) || usingItem.value.multiple || props.mode === SearchInputMode.EDIT) {
|
|
3426
3437
|
list = usingItem.value.children.filter(function (item) {
|
|
3427
|
-
return item.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase());
|
|
3438
|
+
return item.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase().trim());
|
|
3428
3439
|
});
|
|
3429
3440
|
}
|
|
3430
3441
|
case 10:
|
|
@@ -3563,11 +3574,29 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
3563
3574
|
(0,external_vue_namespaceObject.nextTick)(clearInput);
|
|
3564
3575
|
}
|
|
3565
3576
|
}
|
|
3577
|
+
function clearInputBr() {
|
|
3578
|
+
if (!inputRef.value) return;
|
|
3579
|
+
var brs = inputRef.value.querySelectorAll('br');
|
|
3580
|
+
brs === null || brs === void 0 || brs.forEach(function (br) {
|
|
3581
|
+
return br.remove();
|
|
3582
|
+
});
|
|
3583
|
+
}
|
|
3566
3584
|
function clearInput() {
|
|
3567
3585
|
if (!inputRef.value) return;
|
|
3586
|
+
// magic code 判断是否是 windows 系统
|
|
3587
|
+
// const isWindows = navigator.userAgent.includes('Windows');
|
|
3588
|
+
// if (isWindows) {
|
|
3589
|
+
// setTimeout(() => {
|
|
3590
|
+
// keyword.value = '';
|
|
3591
|
+
// inputRef.value.innerText = '';
|
|
3592
|
+
// clearInputBr();
|
|
3593
|
+
// }, 32);
|
|
3594
|
+
// return;
|
|
3595
|
+
// }
|
|
3568
3596
|
keyword.value = '';
|
|
3569
3597
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
|
3570
|
-
|
|
3598
|
+
inputRef.value.innerText = '';
|
|
3599
|
+
clearInputBr();
|
|
3571
3600
|
});
|
|
3572
3601
|
}
|
|
3573
3602
|
function str2SelectedItem(str) {
|
|
@@ -3643,11 +3672,19 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
3643
3672
|
return v && clearInput();
|
|
3644
3673
|
});
|
|
3645
3674
|
}
|
|
3646
|
-
function
|
|
3675
|
+
function refreshMenuHover() {
|
|
3647
3676
|
if (!usingItem.value) {
|
|
3648
3677
|
menuHoverId.value = '';
|
|
3649
3678
|
}
|
|
3650
3679
|
}
|
|
3680
|
+
function handleCompositionEnd(event) {
|
|
3681
|
+
isComposition.value = false;
|
|
3682
|
+
keyword.value = event.data;
|
|
3683
|
+
handleInputChange(event);
|
|
3684
|
+
}
|
|
3685
|
+
function handleCompositionStart() {
|
|
3686
|
+
isComposition.value = true;
|
|
3687
|
+
}
|
|
3651
3688
|
// expose
|
|
3652
3689
|
expose({
|
|
3653
3690
|
inputFocusForWrapper: inputFocusForWrapper,
|
|
@@ -3655,7 +3692,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
3655
3692
|
inputClearForWrapper: inputClearForWrapper,
|
|
3656
3693
|
handleInputFocus: handleInputFocus,
|
|
3657
3694
|
isFocus: isFocus,
|
|
3658
|
-
|
|
3695
|
+
refreshMenuHover: refreshMenuHover
|
|
3659
3696
|
});
|
|
3660
3697
|
return {
|
|
3661
3698
|
popoverRef: popoverRef,
|
|
@@ -3666,6 +3703,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
3666
3703
|
menuList: menuList,
|
|
3667
3704
|
menuHoverId: menuHoverId,
|
|
3668
3705
|
isFocus: isFocus,
|
|
3706
|
+
isComposition: isComposition,
|
|
3669
3707
|
usingItem: usingItem,
|
|
3670
3708
|
showPopover: showPopover,
|
|
3671
3709
|
showNoSelectValueError: showNoSelectValueError,
|
|
@@ -3686,9 +3724,12 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
3686
3724
|
inputClearForWrapper: inputClearForWrapper,
|
|
3687
3725
|
deleteInputTextNode: deleteInputTextNode,
|
|
3688
3726
|
customPanelSubmit: customPanelSubmit,
|
|
3689
|
-
|
|
3727
|
+
refreshMenuHover: refreshMenuHover,
|
|
3690
3728
|
t: t,
|
|
3691
|
-
inputKey: inputKey
|
|
3729
|
+
inputKey: inputKey,
|
|
3730
|
+
handleCompositionEnd: handleCompositionEnd,
|
|
3731
|
+
handleCompositionStart: handleCompositionStart,
|
|
3732
|
+
handleInputCopy: handleInputCopy
|
|
3692
3733
|
};
|
|
3693
3734
|
},
|
|
3694
3735
|
render: function render() {
|
|
@@ -3715,9 +3756,12 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
3715
3756
|
'input-after': showInputAfter
|
|
3716
3757
|
},
|
|
3717
3758
|
"contenteditable": true,
|
|
3718
|
-
"data-placeholder": !inputInnerHtml && !_this.keyword ? _this.placeholder : '',
|
|
3719
|
-
"data-tips": placeholder || '',
|
|
3759
|
+
"data-placeholder": !_this.isComposition && !inputInnerHtml && !_this.keyword ? _this.placeholder : '',
|
|
3760
|
+
"data-tips": !_this.isComposition ? placeholder || '' : '',
|
|
3720
3761
|
"spellcheck": "false",
|
|
3762
|
+
"onCompositionend": _this.handleCompositionEnd,
|
|
3763
|
+
"onCompositionstart": _this.handleCompositionStart,
|
|
3764
|
+
"onCopy": _this.handleInputCopy,
|
|
3721
3765
|
"onFocus": _this.handleInputFocus,
|
|
3722
3766
|
"onInput": _this.handleInputChange,
|
|
3723
3767
|
"onKeydown": _this.handleInputKeyup,
|
|
@@ -3811,7 +3855,7 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
|
3811
3855
|
* Tencent is pleased to support the open source community by making
|
|
3812
3856
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
3813
3857
|
*
|
|
3814
|
-
* Copyright (C)
|
|
3858
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
3815
3859
|
*
|
|
3816
3860
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
3817
3861
|
*
|
|
@@ -3981,7 +4025,7 @@ function search_select_arrayLikeToArray(arr, len) { if (len == null || len > arr
|
|
|
3981
4025
|
* Tencent is pleased to support the open source community by making
|
|
3982
4026
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
3983
4027
|
*
|
|
3984
|
-
* Copyright (C)
|
|
4028
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
3985
4029
|
*
|
|
3986
4030
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
3987
4031
|
*
|
|
@@ -4071,7 +4115,7 @@ var SearchSelectProps = {
|
|
|
4071
4115
|
clickoutside: clickoutside
|
|
4072
4116
|
},
|
|
4073
4117
|
props: SearchSelectProps,
|
|
4074
|
-
emits: ['update:modelValue', 'search', 'selectKey'],
|
|
4118
|
+
emits: ['update:modelValue', 'search', 'selectKey', 'copy'],
|
|
4075
4119
|
slots: Object,
|
|
4076
4120
|
setup: function setup(props, _ref) {
|
|
4077
4121
|
var emit = _ref.emit;
|
|
@@ -4220,6 +4264,9 @@ var SearchSelectProps = {
|
|
|
4220
4264
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
|
4221
4265
|
removeListener(wrapRef.value.querySelector(".".concat(resolveClassName('search-select-container'))), debounceResize);
|
|
4222
4266
|
});
|
|
4267
|
+
var onCopy = function onCopy(event, text, item) {
|
|
4268
|
+
emit('copy', event, text, item);
|
|
4269
|
+
};
|
|
4223
4270
|
// edit item
|
|
4224
4271
|
useSearchSelectProvider({
|
|
4225
4272
|
onEditClick: onEditClick,
|
|
@@ -4230,7 +4277,8 @@ var SearchSelectProps = {
|
|
|
4230
4277
|
searchData: (0,external_vue_namespaceObject.computed)(function () {
|
|
4231
4278
|
return props.data;
|
|
4232
4279
|
}),
|
|
4233
|
-
isClickOutside: handleInputOutside
|
|
4280
|
+
isClickOutside: handleInputOutside,
|
|
4281
|
+
onCopy: onCopy
|
|
4234
4282
|
});
|
|
4235
4283
|
function onEditClick(item, index) {
|
|
4236
4284
|
editKey.value = "".concat(item.id, "_").concat(index);
|
|
@@ -4285,7 +4333,8 @@ var SearchSelectProps = {
|
|
|
4285
4333
|
inputRef.value.inputFocusForWrapper();
|
|
4286
4334
|
}
|
|
4287
4335
|
}
|
|
4288
|
-
function handleClearAll() {
|
|
4336
|
+
function handleClearAll(e) {
|
|
4337
|
+
e.stopPropagation();
|
|
4289
4338
|
selectedList.value = [];
|
|
4290
4339
|
overflowIndex.value = -1;
|
|
4291
4340
|
inputRef.value.inputClearForWrapper();
|
|
@@ -4307,7 +4356,7 @@ var SearchSelectProps = {
|
|
|
4307
4356
|
var list = selectedList.value.slice();
|
|
4308
4357
|
list.splice(typeof index === 'number' ? index : selectedList.value.length - 1, 1);
|
|
4309
4358
|
onValidate('');
|
|
4310
|
-
inputRef.value.
|
|
4359
|
+
inputRef.value.refreshMenuHover();
|
|
4311
4360
|
emit('update:modelValue', list.map(function (item) {
|
|
4312
4361
|
return item.toValue();
|
|
4313
4362
|
}));
|
|
@@ -4428,7 +4477,7 @@ var SearchSelectProps = {
|
|
|
4428
4477
|
* Tencent is pleased to support the open source community by making
|
|
4429
4478
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
4430
4479
|
*
|
|
4431
|
-
* Copyright (C)
|
|
4480
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
4432
4481
|
*
|
|
4433
4482
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
4434
4483
|
*
|
|
@@ -49,6 +49,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
49
49
|
menuList: Ref<ISearchItem[]>;
|
|
50
50
|
menuHoverId: Ref<string>;
|
|
51
51
|
isFocus: Ref<boolean>;
|
|
52
|
+
isComposition: Ref<boolean>;
|
|
52
53
|
usingItem: Ref<SelectedItem>;
|
|
53
54
|
showPopover: Ref<boolean>;
|
|
54
55
|
showNoSelectValueError: Ref<boolean>;
|
|
@@ -72,7 +73,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
72
73
|
inputClearForWrapper: () => void;
|
|
73
74
|
deleteInputTextNode: () => void;
|
|
74
75
|
customPanelSubmit: (value: string) => void;
|
|
75
|
-
|
|
76
|
+
refreshMenuHover: () => void;
|
|
76
77
|
t: import("vue").ComputedRef<{
|
|
77
78
|
pleaseSelect: string;
|
|
78
79
|
loading: string;
|
|
@@ -84,6 +85,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
84
85
|
logical: string;
|
|
85
86
|
}>;
|
|
86
87
|
inputKey: Ref<string>;
|
|
88
|
+
handleCompositionEnd: (event: CompositionEvent) => void;
|
|
89
|
+
handleCompositionStart: () => void;
|
|
90
|
+
handleInputCopy: (event: ClipboardEvent) => void;
|
|
87
91
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add" | "selectKey")[], "focus" | "delete" | "add" | "selectKey", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
88
92
|
data: {
|
|
89
93
|
type: PropType<ISearchItem[]>;
|
|
@@ -122,6 +122,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
122
122
|
menuList: import("vue").Ref<ISearchItem[]>;
|
|
123
123
|
menuHoverId: import("vue").Ref<string>;
|
|
124
124
|
isFocus: import("vue").Ref<boolean>;
|
|
125
|
+
isComposition: import("vue").Ref<boolean>;
|
|
125
126
|
usingItem: import("vue").Ref<SelectedItem>;
|
|
126
127
|
showPopover: import("vue").Ref<boolean>;
|
|
127
128
|
showNoSelectValueError: import("vue").Ref<boolean>;
|
|
@@ -145,7 +146,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
145
146
|
inputClearForWrapper: () => void;
|
|
146
147
|
deleteInputTextNode: () => void;
|
|
147
148
|
customPanelSubmit: (value: string) => void;
|
|
148
|
-
|
|
149
|
+
refreshMenuHover: () => void;
|
|
149
150
|
t: import("vue").ComputedRef<{
|
|
150
151
|
pleaseSelect: string;
|
|
151
152
|
loading: string;
|
|
@@ -157,6 +158,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
157
158
|
logical: string;
|
|
158
159
|
}>;
|
|
159
160
|
inputKey: import("vue").Ref<string>;
|
|
161
|
+
handleCompositionEnd: (event: CompositionEvent) => void;
|
|
162
|
+
handleCompositionStart: () => void;
|
|
163
|
+
handleInputCopy: (event: ClipboardEvent) => void;
|
|
160
164
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add" | "selectKey")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
161
165
|
data: {
|
|
162
166
|
type: PropType<ISearchItem[]>;
|
|
@@ -255,6 +259,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
255
259
|
menuList: import("vue").Ref<ISearchItem[]>;
|
|
256
260
|
menuHoverId: import("vue").Ref<string>;
|
|
257
261
|
isFocus: import("vue").Ref<boolean>;
|
|
262
|
+
isComposition: import("vue").Ref<boolean>;
|
|
258
263
|
usingItem: import("vue").Ref<SelectedItem>;
|
|
259
264
|
showPopover: import("vue").Ref<boolean>;
|
|
260
265
|
showNoSelectValueError: import("vue").Ref<boolean>;
|
|
@@ -278,7 +283,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
278
283
|
inputClearForWrapper: () => void;
|
|
279
284
|
deleteInputTextNode: () => void;
|
|
280
285
|
customPanelSubmit: (value: string) => void;
|
|
281
|
-
|
|
286
|
+
refreshMenuHover: () => void;
|
|
282
287
|
t: import("vue").ComputedRef<{
|
|
283
288
|
pleaseSelect: string;
|
|
284
289
|
loading: string;
|
|
@@ -290,6 +295,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
290
295
|
logical: string;
|
|
291
296
|
}>;
|
|
292
297
|
inputKey: import("vue").Ref<string>;
|
|
298
|
+
handleCompositionEnd: (event: CompositionEvent) => void;
|
|
299
|
+
handleCompositionStart: () => void;
|
|
300
|
+
handleInputCopy: (event: ClipboardEvent) => void;
|
|
293
301
|
}, {}, {}, {}, {
|
|
294
302
|
maxHeight: number;
|
|
295
303
|
mode: import("./utils").SearchInputMode;
|
|
@@ -406,7 +414,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
406
414
|
handleWrapClick: () => void;
|
|
407
415
|
handleInputFocus: (v: boolean) => void;
|
|
408
416
|
handleResize: () => void;
|
|
409
|
-
handleClearAll: () => void;
|
|
417
|
+
handleClearAll: (e: MouseEvent) => void;
|
|
410
418
|
handleInputOutside: (target: Node) => boolean;
|
|
411
419
|
handleAddSelected: (item: SelectedItem) => void;
|
|
412
420
|
handleDeleteSelected: (index?: number) => void;
|
|
@@ -424,7 +432,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
424
432
|
and: string;
|
|
425
433
|
logical: string;
|
|
426
434
|
}>;
|
|
427
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "update:modelValue" | "selectKey")[], "search" | "update:modelValue" | "selectKey", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
435
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("copy" | "search" | "update:modelValue" | "selectKey")[], "copy" | "search" | "update:modelValue" | "selectKey", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
428
436
|
data: {
|
|
429
437
|
type: PropType<Omit<ISearchItem, "value" | "isSelected">[]>;
|
|
430
438
|
default: () => any[];
|
|
@@ -458,6 +466,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
458
466
|
validator(v: ValueBehavior): boolean;
|
|
459
467
|
};
|
|
460
468
|
}>> & {
|
|
469
|
+
onCopy?: (...args: any[]) => any;
|
|
461
470
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
462
471
|
onSelectKey?: (...args: any[]) => any;
|
|
463
472
|
onSearch?: (...args: any[]) => any;
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
--submenu-bg-color: #151d2c;
|
|
100
100
|
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
|
101
101
|
--menu-color: #96a2b9;
|
|
102
|
-
--menu-group-color:
|
|
102
|
+
--menu-group-color: #6E788B;
|
|
103
103
|
--menu-width: 260px;
|
|
104
104
|
--menu-collapse-width: 60px;
|
|
105
105
|
--menu-active-color: white;
|
|
@@ -128,6 +128,7 @@
|
|
|
128
128
|
--search-select-menu-border-color: var(--disable-color);
|
|
129
129
|
--select-active-color: #e1ecff;
|
|
130
130
|
--select-hover-color: #f5f7fa;
|
|
131
|
+
--sub-title-bg-color: #f5f6fa;
|
|
131
132
|
}
|
|
132
133
|
@keyframes loading-scale-animate {
|
|
133
134
|
0% {
|
|
@@ -78,6 +78,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
78
78
|
menuList: import("vue").Ref<ISearchItem[]>;
|
|
79
79
|
menuHoverId: import("vue").Ref<string>;
|
|
80
80
|
isFocus: import("vue").Ref<boolean>;
|
|
81
|
+
isComposition: import("vue").Ref<boolean>;
|
|
81
82
|
usingItem: import("vue").Ref<SelectedItem>;
|
|
82
83
|
showPopover: import("vue").Ref<boolean>;
|
|
83
84
|
showNoSelectValueError: import("vue").Ref<boolean>;
|
|
@@ -101,7 +102,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
101
102
|
inputClearForWrapper: () => void;
|
|
102
103
|
deleteInputTextNode: () => void;
|
|
103
104
|
customPanelSubmit: (value: string) => void;
|
|
104
|
-
|
|
105
|
+
refreshMenuHover: () => void;
|
|
105
106
|
t: import("vue").ComputedRef<{
|
|
106
107
|
pleaseSelect: string;
|
|
107
108
|
loading: string;
|
|
@@ -113,6 +114,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
113
114
|
logical: string;
|
|
114
115
|
}>;
|
|
115
116
|
inputKey: import("vue").Ref<string>;
|
|
117
|
+
handleCompositionEnd: (event: CompositionEvent) => void;
|
|
118
|
+
handleCompositionStart: () => void;
|
|
119
|
+
handleInputCopy: (event: ClipboardEvent) => void;
|
|
116
120
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add" | "selectKey")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
117
121
|
data: {
|
|
118
122
|
type: PropType<ISearchItem[]>;
|
|
@@ -211,6 +215,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
211
215
|
menuList: import("vue").Ref<ISearchItem[]>;
|
|
212
216
|
menuHoverId: import("vue").Ref<string>;
|
|
213
217
|
isFocus: import("vue").Ref<boolean>;
|
|
218
|
+
isComposition: import("vue").Ref<boolean>;
|
|
214
219
|
usingItem: import("vue").Ref<SelectedItem>;
|
|
215
220
|
showPopover: import("vue").Ref<boolean>;
|
|
216
221
|
showNoSelectValueError: import("vue").Ref<boolean>;
|
|
@@ -234,7 +239,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
234
239
|
inputClearForWrapper: () => void;
|
|
235
240
|
deleteInputTextNode: () => void;
|
|
236
241
|
customPanelSubmit: (value: string) => void;
|
|
237
|
-
|
|
242
|
+
refreshMenuHover: () => void;
|
|
238
243
|
t: import("vue").ComputedRef<{
|
|
239
244
|
pleaseSelect: string;
|
|
240
245
|
loading: string;
|
|
@@ -246,6 +251,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
246
251
|
logical: string;
|
|
247
252
|
}>;
|
|
248
253
|
inputKey: import("vue").Ref<string>;
|
|
254
|
+
handleCompositionEnd: (event: CompositionEvent) => void;
|
|
255
|
+
handleCompositionStart: () => void;
|
|
256
|
+
handleInputCopy: (event: ClipboardEvent) => void;
|
|
249
257
|
}, {}, {}, {}, {
|
|
250
258
|
maxHeight: number;
|
|
251
259
|
mode: SearchInputMode;
|
|
@@ -26,6 +26,7 @@ export interface ISearchSelectProvider {
|
|
|
26
26
|
onEditEnter: (item: SelectedItem, index: number) => void;
|
|
27
27
|
onEditBlur: () => void;
|
|
28
28
|
onValidate: (str: string) => void;
|
|
29
|
+
onCopy: (event: ClipboardEvent, text: string, item: ISearchValue) => void;
|
|
29
30
|
editKey: Ref<string>;
|
|
30
31
|
searchData: ComputedRef<ISearchItem[]>;
|
|
31
32
|
isClickOutside: (target: Node) => boolean;
|
package/lib/select/index.d.ts
CHANGED
|
@@ -348,6 +348,10 @@ declare const BkSelect: {
|
|
|
348
348
|
} & {
|
|
349
349
|
default: boolean;
|
|
350
350
|
};
|
|
351
|
+
inputTooltipsOptions: {
|
|
352
|
+
type: import("vue").PropType<Partial<import("../../bkui-vue").IOptions>>;
|
|
353
|
+
default: () => {};
|
|
354
|
+
};
|
|
351
355
|
}>> & {
|
|
352
356
|
onFocus?: (...args: any[]) => any;
|
|
353
357
|
onBlur?: (...args: any[]) => any;
|
|
@@ -384,7 +388,7 @@ declare const BkSelect: {
|
|
|
384
388
|
inputRef: import("vue").Ref<HTMLElement>;
|
|
385
389
|
triggerRef: import("vue").Ref<HTMLElement>;
|
|
386
390
|
contentRef: import("vue").Ref<HTMLElement>;
|
|
387
|
-
searchRef: import("vue").Ref<
|
|
391
|
+
searchRef: import("vue").Ref<HTMLInputElement>;
|
|
388
392
|
scrollContainerRef: import("vue").Ref<HTMLElement>;
|
|
389
393
|
selectTagInputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
390
394
|
selected: {
|
|
@@ -1112,6 +1116,10 @@ declare const BkSelect: {
|
|
|
1112
1116
|
} & {
|
|
1113
1117
|
default: boolean;
|
|
1114
1118
|
};
|
|
1119
|
+
inputTooltipsOptions: {
|
|
1120
|
+
type: import("vue").PropType<Partial<import("../../bkui-vue").IOptions>>;
|
|
1121
|
+
default: () => {};
|
|
1122
|
+
};
|
|
1115
1123
|
}>> & {
|
|
1116
1124
|
onFocus?: (...args: any[]) => any;
|
|
1117
1125
|
onBlur?: (...args: any[]) => any;
|
|
@@ -1170,6 +1178,7 @@ declare const BkSelect: {
|
|
|
1170
1178
|
keepSearchValue: boolean;
|
|
1171
1179
|
searchWithPinyin: boolean;
|
|
1172
1180
|
disableScrollToSelectedOption: boolean;
|
|
1181
|
+
inputTooltipsOptions: {};
|
|
1173
1182
|
}, true, {}, {}, {
|
|
1174
1183
|
P: {};
|
|
1175
1184
|
B: {};
|
|
@@ -1523,6 +1532,10 @@ declare const BkSelect: {
|
|
|
1523
1532
|
} & {
|
|
1524
1533
|
default: boolean;
|
|
1525
1534
|
};
|
|
1535
|
+
inputTooltipsOptions: {
|
|
1536
|
+
type: import("vue").PropType<Partial<import("../../bkui-vue").IOptions>>;
|
|
1537
|
+
default: () => {};
|
|
1538
|
+
};
|
|
1526
1539
|
}>> & {
|
|
1527
1540
|
onFocus?: (...args: any[]) => any;
|
|
1528
1541
|
onBlur?: (...args: any[]) => any;
|
|
@@ -1559,7 +1572,7 @@ declare const BkSelect: {
|
|
|
1559
1572
|
inputRef: import("vue").Ref<HTMLElement>;
|
|
1560
1573
|
triggerRef: import("vue").Ref<HTMLElement>;
|
|
1561
1574
|
contentRef: import("vue").Ref<HTMLElement>;
|
|
1562
|
-
searchRef: import("vue").Ref<
|
|
1575
|
+
searchRef: import("vue").Ref<HTMLInputElement>;
|
|
1563
1576
|
scrollContainerRef: import("vue").Ref<HTMLElement>;
|
|
1564
1577
|
selectTagInputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
1565
1578
|
selected: {
|
|
@@ -1987,6 +2000,7 @@ declare const BkSelect: {
|
|
|
1987
2000
|
keepSearchValue: boolean;
|
|
1988
2001
|
searchWithPinyin: boolean;
|
|
1989
2002
|
disableScrollToSelectedOption: boolean;
|
|
2003
|
+
inputTooltipsOptions: {};
|
|
1990
2004
|
}>;
|
|
1991
2005
|
__isFragment?: never;
|
|
1992
2006
|
__isTeleport?: never;
|
|
@@ -2337,6 +2351,10 @@ declare const BkSelect: {
|
|
|
2337
2351
|
} & {
|
|
2338
2352
|
default: boolean;
|
|
2339
2353
|
};
|
|
2354
|
+
inputTooltipsOptions: {
|
|
2355
|
+
type: import("vue").PropType<Partial<import("../../bkui-vue").IOptions>>;
|
|
2356
|
+
default: () => {};
|
|
2357
|
+
};
|
|
2340
2358
|
}>> & {
|
|
2341
2359
|
onFocus?: (...args: any[]) => any;
|
|
2342
2360
|
onBlur?: (...args: any[]) => any;
|
|
@@ -2373,7 +2391,7 @@ declare const BkSelect: {
|
|
|
2373
2391
|
inputRef: import("vue").Ref<HTMLElement>;
|
|
2374
2392
|
triggerRef: import("vue").Ref<HTMLElement>;
|
|
2375
2393
|
contentRef: import("vue").Ref<HTMLElement>;
|
|
2376
|
-
searchRef: import("vue").Ref<
|
|
2394
|
+
searchRef: import("vue").Ref<HTMLInputElement>;
|
|
2377
2395
|
scrollContainerRef: import("vue").Ref<HTMLElement>;
|
|
2378
2396
|
selectTagInputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
2379
2397
|
selected: {
|
|
@@ -2801,6 +2819,7 @@ declare const BkSelect: {
|
|
|
2801
2819
|
keepSearchValue: boolean;
|
|
2802
2820
|
searchWithPinyin: boolean;
|
|
2803
2821
|
disableScrollToSelectedOption: boolean;
|
|
2822
|
+
inputTooltipsOptions: {};
|
|
2804
2823
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]> & Readonly<{
|
|
2805
2824
|
Option: import("vue").DefineComponent<{
|
|
2806
2825
|
id: {
|