bkui-vue 2.0.2-beta.9 → 2.0.2-beta.90
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 +166 -138
- package/dist/index.esm.js +24631 -18441
- package/dist/index.umd.js +166 -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 +52 -25
- package/lib/cascader/cascader.d.ts +309 -0
- package/lib/cascader/cascader.less +109 -75
- package/lib/cascader/cascader.variable.css +54 -26
- package/lib/cascader/index.d.ts +618 -0
- package/lib/cascader/index.js +147 -65
- 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 +64 -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 +79 -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 +8 -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 +17 -4
- package/lib/form/form.less +25 -6
- package/lib/form/form.variable.css +19 -5
- package/lib/form/index.d.ts +13 -0
- package/lib/form/index.js +43 -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 +11 -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 +45 -20
- package/lib/input/index.js +57 -29
- package/lib/input/input.css +6 -0
- package/lib/input/input.d.ts +35 -17
- 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 +15 -7
- 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 +62 -28
- package/lib/message/message.variable.css +2 -1
- package/lib/message/messageConstructor.d.ts +1 -1
- package/lib/modal/index.js +19 -8
- 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 +43 -24
- package/lib/notify/notify.variable.css +2 -1
- package/lib/overflow-title/components/overflow-title.d.ts +6 -2
- package/lib/overflow-title/index.d.ts +12 -4
- package/lib/overflow-title/index.js +3 -3
- package/lib/overflow-title/props.d.ts +3 -1
- 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 +592 -0
- package/lib/pop-confirm/index.js +10 -6
- package/lib/pop-confirm/pop-confirm.d.ts +296 -0
- package/lib/pop-confirm/pop-confirm.variable.css +2 -1
- package/lib/pop-confirm/props.d.ts +148 -0
- package/lib/popover/index.d.ts +18 -10
- package/lib/popover/index.js +281 -76
- package/lib/popover/popover.d.ts +8 -4
- package/lib/popover/popover.variable.css +2 -1
- package/lib/popover/props.d.ts +3 -1
- package/lib/popover/use-floating.d.ts +2 -2
- package/lib/popover/use-popover-init.d.ts +2 -2
- package/lib/popover/use-popper-id.d.ts +3 -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 +43 -15
- package/lib/search-select/index.js +88 -37
- package/lib/search-select/input.d.ts +5 -1
- package/lib/search-select/search-select.d.ts +14 -5
- 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/common.d.ts +0 -1
- package/lib/select/index.d.ts +58 -11
- package/lib/select/index.js +68 -66
- package/lib/select/optionGroup.d.ts +12 -1
- package/lib/select/select.d.ts +21 -4
- package/lib/select/select.variable.css +2 -1
- package/lib/select/type.d.ts +1 -0
- 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.d.ts +129 -2
- package/lib/sideslider/index.js +149 -11
- package/lib/sideslider/sideslider.css +62 -0
- package/lib/sideslider/sideslider.d.ts +59 -1
- package/lib/sideslider/sideslider.less +83 -0
- package/lib/sideslider/sideslider.variable.css +64 -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 +13 -14
- package/lib/steps/steps.css +24 -11
- package/lib/steps/steps.d.ts +1 -1
- package/lib/steps/steps.less +28 -10
- package/lib/steps/steps.variable.css +26 -12
- 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 +22 -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 +35 -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.d.ts +23 -0
- package/lib/tag/index.js +10 -5
- package/lib/tag/tag.d.ts +11 -0
- package/lib/tag/tag.variable.css +2 -1
- package/lib/tag-input/index.d.ts +82 -9
- package/lib/tag-input/index.js +1639 -54
- package/lib/tag-input/tag-input.css +31 -0
- package/lib/tag-input/tag-input.d.ts +36 -4
- package/lib/tag-input/tag-input.less +36 -0
- package/lib/tag-input/tag-input.variable.css +33 -1
- package/lib/tag-input/tag-props.d.ts +13 -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.d.ts +7 -7
- package/lib/timeline/index.js +1375 -9
- package/lib/timeline/timeline.d.ts +5 -5
- 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 +67 -11
- package/lib/tree/index.js +17694 -103
- package/lib/tree/props.d.ts +37 -3
- package/lib/tree/tree.css +34 -0
- package/lib/tree/tree.d.ts +31 -5
- package/lib/tree/tree.less +41 -2
- package/lib/tree/tree.variable.css +36 -1
- package/lib/tree/use-array-move.d.ts +6 -0
- package/lib/tree/use-node-action.d.ts +3 -1
- 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
package/lib/select/index.js
CHANGED
|
@@ -1089,7 +1089,7 @@ var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
|
|
|
1089
1089
|
;// CONCATENATED MODULE: external "vue"
|
|
1090
1090
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
|
1091
1091
|
var external_vue_y = x => () => x
|
|
1092
|
-
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["
|
|
1092
|
+
const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["h"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.h, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeMount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeMount, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["render"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.render, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["toRefs"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRefs, ["vModelText"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vModelText, ["vShow"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.vShow, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
|
1093
1093
|
;// CONCATENATED MODULE: ../../packages/select/src/common.ts
|
|
1094
1094
|
|
|
1095
1095
|
|
|
@@ -1097,7 +1097,7 @@ const external_vue_namespaceObject = external_vue_x({ ["computed"]: () => __WEBP
|
|
|
1097
1097
|
* Tencent is pleased to support the open source community by making
|
|
1098
1098
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1099
1099
|
*
|
|
1100
|
-
* Copyright (C)
|
|
1100
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1101
1101
|
*
|
|
1102
1102
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1103
1103
|
*
|
|
@@ -1156,32 +1156,6 @@ function useRegistry(data) {
|
|
|
1156
1156
|
unregister: unregister
|
|
1157
1157
|
};
|
|
1158
1158
|
}
|
|
1159
|
-
function useDebouncedRef(value) {
|
|
1160
|
-
var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 200;
|
|
1161
|
-
var timeout;
|
|
1162
|
-
var innerValue = value;
|
|
1163
|
-
return (0,external_vue_namespaceObject.customRef)(function (track, trigger) {
|
|
1164
|
-
return {
|
|
1165
|
-
get: function get() {
|
|
1166
|
-
track();
|
|
1167
|
-
return innerValue;
|
|
1168
|
-
},
|
|
1169
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1170
|
-
set: function set(newValue) {
|
|
1171
|
-
clearTimeout(timeout);
|
|
1172
|
-
if (newValue === undefined || newValue === '') {
|
|
1173
|
-
innerValue = newValue;
|
|
1174
|
-
trigger();
|
|
1175
|
-
} else {
|
|
1176
|
-
timeout = setTimeout(function () {
|
|
1177
|
-
innerValue = newValue;
|
|
1178
|
-
trigger();
|
|
1179
|
-
}, delay);
|
|
1180
|
-
}
|
|
1181
|
-
}
|
|
1182
|
-
};
|
|
1183
|
-
});
|
|
1184
|
-
}
|
|
1185
1159
|
function usePopover(config, triggerRef) {
|
|
1186
1160
|
var popoverMinWidth = config.popoverMinWidth;
|
|
1187
1161
|
var observerIns = null;
|
|
@@ -1219,8 +1193,8 @@ function usePopover(config, triggerRef) {
|
|
|
1219
1193
|
};
|
|
1220
1194
|
}
|
|
1221
1195
|
function useRemoteSearch(method, callBack) {
|
|
1222
|
-
var customOptionName =
|
|
1223
|
-
var searchValue =
|
|
1196
|
+
var customOptionName = (0,external_vue_namespaceObject.ref)(''); // 自定义创建选项(自定义创建也会触发搜索)
|
|
1197
|
+
var searchValue = (0,external_vue_namespaceObject.ref)('');
|
|
1224
1198
|
var curSearchValue = (0,external_vue_namespaceObject.computed)(function () {
|
|
1225
1199
|
return searchValue.value || customOptionName.value;
|
|
1226
1200
|
});
|
|
@@ -1347,7 +1321,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
1347
1321
|
* Tencent is pleased to support the open source community by making
|
|
1348
1322
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1349
1323
|
*
|
|
1350
|
-
* Copyright (C)
|
|
1324
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1351
1325
|
*
|
|
1352
1326
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1353
1327
|
*
|
|
@@ -1570,7 +1544,7 @@ function optionGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
|
1570
1544
|
* Tencent is pleased to support the open source community by making
|
|
1571
1545
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1572
1546
|
*
|
|
1573
|
-
* Copyright (C)
|
|
1547
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1574
1548
|
*
|
|
1575
1549
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1576
1550
|
*
|
|
@@ -1602,17 +1576,20 @@ function optionGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
|
1602
1576
|
label: shared_namespaceObject.PropTypes.string.def(''),
|
|
1603
1577
|
disabled: shared_namespaceObject.PropTypes.bool.def(false),
|
|
1604
1578
|
collapsible: shared_namespaceObject.PropTypes.bool.def(false),
|
|
1605
|
-
collapse: shared_namespaceObject.PropTypes.bool.def(false)
|
|
1579
|
+
collapse: shared_namespaceObject.PropTypes.bool.def(false),
|
|
1580
|
+
visible: shared_namespaceObject.PropTypes.bool.def(true)
|
|
1606
1581
|
},
|
|
1607
1582
|
setup: function setup(props, _ref) {
|
|
1608
1583
|
var emit = _ref.emit;
|
|
1609
1584
|
var instance = (0,external_vue_namespaceObject.getCurrentInstance)();
|
|
1585
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1610
1586
|
var proxy = instance.proxy;
|
|
1611
1587
|
var select = (0,external_vue_namespaceObject.inject)(selectKey, null);
|
|
1612
1588
|
var states = (0,external_vue_namespaceObject.reactive)({
|
|
1613
|
-
groupCollapse: props.collapse
|
|
1614
|
-
visible:
|
|
1589
|
+
groupCollapse: props.collapse
|
|
1590
|
+
// visible: props.visible,
|
|
1615
1591
|
});
|
|
1592
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1616
1593
|
var optionsMap = (0,external_vue_namespaceObject.ref)(new Map());
|
|
1617
1594
|
var _useRegistry = useRegistry(optionsMap),
|
|
1618
1595
|
register = _useRegistry.register,
|
|
@@ -1622,6 +1599,9 @@ function optionGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
|
1622
1599
|
return option.visible;
|
|
1623
1600
|
}).length, ")");
|
|
1624
1601
|
});
|
|
1602
|
+
var isVisible = (0,external_vue_namespaceObject.computed)(function () {
|
|
1603
|
+
return props.visible && !select.isSearchEmpty;
|
|
1604
|
+
});
|
|
1625
1605
|
var handleToggleCollapse = function handleToggleCollapse() {
|
|
1626
1606
|
if (!props.collapsible || props.disabled) return;
|
|
1627
1607
|
states.groupCollapse = !states.groupCollapse;
|
|
@@ -1642,6 +1622,7 @@ function optionGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
|
1642
1622
|
resolveClassName = _usePrefix.resolveClassName;
|
|
1643
1623
|
return optionGroup_objectSpread(optionGroup_objectSpread({}, (0,external_vue_namespaceObject.toRefs)(states)), {}, {
|
|
1644
1624
|
groupLabel: groupLabel,
|
|
1625
|
+
isVisible: isVisible,
|
|
1645
1626
|
handleToggleCollapse: handleToggleCollapse,
|
|
1646
1627
|
resolveClassName: resolveClassName
|
|
1647
1628
|
});
|
|
@@ -1667,7 +1648,7 @@ function optionGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
|
1667
1648
|
"class": "default-group-label-title"
|
|
1668
1649
|
}, [this.groupLabel])])]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("ul", {
|
|
1669
1650
|
"class": this.resolveClassName('option-group-content')
|
|
1670
|
-
}, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)]), [[external_vue_namespaceObject.vShow, !this.groupCollapse]])]), [[external_vue_namespaceObject.vShow, this.
|
|
1651
|
+
}, [(_this$$slots$default = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default === void 0 ? void 0 : _this$$slots$default.call(_this$$slots)]), [[external_vue_namespaceObject.vShow, !this.groupCollapse]])]), [[external_vue_namespaceObject.vShow, this.isVisible]]);
|
|
1671
1652
|
}
|
|
1672
1653
|
}));
|
|
1673
1654
|
;// CONCATENATED MODULE: ../../packages/directives/src/clickoutside.ts
|
|
@@ -1678,7 +1659,7 @@ function clickoutside_arrayLikeToArray(arr, len) { if (len == null || len > arr.
|
|
|
1678
1659
|
* Tencent is pleased to support the open source community by making
|
|
1679
1660
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1680
1661
|
*
|
|
1681
|
-
* Copyright (C)
|
|
1662
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1682
1663
|
*
|
|
1683
1664
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1684
1665
|
*
|
|
@@ -1806,7 +1787,7 @@ const popover_namespaceObject = popover_x({ ["$bkPopover"]: () => __WEBPACK_EXTE
|
|
|
1806
1787
|
* Tencent is pleased to support the open source community by making
|
|
1807
1788
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1808
1789
|
*
|
|
1809
|
-
* Copyright (C)
|
|
1790
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1810
1791
|
*
|
|
1811
1792
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1812
1793
|
*
|
|
@@ -1918,7 +1899,7 @@ var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel
|
|
|
1918
1899
|
* Tencent is pleased to support the open source community by making
|
|
1919
1900
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1920
1901
|
*
|
|
1921
|
-
* Copyright (C)
|
|
1902
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1922
1903
|
*
|
|
1923
1904
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1924
1905
|
*
|
|
@@ -1969,7 +1950,7 @@ function tooltips_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
|
1969
1950
|
* Tencent is pleased to support the open source community by making
|
|
1970
1951
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1971
1952
|
*
|
|
1972
|
-
* Copyright (C)
|
|
1953
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1973
1954
|
*
|
|
1974
1955
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1975
1956
|
*
|
|
@@ -2024,9 +2005,6 @@ var tooltips = {
|
|
|
2024
2005
|
hide(el);
|
|
2025
2006
|
}, 100);
|
|
2026
2007
|
});
|
|
2027
|
-
el.addEventListener('click', function () {
|
|
2028
|
-
hide(el);
|
|
2029
|
-
});
|
|
2030
2008
|
popper.addEventListener('mouseleave', function () {
|
|
2031
2009
|
clearTimeout(delayTimeout);
|
|
2032
2010
|
hideTimeout = setTimeout(function () {
|
|
@@ -2040,7 +2018,7 @@ var tooltips = {
|
|
|
2040
2018
|
show(el);
|
|
2041
2019
|
clearTimeout(delayTimeout);
|
|
2042
2020
|
}, opts.delay);
|
|
2043
|
-
} else if (popper.hasAttribute('data-show')) {
|
|
2021
|
+
} else if (!el.contains(event.target) && popper.hasAttribute('data-show')) {
|
|
2044
2022
|
hide(el);
|
|
2045
2023
|
}
|
|
2046
2024
|
});
|
|
@@ -2149,6 +2127,7 @@ function renderArrow() {
|
|
|
2149
2127
|
* @returns popper实例
|
|
2150
2128
|
*/
|
|
2151
2129
|
function createPopperInstance(el, popper) {
|
|
2130
|
+
if (!tooltips_nodeList.get(el)) return;
|
|
2152
2131
|
var _nodeList$get = tooltips_nodeList.get(el),
|
|
2153
2132
|
opts = _nodeList$get.opts;
|
|
2154
2133
|
var placement = opts.placement,
|
|
@@ -2189,6 +2168,7 @@ function createPopperInstance(el, popper) {
|
|
|
2189
2168
|
* @param el
|
|
2190
2169
|
*/
|
|
2191
2170
|
function show(el) {
|
|
2171
|
+
if (!tooltips_nodeList.get(el)) return;
|
|
2192
2172
|
var _nodeList$get2 = tooltips_nodeList.get(el),
|
|
2193
2173
|
popper = _nodeList$get2.popper,
|
|
2194
2174
|
opts = _nodeList$get2.opts;
|
|
@@ -2264,7 +2244,7 @@ const external_overflow_title_namespaceObject = external_overflow_title_x({ });
|
|
|
2264
2244
|
* Tencent is pleased to support the open source community by making
|
|
2265
2245
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
2266
2246
|
*
|
|
2267
|
-
* Copyright (C)
|
|
2247
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
2268
2248
|
*
|
|
2269
2249
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
2270
2250
|
*
|
|
@@ -2329,7 +2309,7 @@ const merge_namespaceObject = merge_x({ ["default"]: () => __WEBPACK_EXTERNAL_MO
|
|
|
2329
2309
|
* Tencent is pleased to support the open source community by making
|
|
2330
2310
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
2331
2311
|
*
|
|
2332
|
-
* Copyright (C)
|
|
2312
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
2333
2313
|
*
|
|
2334
2314
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
2335
2315
|
*
|
|
@@ -3227,7 +3207,7 @@ const EXCEPTIONS = {
|
|
|
3227
3207
|
* Tencent is pleased to support the open source community by making
|
|
3228
3208
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
3229
3209
|
*
|
|
3230
|
-
* Copyright (C)
|
|
3210
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
3231
3211
|
*
|
|
3232
3212
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
3233
3213
|
*
|
|
@@ -3394,7 +3374,7 @@ function parse(str) {
|
|
|
3394
3374
|
* Tencent is pleased to support the open source community by making
|
|
3395
3375
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
3396
3376
|
*
|
|
3397
|
-
* Copyright (C)
|
|
3377
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
3398
3378
|
*
|
|
3399
3379
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
3400
3380
|
*
|
|
@@ -3487,7 +3467,7 @@ function shouldPatch(toToken) {
|
|
|
3487
3467
|
* Tencent is pleased to support the open source community by making
|
|
3488
3468
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
3489
3469
|
*
|
|
3490
|
-
* Copyright (C)
|
|
3470
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
3491
3471
|
*
|
|
3492
3472
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
3493
3473
|
*
|
|
@@ -3545,7 +3525,7 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
|
3545
3525
|
* Tencent is pleased to support the open source community by making
|
|
3546
3526
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
3547
3527
|
*
|
|
3548
|
-
* Copyright (C)
|
|
3528
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
3549
3529
|
*
|
|
3550
3530
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
3551
3531
|
*
|
|
@@ -3618,6 +3598,7 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
|
3618
3598
|
value.value = modelValue.value;
|
|
3619
3599
|
});
|
|
3620
3600
|
(0,external_vue_namespaceObject.watch)([selected, collapseTags], function () {
|
|
3601
|
+
tagsRefs.value = [];
|
|
3621
3602
|
calcOverflow();
|
|
3622
3603
|
}, {
|
|
3623
3604
|
flush: 'post'
|
|
@@ -3803,7 +3784,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
|
3803
3784
|
* Tencent is pleased to support the open source community by making
|
|
3804
3785
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
3805
3786
|
*
|
|
3806
|
-
* Copyright (C)
|
|
3787
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
3807
3788
|
*
|
|
3808
3789
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
3809
3790
|
*
|
|
@@ -3904,7 +3885,13 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
|
3904
3885
|
type: String,
|
|
3905
3886
|
"default": 'default'
|
|
3906
3887
|
},
|
|
3907
|
-
disableScrollToSelectedOption: shared_namespaceObject.PropTypes.bool.def(false)
|
|
3888
|
+
disableScrollToSelectedOption: shared_namespaceObject.PropTypes.bool.def(false),
|
|
3889
|
+
inputTooltipsOptions: {
|
|
3890
|
+
type: Object,
|
|
3891
|
+
"default": function _default() {
|
|
3892
|
+
return {};
|
|
3893
|
+
}
|
|
3894
|
+
} // 透传Input组件的tooltips配置
|
|
3908
3895
|
},
|
|
3909
3896
|
emits: ['update:modelValue', 'change', 'toggle', 'clear', 'scroll-end', 'focus', 'blur', 'tag-remove', 'select', 'deselect', 'search-change'],
|
|
3910
3897
|
setup: function setup(props, _ref) {
|
|
@@ -4094,7 +4081,10 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
|
4094
4081
|
});
|
|
4095
4082
|
// 是否显示select下拉内容
|
|
4096
4083
|
var isShowSelectContent = (0,external_vue_namespaceObject.computed)(function () {
|
|
4097
|
-
|
|
4084
|
+
// 自定义内容时始终显示
|
|
4085
|
+
if (customContent.value) return true;
|
|
4086
|
+
// 加载中、无数据、无搜索结果时不显示下拉内容
|
|
4087
|
+
return !(searchLoading.value || isOptionsEmpty.value || isSearchEmpty.value);
|
|
4098
4088
|
});
|
|
4099
4089
|
// 是否显示全选
|
|
4100
4090
|
var isShowSelectAll = (0,external_vue_namespaceObject.computed)(function () {
|
|
@@ -4289,6 +4279,10 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
|
4289
4279
|
emit('change', val, modelValue.value);
|
|
4290
4280
|
// 重置Selected 以model-value为主
|
|
4291
4281
|
handleSetSelectedData();
|
|
4282
|
+
if (multiple.value) {
|
|
4283
|
+
// 多选时enter之后变成tag不需要保存当前值
|
|
4284
|
+
customOptionName.value = '';
|
|
4285
|
+
}
|
|
4292
4286
|
};
|
|
4293
4287
|
// 派发toggle事件
|
|
4294
4288
|
var handleTogglePopover = function handleTogglePopover() {
|
|
@@ -4300,6 +4294,9 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
|
4300
4294
|
var handleInputChange = function handleInputChange(value) {
|
|
4301
4295
|
if (!filterable.value) return;
|
|
4302
4296
|
customOptionName.value = value;
|
|
4297
|
+
if (!(value !== null && value !== void 0 && value.length)) {
|
|
4298
|
+
emitChange(multiple.value ? [] : '');
|
|
4299
|
+
}
|
|
4303
4300
|
};
|
|
4304
4301
|
// allow create(创建自定义选项)
|
|
4305
4302
|
var handleCreateCustomOption = function handleCreateCustomOption(val, e) {
|
|
@@ -4314,7 +4311,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
|
4314
4311
|
if (filterable.value && matchedOption) {
|
|
4315
4312
|
// 开启搜索后,正好匹配到自定义选项,则不进行创建操作
|
|
4316
4313
|
handleOptionSelected(matchedOption);
|
|
4317
|
-
customOptionName.value = '';
|
|
4318
4314
|
return;
|
|
4319
4315
|
}
|
|
4320
4316
|
var data = optionsMap.value.get(value);
|
|
@@ -4335,7 +4331,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
|
4335
4331
|
emitChange(value);
|
|
4336
4332
|
handleHidePopover();
|
|
4337
4333
|
}
|
|
4338
|
-
customOptionName.value = '';
|
|
4339
4334
|
};
|
|
4340
4335
|
// Option点击事件
|
|
4341
4336
|
var handleOptionSelected = function handleOptionSelected(option) {
|
|
@@ -4376,9 +4371,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
|
4376
4371
|
label: option.optionName || option.optionID,
|
|
4377
4372
|
value: option.optionID
|
|
4378
4373
|
}];
|
|
4379
|
-
if (filterable.value && allowCreate.value) {
|
|
4380
|
-
customOptionName.value = '';
|
|
4381
|
-
}
|
|
4382
4374
|
emitChange(option.optionID);
|
|
4383
4375
|
emit('select', option.optionID);
|
|
4384
4376
|
handleHidePopover();
|
|
@@ -4426,6 +4418,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
|
4426
4418
|
var handleClear = function handleClear(e) {
|
|
4427
4419
|
e.stopPropagation();
|
|
4428
4420
|
selected.value = [];
|
|
4421
|
+
customOptionName.value = '';
|
|
4429
4422
|
clearMultipleInputValue();
|
|
4430
4423
|
emitChange(multiple.value ? [] : '');
|
|
4431
4424
|
emit('clear', multiple.value ? [] : '');
|
|
@@ -4602,9 +4595,10 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
|
4602
4595
|
case 'NumpadEnter':
|
|
4603
4596
|
case 'Enter':
|
|
4604
4597
|
{
|
|
4598
|
+
var _searchRef$value2;
|
|
4605
4599
|
var value = e.target.value;
|
|
4606
4600
|
// 搜索和创建的时候不触发enter事件
|
|
4607
|
-
if (allowCreate.value && value || e.target === searchRef.value) return;
|
|
4601
|
+
if (allowCreate.value && value || e.target === searchRef.value && (_searchRef$value2 = searchRef.value) !== null && _searchRef$value2 !== void 0 && _searchRef$value2.value) return;
|
|
4608
4602
|
var option = optionsMap.value.get(activeOptionValue.value);
|
|
4609
4603
|
handleOptionSelected(option);
|
|
4610
4604
|
break;
|
|
@@ -4627,6 +4621,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
|
4627
4621
|
selectedStyle: selectedStyle,
|
|
4628
4622
|
curSearchValue: curSearchValue,
|
|
4629
4623
|
highlightKeyword: highlightKeyword,
|
|
4624
|
+
isSearchEmpty: isSearchEmpty,
|
|
4630
4625
|
register: register,
|
|
4631
4626
|
unregister: unregister,
|
|
4632
4627
|
registerGroup: registerGroup,
|
|
@@ -4645,6 +4640,10 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
|
4645
4640
|
var _virtualRenderRef$val;
|
|
4646
4641
|
(_virtualRenderRef$val = virtualRenderRef.value) === null || _virtualRenderRef$val === void 0 || _virtualRenderRef$val.scrollTo(0, 1);
|
|
4647
4642
|
};
|
|
4643
|
+
// 处理扩展区域点击事件
|
|
4644
|
+
var handleExtensionClick = function handleExtensionClick(e) {
|
|
4645
|
+
e.stopPropagation();
|
|
4646
|
+
};
|
|
4648
4647
|
return {
|
|
4649
4648
|
t: t,
|
|
4650
4649
|
selected: selected,
|
|
@@ -4709,7 +4708,8 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
|
4709
4708
|
isEnableVirtualRender: isEnableVirtualRender,
|
|
4710
4709
|
preloadItemCount: preloadItemCount,
|
|
4711
4710
|
virtualRenderRef: virtualRenderRef,
|
|
4712
|
-
setSelected: setSelected
|
|
4711
|
+
setSelected: setSelected,
|
|
4712
|
+
handleExtensionClick: handleExtensionClick
|
|
4713
4713
|
};
|
|
4714
4714
|
},
|
|
4715
4715
|
render: function render() {
|
|
@@ -4727,7 +4727,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
|
4727
4727
|
"theme": "primary"
|
|
4728
4728
|
}, null);
|
|
4729
4729
|
}
|
|
4730
|
-
if (_this.clearable && _this.isHover && _this.selected.length && !_this.isDisabled) {
|
|
4730
|
+
if (_this.clearable && _this.isHover && _this.selected.length && !_this.isDisabled || _this.allowCreate && _this.isHover && _this.customOptionName && !_this.isDisabled) {
|
|
4731
4731
|
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Close, {
|
|
4732
4732
|
"class": "clear-icon",
|
|
4733
4733
|
"onClick": _this.handleClear
|
|
@@ -4829,12 +4829,13 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
|
4829
4829
|
"ref": "inputRef",
|
|
4830
4830
|
"behavior": _this.behavior,
|
|
4831
4831
|
"disabled": _this.isDisabled,
|
|
4832
|
-
"modelValue": _this.isInput ? _this.customOptionName : _this.selectedLabel.join(','),
|
|
4832
|
+
"modelValue": _this.isInput && _this.customOptionName ? _this.customOptionName : _this.selectedLabel.join(','),
|
|
4833
4833
|
"placeholder": _this.isInput ? _this.selectedLabel.join(',') || _this.localPlaceholder : _this.localPlaceholder,
|
|
4834
4834
|
"readonly": !_this.isInput,
|
|
4835
4835
|
"selectReadonly": true,
|
|
4836
4836
|
"size": _this.size,
|
|
4837
4837
|
"stopPropagation": false,
|
|
4838
|
+
"tooltipsOptions": _this.inputTooltipsOptions,
|
|
4838
4839
|
"type": "text",
|
|
4839
4840
|
"withValidate": false,
|
|
4840
4841
|
"onEnter": _this.handleCreateCustomOption,
|
|
@@ -4948,7 +4949,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
|
4948
4949
|
"theme": "primary"
|
|
4949
4950
|
}, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.curContentText])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
|
4950
4951
|
"class": _this.resolveClassName('select-content')
|
|
4951
|
-
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
|
4952
|
+
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
|
4952
4953
|
"ref": "scrollContainerRef",
|
|
4953
4954
|
"style": {
|
|
4954
4955
|
maxHeight: "".concat(_this.scrollHeight, "px"),
|
|
@@ -4966,8 +4967,9 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
|
4966
4967
|
"mode": "spin",
|
|
4967
4968
|
"size": "mini",
|
|
4968
4969
|
"theme": "primary"
|
|
4969
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.localLoadingText])])])]), ((_this$$slots18 = _this.$slots) === null || _this$$slots18 === void 0 ? void 0 : _this$$slots18.extension) && (0,external_vue_namespaceObject.createVNode)("div", {
|
|
4970
|
-
"class": _this.resolveClassName('select-extension')
|
|
4970
|
+
}, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.localLoadingText])])])]), [[external_vue_namespaceObject.vShow, _this.isShowSelectContent]]), ((_this$$slots18 = _this.$slots) === null || _this$$slots18 === void 0 ? void 0 : _this$$slots18.extension) && (0,external_vue_namespaceObject.createVNode)("div", {
|
|
4971
|
+
"class": _this.resolveClassName('select-extension'),
|
|
4972
|
+
"onClick": _this.handleExtensionClick
|
|
4971
4973
|
}, [(_this$$slots19 = _this.$slots) === null || _this$$slots19 === void 0 ? void 0 : _this$$slots19.extension()])])]);
|
|
4972
4974
|
};
|
|
4973
4975
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
|
@@ -4991,7 +4993,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
|
4991
4993
|
* Tencent is pleased to support the open source community by making
|
|
4992
4994
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
4993
4995
|
*
|
|
4994
|
-
* Copyright (C)
|
|
4996
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
4995
4997
|
*
|
|
4996
4998
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
4997
4999
|
*
|
|
@@ -19,12 +19,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
19
|
} & {
|
|
20
20
|
default: boolean;
|
|
21
21
|
};
|
|
22
|
+
visible: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
23
|
+
default: boolean;
|
|
24
|
+
} & {
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
22
27
|
}, {
|
|
23
28
|
groupLabel: import("vue").ComputedRef<string>;
|
|
29
|
+
isVisible: import("vue").ComputedRef<boolean>;
|
|
24
30
|
handleToggleCollapse: () => void;
|
|
25
31
|
resolveClassName: (cls: string) => string;
|
|
26
32
|
groupCollapse: import("vue").Ref<boolean>;
|
|
27
|
-
visible: import("vue").Ref<boolean>;
|
|
28
33
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
34
|
label: import("vue-types").VueTypeValidableDef<string> & {
|
|
30
35
|
default: string;
|
|
@@ -46,8 +51,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
46
51
|
} & {
|
|
47
52
|
default: boolean;
|
|
48
53
|
};
|
|
54
|
+
visible: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
55
|
+
default: boolean;
|
|
56
|
+
} & {
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
49
59
|
}>>, {
|
|
50
60
|
label: string;
|
|
61
|
+
visible: boolean;
|
|
51
62
|
disabled: boolean;
|
|
52
63
|
collapse: boolean;
|
|
53
64
|
collapsible: boolean;
|
package/lib/select/select.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { IOptions } from '../directives';
|
|
2
3
|
import { ISelected, OptionInstanceType } from './type';
|
|
3
4
|
declare const _default: import("vue").DefineComponent<{
|
|
4
5
|
modelValue: import("vue-types").VueTypeValidableDef<any>;
|
|
@@ -194,7 +195,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
194
195
|
alignmentAxis?: number;
|
|
195
196
|
});
|
|
196
197
|
};
|
|
197
|
-
boundary: import("vue-types").VueTypeDef<string | HTMLElement
|
|
198
|
+
boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
|
|
199
|
+
default: string | (() => HTMLElement);
|
|
200
|
+
};
|
|
198
201
|
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
|
199
202
|
default: number;
|
|
200
203
|
} & {
|
|
@@ -346,6 +349,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
346
349
|
} & {
|
|
347
350
|
default: boolean;
|
|
348
351
|
};
|
|
352
|
+
inputTooltipsOptions: {
|
|
353
|
+
type: PropType<Partial<IOptions>>;
|
|
354
|
+
default: () => {};
|
|
355
|
+
};
|
|
349
356
|
}, {
|
|
350
357
|
t: import("vue").ComputedRef<{
|
|
351
358
|
noData: string;
|
|
@@ -370,7 +377,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
370
377
|
inputRef: import("vue").Ref<HTMLElement>;
|
|
371
378
|
triggerRef: import("vue").Ref<HTMLElement>;
|
|
372
379
|
contentRef: import("vue").Ref<HTMLElement>;
|
|
373
|
-
searchRef: import("vue").Ref<
|
|
380
|
+
searchRef: import("vue").Ref<HTMLInputElement>;
|
|
374
381
|
scrollContainerRef: import("vue").Ref<HTMLElement>;
|
|
375
382
|
selectTagInputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
376
383
|
selected: {
|
|
@@ -652,7 +659,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
652
659
|
alignmentAxis?: number;
|
|
653
660
|
});
|
|
654
661
|
};
|
|
655
|
-
boundary: import("vue-types").VueTypeDef<string | HTMLElement
|
|
662
|
+
boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
|
|
663
|
+
default: string | (() => HTMLElement);
|
|
664
|
+
};
|
|
656
665
|
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
|
657
666
|
default: number;
|
|
658
667
|
} & {
|
|
@@ -752,6 +761,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
752
761
|
preloadItemCount: import("vue").ComputedRef<number>;
|
|
753
762
|
virtualRenderRef: import("vue").Ref<any>;
|
|
754
763
|
setSelected: (data: Array<object>) => void;
|
|
764
|
+
handleExtensionClick: (e: MouseEvent) => void;
|
|
755
765
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "change" | "focus" | "select" | "toggle" | "clear" | "update:modelValue" | "scroll-end" | "tag-remove" | "deselect" | "search-change")[], "blur" | "change" | "focus" | "select" | "toggle" | "clear" | "update:modelValue" | "scroll-end" | "tag-remove" | "deselect" | "search-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
756
766
|
modelValue: import("vue-types").VueTypeValidableDef<any>;
|
|
757
767
|
multiple: import("vue-types").VueTypeValidableDef<boolean> & {
|
|
@@ -946,7 +956,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
946
956
|
alignmentAxis?: number;
|
|
947
957
|
});
|
|
948
958
|
};
|
|
949
|
-
boundary: import("vue-types").VueTypeDef<string | HTMLElement
|
|
959
|
+
boundary: import("vue-types").VueTypeDef<string | HTMLElement> & {
|
|
960
|
+
default: string | (() => HTMLElement);
|
|
961
|
+
};
|
|
950
962
|
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
|
951
963
|
default: number;
|
|
952
964
|
} & {
|
|
@@ -1098,6 +1110,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1098
1110
|
} & {
|
|
1099
1111
|
default: boolean;
|
|
1100
1112
|
};
|
|
1113
|
+
inputTooltipsOptions: {
|
|
1114
|
+
type: PropType<Partial<IOptions>>;
|
|
1115
|
+
default: () => {};
|
|
1116
|
+
};
|
|
1101
1117
|
}>> & {
|
|
1102
1118
|
onFocus?: (...args: any[]) => any;
|
|
1103
1119
|
onBlur?: (...args: any[]) => any;
|
|
@@ -1156,5 +1172,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1156
1172
|
keepSearchValue: boolean;
|
|
1157
1173
|
searchWithPinyin: boolean;
|
|
1158
1174
|
disableScrollToSelectedOption: boolean;
|
|
1175
|
+
inputTooltipsOptions: {};
|
|
1159
1176
|
}, {}>;
|
|
1160
1177
|
export default _default;
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
--submenu-bg-color: #151d2c;
|
|
99
99
|
--menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
|
|
100
100
|
--menu-color: #96a2b9;
|
|
101
|
-
--menu-group-color:
|
|
101
|
+
--menu-group-color: #6E788B;
|
|
102
102
|
--menu-width: 260px;
|
|
103
103
|
--menu-collapse-width: 60px;
|
|
104
104
|
--menu-active-color: white;
|
|
@@ -127,6 +127,7 @@
|
|
|
127
127
|
--search-select-menu-border-color: var(--disable-color);
|
|
128
128
|
--select-active-color: #e1ecff;
|
|
129
129
|
--select-hover-color: #f5f7fa;
|
|
130
|
+
--sub-title-bg-color: #f5f6fa;
|
|
130
131
|
}
|
|
131
132
|
@keyframes loading-scale-animate {
|
|
132
133
|
0% {
|
package/lib/select/type.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export interface ISelectContext {
|
|
|
16
16
|
selectedStyle: 'check' | 'checkbox';
|
|
17
17
|
curSearchValue: string;
|
|
18
18
|
highlightKeyword: boolean;
|
|
19
|
+
isSearchEmpty: boolean;
|
|
19
20
|
register(key: PropertyKey, option: OptionInstanceType): void;
|
|
20
21
|
unregister(key: PropertyKey, option?: OptionInstanceType): void;
|
|
21
22
|
registerGroup(key: PropertyKey, option: GroupInstanceType): void;
|
package/lib/shared/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Tencent is pleased to support the open source community by making
|
|
3
3
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
4
4
|
*
|
|
5
|
-
* Copyright (C)
|
|
5
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
6
6
|
*
|
|
7
7
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
8
8
|
*
|