bkui-vue 2.0.1-beta.60 → 2.0.1-beta.60.fix.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -15
- package/dist/index.cjs.js +59 -59
- package/dist/index.esm.js +18048 -18492
- package/dist/index.umd.js +60 -60
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +0 -130
- package/lib/affix/affix.variable.css +1 -262
- package/lib/alert/alert.css +3 -133
- package/lib/alert/alert.d.ts +7 -0
- package/lib/alert/alert.variable.css +1 -262
- package/lib/alert/index.d.ts +15 -0
- package/lib/alert/index.js +6 -6
- package/lib/backtop/backtop.css +3 -133
- package/lib/backtop/backtop.variable.css +4 -395
- package/lib/badge/badge.css +26 -156
- package/lib/badge/badge.variable.css +1 -262
- package/lib/breadcrumb/breadcrumb.css +5 -135
- package/lib/breadcrumb/breadcrumb.variable.css +6 -397
- package/lib/button/button.css +143 -273
- package/lib/button/button.variable.css +1 -262
- package/lib/card/card.css +4 -134
- package/lib/card/card.variable.css +5 -396
- package/lib/cascader/cascader.css +23 -153
- package/lib/cascader/cascader.variable.css +24 -415
- package/lib/cascader/index.js +1 -0
- package/lib/checkbox/checkbox-group.d.ts +16 -0
- package/lib/checkbox/checkbox.css +9 -147
- package/lib/checkbox/checkbox.d.ts +0 -32
- package/lib/checkbox/checkbox.less +0 -12
- package/lib/checkbox/checkbox.variable.css +1 -270
- package/lib/checkbox/index.d.ts +11 -46
- package/lib/checkbox/index.js +4 -9
- package/lib/code-diff/code-diff.css +0 -130
- package/lib/code-diff/code-diff.variable.css +1 -262
- package/lib/collapse/collapse.css +1 -131
- package/lib/collapse/collapse.variable.css +1 -262
- package/lib/collapse-transition/collapse-transition.css +0 -130
- package/lib/collapse-transition/collapse-transition.variable.css +1 -262
- package/lib/color-picker/color-picker.css +0 -130
- package/lib/color-picker/color-picker.variable.css +1 -262
- package/lib/config-provider/config-provider.css +0 -130
- package/lib/config-provider/config-provider.variable.css +1 -262
- package/lib/container/container.css +0 -130
- package/lib/container/container.variable.css +1 -392
- package/lib/date-picker/date-picker.css +17 -147
- package/lib/date-picker/date-picker.d.ts +9 -0
- package/lib/date-picker/date-picker.variable.css +1 -262
- package/lib/date-picker/index.d.ts +19 -0
- package/lib/date-picker/index.js +17 -29
- package/lib/date-picker/panel/time-range.d.ts +9 -0
- package/lib/date-picker/panel/time.d.ts +10 -1
- package/lib/date-picker/props.d.ts +4 -0
- package/lib/date-picker/time-picker.d.ts +9 -0
- package/lib/dialog/dialog.css +8 -138
- package/lib/dialog/dialog.d.ts +5 -16
- package/lib/dialog/dialog.variable.css +9 -400
- package/lib/dialog/index.d.ts +11 -34
- package/lib/dialog/props.d.ts +2 -7
- package/lib/directives/index.js +6 -12
- package/lib/divider/divider.css +3 -133
- package/lib/divider/divider.variable.css +1 -262
- package/lib/dropdown/dropdown-item.d.ts +1 -1
- package/lib/dropdown/dropdown-menu.d.ts +1 -1
- package/lib/dropdown/dropdown.css +0 -130
- package/lib/dropdown/dropdown.variable.css +1 -392
- package/lib/dropdown/index.d.ts +2 -2
- package/lib/exception/exception.css +0 -130
- package/lib/exception/exception.variable.css +1 -262
- package/lib/fixed-navbar/fixed-navbar.css +4 -134
- package/lib/fixed-navbar/fixed-navbar.variable.css +1 -262
- package/lib/form/form-item.d.ts +18 -6
- package/lib/form/form.css +0 -130
- package/lib/form/form.variable.css +1 -262
- package/lib/form/index.d.ts +13 -6
- package/lib/form/index.js +6 -8
- package/lib/image/image-viewer.css +0 -130
- package/lib/image/image-viewer.variable.css +1 -262
- package/lib/image/image.css +0 -130
- package/lib/image/image.variable.css +1 -392
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +5 -3
- package/lib/info-box/info-box.css +4 -134
- package/lib/info-box/info-box.variable.css +1 -262
- package/lib/input/index.js +9 -36
- package/lib/input/input.css +72 -202
- package/lib/input/input.variable.css +73 -464
- package/lib/link/link.css +16 -146
- package/lib/link/link.variable.css +1 -262
- package/lib/loading/loading.css +16 -146
- package/lib/loading/loading.variable.css +17 -408
- package/lib/menu/menu.css +18 -148
- package/lib/menu/menu.variable.css +19 -410
- package/lib/menu/submenu.css +0 -130
- package/lib/menu/submenu.variable.css +1 -262
- package/lib/message/message.css +22 -153
- package/lib/message/message.less +2 -3
- package/lib/message/message.variable.css +2 -264
- package/lib/modal/index.d.ts +13 -41
- package/lib/modal/index.js +18 -33
- package/lib/modal/modal.css +4 -134
- package/lib/modal/modal.d.ts +5 -16
- package/lib/modal/modal.variable.css +5 -396
- package/lib/modal/props.mixin.d.ts +2 -7
- package/lib/navigation/navigation.css +2 -132
- package/lib/navigation/navigation.variable.css +1 -262
- package/lib/notify/notify.css +7 -137
- package/lib/notify/notify.variable.css +1 -262
- package/lib/overflow-title/components/overflow-title.d.ts +7 -0
- package/lib/overflow-title/index.d.ts +15 -0
- package/lib/overflow-title/index.js +1 -0
- package/lib/overflow-title/props.d.ts +3 -0
- package/lib/pagination/index.d.ts +19 -0
- package/lib/pagination/index.js +9 -47
- package/lib/pagination/pagination.css +9 -139
- package/lib/pagination/pagination.d.ts +13 -0
- package/lib/pagination/pagination.less +13 -14
- package/lib/pagination/pagination.variable.css +9 -270
- package/lib/pop-confirm/index.d.ts +32 -0
- package/lib/pop-confirm/index.js +18 -16
- package/lib/pop-confirm/pop-confirm.css +1 -133
- package/lib/pop-confirm/pop-confirm.d.ts +14 -0
- package/lib/pop-confirm/pop-confirm.less +1 -3
- package/lib/pop-confirm/pop-confirm.variable.css +2 -265
- package/lib/pop-confirm/props.d.ts +7 -1
- package/lib/popover/popover.css +0 -130
- package/lib/popover/popover.variable.css +1 -262
- package/lib/process/process.css +13 -143
- package/lib/process/process.variable.css +1 -262
- package/lib/progress/progress.css +4 -134
- package/lib/progress/progress.variable.css +5 -396
- package/lib/radio/index.d.ts +21 -21
- package/lib/radio/radio-button.d.ts +7 -7
- package/lib/radio/radio-group.d.ts +7 -7
- package/lib/radio/radio.css +42 -172
- package/lib/radio/radio.d.ts +7 -7
- package/lib/radio/radio.variable.css +1 -262
- package/lib/rate/rate.css +0 -130
- package/lib/rate/rate.variable.css +1 -262
- package/lib/resize-layout/resize-layout.css +0 -130
- package/lib/resize-layout/resize-layout.variable.css +1 -262
- package/lib/scrollbar/index.d.ts +13 -133
- package/lib/scrollbar/index.js +18444 -1343
- package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +2 -0
- package/lib/scrollbar/scrollbar-core/helpers.d.ts +5 -0
- package/lib/scrollbar/scrollbar-core/index.d.ts +241 -0
- package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +5 -0
- package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +1 -0
- package/lib/scrollbar/scrollbar.css +75 -0
- package/lib/scrollbar/scrollbar.less +94 -0
- package/lib/{styles/themes/themes.css → scrollbar/scrollbar.variable.css} +76 -2
- package/lib/search-select/index.d.ts +72 -40
- package/lib/search-select/index.js +67 -85
- package/lib/search-select/input.d.ts +4 -5
- package/lib/search-select/search-select.css +33 -163
- package/lib/search-select/search-select.d.ts +39 -15
- package/lib/search-select/search-select.variable.css +34 -425
- package/lib/search-select/selected.d.ts +9 -11
- package/lib/search-select/utils.d.ts +3 -3
- package/lib/select/common.d.ts +2 -2
- package/lib/select/index.d.ts +4 -32
- package/lib/select/index.js +59 -119
- package/lib/select/option.d.ts +5 -4
- package/lib/select/select.css +43 -175
- package/lib/select/select.d.ts +0 -12
- package/lib/select/select.less +4 -7
- package/lib/select/select.variable.css +44 -437
- package/lib/select/type.d.ts +10 -9
- package/lib/shared/index.d.ts +0 -1
- package/lib/shared/index.js +1 -72
- package/lib/sideslider/index.d.ts +11 -34
- package/lib/sideslider/index.js +0 -1
- package/lib/sideslider/sideslider.css +9 -138
- package/lib/sideslider/sideslider.d.ts +5 -16
- package/lib/sideslider/sideslider.less +8 -7
- package/lib/sideslider/sideslider.variable.css +9 -269
- package/lib/slider/slider.css +5 -135
- package/lib/slider/slider.variable.css +1 -262
- package/lib/steps/index.d.ts +18 -3
- package/lib/steps/index.js +1 -0
- package/lib/steps/steps.css +38 -168
- package/lib/steps/steps.d.ts +11 -1
- package/lib/steps/steps.variable.css +1 -262
- package/lib/styles/index.d.ts +0 -1
- package/lib/styles/mixins/animate.css +0 -130
- package/lib/styles/mixins/animate.variable.css +1 -262
- package/lib/styles/mixins/mixins.css +0 -130
- package/lib/styles/mixins/mixins.variable.css +0 -130
- package/lib/styles/mixins/popper.css +0 -130
- package/lib/styles/mixins/popper.variable.css +1 -262
- package/lib/styles/mixins/scroll.css +0 -130
- package/lib/styles/mixins/scroll.variable.css +1 -262
- package/lib/styles/reset.css +0 -130
- package/lib/styles/reset.variable.css +1 -262
- package/lib/styles/themes/themes.less +129 -299
- package/lib/swiper/swiper.css +0 -130
- package/lib/swiper/swiper.variable.css +1 -262
- package/lib/switcher/switcher.css +17 -147
- package/lib/switcher/switcher.variable.css +18 -409
- package/lib/tab/index.d.ts +92 -0
- package/lib/tab/index.js +14 -1
- package/lib/tab/props.d.ts +35 -0
- package/lib/tab/tab-nav.d.ts +45 -2
- package/lib/tab/tab.css +17 -147
- package/lib/tab/tab.d.ts +44 -0
- package/lib/tab/tab.variable.css +1 -262
- package/lib/table/components/table-cell.d.ts +0 -22
- package/lib/table/components/table-column.d.ts +44 -1
- package/lib/table/const.d.ts +2 -15
- package/lib/table/events.d.ts +98 -2
- package/lib/table/index.d.ts +561 -89
- package/lib/table/index.js +3333 -3812
- package/lib/table/plugins/col-group.d.ts +38 -0
- package/lib/table/plugins/head-filter.css +0 -131
- package/lib/table/plugins/head-filter.d.ts +1 -2
- package/lib/table/plugins/head-filter.less +0 -1
- package/lib/table/plugins/head-filter.variable.css +1 -263
- package/lib/table/plugins/head-sort.css +0 -130
- package/lib/table/plugins/head-sort.variable.css +1 -262
- package/lib/table/plugins/settings.css +0 -131
- package/lib/table/plugins/settings.d.ts +16 -0
- package/lib/table/plugins/settings.less +0 -1
- package/lib/table/plugins/settings.variable.css +1 -263
- package/lib/table/plugins/use-active-columns.d.ts +16 -0
- package/lib/table/plugins/use-column-resize.d.ts +35 -0
- package/lib/table/plugins/use-column-template.d.ts +7 -0
- package/lib/table/{hooks → plugins}/use-draggable.d.ts +2 -2
- package/lib/table/plugins/use-fixed-column.d.ts +27 -0
- package/lib/table/plugins/use-head-cell.d.ts +7 -0
- package/lib/table/plugins/use-pagination.d.ts +23 -0
- package/lib/table/{hooks → plugins}/use-shift-key.d.ts +2 -4
- package/lib/table/props.d.ts +30 -92
- package/lib/table/table.css +327 -597
- package/lib/table/table.d.ts +181 -47
- package/lib/table/table.less +101 -228
- package/lib/table/table.variable.css +328 -859
- package/lib/table/use-attributes.d.ts +62 -0
- package/lib/table/use-column.d.ts +155 -0
- package/lib/table/use-common.d.ts +1679 -0
- package/lib/table/use-render.d.ts +11 -0
- package/lib/table/utils.d.ts +18 -45
- package/lib/table-column/index.d.ts +132 -3
- package/lib/table-column/index.js +28 -17367
- package/lib/tag/index.js +1 -0
- package/lib/tag/tag.css +6 -136
- package/lib/tag/tag.less +1 -1
- package/lib/tag/tag.variable.css +2 -263
- package/lib/tag-input/index.js +3 -3
- package/lib/tag-input/tag-input.css +18 -148
- package/lib/tag-input/tag-input.d.ts +14 -2
- package/lib/tag-input/tag-input.variable.css +1 -262
- package/lib/time-picker/index.d.ts +19 -0
- package/lib/time-picker/time-picker.css +0 -130
- package/lib/time-picker/time-picker.variable.css +1 -262
- package/lib/timeline/timeline.css +19 -149
- package/lib/timeline/timeline.variable.css +1 -262
- package/lib/transfer/transfer.css +19 -149
- package/lib/transfer/transfer.variable.css +1 -262
- package/lib/tree/constant.d.ts +1 -3
- package/lib/tree/index.d.ts +7 -21
- package/lib/tree/index.js +18 -61
- package/lib/tree/props.d.ts +5 -12
- package/lib/tree/tree.css +78 -242
- package/lib/tree/tree.d.ts +3 -9
- package/lib/tree/tree.variable.css +79 -504
- package/lib/tree/use-node-action.d.ts +9 -10
- package/lib/tree/use-node-async.d.ts +1 -2
- package/lib/tree/use-node-attribute.d.ts +34 -42
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/tree/use-tree-init.d.ts +5 -8
- package/lib/tree/util.d.ts +21 -21
- package/lib/upload/index.d.ts +4 -27
- package/lib/upload/index.js +7 -30
- package/lib/upload/props.d.ts +2 -7
- package/lib/upload/upload.css +27 -157
- package/lib/upload/upload.d.ts +2 -13
- package/lib/upload/upload.type.d.ts +0 -6
- package/lib/upload/upload.variable.css +28 -419
- package/lib/virtual-render/index.d.ts +46 -12
- package/lib/virtual-render/index.js +148 -17469
- package/lib/virtual-render/props.d.ts +9 -2
- package/lib/virtual-render/use-fix-top.d.ts +1 -1
- package/lib/virtual-render/use-scrollbar.d.ts +17 -4
- package/lib/virtual-render/v-virtual-render.d.ts +1 -7
- package/lib/virtual-render/virtual-render.css +69 -225
- package/lib/virtual-render/virtual-render.d.ts +22 -6
- package/lib/virtual-render/virtual-render.less +11 -2
- package/lib/virtual-render/virtual-render.variable.css +70 -487
- package/lib/volar.components.d.ts +0 -2
- package/package.json +1 -1
- package/lib/scrollbar/css/scrollbar.css +0 -239
- package/lib/scrollbar/css/scrollbar.less +0 -139
- package/lib/scrollbar/css/scrollbar.variable.css +0 -499
- package/lib/scrollbar/handlers/click-rail.d.ts +0 -2
- package/lib/scrollbar/handlers/drag-thumb.d.ts +0 -1
- package/lib/scrollbar/handlers/keyboard.d.ts +0 -2
- package/lib/scrollbar/handlers/mouse-wheel.d.ts +0 -2
- package/lib/scrollbar/handlers/touch.d.ts +0 -4
- package/lib/scrollbar/helper/class-names.d.ts +0 -21
- package/lib/scrollbar/helper/css.d.ts +0 -3
- package/lib/scrollbar/helper/dom.d.ts +0 -4
- package/lib/scrollbar/helper/event-manager.d.ts +0 -20
- package/lib/scrollbar/helper/util.d.ts +0 -11
- package/lib/scrollbar/process-scroll-diff.d.ts +0 -1
- package/lib/scrollbar/update-geometry.d.ts +0 -8
- package/lib/shared/frame-throttle.d.ts +0 -15
- package/lib/styles/themes/themes.variable.css +0 -130
- package/lib/table/components/ghost-body.d.ts +0 -2
- package/lib/table/hooks/use-cell.d.ts +0 -20
- package/lib/table/hooks/use-column-resize.d.ts +0 -7
- package/lib/table/hooks/use-column-template.d.ts +0 -5
- package/lib/table/hooks/use-columns.d.ts +0 -69
- package/lib/table/hooks/use-fixed-column.d.ts +0 -10
- package/lib/table/hooks/use-head.d.ts +0 -16
- package/lib/table/hooks/use-layout.d.ts +0 -25
- package/lib/table/hooks/use-pagination.d.ts +0 -16
- package/lib/table/hooks/use-render.d.ts +0 -21
- package/lib/table/hooks/use-rows.d.ts +0 -30
- package/lib/table/hooks/use-settings.d.ts +0 -134
- /package/lib/table/{components → plugins}/body-empty.d.ts +0 -0
- /package/lib/table/{hooks → plugins}/use-observer-resize.d.ts +0 -0
- /package/lib/table/{hooks → plugins}/use-scroll-loading.d.ts +0 -0
package/lib/select/index.js
CHANGED
@@ -17,7 +17,6 @@ import "../popover/popover.less";
|
|
17
17
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_virtual_render_927587a8__ from "../virtual-render";
|
18
18
|
import "../virtual-render/virtual-render.less";
|
19
19
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__ from "lodash/merge";
|
20
|
-
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_overflow_title_051a85a5__ from "../overflow-title";
|
21
20
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_d74826be__ from "../tag";
|
22
21
|
import "../tag/tag.less";
|
23
22
|
import * as __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__ from "lodash/debounce";
|
@@ -508,7 +507,7 @@ const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () =>
|
|
508
507
|
;// CONCATENATED MODULE: external "../icon"
|
509
508
|
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
510
509
|
var icon_y = x => () => x
|
511
|
-
const icon_namespaceObject = icon_x({ ["
|
510
|
+
const icon_namespaceObject = icon_x({ ["AngleUp"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleUp, ["AngleUpFill"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.AngleUpFill, ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Done"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Done, ["Search"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Search, ["TextAll"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.TextAll });
|
512
511
|
;// CONCATENATED MODULE: external "lodash/isEqual"
|
513
512
|
var isEqual_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
514
513
|
var isEqual_y = x => () => x
|
@@ -598,6 +597,7 @@ function useRegistry(data) {
|
|
598
597
|
var register = function register(key, item) {
|
599
598
|
if (!item) return;
|
600
599
|
if (data.value.has(key)) {
|
600
|
+
// console.warn(`repeat ${key}`, item);
|
601
601
|
return;
|
602
602
|
}
|
603
603
|
return data.value.set(key, item);
|
@@ -770,7 +770,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
770
770
|
name: 'Option',
|
771
771
|
props: {
|
772
772
|
id: {
|
773
|
-
type: [String, Number],
|
773
|
+
type: [String, Number, Object],
|
774
774
|
require: true
|
775
775
|
},
|
776
776
|
name: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]),
|
@@ -779,7 +779,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
779
779
|
},
|
780
780
|
setup: function setup(props, _ref) {
|
781
781
|
var attrs = _ref.attrs;
|
782
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
783
782
|
var _getCurrentInstance = (0,external_vue_namespaceObject.getCurrentInstance)(),
|
784
783
|
proxy = _getCurrentInstance.proxy;
|
785
784
|
var states = (0,external_vue_namespaceObject.reactive)({
|
@@ -2293,10 +2292,6 @@ if (core.isSupported() && _56l.shouldPatch(core.genToken)) {
|
|
2293
2292
|
|
2294
2293
|
/* harmony default export */ const pinyin = (core);
|
2295
2294
|
|
2296
|
-
;// CONCATENATED MODULE: external "../overflow-title"
|
2297
|
-
var overflow_title_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
2298
|
-
var overflow_title_y = x => () => x
|
2299
|
-
const overflow_title_namespaceObject = overflow_title_x({ ["OverflowTitle"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_overflow_title_051a85a5__.OverflowTitle });
|
2300
2295
|
;// CONCATENATED MODULE: external "../tag"
|
2301
2296
|
var tag_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
2302
2297
|
var tag_y = x => () => x
|
@@ -2345,7 +2340,6 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2345
2340
|
|
2346
2341
|
|
2347
2342
|
|
2348
|
-
|
2349
2343
|
/* harmony default export */ const selectTagInput = ((0,external_vue_namespaceObject.defineComponent)({
|
2350
2344
|
name: 'SelectTagInput',
|
2351
2345
|
directives: {
|
@@ -2382,7 +2376,7 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2382
2376
|
var overflowTagIndex = (0,external_vue_namespaceObject.ref)(null);
|
2383
2377
|
var overflowContent = (0,external_vue_namespaceObject.computed)(function () {
|
2384
2378
|
return selected.value.slice(overflowTagIndex.value, selected.value.length).map(function (item) {
|
2385
|
-
return
|
2379
|
+
return item.label;
|
2386
2380
|
}).join(', ');
|
2387
2381
|
});
|
2388
2382
|
(0,external_vue_namespaceObject.watch)(modelValue, function () {
|
@@ -2487,8 +2481,8 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2487
2481
|
_this$$slots$default2,
|
2488
2482
|
_this$$slots3,
|
2489
2483
|
_this = this,
|
2490
|
-
_this$$
|
2491
|
-
_this$$
|
2484
|
+
_this$$slots4,
|
2485
|
+
_this$$slots4$suffix;
|
2492
2486
|
var prefix = (_this$$slots = this.$slots) === null || _this$$slots === void 0 || (_this$$slots$prefix = _this$$slots.prefix) === null || _this$$slots$prefix === void 0 ? void 0 : _this$$slots$prefix.call(_this$$slots);
|
2493
2487
|
var selectTagClass = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, this.resolveClassName('select-tag'), true), this.resolveClassName('select-tag--default'), true), 'is-disabled', this.disabled), 'collapse-tag', this.collapseTags), 'has-prefix', !!prefix), 'is-simplicity', this.behavior === 'simplicity'));
|
2494
2488
|
var tagWrapperClass = (0,shared_namespaceObject.classes)(_defineProperty({}, this.resolveClassName('select-tag-wrapper'), true));
|
@@ -2501,7 +2495,7 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2501
2495
|
}, [(_this$$slots2 = this.$slots) === null || _this$$slots2 === void 0 || (_this$$slots2$prefix = _this$$slots2.prefix) === null || _this$$slots2$prefix === void 0 ? void 0 : _this$$slots2$prefix.call(_this$$slots2), (0,external_vue_namespaceObject.createVNode)("div", {
|
2502
2496
|
"class": tagWrapperClass
|
2503
2497
|
}, [(_this$$slots$default = (_this$$slots$default2 = (_this$$slots3 = this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots3)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : this.selected.map(function (item, index) {
|
2504
|
-
var _this
|
2498
|
+
var _this$select;
|
2505
2499
|
return (0,external_vue_namespaceObject.createVNode)(tag_namespaceObject["default"], {
|
2506
2500
|
"ref": function ref(el) {
|
2507
2501
|
return _this.tagsRefs[index] = el;
|
@@ -2516,13 +2510,7 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2516
2510
|
}
|
2517
2511
|
}, {
|
2518
2512
|
"default": function _default() {
|
2519
|
-
return [(_this
|
2520
|
-
"type": "tips"
|
2521
|
-
}, {
|
2522
|
-
"default": function _default() {
|
2523
|
-
return [(_this$select = _this.select) === null || _this$select === void 0 ? void 0 : _this$select.handleGetLabelByValue(item.value)];
|
2524
|
-
}
|
2525
|
-
})];
|
2513
|
+
return [(_this$select = _this.select) === null || _this$select === void 0 ? void 0 : _this$select.handleGetLabelByValue(item.value)];
|
2526
2514
|
}
|
2527
2515
|
});
|
2528
2516
|
}), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(tag_namespaceObject["default"], {
|
@@ -2537,8 +2525,7 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2537
2525
|
}
|
2538
2526
|
}), [[(0,external_vue_namespaceObject.resolveDirective)("bk-tooltips"), {
|
2539
2527
|
content: this.overflowContent,
|
2540
|
-
disabled: !this.overflowTagIndex || !this.collapseTags
|
2541
|
-
extCls: this.resolveClassName('select-tooltips')
|
2528
|
+
disabled: !this.overflowTagIndex || !this.collapseTags
|
2542
2529
|
}]]), (0,external_vue_namespaceObject.createVNode)("input", {
|
2543
2530
|
"ref": "inputRef",
|
2544
2531
|
"style": inputStyle,
|
@@ -2550,7 +2537,7 @@ const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTER
|
|
2550
2537
|
"value": !this.filterable ? '' : this.value,
|
2551
2538
|
"onInput": this.handleInput,
|
2552
2539
|
"onKeydown": this.handleKeydown
|
2553
|
-
}, null)]), (_this$$
|
2540
|
+
}, null)]), (_this$$slots4 = this.$slots) === null || _this$$slots4 === void 0 || (_this$$slots4$suffix = _this$$slots4.suffix) === null || _this$$slots4$suffix === void 0 ? void 0 : _this$$slots4$suffix.call(_this$$slots4)]);
|
2554
2541
|
}
|
2555
2542
|
}));
|
2556
2543
|
;// CONCATENATED MODULE: ../../packages/select/src/select.tsx
|
@@ -2662,11 +2649,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2662
2649
|
type: Function
|
2663
2650
|
},
|
2664
2651
|
searchWithPinyin: shared_namespaceObject.PropTypes.bool.def(true),
|
2665
|
-
highlightKeyword: shared_namespaceObject.PropTypes.bool.def(false)
|
2666
|
-
trigger: {
|
2667
|
-
type: String,
|
2668
|
-
"default": 'default'
|
2669
|
-
} // content显示和隐藏方式
|
2652
|
+
highlightKeyword: shared_namespaceObject.PropTypes.bool.def(false) // 搜索高亮
|
2670
2653
|
},
|
2671
2654
|
emits: ['update:modelValue', 'change', 'toggle', 'clear', 'scroll-end', 'focus', 'blur', 'tag-remove', 'select', 'deselect', 'search-change'],
|
2672
2655
|
setup: function setup(props, _ref) {
|
@@ -2706,9 +2689,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2706
2689
|
filterOption = _toRefs.filterOption,
|
2707
2690
|
searchWithPinyin = _toRefs.searchWithPinyin,
|
2708
2691
|
highlightKeyword = _toRefs.highlightKeyword,
|
2709
|
-
disableFocusBehavior = _toRefs.disableFocusBehavior
|
2710
|
-
trigger = _toRefs.trigger;
|
2711
|
-
var virtualRenderRef = (0,external_vue_namespaceObject.ref)(null);
|
2692
|
+
disableFocusBehavior = _toRefs.disableFocusBehavior;
|
2712
2693
|
var localNoDataText = (0,external_vue_namespaceObject.computed)(function () {
|
2713
2694
|
if (props.noDataText === undefined) {
|
2714
2695
|
return t.value.noData;
|
@@ -2766,7 +2747,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2766
2747
|
return pre;
|
2767
2748
|
}, {});
|
2768
2749
|
});
|
2769
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2770
2750
|
var activeOptionValue = (0,external_vue_namespaceObject.ref)(); // 当前悬浮的option
|
2771
2751
|
var listMap = (0,external_vue_namespaceObject.computed)(function () {
|
2772
2752
|
return list.value.reduce(function (pre, item) {
|
@@ -2935,14 +2915,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2935
2915
|
hidePopover = _usePopover.hidePopover,
|
2936
2916
|
showPopover = _usePopover.showPopover,
|
2937
2917
|
togglePopover = _usePopover.togglePopover;
|
2938
|
-
var handleHidePopover = function handleHidePopover() {
|
2939
|
-
if (trigger.value === 'manual') return;
|
2940
|
-
hidePopover();
|
2941
|
-
};
|
2942
|
-
var handleShowPopover = function handleShowPopover() {
|
2943
|
-
if (trigger.value === 'manual') return;
|
2944
|
-
showPopover();
|
2945
|
-
};
|
2946
2918
|
// 输入框是否可以输入内容
|
2947
2919
|
var isInput = (0,external_vue_namespaceObject.computed)(function () {
|
2948
2920
|
return (filterable.value && inputSearch.value || allowCreate.value) && isPopoverShow.value;
|
@@ -2987,7 +2959,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2987
2959
|
}
|
2988
2960
|
};
|
2989
2961
|
// 默认搜索方法
|
2990
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2991
2962
|
var defaultSearchMethod = function defaultSearchMethod(searchValue, optionName) {
|
2992
2963
|
var _toLowerCase2;
|
2993
2964
|
var filterData = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
@@ -3041,7 +3012,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3041
3012
|
};
|
3042
3013
|
// 派发toggle事件
|
3043
3014
|
var handleTogglePopover = function handleTogglePopover() {
|
3044
|
-
if (isDisabled.value
|
3015
|
+
if (isDisabled.value) return;
|
3045
3016
|
handleFocus();
|
3046
3017
|
togglePopover();
|
3047
3018
|
};
|
@@ -3082,7 +3053,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3082
3053
|
label: value
|
3083
3054
|
}];
|
3084
3055
|
emitChange(value);
|
3085
|
-
|
3056
|
+
hidePopover();
|
3086
3057
|
}
|
3087
3058
|
customOptionName.value = '';
|
3088
3059
|
};
|
@@ -3126,7 +3097,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3126
3097
|
}];
|
3127
3098
|
emitChange(option.optionID);
|
3128
3099
|
emit('select', option.optionID);
|
3129
|
-
|
3100
|
+
hidePopover();
|
3130
3101
|
handleBlur();
|
3131
3102
|
}
|
3132
3103
|
};
|
@@ -3166,7 +3137,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3166
3137
|
selected.value = [];
|
3167
3138
|
emitChange(multiple.value ? [] : '');
|
3168
3139
|
emit('clear', multiple.value ? [] : '');
|
3169
|
-
|
3140
|
+
hidePopover();
|
3170
3141
|
};
|
3171
3142
|
var handleSelectedAllOptionMouseEnter = function handleSelectedAllOptionMouseEnter() {
|
3172
3143
|
activeOptionValue.value = '';
|
@@ -3177,21 +3148,22 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3177
3148
|
selected.value = [];
|
3178
3149
|
} else {
|
3179
3150
|
var _list$value;
|
3180
|
-
var
|
3151
|
+
var tmpSelected = [];
|
3181
3152
|
options.value.forEach(function (option) {
|
3182
|
-
if (option.disabled
|
3183
|
-
|
3153
|
+
if (option.disabled) return;
|
3154
|
+
tmpSelected.push({
|
3155
|
+
value: option.optionID,
|
3156
|
+
label: option.optionName || option.optionID
|
3157
|
+
});
|
3184
3158
|
});
|
3185
3159
|
(_list$value = list.value) === null || _list$value === void 0 || _list$value.forEach(function (item) {
|
3186
|
-
if (item.disabled
|
3187
|
-
|
3188
|
-
|
3189
|
-
|
3190
|
-
|
3191
|
-
value: key,
|
3192
|
-
label: tmpSelectedMap.get(key)
|
3193
|
-
};
|
3160
|
+
if (item.disabled) return;
|
3161
|
+
tmpSelected.push({
|
3162
|
+
value: item[idKey.value],
|
3163
|
+
label: item[displayKey.value]
|
3164
|
+
});
|
3194
3165
|
});
|
3166
|
+
selected.value = tmpSelected;
|
3195
3167
|
}
|
3196
3168
|
emitChange(selected.value.map(function (item) {
|
3197
3169
|
return item.value;
|
@@ -3276,7 +3248,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3276
3248
|
};
|
3277
3249
|
}));
|
3278
3250
|
} else {
|
3279
|
-
if (modelValue.value || allowEmptyValues.value.includes(modelValue.value)) {
|
3251
|
+
if (modelValue.value !== undefined || allowEmptyValues.value.includes(modelValue.value)) {
|
3280
3252
|
selected.value = [{
|
3281
3253
|
value: modelValue.value,
|
3282
3254
|
label: handleGetLabelByValue(modelValue.value)
|
@@ -3286,15 +3258,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3286
3258
|
}
|
3287
3259
|
}
|
3288
3260
|
};
|
3289
|
-
// 手动设置selected值
|
3290
|
-
var setSelected = function setSelected(data) {
|
3291
|
-
selected.value = data.map(function (item) {
|
3292
|
-
return {
|
3293
|
-
label: item[displayKey.value],
|
3294
|
-
value: item[idKey.value]
|
3295
|
-
};
|
3296
|
-
});
|
3297
|
-
};
|
3298
3261
|
// 处理键盘事件
|
3299
3262
|
var handleDocumentKeydown = function handleDocumentKeydown(e) {
|
3300
3263
|
if (!isPopoverShow.value || isEnableVirtualRender.value) return;
|
@@ -3352,7 +3315,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3352
3315
|
var event = _ref2.event;
|
3353
3316
|
var target = event.target;
|
3354
3317
|
if ((_triggerRef$value = triggerRef.value) !== null && _triggerRef$value !== void 0 && _triggerRef$value.contains(target) || triggerRef.value === target) return;
|
3355
|
-
|
3318
|
+
hidePopover();
|
3356
3319
|
handleBlur();
|
3357
3320
|
};
|
3358
3321
|
(0,external_vue_namespaceObject.provide)(selectKey, (0,external_vue_namespaceObject.reactive)({
|
@@ -3373,14 +3336,10 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3373
3336
|
(0,external_vue_namespaceObject.onMounted)(function () {
|
3374
3337
|
handleSetSelectedData();
|
3375
3338
|
setTimeout(function () {
|
3376
|
-
showOnInit.value &&
|
3339
|
+
showOnInit.value && showPopover();
|
3377
3340
|
autoFocus.value && focusInput();
|
3378
3341
|
});
|
3379
3342
|
});
|
3380
|
-
var handlePopoverShown = function handlePopoverShown() {
|
3381
|
-
var _virtualRenderRef$val;
|
3382
|
-
(_virtualRenderRef$val = virtualRenderRef.value) === null || _virtualRenderRef$val === void 0 || _virtualRenderRef$val.scrollTo(0, 1);
|
3383
|
-
};
|
3384
3343
|
return {
|
3385
3344
|
t: t,
|
3386
3345
|
selected: selected,
|
@@ -3438,20 +3397,15 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3438
3397
|
localSelectAllText: localSelectAllText,
|
3439
3398
|
resolveClassName: resolveClassName,
|
3440
3399
|
handleCreateCustomOption: handleCreateCustomOption,
|
3441
|
-
handlePopoverShown: handlePopoverShown,
|
3442
3400
|
virtualLineHeight: virtualLineHeight,
|
3443
3401
|
isEnableVirtualRender: isEnableVirtualRender,
|
3444
|
-
preloadItemCount: preloadItemCount
|
3445
|
-
virtualRenderRef: virtualRenderRef,
|
3446
|
-
setSelected: setSelected
|
3402
|
+
preloadItemCount: preloadItemCount
|
3447
3403
|
};
|
3448
3404
|
},
|
3449
3405
|
render: function render() {
|
3450
3406
|
var _this = this;
|
3451
3407
|
var selectClass = (0,shared_namespaceObject.classes)(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(this.resolveClassName('select')), true), 'popover-show', this.isPopoverShow), 'is-disabled', this.isDisabled), 'is-focus', this.isFocus), 'is-filterable', this.filterable), this.size, true), this.behavior, true));
|
3452
|
-
// 右侧ICON
|
3453
3408
|
var suffixIcon = function suffixIcon() {
|
3454
|
-
var _this$$slots, _this$$slots2, _this$$slots2$suffix;
|
3455
3409
|
if (_this.loading) {
|
3456
3410
|
return (0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
|
3457
3411
|
"class": "spinner",
|
@@ -3467,14 +3421,12 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3467
3421
|
"onClick": _this.handleClear
|
3468
3422
|
}, null);
|
3469
3423
|
}
|
3470
|
-
return (
|
3471
|
-
"class": "angle-
|
3472
|
-
}, [(_this$$slots2 = _this.$slots) === null || _this$$slots2 === void 0 || (_this$$slots2$suffix = _this$$slots2.suffix) === null || _this$$slots2$suffix === void 0 ? void 0 : _this$$slots2$suffix.call(_this$$slots2)]) : (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleDown, {
|
3473
|
-
"class": "angle-down"
|
3424
|
+
return (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleUp, {
|
3425
|
+
"class": "angle-up"
|
3474
3426
|
}, null);
|
3475
3427
|
};
|
3476
3428
|
var renderPrefix = function renderPrefix() {
|
3477
|
-
var _this$$
|
3429
|
+
var _this$$slots;
|
3478
3430
|
if (_this.prefix) {
|
3479
3431
|
return function () {
|
3480
3432
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -3482,9 +3434,9 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3482
3434
|
}, [(0,external_vue_namespaceObject.createVNode)("span", null, [_this.prefix])]);
|
3483
3435
|
};
|
3484
3436
|
}
|
3485
|
-
return (_this$$
|
3486
|
-
var _this$$
|
3487
|
-
return (_this$$
|
3437
|
+
return (_this$$slots = _this.$slots) !== null && _this$$slots !== void 0 && _this$$slots.prefix ? function () {
|
3438
|
+
var _this$$slots2, _this$$slots2$prefix;
|
3439
|
+
return (_this$$slots2 = _this.$slots) === null || _this$$slots2 === void 0 || (_this$$slots2$prefix = _this$$slots2.prefix) === null || _this$$slots2$prefix === void 0 ? void 0 : _this$$slots2$prefix.call(_this$$slots2);
|
3488
3440
|
} : undefined;
|
3489
3441
|
};
|
3490
3442
|
// 全选
|
@@ -3515,9 +3467,9 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3515
3467
|
};
|
3516
3468
|
// 默认trigger输入框渲染
|
3517
3469
|
var renderTriggerInput = function renderTriggerInput() {
|
3518
|
-
var _this$$
|
3470
|
+
var _this$$slots5;
|
3519
3471
|
if (_this.multipleMode === 'tag') {
|
3520
|
-
var _this$$
|
3472
|
+
var _this$$slots3;
|
3521
3473
|
return (0,external_vue_namespaceObject.createVNode)(selectTagInput, {
|
3522
3474
|
"ref": "selectTagInputRef",
|
3523
3475
|
"modelValue": _this.customOptionName,
|
@@ -3535,16 +3487,12 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3535
3487
|
"onRemove": _this.handleDeleteTag
|
3536
3488
|
}, {
|
3537
3489
|
prefix: renderPrefix(),
|
3538
|
-
"default": ((_this$$
|
3539
|
-
var _this$$
|
3540
|
-
return (_this$$
|
3490
|
+
"default": ((_this$$slots3 = _this.$slots) === null || _this$$slots3 === void 0 ? void 0 : _this$$slots3.tag) && function () {
|
3491
|
+
var _this$$slots4;
|
3492
|
+
return (_this$$slots4 = _this.$slots) === null || _this$$slots4 === void 0 ? void 0 : _this$$slots4.tag({
|
3541
3493
|
selected: _this.selected
|
3542
3494
|
});
|
3543
3495
|
},
|
3544
|
-
tagRender: ((_this$$slots7 = _this.$slots) === null || _this$$slots7 === void 0 ? void 0 : _this$$slots7.tagRender) && function (item) {
|
3545
|
-
var _this$$slots8;
|
3546
|
-
return (_this$$slots8 = _this.$slots) === null || _this$$slots8 === void 0 ? void 0 : _this$$slots8.tagRender(item);
|
3547
|
-
},
|
3548
3496
|
suffix: function suffix() {
|
3549
3497
|
return suffixIcon();
|
3550
3498
|
}
|
@@ -3566,10 +3514,10 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3566
3514
|
"onInput": _this.handleInputChange
|
3567
3515
|
}, _this.prefix ? {
|
3568
3516
|
prefix: _this.prefix
|
3569
|
-
} : null), select_objectSpread(select_objectSpread({}, typeof ((_this$$
|
3517
|
+
} : null), select_objectSpread(select_objectSpread({}, typeof ((_this$$slots5 = _this.$slots) === null || _this$$slots5 === void 0 ? void 0 : _this$$slots5.prefix) === 'function' ? {
|
3570
3518
|
prefix: function prefix() {
|
3571
|
-
var _this$$
|
3572
|
-
return (_this$$
|
3519
|
+
var _this$$slots6, _this$$slots6$prefix;
|
3520
|
+
return (_this$$slots6 = _this.$slots) === null || _this$$slots6 === void 0 || (_this$$slots6$prefix = _this$$slots6.prefix) === null || _this$$slots6$prefix === void 0 ? void 0 : _this$$slots6$prefix.call(_this$$slots6);
|
3573
3521
|
}
|
3574
3522
|
} : null), {}, {
|
3575
3523
|
suffix: function suffix() {
|
@@ -3579,7 +3527,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3579
3527
|
};
|
3580
3528
|
// 渲染trigger
|
3581
3529
|
var renderSelectTrigger = function renderSelectTrigger() {
|
3582
|
-
var _this$$
|
3530
|
+
var _this$$slots7, _this$$slots7$trigger;
|
3583
3531
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
3584
3532
|
"ref": "triggerRef",
|
3585
3533
|
"style": {
|
@@ -3589,28 +3537,22 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3589
3537
|
"onClick": _this.handleTogglePopover,
|
3590
3538
|
"onMouseenter": _this.setHover,
|
3591
3539
|
"onMouseleave": _this.cancelHover
|
3592
|
-
}, [((_this$$
|
3540
|
+
}, [((_this$$slots7 = _this.$slots) === null || _this$$slots7 === void 0 || (_this$$slots7$trigger = _this$$slots7.trigger) === null || _this$$slots7$trigger === void 0 ? void 0 : _this$$slots7$trigger.call(_this$$slots7, {
|
3593
3541
|
selected: _this.selected
|
3594
3542
|
})) || renderTriggerInput()]);
|
3595
3543
|
};
|
3596
3544
|
// 渲染列表模式
|
3597
3545
|
var renderList = function renderList() {
|
3598
3546
|
return _this.isEnableVirtualRender ? (0,external_vue_namespaceObject.createVNode)(virtual_render_namespaceObject["default"], {
|
3599
|
-
"ref": "virtualRenderRef",
|
3600
3547
|
"height": _this.virtualHeight,
|
3601
3548
|
"lineHeight": _this.virtualLineHeight,
|
3602
3549
|
"list": _this.filterList,
|
3603
|
-
"preloadItemCount": _this.preloadItemCount
|
3604
|
-
"scrollbar": {
|
3605
|
-
enabled: true,
|
3606
|
-
size: 'small'
|
3607
|
-
}
|
3550
|
+
"preloadItemCount": _this.preloadItemCount
|
3608
3551
|
}, {
|
3609
3552
|
"default": function _default(_ref3) {
|
3610
|
-
var _this$$
|
3553
|
+
var _this$$slots8, _this$$slots9;
|
3611
3554
|
var data = _ref3.data;
|
3612
|
-
|
3613
|
-
var optionRender = ((_this$$slots12 = _this.$slots) === null || _this$$slots12 === void 0 ? void 0 : _this$$slots12.optionRender) || ((_this$$slots13 = _this.$slots) === null || _this$$slots13 === void 0 ? void 0 : _this$$slots13.virtualScrollRender);
|
3555
|
+
var optionRender = ((_this$$slots8 = _this.$slots) === null || _this$$slots8 === void 0 ? void 0 : _this$$slots8.optionRender) || ((_this$$slots9 = _this.$slots) === null || _this$$slots9 === void 0 ? void 0 : _this$$slots9.virtualScrollRender);
|
3614
3556
|
return data.map(function (item) {
|
3615
3557
|
return (0,external_vue_namespaceObject.createVNode)(src_option, {
|
3616
3558
|
"id": item[_this.idKey],
|
@@ -3626,16 +3568,15 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3626
3568
|
});
|
3627
3569
|
}
|
3628
3570
|
}) : _this.filterList.map(function (item) {
|
3629
|
-
var _this$$
|
3630
|
-
// 兼容以前slots
|
3631
|
-
var optionRender = ((_this$$slots14 = _this.$slots) === null || _this$$slots14 === void 0 ? void 0 : _this$$slots14.optionRender) || ((_this$$slots15 = _this.$slots) === null || _this$$slots15 === void 0 ? void 0 : _this$$slots15.virtualScrollRender);
|
3571
|
+
var _this$$slots10;
|
3632
3572
|
return (0,external_vue_namespaceObject.createVNode)(src_option, {
|
3633
3573
|
"id": item[_this.idKey],
|
3634
3574
|
"key": item[_this.idKey],
|
3635
3575
|
"name": item[_this.displayKey]
|
3636
|
-
},
|
3576
|
+
}, (_this$$slots10 = _this.$slots) !== null && _this$$slots10 !== void 0 && _this$$slots10.optionRender ? {
|
3637
3577
|
"default": function _default() {
|
3638
|
-
|
3578
|
+
var _this$$slots11, _this$$slots11$option;
|
3579
|
+
return (_this$$slots11 = _this.$slots) === null || _this$$slots11 === void 0 || (_this$$slots11$option = _this$$slots11.optionRender) === null || _this$$slots11$option === void 0 ? void 0 : _this$$slots11$option.call(_this$$slots11, {
|
3639
3580
|
item: item
|
3640
3581
|
});
|
3641
3582
|
}
|
@@ -3644,7 +3585,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3644
3585
|
};
|
3645
3586
|
// 渲染内容
|
3646
3587
|
var renderSelectContent = function renderSelectContent() {
|
3647
|
-
var _this$$
|
3588
|
+
var _this$$slots12, _this$$slots12$defaul, _this$$slots13, _this$$slots14;
|
3648
3589
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
3649
3590
|
"ref": "contentRef",
|
3650
3591
|
"class": _this.resolveClassName('select-content-wrapper')
|
@@ -3680,7 +3621,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3680
3621
|
"onScroll": _this.handleScroll
|
3681
3622
|
}, [(0,external_vue_namespaceObject.createVNode)("ul", {
|
3682
3623
|
"class": _this.resolveClassName('select-options')
|
3683
|
-
}, [renderSelectAll(), renderList(), (_this$$
|
3624
|
+
}, [renderSelectAll(), renderList(), (_this$$slots12 = _this.$slots) === null || _this$$slots12 === void 0 || (_this$$slots12$defaul = _this$$slots12["default"]) === null || _this$$slots12$defaul === void 0 ? void 0 : _this$$slots12$defaul.call(_this$$slots12), _this.scrollLoading && (0,external_vue_namespaceObject.createVNode)("li", {
|
3684
3625
|
"class": _this.resolveClassName('select-options-loading')
|
3685
3626
|
}, [(0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
|
3686
3627
|
"class": "spinner mr5",
|
@@ -3688,15 +3629,14 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3688
3629
|
"mode": "spin",
|
3689
3630
|
"size": "mini",
|
3690
3631
|
"theme": "primary"
|
3691
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.localLoadingText])])])]), ((_this$$
|
3632
|
+
}, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.localLoadingText])])])]), ((_this$$slots13 = _this.$slots) === null || _this$$slots13 === void 0 ? void 0 : _this$$slots13.extension) && (0,external_vue_namespaceObject.createVNode)("div", {
|
3692
3633
|
"class": _this.resolveClassName('select-extension')
|
3693
|
-
}, [(_this$$
|
3634
|
+
}, [(_this$$slots14 = _this.$slots) === null || _this$$slots14 === void 0 ? void 0 : _this$$slots14.extension()])])]);
|
3694
3635
|
};
|
3695
3636
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
3696
3637
|
"class": selectClass
|
3697
3638
|
}, [(0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)(this.popoverConfig, {
|
3698
3639
|
"ref": "popoverRef",
|
3699
|
-
"onAfterShow": this.handlePopoverShown,
|
3700
3640
|
"onClickoutside": this.handleClickOutside
|
3701
3641
|
}), {
|
3702
3642
|
"default": function _default() {
|
package/lib/select/option.d.ts
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
import { VNode } from 'vue';
|
2
|
+
import { SelectedTypeEnum } from '../shared';
|
2
3
|
declare const _default: import("vue").DefineComponent<{
|
3
4
|
id: {
|
4
|
-
type: (NumberConstructor | StringConstructor)[];
|
5
|
+
type: (ObjectConstructor | NumberConstructor | StringConstructor)[];
|
5
6
|
require: boolean;
|
6
7
|
};
|
7
8
|
name: import("vue-types").VueTypeDef<string | number>;
|
@@ -20,9 +21,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
20
21
|
multiple: import("vue").ComputedRef<boolean>;
|
21
22
|
isHover: import("vue").ComputedRef<boolean>;
|
22
23
|
showSelectedIcon: import("vue").ComputedRef<boolean>;
|
23
|
-
selectedStyle: import("vue").ComputedRef<
|
24
|
+
selectedStyle: import("vue").ComputedRef<SelectedTypeEnum>;
|
24
25
|
optionName: import("vue").ComputedRef<string | number>;
|
25
|
-
optionID: import("vue").ComputedRef<
|
26
|
+
optionID: import("vue").ComputedRef<unknown>;
|
26
27
|
highlightKeyword: import("vue").ComputedRef<boolean>;
|
27
28
|
handleOptionClick: () => void;
|
28
29
|
handleMouseEnter: () => void;
|
@@ -31,7 +32,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
31
32
|
visible: import("vue").Ref<boolean>;
|
32
33
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
33
34
|
id: {
|
34
|
-
type: (NumberConstructor | StringConstructor)[];
|
35
|
+
type: (ObjectConstructor | NumberConstructor | StringConstructor)[];
|
35
36
|
require: boolean;
|
36
37
|
};
|
37
38
|
name: import("vue-types").VueTypeDef<string | number>;
|