bkui-vue 1.0.3-beta.9 → 2.0.1-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +162 -164
- package/dist/index.esm.js +31999 -29678
- package/dist/index.umd.js +162 -164
- package/dist/locale/en.esm.js +1 -1
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +3 -0
- package/lib/affix/index.js +7 -7
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/alert.variable.css +3 -0
- package/lib/alert/index.d.ts +11 -11
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/backtop.variable.css +3 -0
- package/lib/backtop/index.d.ts +3 -3
- package/lib/backtop/index.js +6 -6
- package/lib/badge/badge.variable.css +3 -0
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb.variable.css +3 -0
- package/lib/button/button.d.ts +7 -7
- package/lib/button/button.variable.css +3 -0
- package/lib/button/index.d.ts +8 -8
- package/lib/button/index.js +6 -6
- package/lib/card/card.variable.css +3 -0
- package/lib/cascader/cascader-panel.d.ts +1 -1
- package/lib/cascader/cascader.css +3 -3
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/cascader.less +4 -4
- package/lib/cascader/cascader.variable.css +6 -3
- package/lib/cascader/index.js +35 -36
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox.variable.css +3 -0
- package/lib/checkbox/index.js +7 -7
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/code-diff.variable.css +3 -0
- package/lib/code-diff/index.js +8 -8
- package/lib/collapse/collapse.css +11 -0
- package/lib/collapse/collapse.d.ts +11 -0
- package/lib/collapse/collapse.less +15 -1
- package/lib/collapse/collapse.variable.css +14 -0
- package/lib/collapse/index.d.ts +23 -0
- package/lib/collapse/index.js +11 -3
- package/lib/collapse/props.d.ts +8 -0
- package/lib/collapse/utils.d.ts +2 -2
- package/lib/collapse-transition/collapse-transition.variable.css +3 -0
- package/lib/color-picker/color-picker.css +3 -3
- package/lib/color-picker/color-picker.less +3 -3
- package/lib/color-picker/color-picker.variable.css +6 -3
- package/lib/color-picker/index.js +45 -45
- package/lib/components.d.ts +32 -30
- package/lib/components.js +31 -29
- package/lib/config-provider/config-provider.d.ts +3 -0
- package/lib/config-provider/config-provider.variable.css +3 -0
- package/lib/config-provider/index.d.ts +5 -1
- package/lib/config-provider/token.d.ts +1 -0
- package/lib/container/container.variable.css +3 -0
- package/lib/container/index.js +6 -6
- package/lib/date-picker/base/date-table.d.ts +1 -1
- package/lib/date-picker/base/month-table.d.ts +3 -3
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/year-table.d.ts +3 -3
- package/lib/date-picker/date-picker.d.ts +1 -0
- package/lib/date-picker/date-picker.variable.css +3 -0
- package/lib/date-picker/index.d.ts +3 -0
- package/lib/date-picker/index.js +340 -224
- package/lib/date-picker/interface.d.ts +9 -9
- package/lib/date-picker/panel/date-range.d.ts +2 -64
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +1 -1
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/props.d.ts +1 -1
- package/lib/date-picker/time-picker.d.ts +1 -0
- package/lib/date-picker/utils.d.ts +9 -1
- package/lib/dialog/dialog.css +172 -150
- package/lib/dialog/dialog.d.ts +55 -124
- package/lib/dialog/dialog.less +51 -124
- package/lib/dialog/dialog.variable.css +175 -150
- package/lib/dialog/index.d.ts +132 -296
- package/lib/dialog/index.js +244 -246
- package/lib/dialog/props.d.ts +16 -41
- package/lib/directives/index.d.ts +3 -3
- package/lib/directives/index.js +166 -167
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +2 -2
- package/lib/divider/divider.d.ts +5 -5
- package/lib/divider/divider.variable.css +3 -0
- package/lib/divider/index.d.ts +11 -11
- package/lib/divider/index.js +2 -2
- package/lib/divider/props.d.ts +2 -2
- package/lib/dropdown/dropdown.css +3 -1
- package/lib/dropdown/dropdown.d.ts +5 -5
- package/lib/dropdown/dropdown.variable.css +6 -1
- package/lib/dropdown/index.d.ts +11 -11
- package/lib/dropdown/index.js +7 -7
- package/lib/exception/exception.d.ts +9 -9
- package/lib/exception/exception.variable.css +3 -0
- package/lib/exception/index.d.ts +11 -11
- package/lib/exception/index.js +10 -10
- package/lib/exception/typings/index.d.ts +1 -1
- package/lib/fixed-navbar/fixed-navbar.variable.css +3 -0
- package/lib/fixed-navbar/index.js +2 -2
- package/lib/form/form.d.ts +2 -2
- package/lib/form/form.variable.css +3 -0
- package/lib/form/index.js +17 -15
- package/lib/form/type.d.ts +2 -2
- package/lib/icon/image-fill.js +82 -167
- package/lib/icon/img-error.js +82 -167
- package/lib/icon/img-placehoulder.js +82 -167
- package/lib/icon/index.d.ts +12 -11
- package/lib/icon/index.js +87 -2427
- package/lib/icon/info-line.js +82 -167
- package/lib/icon/info.js +82 -167
- package/lib/icon/left-shape.js +82 -167
- package/lib/icon/left-turn-line.js +82 -167
- package/lib/icon/loading.js +82 -167
- package/lib/icon/narrow-line.js +82 -167
- package/lib/icon/original.js +82 -167
- package/lib/icon/pdf-fill.js +82 -167
- package/lib/icon/play-shape.js +82 -167
- package/lib/icon/plus.js +82 -167
- package/lib/icon/ppt-fill.js +82 -167
- package/lib/icon/qq.js +82 -167
- package/lib/icon/right-shape.js +82 -167
- package/lib/icon/right-turn-line.js +82 -167
- package/lib/icon/search.js +82 -167
- package/lib/icon/share.js +82 -167
- package/lib/icon/spinner.js +82 -167
- package/lib/icon/success.js +82 -167
- package/lib/icon/switcher-loading.js +82 -167
- package/lib/icon/text-all.d.ts +4 -0
- package/lib/icon/text-all.js +191 -0
- package/lib/icon/text-file.js +82 -167
- package/lib/icon/text-fill.js +82 -167
- package/lib/icon/transfer.js +82 -167
- package/lib/icon/tree-application-shape.js +82 -167
- package/lib/icon/unfull-screen.js +82 -167
- package/lib/icon/unvisible.js +82 -167
- package/lib/icon/up-shape.js +82 -167
- package/lib/icon/upload.js +82 -167
- package/lib/icon/video-fill.js +82 -167
- package/lib/icon/warn.js +82 -167
- package/lib/icon/weixin-pro.js +82 -167
- package/lib/icon/weixin.js +82 -167
- package/lib/image/image-viewer.d.ts +1 -1
- package/lib/image/image-viewer.variable.css +3 -0
- package/lib/image/image.variable.css +3 -0
- package/lib/image/index.js +25 -22
- package/lib/index.d.ts +3 -3
- package/lib/index.js +3 -3
- package/lib/info-box/index.d.ts +2 -2
- package/lib/info-box/index.js +257 -516
- package/lib/info-box/info-box.css +58 -28
- package/lib/info-box/info-box.d.ts +25 -23
- package/lib/info-box/info-box.less +82 -51
- package/lib/info-box/info-box.variable.css +61 -28
- package/lib/info-box/render-component.d.ts +4 -0
- package/lib/input/index.d.ts +15 -15
- package/lib/input/index.js +23 -17
- package/lib/input/input.d.ts +15 -15
- package/lib/input/input.variable.css +3 -0
- package/lib/link/index.d.ts +11 -11
- package/lib/link/index.js +3 -3
- package/lib/link/link.d.ts +5 -5
- package/lib/link/link.variable.css +3 -0
- package/lib/loading/index.d.ts +4 -4
- package/lib/loading/index.js +6 -6
- package/lib/loading/loading.d.ts +6 -6
- package/lib/loading/loading.variable.css +3 -0
- package/lib/locale/index.d.ts +1 -1
- package/lib/locale/index.js +4 -2
- package/lib/locale/lang/en.d.ts +1 -0
- package/lib/menu/index.js +0 -1
- package/lib/menu/menu.variable.css +3 -0
- package/lib/menu/submenu.variable.css +3 -0
- package/lib/menu/utils.d.ts +3 -3
- package/lib/message/index.js +18 -18
- package/lib/message/message.variable.css +3 -0
- package/lib/message/messageConstructor.d.ts +11 -11
- package/lib/modal/hooks.d.ts +6 -0
- package/lib/modal/index.d.ts +44 -312
- package/lib/modal/index.js +286 -672
- package/lib/modal/mask.d.ts +6 -0
- package/lib/modal/modal.css +151 -76
- package/lib/modal/modal.d.ts +19 -117
- package/lib/modal/modal.less +103 -56
- package/lib/modal/modal.variable.css +154 -76
- package/lib/modal/props.mixin.d.ts +5 -41
- package/lib/navigation/index.js +20 -20
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/navigation/navigation.variable.css +3 -0
- package/lib/notify/index.js +4 -4
- package/lib/notify/notify.variable.css +3 -0
- package/lib/overflow-title/components/overflow-title.d.ts +9 -9
- package/lib/overflow-title/index.d.ts +19 -19
- package/lib/overflow-title/index.js +107 -63
- package/lib/overflow-title/props.d.ts +18 -18
- package/lib/pagination/index.js +16 -15
- package/lib/pagination/pagination.variable.css +3 -0
- package/lib/pagination/type.d.ts +1 -1
- package/lib/pagination/use-limit.d.ts +1 -1
- package/lib/pagination/use-total.d.ts +1 -1
- package/lib/plugin-popover/index.d.ts +1 -1
- package/lib/plugin-popover/index.js +62 -44
- package/lib/pop-confirm/index.js +17 -14
- package/lib/pop-confirm/pop-confirm.variable.css +3 -0
- package/lib/pop-confirm/props.d.ts +2 -2
- package/lib/popover/const.d.ts +3 -3
- package/lib/popover/content.d.ts +1 -1
- package/lib/popover/index.d.ts +19 -19
- package/lib/popover/index.js +62 -44
- package/lib/popover/plugin-popover.d.ts +4 -1
- package/lib/popover/popover.css +3 -1
- package/lib/popover/popover.d.ts +7 -7
- package/lib/popover/popover.less +4 -1
- package/lib/popover/popover.variable.css +6 -1
- package/lib/popover/props.d.ts +4 -4
- package/lib/preset.d.ts +2 -0
- package/lib/process/index.js +3 -3
- package/lib/process/process.variable.css +3 -0
- package/lib/progress/index.d.ts +11 -11
- package/lib/progress/index.js +10 -10
- package/lib/progress/progress.d.ts +7 -7
- package/lib/progress/progress.variable.css +3 -0
- package/lib/radio/index.d.ts +29 -0
- package/lib/radio/index.js +49 -31
- package/lib/radio/radio-button.d.ts +10 -0
- package/lib/radio/radio-group.d.ts +10 -0
- package/lib/radio/radio.d.ts +10 -0
- package/lib/radio/radio.variable.css +3 -0
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.js +8 -8
- package/lib/rate/rate.css +27 -0
- package/lib/rate/rate.less +33 -0
- package/lib/rate/rate.variable.css +30 -0
- package/lib/resize-layout/index.d.ts +11 -11
- package/lib/resize-layout/index.js +8 -9
- package/lib/resize-layout/resize-layout.d.ts +5 -5
- package/lib/resize-layout/resize-layout.variable.css +3 -0
- package/lib/scrollbar/index.d.ts +15 -0
- package/lib/scrollbar/index.js +18762 -0
- 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/{rate/star.variable.css → scrollbar/scrollbar.variable.css} +70 -19
- package/lib/search-select/index.d.ts +375 -16
- package/lib/search-select/index.js +754 -419
- package/lib/search-select/input.d.ts +14 -5
- package/lib/search-select/menu.d.ts +1 -1
- package/lib/search-select/search-select.css +20 -6
- package/lib/search-select/search-select.d.ts +129 -7
- package/lib/search-select/search-select.less +16 -12
- package/lib/search-select/search-select.variable.css +23 -6
- package/lib/search-select/selected.d.ts +117 -7
- package/lib/search-select/utils.d.ts +22 -9
- package/lib/select/index.d.ts +185 -67
- package/lib/select/index.js +1396 -136
- package/lib/select/option.d.ts +3 -1
- package/lib/select/pinyin/core.d.ts +14 -0
- package/lib/select/pinyin/dict.d.ts +34 -0
- package/lib/select/pinyin/index.d.ts +2 -0
- package/lib/select/select.css +56 -14
- package/lib/select/select.d.ts +74 -26
- package/lib/select/select.less +70 -21
- package/lib/select/select.variable.css +59 -14
- package/lib/select/selectTagInput.d.ts +13 -6
- package/lib/select/type.d.ts +4 -5
- package/lib/shared/index.d.ts +1 -2
- package/lib/shared/index.js +108 -96
- package/lib/shared/popover.d.ts +3 -3
- package/lib/shared/token.d.ts +1 -1
- package/lib/shared/utils.d.ts +12 -0
- package/lib/shared/vue-types.d.ts +51 -46
- package/lib/shared/z-index-manager.d.ts +6 -6
- package/lib/sideslider/index.d.ts +58 -188
- package/lib/sideslider/index.js +83 -57
- package/lib/sideslider/sideslider.css +26 -90
- package/lib/sideslider/sideslider.d.ts +26 -88
- package/lib/sideslider/sideslider.less +56 -132
- package/lib/sideslider/sideslider.variable.css +29 -90
- package/lib/slider/index.d.ts +19 -0
- package/lib/slider/index.js +64 -26
- package/lib/slider/slider.css +14 -0
- package/lib/slider/slider.d.ts +9 -0
- package/lib/slider/slider.less +15 -0
- package/lib/slider/slider.variable.css +17 -0
- package/lib/steps/index.d.ts +11 -11
- package/lib/steps/index.js +3 -3
- package/lib/steps/steps.d.ts +7 -7
- package/lib/steps/steps.variable.css +3 -0
- package/lib/styles/index.d.ts +0 -1
- package/lib/styles/mixins/animate.variable.css +3 -0
- package/lib/styles/mixins/popper.variable.css +3 -0
- package/lib/styles/mixins/scroll.variable.css +3 -0
- package/lib/styles/reset.css +1 -3
- package/lib/styles/reset.less +3 -6
- package/lib/styles/reset.variable.css +4 -3
- package/lib/styles/themes/themes.less +5 -0
- package/lib/swiper/index.js +5 -5
- package/lib/swiper/swiper.variable.css +3 -0
- package/lib/switcher/index.js +2 -2
- package/lib/switcher/switcher.d.ts +2 -2
- package/lib/switcher/switcher.variable.css +3 -0
- package/lib/tab/index.d.ts +22 -22
- package/lib/tab/index.js +15 -15
- package/lib/tab/props.d.ts +15 -15
- package/lib/tab/tab-nav.d.ts +10 -10
- package/lib/tab/tab.d.ts +10 -10
- package/lib/tab/tab.variable.css +3 -0
- package/lib/table/cache.d.ts +11 -3
- package/lib/table/components/table-cell.d.ts +3 -2
- package/lib/table/components/table-column.d.ts +30 -100
- package/lib/table/const.d.ts +12 -12
- package/lib/table/events.d.ts +21 -21
- package/lib/table/index.d.ts +220 -305
- package/lib/table/index.js +18165 -688
- package/lib/table/plugins/head-filter.css +8 -4
- package/lib/table/plugins/head-filter.less +6 -3
- package/lib/table/plugins/head-filter.variable.css +11 -4
- package/lib/table/plugins/head-sort.variable.css +3 -0
- package/lib/table/plugins/settings.variable.css +3 -0
- package/lib/table/plugins/use-active-columns.d.ts +2 -2
- package/lib/table/plugins/use-column-template.d.ts +7 -0
- package/lib/table/plugins/use-draggable.d.ts +2 -2
- package/lib/table/plugins/use-fixed-column.d.ts +1 -1
- package/lib/table/plugins/use-observer-resize.d.ts +5 -0
- package/lib/table/plugins/use-pagination.d.ts +3 -1
- package/lib/table/plugins/use-shift-key.d.ts +13 -0
- package/lib/table/props.d.ts +49 -39
- package/lib/table/table.css +112 -58
- package/lib/table/table.d.ts +58 -47
- package/lib/table/table.less +46 -58
- package/lib/table/table.variable.css +115 -58
- package/lib/table/use-attributes.d.ts +9 -46
- package/lib/table/use-column.d.ts +18 -139
- package/lib/table/use-common.d.ts +5 -5
- package/lib/table/use-render.d.ts +1 -1
- package/lib/table/utils.d.ts +6 -6
- package/lib/table-column/index.d.ts +127 -431
- package/lib/table-column/index.js +43 -117
- package/lib/tag/index.d.ts +11 -11
- package/lib/tag/index.js +2 -2
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag/tag.variable.css +3 -0
- package/lib/tag-input/common.d.ts +1 -1
- package/lib/tag-input/index.d.ts +12 -12
- package/lib/tag-input/index.js +30 -30
- package/lib/tag-input/tag-input.d.ts +6 -6
- package/lib/tag-input/tag-input.variable.css +3 -0
- package/lib/tag-input/tag-props.d.ts +3 -3
- package/lib/tag-input/tag-render.d.ts +1 -1
- package/lib/time-picker/index.d.ts +38 -35
- package/lib/time-picker/time-picker.variable.css +3 -0
- package/lib/timeline/index.d.ts +80 -44
- package/lib/timeline/index.js +56 -67
- package/lib/timeline/timeline.d.ts +46 -29
- package/lib/timeline/timeline.variable.css +3 -0
- package/lib/transfer/const.d.ts +2 -2
- package/lib/transfer/index.js +19 -19
- package/lib/transfer/transfer.css +9 -9
- package/lib/transfer/transfer.less +3 -3
- package/lib/transfer/transfer.variable.css +12 -9
- package/lib/tree/constant.d.ts +22 -20
- package/lib/tree/index.d.ts +64 -20
- package/lib/tree/index.js +17595 -72
- package/lib/tree/props.d.ts +24 -6
- package/lib/tree/tree.css +76 -2
- package/lib/tree/tree.d.ts +34 -8
- package/lib/tree/tree.less +1 -1
- package/lib/tree/tree.variable.css +79 -2
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-intersection-observer.d.ts +27 -0
- package/lib/tree/use-node-action.d.ts +2 -2
- package/lib/tree/use-node-attribute.d.ts +9 -0
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/tree/util.d.ts +1 -1
- package/lib/upload/index.d.ts +12 -0
- package/lib/upload/index.js +62 -65
- package/lib/upload/props.d.ts +4 -1
- package/lib/upload/upload-trigger.d.ts +6 -0
- package/lib/upload/upload.d.ts +6 -0
- package/lib/upload/upload.type.d.ts +7 -7
- package/lib/upload/upload.variable.css +3 -0
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/lib/virtual-render/index.d.ts +36 -9
- package/lib/virtual-render/index.js +295 -80
- package/lib/virtual-render/props.d.ts +16 -0
- package/lib/virtual-render/use-fix-top.d.ts +2 -7
- package/lib/virtual-render/use-scrollbar.d.ts +24 -0
- package/lib/virtual-render/v-virtual-render.d.ts +2 -1
- package/lib/virtual-render/virtual-render.css +76 -2
- package/lib/virtual-render/virtual-render.d.ts +16 -3
- package/lib/virtual-render/virtual-render.less +3 -3
- package/lib/virtual-render/virtual-render.variable.css +79 -2
- package/package.json +13 -49
- package/lib/rate/star.css +0 -27
- package/lib/rate/star.less +0 -34
- package/lib/shared/mask.d.ts +0 -11
package/lib/select/index.js
CHANGED
@@ -2,12 +2,11 @@ import "../styles/reset.css";
|
|
2
2
|
import "./select.less";
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
|
5
|
-
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isEqual_ce045a54__ from "lodash/isEqual";
|
6
5
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_checkbox_13b1cb4a__ from "../checkbox";
|
7
6
|
import "../checkbox/checkbox.less";
|
8
7
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
|
9
8
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__ from "../icon";
|
10
|
-
import * as
|
9
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lodash_isEqual_ce045a54__ from "lodash/isEqual";
|
11
10
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__ from "../directives";
|
12
11
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_input_d525237e__ from "../input";
|
13
12
|
import "../input/input.less";
|
@@ -17,9 +16,10 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_popover_9b03f19d__ from "../p
|
|
17
16
|
import "../popover/popover.less";
|
18
17
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_virtual_render_927587a8__ from "../virtual-render";
|
19
18
|
import "../virtual-render/virtual-render.less";
|
20
|
-
import * as
|
19
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__ from "lodash/merge";
|
21
20
|
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_tag_d74826be__ from "../tag";
|
22
21
|
import "../tag/tag.less";
|
22
|
+
import * as __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__ from "lodash/debounce";
|
23
23
|
/******/ var __webpack_modules__ = ({
|
24
24
|
|
25
25
|
/***/ 7609:
|
@@ -492,10 +492,6 @@ function _defineProperty(obj, key, value) {
|
|
492
492
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
493
493
|
var external_vue_y = x => () => x
|
494
494
|
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, ["customRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.customRef, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["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, ["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 });
|
495
|
-
;// CONCATENATED MODULE: external "lodash/isEqual"
|
496
|
-
var isEqual_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
497
|
-
var isEqual_y = x => () => x
|
498
|
-
const isEqual_namespaceObject = isEqual_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isEqual_ce045a54__["default"] });
|
499
495
|
;// CONCATENATED MODULE: external "../checkbox"
|
500
496
|
var checkbox_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
501
497
|
var checkbox_y = x => () => x
|
@@ -511,7 +507,11 @@ const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () =>
|
|
511
507
|
;// CONCATENATED MODULE: external "../icon"
|
512
508
|
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
513
509
|
var icon_y = x => () => x
|
514
|
-
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 });
|
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 });
|
511
|
+
;// CONCATENATED MODULE: external "lodash/isEqual"
|
512
|
+
var isEqual_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
513
|
+
var isEqual_y = x => () => x
|
514
|
+
const isEqual_namespaceObject = isEqual_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isEqual_ce045a54__["default"] });
|
515
515
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
516
516
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
517
517
|
try {
|
@@ -816,33 +816,45 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
816
816
|
var selectedStyle = (0,external_vue_namespaceObject.computed)(function () {
|
817
817
|
return select === null || select === void 0 ? void 0 : select.selectedStyle;
|
818
818
|
});
|
819
|
-
var
|
820
|
-
return select === null || select === void 0 ? void 0 : select.
|
821
|
-
});
|
822
|
-
var allOptionId = (0,external_vue_namespaceObject.computed)(function () {
|
823
|
-
return select === null || select === void 0 ? void 0 : select.allOptionId;
|
819
|
+
var searchValue = (0,external_vue_namespaceObject.computed)(function () {
|
820
|
+
return select === null || select === void 0 ? void 0 : select.curSearchValue;
|
824
821
|
});
|
825
|
-
var
|
826
|
-
|
827
|
-
if (!isShowAll.value || optionID.value === allOptionId.value) return disabled.value;
|
828
|
-
// 全部选项需要禁用掉其他选项
|
829
|
-
var exitAllOptionId = select === null || select === void 0 || (_select$selected2 = select.selected) === null || _select$selected2 === void 0 ? void 0 : _select$selected2.some(function (item) {
|
830
|
-
return (0,isEqual_namespaceObject["default"])(item.value, allOptionId.value);
|
831
|
-
});
|
832
|
-
return disabled.value || isShowAll.value && exitAllOptionId;
|
822
|
+
var highlightKeyword = (0,external_vue_namespaceObject.computed)(function () {
|
823
|
+
return select === null || select === void 0 ? void 0 : select.highlightKeyword;
|
833
824
|
});
|
834
825
|
var handleOptionClick = function handleOptionClick() {
|
835
|
-
if (
|
836
|
-
|
837
|
-
// 全部选项
|
838
|
-
select === null || select === void 0 || select.handleToggleAll();
|
839
|
-
} else {
|
840
|
-
select === null || select === void 0 || select.handleOptionSelected(proxy);
|
841
|
-
}
|
826
|
+
if (disabled.value) return;
|
827
|
+
select === null || select === void 0 || select.handleOptionSelected(proxy);
|
842
828
|
};
|
843
829
|
var handleMouseEnter = function handleMouseEnter() {
|
844
830
|
select.activeOptionValue = optionID.value;
|
845
831
|
};
|
832
|
+
var transformNode = function transformNode(str) {
|
833
|
+
var _keyword;
|
834
|
+
if (!str) return str;
|
835
|
+
var keyword = searchValue.value;
|
836
|
+
var len = keyword.length;
|
837
|
+
if (!((_keyword = keyword) !== null && _keyword !== void 0 && _keyword.trim().length) || !str.toLocaleLowerCase().includes(keyword.toLocaleLowerCase())) return str;
|
838
|
+
var list = [];
|
839
|
+
var lastIndex = -1;
|
840
|
+
keyword = keyword.replace(/([.*/]{1})/gim, '\\$1');
|
841
|
+
str.replace(new RegExp("".concat(keyword), 'igm'), function (key, index) {
|
842
|
+
if (list.length === 0 && index !== 0) {
|
843
|
+
list.push(str.slice(0, index));
|
844
|
+
} else if (lastIndex >= 0) {
|
845
|
+
list.push(str.slice(lastIndex + key.length, index));
|
846
|
+
}
|
847
|
+
list.push((0,external_vue_namespaceObject.createVNode)("span", {
|
848
|
+
"class": "is-keyword"
|
849
|
+
}, [key]));
|
850
|
+
lastIndex = index;
|
851
|
+
return key;
|
852
|
+
});
|
853
|
+
if (lastIndex >= 0) {
|
854
|
+
list.push(str.slice(lastIndex + len));
|
855
|
+
}
|
856
|
+
return list.length ? list : str;
|
857
|
+
};
|
846
858
|
(0,external_vue_namespaceObject.onBeforeMount)(function () {
|
847
859
|
select === null || select === void 0 || select.register(optionID.value, proxy);
|
848
860
|
group === null || group === void 0 || group.register(optionID.value, proxy);
|
@@ -861,17 +873,18 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
861
873
|
selectedStyle: selectedStyle,
|
862
874
|
optionName: optionName,
|
863
875
|
optionID: optionID,
|
864
|
-
|
876
|
+
highlightKeyword: highlightKeyword,
|
865
877
|
handleOptionClick: handleOptionClick,
|
866
878
|
handleMouseEnter: handleMouseEnter,
|
867
|
-
resolveClassName: resolveClassName
|
879
|
+
resolveClassName: resolveClassName,
|
880
|
+
transformNode: transformNode
|
868
881
|
});
|
869
882
|
},
|
870
883
|
render: function render() {
|
871
884
|
var _this$$slots$default, _this$$slots$default2, _this$$slots;
|
872
885
|
var selectItemClass = (0,shared_namespaceObject.classes)(_defineProperty({
|
873
886
|
'is-selected': this.selected,
|
874
|
-
'is-disabled': this.
|
887
|
+
'is-disabled': this.disabled,
|
875
888
|
'is-multiple': this.multiple,
|
876
889
|
'is-hover': this.isHover,
|
877
890
|
'is-checkbox': this.selectedStyle === shared_namespaceObject.SelectedTypeEnum.CHECKBOX
|
@@ -881,16 +894,16 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
881
894
|
"onClick": this.handleOptionClick,
|
882
895
|
"onMouseenter": this.handleMouseEnter
|
883
896
|
}, [this.showSelectedIcon && this.selectedStyle === shared_namespaceObject.SelectedTypeEnum.CHECKBOX && (0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
884
|
-
"disabled": this.isDisabled,
|
885
897
|
"class": this.resolveClassName('select-checkbox'),
|
898
|
+
"disabled": this.disabled,
|
886
899
|
"modelValue": this.selected
|
887
900
|
}, null), (_this$$slots$default = (_this$$slots$default2 = (_this$$slots = this.$slots)["default"]) === null || _this$$slots$default2 === void 0 ? void 0 : _this$$slots$default2.call(_this$$slots)) !== null && _this$$slots$default !== void 0 ? _this$$slots$default : (0,external_vue_namespaceObject.createVNode)("span", {
|
888
901
|
"class": this.resolveClassName('select-option-item'),
|
889
902
|
"title": String(this.optionName)
|
890
|
-
}, [this.optionName]), this.showSelectedIcon && this.selected && this.selectedStyle === shared_namespaceObject.SelectedTypeEnum.CHECK && (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Done, {
|
891
|
-
"class": this.resolveClassName('select-selected-icon'),
|
903
|
+
}, [this.highlightKeyword ? this.transformNode(String(this.optionName)) : this.optionName]), this.showSelectedIcon && this.selected && this.selectedStyle === shared_namespaceObject.SelectedTypeEnum.CHECK && (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Done, {
|
892
904
|
"width": 22,
|
893
|
-
"height": 22
|
905
|
+
"height": 22,
|
906
|
+
"class": this.resolveClassName('select-selected-icon')
|
894
907
|
}, null)]), [[external_vue_namespaceObject.vShow, this.visible]]);
|
895
908
|
}
|
896
909
|
}));
|
@@ -1041,10 +1054,6 @@ function optionGroup_objectSpread(e) { for (var r = 1; r < arguments.length; r++
|
|
1041
1054
|
}, [(_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.visible]]);
|
1042
1055
|
}
|
1043
1056
|
}));
|
1044
|
-
;// CONCATENATED MODULE: external "lodash/merge"
|
1045
|
-
var merge_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1046
|
-
var merge_y = x => () => x
|
1047
|
-
const merge_namespaceObject = merge_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__["default"] });
|
1048
1057
|
;// CONCATENATED MODULE: external "../directives"
|
1049
1058
|
var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1050
1059
|
var directives_y = x => () => x
|
@@ -1081,10 +1090,1208 @@ const virtual_render_namespaceObject = virtual_render_x({ ["default"]: () => __W
|
|
1081
1090
|
var virtual_render_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1082
1091
|
var virtual_render_less_y = x => () => x
|
1083
1092
|
const virtual_render_less_namespaceObject = virtual_render_less_x({ });
|
1084
|
-
;// CONCATENATED MODULE: external "lodash/
|
1085
|
-
var
|
1086
|
-
var
|
1087
|
-
const
|
1093
|
+
;// CONCATENATED MODULE: external "lodash/merge"
|
1094
|
+
var merge_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1095
|
+
var merge_y = x => () => x
|
1096
|
+
const merge_namespaceObject = merge_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_merge_cf99375a__["default"] });
|
1097
|
+
;// CONCATENATED MODULE: ../../packages/select/src/pinyin/dict.js
|
1098
|
+
/*
|
1099
|
+
* Tencent is pleased to support the open source community by making
|
1100
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
1101
|
+
*
|
1102
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
1103
|
+
*
|
1104
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
1105
|
+
*
|
1106
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
1107
|
+
*
|
1108
|
+
* ---------------------------------------------------
|
1109
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
1110
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
1111
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
1112
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
1113
|
+
*
|
1114
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
1115
|
+
* the Software.
|
1116
|
+
*
|
1117
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
1118
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1119
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
1120
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
1121
|
+
* IN THE SOFTWARE.
|
1122
|
+
*/
|
1123
|
+
|
1124
|
+
/**
|
1125
|
+
* Source: <https://android.googlesource.com/platform/packages/providers/ContactsProvider/+/0c49720fb3d58e346739c2ccd56ed2b739249e07/src/com/android/providers/contacts/HanziToPinyin.java>
|
1126
|
+
* Updated by creeper
|
1127
|
+
*/
|
1128
|
+
|
1129
|
+
|
1130
|
+
|
1131
|
+
const UNIHANS = [
|
1132
|
+
'\u963f',
|
1133
|
+
'\u54ce',
|
1134
|
+
'\u5b89',
|
1135
|
+
'\u80ae',
|
1136
|
+
'\u51f9',
|
1137
|
+
'\u516b',
|
1138
|
+
'\u6300',
|
1139
|
+
'\u6273',
|
1140
|
+
'\u90a6',
|
1141
|
+
'\u52f9',
|
1142
|
+
'\u9642',
|
1143
|
+
'\u5954',
|
1144
|
+
'\u4f3b',
|
1145
|
+
'\u5c44',
|
1146
|
+
'\u8fb9',
|
1147
|
+
'\u706c',
|
1148
|
+
'\u618b',
|
1149
|
+
'\u6c43',
|
1150
|
+
'\u51ab',
|
1151
|
+
'\u7676',
|
1152
|
+
'\u5cec',
|
1153
|
+
'\u5693',
|
1154
|
+
'\u5072',
|
1155
|
+
'\u53c2',
|
1156
|
+
'\u4ed3',
|
1157
|
+
'\u64a1',
|
1158
|
+
'\u518a',
|
1159
|
+
'\u5d7e',
|
1160
|
+
'\u66fd',
|
1161
|
+
'\u53c9',
|
1162
|
+
'\u8286',
|
1163
|
+
'\u8fbf',
|
1164
|
+
'\u4f25',
|
1165
|
+
'\u6284',
|
1166
|
+
'\u8f66',
|
1167
|
+
'\u62bb',
|
1168
|
+
'\u9637',
|
1169
|
+
'\u5403',
|
1170
|
+
'\u5145',
|
1171
|
+
'\u62bd',
|
1172
|
+
'\u51fa',
|
1173
|
+
'\u6b3b',
|
1174
|
+
'\u63e3',
|
1175
|
+
'\u5ddb',
|
1176
|
+
'\u5205',
|
1177
|
+
'\u5439',
|
1178
|
+
'\u65fe',
|
1179
|
+
'\u9034',
|
1180
|
+
'\u5472',
|
1181
|
+
'\u5306',
|
1182
|
+
'\u51d1',
|
1183
|
+
'\u7c97',
|
1184
|
+
'\u6c46',
|
1185
|
+
'\u5d14',
|
1186
|
+
'\u90a8',
|
1187
|
+
'\u6413',
|
1188
|
+
'\u5491',
|
1189
|
+
'\u5446',
|
1190
|
+
'\u4e39',
|
1191
|
+
'\u5f53',
|
1192
|
+
'\u5200',
|
1193
|
+
'\u561a',
|
1194
|
+
'\u6265',
|
1195
|
+
'\u706f',
|
1196
|
+
'\u6c10',
|
1197
|
+
'\u7538',
|
1198
|
+
'\u5201',
|
1199
|
+
'\u7239',
|
1200
|
+
'\u4e01',
|
1201
|
+
'\u4e1f',
|
1202
|
+
'\u4e1c',
|
1203
|
+
'\u543a',
|
1204
|
+
'\u53be',
|
1205
|
+
'\u8011',
|
1206
|
+
'\u5796',
|
1207
|
+
'\u5428',
|
1208
|
+
'\u591a',
|
1209
|
+
'\u59b8',
|
1210
|
+
'\u8bf6',
|
1211
|
+
'\u5940',
|
1212
|
+
'\u97a5',
|
1213
|
+
'\u513f',
|
1214
|
+
'\u53d1',
|
1215
|
+
'\u5e06',
|
1216
|
+
'\u531a',
|
1217
|
+
'\u98de',
|
1218
|
+
'\u5206',
|
1219
|
+
'\u4e30',
|
1220
|
+
'\u8985',
|
1221
|
+
'\u4ecf',
|
1222
|
+
'\u7d11',
|
1223
|
+
'\u592b',
|
1224
|
+
'\u65ee',
|
1225
|
+
'\u4f85',
|
1226
|
+
'\u7518',
|
1227
|
+
'\u5188',
|
1228
|
+
'\u768b',
|
1229
|
+
'\u6208',
|
1230
|
+
'\u7ed9',
|
1231
|
+
'\u6839',
|
1232
|
+
'\u522f',
|
1233
|
+
'\u5de5',
|
1234
|
+
'\u52fe',
|
1235
|
+
'\u4f30',
|
1236
|
+
'\u74dc',
|
1237
|
+
'\u4e56',
|
1238
|
+
'\u5173',
|
1239
|
+
'\u5149',
|
1240
|
+
'\u5f52',
|
1241
|
+
'\u4e28',
|
1242
|
+
'\u5459',
|
1243
|
+
'\u54c8',
|
1244
|
+
'\u548d',
|
1245
|
+
'\u4f44',
|
1246
|
+
'\u592f',
|
1247
|
+
'\u8320',
|
1248
|
+
'\u8bc3',
|
1249
|
+
'\u9ed2',
|
1250
|
+
'\u62eb',
|
1251
|
+
'\u4ea8',
|
1252
|
+
'\u5677',
|
1253
|
+
'\u53ff',
|
1254
|
+
'\u9f41',
|
1255
|
+
'\u4e4e',
|
1256
|
+
'\u82b1',
|
1257
|
+
'\u6000',
|
1258
|
+
'\u6b22',
|
1259
|
+
'\u5ddf',
|
1260
|
+
'\u7070',
|
1261
|
+
'\u660f',
|
1262
|
+
'\u5419',
|
1263
|
+
'\u4e0c',
|
1264
|
+
'\u52a0',
|
1265
|
+
'\u620b',
|
1266
|
+
'\u6c5f',
|
1267
|
+
'\u827d',
|
1268
|
+
'\u9636',
|
1269
|
+
'\u5dfe',
|
1270
|
+
'\u5755',
|
1271
|
+
'\u5182',
|
1272
|
+
'\u4e29',
|
1273
|
+
'\u51e5',
|
1274
|
+
'\u59e2',
|
1275
|
+
'\u5658',
|
1276
|
+
'\u519b',
|
1277
|
+
'\u5494',
|
1278
|
+
'\u5f00',
|
1279
|
+
'\u520a',
|
1280
|
+
'\u5ffc',
|
1281
|
+
'\u5c3b',
|
1282
|
+
'\u533c',
|
1283
|
+
'\u808e',
|
1284
|
+
'\u52a5',
|
1285
|
+
'\u7a7a',
|
1286
|
+
'\u62a0',
|
1287
|
+
'\u625d',
|
1288
|
+
'\u5938',
|
1289
|
+
'\u84af',
|
1290
|
+
'\u5bbd',
|
1291
|
+
'\u5321',
|
1292
|
+
'\u4e8f',
|
1293
|
+
'\u5764',
|
1294
|
+
'\u6269',
|
1295
|
+
'\u5783',
|
1296
|
+
'\u6765',
|
1297
|
+
'\u5170',
|
1298
|
+
'\u5577',
|
1299
|
+
'\u635e',
|
1300
|
+
'\u808b',
|
1301
|
+
'\u52d2',
|
1302
|
+
'\u5d1a',
|
1303
|
+
'\u54e9',
|
1304
|
+
'\u4fe9',
|
1305
|
+
'\u5941',
|
1306
|
+
'\u826f',
|
1307
|
+
'\u64a9',
|
1308
|
+
'\u6bdf',
|
1309
|
+
'\u62ce',
|
1310
|
+
'\u4f36',
|
1311
|
+
'\u6e9c',
|
1312
|
+
'\u56d6',
|
1313
|
+
'\u9f99',
|
1314
|
+
'\u779c',
|
1315
|
+
'\u565c',
|
1316
|
+
'\u9a74',
|
1317
|
+
'\u5a08',
|
1318
|
+
'\u63a0',
|
1319
|
+
'\u62a1',
|
1320
|
+
'\u7f57',
|
1321
|
+
'\u5463',
|
1322
|
+
'\u5988',
|
1323
|
+
'\u57cb',
|
1324
|
+
'\u5ada',
|
1325
|
+
'\u7264',
|
1326
|
+
'\u732b',
|
1327
|
+
'\u4e48',
|
1328
|
+
'\u5445',
|
1329
|
+
'\u95e8',
|
1330
|
+
'\u753f',
|
1331
|
+
'\u54aa',
|
1332
|
+
'\u5b80',
|
1333
|
+
'\u55b5',
|
1334
|
+
'\u4e5c',
|
1335
|
+
'\u6c11',
|
1336
|
+
'\u540d',
|
1337
|
+
'\u8c2c',
|
1338
|
+
'\u6478',
|
1339
|
+
'\u54de',
|
1340
|
+
'\u6bea',
|
1341
|
+
'\u55ef',
|
1342
|
+
'\u62cf',
|
1343
|
+
'\u8149',
|
1344
|
+
'\u56e1',
|
1345
|
+
'\u56d4',
|
1346
|
+
'\u5b6c',
|
1347
|
+
'\u7592',
|
1348
|
+
'\u5a1e',
|
1349
|
+
'\u6041',
|
1350
|
+
'\u80fd',
|
1351
|
+
'\u59ae',
|
1352
|
+
'\u62c8',
|
1353
|
+
'\u5a18',
|
1354
|
+
'\u9e1f',
|
1355
|
+
'\u634f',
|
1356
|
+
'\u56dc',
|
1357
|
+
'\u5b81',
|
1358
|
+
'\u599e',
|
1359
|
+
'\u519c',
|
1360
|
+
'\u7fba',
|
1361
|
+
'\u5974',
|
1362
|
+
'\u5973',
|
1363
|
+
'\u597b',
|
1364
|
+
'\u759f',
|
1365
|
+
'\u9ec1',
|
1366
|
+
'\u632a',
|
1367
|
+
'\u5594',
|
1368
|
+
'\u8bb4',
|
1369
|
+
'\u5991',
|
1370
|
+
'\u62cd',
|
1371
|
+
'\u7705',
|
1372
|
+
'\u4e53',
|
1373
|
+
'\u629b',
|
1374
|
+
'\u5478',
|
1375
|
+
'\u55b7',
|
1376
|
+
'\u5309',
|
1377
|
+
'\u4e15',
|
1378
|
+
'\u56e8',
|
1379
|
+
'\u527d',
|
1380
|
+
'\u6c15',
|
1381
|
+
'\u59d8',
|
1382
|
+
'\u4e52',
|
1383
|
+
'\u948b',
|
1384
|
+
'\u5256',
|
1385
|
+
'\u4ec6',
|
1386
|
+
'\u4e03',
|
1387
|
+
'\u6390',
|
1388
|
+
'\u5343',
|
1389
|
+
'\u545b',
|
1390
|
+
'\u6084',
|
1391
|
+
'\u767f',
|
1392
|
+
'\u4eb2',
|
1393
|
+
'\u9751',
|
1394
|
+
'\u536d',
|
1395
|
+
'\u4e18',
|
1396
|
+
'\u533a',
|
1397
|
+
'\u5cd1',
|
1398
|
+
'\u7f3a',
|
1399
|
+
'\u590b',
|
1400
|
+
'\u5465',
|
1401
|
+
'\u7a63',
|
1402
|
+
'\u5a06',
|
1403
|
+
'\u60f9',
|
1404
|
+
'\u4eba',
|
1405
|
+
'\u6254',
|
1406
|
+
'\u65e5',
|
1407
|
+
'\u8338',
|
1408
|
+
'\u53b9',
|
1409
|
+
'\u909a',
|
1410
|
+
'\u633c',
|
1411
|
+
'\u5827',
|
1412
|
+
'\u5a51',
|
1413
|
+
'\u77a4',
|
1414
|
+
'\u637c',
|
1415
|
+
'\u4ee8',
|
1416
|
+
'\u6be2',
|
1417
|
+
'\u4e09',
|
1418
|
+
'\u6852',
|
1419
|
+
'\u63bb',
|
1420
|
+
'\u95aa',
|
1421
|
+
'\u68ee',
|
1422
|
+
'\u50e7',
|
1423
|
+
'\u6740',
|
1424
|
+
'\u7b5b',
|
1425
|
+
'\u5c71',
|
1426
|
+
'\u4f24',
|
1427
|
+
'\u5f30',
|
1428
|
+
'\u5962',
|
1429
|
+
'\u7533',
|
1430
|
+
'\u5347',
|
1431
|
+
'\u5c38',
|
1432
|
+
'\u53ce',
|
1433
|
+
'\u4e66',
|
1434
|
+
'\u5237',
|
1435
|
+
'\u8870',
|
1436
|
+
'\u95e9',
|
1437
|
+
'\u53cc',
|
1438
|
+
'\u813d',
|
1439
|
+
'\u542e',
|
1440
|
+
'\u8bf4',
|
1441
|
+
'\u53b6',
|
1442
|
+
'\u5fea',
|
1443
|
+
'\u635c',
|
1444
|
+
'\u82cf',
|
1445
|
+
'\u72fb',
|
1446
|
+
'\u590a',
|
1447
|
+
'\u5b59',
|
1448
|
+
'\u5506',
|
1449
|
+
'\u4ed6',
|
1450
|
+
'\u56fc',
|
1451
|
+
'\u574d',
|
1452
|
+
'\u6c64',
|
1453
|
+
'\u5932',
|
1454
|
+
'\u5fd1',
|
1455
|
+
'\u71a5',
|
1456
|
+
'\u5254',
|
1457
|
+
'\u5929',
|
1458
|
+
'\u65eb',
|
1459
|
+
'\u5e16',
|
1460
|
+
'\u5385',
|
1461
|
+
'\u56f2',
|
1462
|
+
'\u5077',
|
1463
|
+
'\u51f8',
|
1464
|
+
'\u6e4d',
|
1465
|
+
'\u63a8',
|
1466
|
+
'\u541e',
|
1467
|
+
'\u4e47',
|
1468
|
+
'\u7a75',
|
1469
|
+
'\u6b6a',
|
1470
|
+
'\u5f2f',
|
1471
|
+
'\u5c23',
|
1472
|
+
'\u5371',
|
1473
|
+
'\u6637',
|
1474
|
+
'\u7fc1',
|
1475
|
+
'\u631d',
|
1476
|
+
'\u4e4c',
|
1477
|
+
'\u5915',
|
1478
|
+
'\u8672',
|
1479
|
+
'\u4ed9',
|
1480
|
+
'\u4e61',
|
1481
|
+
'\u7071',
|
1482
|
+
'\u4e9b',
|
1483
|
+
'\u5fc3',
|
1484
|
+
'\u661f',
|
1485
|
+
'\u51f6',
|
1486
|
+
'\u4f11',
|
1487
|
+
'\u5401',
|
1488
|
+
'\u5405',
|
1489
|
+
'\u524a',
|
1490
|
+
'\u5743',
|
1491
|
+
'\u4e2b',
|
1492
|
+
'\u6079',
|
1493
|
+
'\u592e',
|
1494
|
+
'\u5e7a',
|
1495
|
+
'\u503b',
|
1496
|
+
'\u4e00',
|
1497
|
+
'\u56d9',
|
1498
|
+
'\u5e94',
|
1499
|
+
'\u54df',
|
1500
|
+
'\u4f63',
|
1501
|
+
'\u4f18',
|
1502
|
+
'\u625c',
|
1503
|
+
'\u56e6',
|
1504
|
+
'\u66f0',
|
1505
|
+
'\u6655',
|
1506
|
+
'\u5e00',
|
1507
|
+
'\u707d',
|
1508
|
+
'\u5142',
|
1509
|
+
'\u5328',
|
1510
|
+
'\u50ae',
|
1511
|
+
'\u5219',
|
1512
|
+
'\u8d3c',
|
1513
|
+
'\u600e',
|
1514
|
+
'\u5897',
|
1515
|
+
'\u624e',
|
1516
|
+
'\u635a',
|
1517
|
+
'\u6cbe',
|
1518
|
+
'\u5f20',
|
1519
|
+
'\u4f4b',
|
1520
|
+
'\u8707',
|
1521
|
+
'\u8d1e',
|
1522
|
+
'\u4e89',
|
1523
|
+
'\u4e4b',
|
1524
|
+
'\u4e2d',
|
1525
|
+
'\u5dde',
|
1526
|
+
'\u6731',
|
1527
|
+
'\u6293',
|
1528
|
+
'\u62fd',
|
1529
|
+
'\u4e13',
|
1530
|
+
'\u5986',
|
1531
|
+
'\u96b9',
|
1532
|
+
'\u5b92',
|
1533
|
+
'\u5353',
|
1534
|
+
'\u4e72',
|
1535
|
+
'\u5b97',
|
1536
|
+
'\u90b9',
|
1537
|
+
'\u79df',
|
1538
|
+
'\u94bb',
|
1539
|
+
'\u539c',
|
1540
|
+
'\u5c0a',
|
1541
|
+
'\u6628',
|
1542
|
+
'\u5159',
|
1543
|
+
];
|
1544
|
+
|
1545
|
+
// convert ascii array to Pinyin
|
1546
|
+
const PINYINS = [
|
1547
|
+
'A',
|
1548
|
+
'AI',
|
1549
|
+
'AN',
|
1550
|
+
'ANG',
|
1551
|
+
'AO',
|
1552
|
+
'BA',
|
1553
|
+
'BAI',
|
1554
|
+
'BAN',
|
1555
|
+
'BANG',
|
1556
|
+
'BAO',
|
1557
|
+
'BEI',
|
1558
|
+
'BEN',
|
1559
|
+
'BENG',
|
1560
|
+
'BI',
|
1561
|
+
'BIAN',
|
1562
|
+
'BIAO',
|
1563
|
+
'BIE',
|
1564
|
+
'BIN',
|
1565
|
+
'BING',
|
1566
|
+
'BO',
|
1567
|
+
'BU',
|
1568
|
+
'CA',
|
1569
|
+
'CAI',
|
1570
|
+
'CAN',
|
1571
|
+
'CANG',
|
1572
|
+
'CAO',
|
1573
|
+
'CE',
|
1574
|
+
'CEN',
|
1575
|
+
'CENG',
|
1576
|
+
'CHA',
|
1577
|
+
'CHAI',
|
1578
|
+
'CHAN',
|
1579
|
+
'CHANG',
|
1580
|
+
'CHAO',
|
1581
|
+
'CHE',
|
1582
|
+
'CHEN',
|
1583
|
+
'CHENG',
|
1584
|
+
'CHI',
|
1585
|
+
'CHONG',
|
1586
|
+
'CHOU',
|
1587
|
+
'CHU',
|
1588
|
+
'CHUA',
|
1589
|
+
'CHUAI',
|
1590
|
+
'CHUAN',
|
1591
|
+
'CHUANG',
|
1592
|
+
'CHUI',
|
1593
|
+
'CHUN',
|
1594
|
+
'CHUO',
|
1595
|
+
'CI',
|
1596
|
+
'CONG',
|
1597
|
+
'COU',
|
1598
|
+
'CU',
|
1599
|
+
'CUAN',
|
1600
|
+
'CUI',
|
1601
|
+
'CUN',
|
1602
|
+
'CUO',
|
1603
|
+
'DA',
|
1604
|
+
'DAI',
|
1605
|
+
'DAN',
|
1606
|
+
'DANG',
|
1607
|
+
'DAO',
|
1608
|
+
'DE',
|
1609
|
+
'DEN',
|
1610
|
+
'DENG',
|
1611
|
+
'DI',
|
1612
|
+
'DIAN',
|
1613
|
+
'DIAO',
|
1614
|
+
'DIE',
|
1615
|
+
'DING',
|
1616
|
+
'DIU',
|
1617
|
+
'DONG',
|
1618
|
+
'DOU',
|
1619
|
+
'DU',
|
1620
|
+
'DUAN',
|
1621
|
+
'DUI',
|
1622
|
+
'DUN',
|
1623
|
+
'DUO',
|
1624
|
+
'E',
|
1625
|
+
'EI',
|
1626
|
+
'EN',
|
1627
|
+
'ENG',
|
1628
|
+
'ER',
|
1629
|
+
'FA',
|
1630
|
+
'FAN',
|
1631
|
+
'FANG',
|
1632
|
+
'FEI',
|
1633
|
+
'FEN',
|
1634
|
+
'FENG',
|
1635
|
+
'FIAO',
|
1636
|
+
'FO',
|
1637
|
+
'FOU',
|
1638
|
+
'FU',
|
1639
|
+
'GA',
|
1640
|
+
'GAI',
|
1641
|
+
'GAN',
|
1642
|
+
'GANG',
|
1643
|
+
'GAO',
|
1644
|
+
'GE',
|
1645
|
+
'GEI',
|
1646
|
+
'GEN',
|
1647
|
+
'GENG',
|
1648
|
+
'GONG',
|
1649
|
+
'GOU',
|
1650
|
+
'GU',
|
1651
|
+
'GUA',
|
1652
|
+
'GUAI',
|
1653
|
+
'GUAN',
|
1654
|
+
'GUANG',
|
1655
|
+
'GUI',
|
1656
|
+
'GUN',
|
1657
|
+
'GUO',
|
1658
|
+
'HA',
|
1659
|
+
'HAI',
|
1660
|
+
'HAN',
|
1661
|
+
'HANG',
|
1662
|
+
'HAO',
|
1663
|
+
'HE',
|
1664
|
+
'HEI',
|
1665
|
+
'HEN',
|
1666
|
+
'HENG',
|
1667
|
+
'HM',
|
1668
|
+
'HONG',
|
1669
|
+
'HOU',
|
1670
|
+
'HU',
|
1671
|
+
'HUA',
|
1672
|
+
'HUAI',
|
1673
|
+
'HUAN',
|
1674
|
+
'HUANG',
|
1675
|
+
'HUI',
|
1676
|
+
'HUN',
|
1677
|
+
'HUO',
|
1678
|
+
'JI',
|
1679
|
+
'JIA',
|
1680
|
+
'JIAN',
|
1681
|
+
'JIANG',
|
1682
|
+
'JIAO',
|
1683
|
+
'JIE',
|
1684
|
+
'JIN',
|
1685
|
+
'JING',
|
1686
|
+
'JIONG',
|
1687
|
+
'JIU',
|
1688
|
+
'JU',
|
1689
|
+
'JUAN',
|
1690
|
+
'JUE',
|
1691
|
+
'JUN',
|
1692
|
+
'KA',
|
1693
|
+
'KAI',
|
1694
|
+
'KAN',
|
1695
|
+
'KANG',
|
1696
|
+
'KAO',
|
1697
|
+
'KE',
|
1698
|
+
'KEN',
|
1699
|
+
'KENG',
|
1700
|
+
'KONG',
|
1701
|
+
'KOU',
|
1702
|
+
'KU',
|
1703
|
+
'KUA',
|
1704
|
+
'KUAI',
|
1705
|
+
'KUAN',
|
1706
|
+
'KUANG',
|
1707
|
+
'KUI',
|
1708
|
+
'KUN',
|
1709
|
+
'KUO',
|
1710
|
+
'LA',
|
1711
|
+
'LAI',
|
1712
|
+
'LAN',
|
1713
|
+
'LANG',
|
1714
|
+
'LAO',
|
1715
|
+
'LE',
|
1716
|
+
'LEI',
|
1717
|
+
'LENG',
|
1718
|
+
'LI',
|
1719
|
+
'LIA',
|
1720
|
+
'LIAN',
|
1721
|
+
'LIANG',
|
1722
|
+
'LIAO',
|
1723
|
+
'LIE',
|
1724
|
+
'LIN',
|
1725
|
+
'LING',
|
1726
|
+
'LIU',
|
1727
|
+
'LO',
|
1728
|
+
'LONG',
|
1729
|
+
'LOU',
|
1730
|
+
'LU',
|
1731
|
+
'LV',
|
1732
|
+
'LUAN',
|
1733
|
+
'LVE',
|
1734
|
+
'LUN',
|
1735
|
+
'LUO',
|
1736
|
+
'M',
|
1737
|
+
'MA',
|
1738
|
+
'MAI',
|
1739
|
+
'MAN',
|
1740
|
+
'MANG',
|
1741
|
+
'MAO',
|
1742
|
+
'ME',
|
1743
|
+
'MEI',
|
1744
|
+
'MEN',
|
1745
|
+
'MENG',
|
1746
|
+
'MI',
|
1747
|
+
'MIAN',
|
1748
|
+
'MIAO',
|
1749
|
+
'MIE',
|
1750
|
+
'MIN',
|
1751
|
+
'MING',
|
1752
|
+
'MIU',
|
1753
|
+
'MO',
|
1754
|
+
'MOU',
|
1755
|
+
'MU',
|
1756
|
+
'N',
|
1757
|
+
'NA',
|
1758
|
+
'NAI',
|
1759
|
+
'NAN',
|
1760
|
+
'NANG',
|
1761
|
+
'NAO',
|
1762
|
+
'NE',
|
1763
|
+
'NEI',
|
1764
|
+
'NEN',
|
1765
|
+
'NENG',
|
1766
|
+
'NI',
|
1767
|
+
'NIAN',
|
1768
|
+
'NIANG',
|
1769
|
+
'NIAO',
|
1770
|
+
'NIE',
|
1771
|
+
'NIN',
|
1772
|
+
'NING',
|
1773
|
+
'NIU',
|
1774
|
+
'NONG',
|
1775
|
+
'NOU',
|
1776
|
+
'NU',
|
1777
|
+
'NV',
|
1778
|
+
'NUAN',
|
1779
|
+
'NVE',
|
1780
|
+
'NUN',
|
1781
|
+
'NUO',
|
1782
|
+
'O',
|
1783
|
+
'OU',
|
1784
|
+
'PA',
|
1785
|
+
'PAI',
|
1786
|
+
'PAN',
|
1787
|
+
'PANG',
|
1788
|
+
'PAO',
|
1789
|
+
'PEI',
|
1790
|
+
'PEN',
|
1791
|
+
'PENG',
|
1792
|
+
'PI',
|
1793
|
+
'PIAN',
|
1794
|
+
'PIAO',
|
1795
|
+
'PIE',
|
1796
|
+
'PIN',
|
1797
|
+
'PING',
|
1798
|
+
'PO',
|
1799
|
+
'POU',
|
1800
|
+
'PU',
|
1801
|
+
'QI',
|
1802
|
+
'QIA',
|
1803
|
+
'QIAN',
|
1804
|
+
'QIANG',
|
1805
|
+
'QIAO',
|
1806
|
+
'QIE',
|
1807
|
+
'QIN',
|
1808
|
+
'QING',
|
1809
|
+
'QIONG',
|
1810
|
+
'QIU',
|
1811
|
+
'QU',
|
1812
|
+
'QUAN',
|
1813
|
+
'QUE',
|
1814
|
+
'QUN',
|
1815
|
+
'RAN',
|
1816
|
+
'RANG',
|
1817
|
+
'RAO',
|
1818
|
+
'RE',
|
1819
|
+
'REN',
|
1820
|
+
'RENG',
|
1821
|
+
'RI',
|
1822
|
+
'RONG',
|
1823
|
+
'ROU',
|
1824
|
+
'RU',
|
1825
|
+
'RUA',
|
1826
|
+
'RUAN',
|
1827
|
+
'RUI',
|
1828
|
+
'RUN',
|
1829
|
+
'RUO',
|
1830
|
+
'SA',
|
1831
|
+
'SAI',
|
1832
|
+
'SAN',
|
1833
|
+
'SANG',
|
1834
|
+
'SAO',
|
1835
|
+
'SE',
|
1836
|
+
'SEN',
|
1837
|
+
'SENG',
|
1838
|
+
'SHA',
|
1839
|
+
'SHAI',
|
1840
|
+
'SHAN',
|
1841
|
+
'SHANG',
|
1842
|
+
'SHAO',
|
1843
|
+
'SHE',
|
1844
|
+
'SHEN',
|
1845
|
+
'SHENG',
|
1846
|
+
'SHI',
|
1847
|
+
'SHOU',
|
1848
|
+
'SHU',
|
1849
|
+
'SHUA',
|
1850
|
+
'SHUAI',
|
1851
|
+
'SHUAN',
|
1852
|
+
'SHUANG',
|
1853
|
+
'SHUI',
|
1854
|
+
'SHUN',
|
1855
|
+
'SHUO',
|
1856
|
+
'SI',
|
1857
|
+
'SONG',
|
1858
|
+
'SOU',
|
1859
|
+
'SU',
|
1860
|
+
'SUAN',
|
1861
|
+
'SUI',
|
1862
|
+
'SUN',
|
1863
|
+
'SUO',
|
1864
|
+
'TA',
|
1865
|
+
'TAI',
|
1866
|
+
'TAN',
|
1867
|
+
'TANG',
|
1868
|
+
'TAO',
|
1869
|
+
'TE',
|
1870
|
+
'TENG',
|
1871
|
+
'TI',
|
1872
|
+
'TIAN',
|
1873
|
+
'TIAO',
|
1874
|
+
'TIE',
|
1875
|
+
'TING',
|
1876
|
+
'TONG',
|
1877
|
+
'TOU',
|
1878
|
+
'TU',
|
1879
|
+
'TUAN',
|
1880
|
+
'TUI',
|
1881
|
+
'TUN',
|
1882
|
+
'TUO',
|
1883
|
+
'WA',
|
1884
|
+
'WAI',
|
1885
|
+
'WAN',
|
1886
|
+
'WANG',
|
1887
|
+
'WEI',
|
1888
|
+
'WEN',
|
1889
|
+
'WENG',
|
1890
|
+
'WO',
|
1891
|
+
'WU',
|
1892
|
+
'XI',
|
1893
|
+
'XIA',
|
1894
|
+
'XIAN',
|
1895
|
+
'XIANG',
|
1896
|
+
'XIAO',
|
1897
|
+
'XIE',
|
1898
|
+
'XIN',
|
1899
|
+
'XING',
|
1900
|
+
'XIONG',
|
1901
|
+
'XIU',
|
1902
|
+
'XU',
|
1903
|
+
'XUAN',
|
1904
|
+
'XUE',
|
1905
|
+
'XUN',
|
1906
|
+
'YA',
|
1907
|
+
'YAN',
|
1908
|
+
'YANG',
|
1909
|
+
'YAO',
|
1910
|
+
'YE',
|
1911
|
+
'YI',
|
1912
|
+
'YIN',
|
1913
|
+
'YING',
|
1914
|
+
'YO',
|
1915
|
+
'YONG',
|
1916
|
+
'YOU',
|
1917
|
+
'YU',
|
1918
|
+
'YUAN',
|
1919
|
+
'YUE',
|
1920
|
+
'YUN',
|
1921
|
+
'ZA',
|
1922
|
+
'ZAI',
|
1923
|
+
'ZAN',
|
1924
|
+
'ZANG',
|
1925
|
+
'ZAO',
|
1926
|
+
'ZE',
|
1927
|
+
'ZEI',
|
1928
|
+
'ZEN',
|
1929
|
+
'ZENG',
|
1930
|
+
'ZHA',
|
1931
|
+
'ZHAI',
|
1932
|
+
'ZHAN',
|
1933
|
+
'ZHANG',
|
1934
|
+
'ZHAO',
|
1935
|
+
'ZHE',
|
1936
|
+
'ZHEN',
|
1937
|
+
'ZHENG',
|
1938
|
+
'ZHI',
|
1939
|
+
'ZHONG',
|
1940
|
+
'ZHOU',
|
1941
|
+
'ZHU',
|
1942
|
+
'ZHUA',
|
1943
|
+
'ZHUAI',
|
1944
|
+
'ZHUAN',
|
1945
|
+
'ZHUANG',
|
1946
|
+
'ZHUI',
|
1947
|
+
'ZHUN',
|
1948
|
+
'ZHUO',
|
1949
|
+
'ZI',
|
1950
|
+
'ZONG',
|
1951
|
+
'ZOU',
|
1952
|
+
'ZU',
|
1953
|
+
'ZUAN',
|
1954
|
+
'ZUI',
|
1955
|
+
'ZUN',
|
1956
|
+
'ZUO',
|
1957
|
+
'',
|
1958
|
+
];
|
1959
|
+
|
1960
|
+
// Separate from UNIHANS & PINYINS.
|
1961
|
+
// So PINYINS are completely of alphabetical order, and no duplicate pinyin.
|
1962
|
+
const EXCEPTIONS = {
|
1963
|
+
'\u66fe': 'ZENG', // CENG 曾
|
1964
|
+
'\u6c88': 'SHEN', // CHEN 沈
|
1965
|
+
'\u55f2': 'DIA', // DIE 嗲
|
1966
|
+
'\u78a1': 'ZHOU', // DU 碡
|
1967
|
+
'\u8052': 'GUO', // GUA 聒
|
1968
|
+
'\u7094': 'QUE', // GUI 炔
|
1969
|
+
'\u86b5': 'KE', // HE 蚵
|
1970
|
+
'\u7809': 'HUA', // HUO 砉
|
1971
|
+
'\u5b24': 'MO', // MA 嬤
|
1972
|
+
'\u5b37': 'MO', // MA 嬷
|
1973
|
+
'\u8e52': 'PAN', // MAN 蹒
|
1974
|
+
'\u8e4a': 'XI', // QI 蹊
|
1975
|
+
'\u4e2c': 'PAN', // QIANG 丬
|
1976
|
+
'\u9730': 'XIAN', // SAN 霰
|
1977
|
+
'\u8398': 'XIN', // SHEN 莘
|
1978
|
+
'\u8c49': 'CHI', // SHI 豉
|
1979
|
+
'\u9967': 'XING', // TANG 饧
|
1980
|
+
'\u7b60': 'JUN', // YUN 筠
|
1981
|
+
'\u957f': 'CHANG', // ZHANG 长
|
1982
|
+
'\u5e27': 'ZHEN', // ZHENG 帧
|
1983
|
+
'\u5cd9': 'SHI', // ZHI 峙
|
1984
|
+
'\u90cd': 'NA',
|
1985
|
+
'\u828e': 'XIONG',
|
1986
|
+
'\u8c01': 'SHUI',
|
1987
|
+
};
|
1988
|
+
|
1989
|
+
/* harmony default export */ const dict = ({
|
1990
|
+
PINYINS,
|
1991
|
+
UNIHANS,
|
1992
|
+
EXCEPTIONS,
|
1993
|
+
});
|
1994
|
+
|
1995
|
+
;// CONCATENATED MODULE: ../../packages/select/src/pinyin/core.js
|
1996
|
+
/*
|
1997
|
+
* Tencent is pleased to support the open source community by making
|
1998
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
1999
|
+
*
|
2000
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
2001
|
+
*
|
2002
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
2003
|
+
*
|
2004
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
2005
|
+
*
|
2006
|
+
* ---------------------------------------------------
|
2007
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
2008
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
2009
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
2010
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
2011
|
+
*
|
2012
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
2013
|
+
* the Software.
|
2014
|
+
*
|
2015
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
2016
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
2017
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
2018
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
2019
|
+
* IN THE SOFTWARE.
|
2020
|
+
*/
|
2021
|
+
|
2022
|
+
|
2023
|
+
|
2024
|
+
const FIRST_PINYIN_UNIHAN = '\u963F';
|
2025
|
+
const LAST_PINYIN_UNIHAN = '\u9FFF';
|
2026
|
+
|
2027
|
+
const LATIN = 1;
|
2028
|
+
const PINYIN = 2;
|
2029
|
+
const UNKNOWN = 3;
|
2030
|
+
|
2031
|
+
let supported = null;
|
2032
|
+
let COLLATOR;
|
2033
|
+
|
2034
|
+
function patchDict(patchers) {
|
2035
|
+
if (!patchers) return;
|
2036
|
+
if (typeof patchers === 'function') {
|
2037
|
+
patchers = [patchers];
|
2038
|
+
}
|
2039
|
+
if (patchers.forEach) {
|
2040
|
+
patchers.forEach(p => {
|
2041
|
+
typeof p === 'function' && p(dict);
|
2042
|
+
});
|
2043
|
+
}
|
2044
|
+
}
|
2045
|
+
|
2046
|
+
function isSupported(force) {
|
2047
|
+
if (!force && supported !== null) {
|
2048
|
+
return supported;
|
2049
|
+
}
|
2050
|
+
if (typeof Intl === 'object' && Intl.Collator) {
|
2051
|
+
COLLATOR = new Intl.Collator(['zh-Hans-CN', 'zh-CN']);
|
2052
|
+
supported = Intl.Collator.supportedLocalesOf(['zh-CN']).length === 1;
|
2053
|
+
} else {
|
2054
|
+
supported = false;
|
2055
|
+
}
|
2056
|
+
return supported;
|
2057
|
+
}
|
2058
|
+
|
2059
|
+
function genToken(ch) {
|
2060
|
+
// Access DICT here, give the chance to patch DICT.
|
2061
|
+
const { UNIHANS } = dict;
|
2062
|
+
const { PINYINS } = dict;
|
2063
|
+
const { EXCEPTIONS } = dict;
|
2064
|
+
const token = {
|
2065
|
+
source: ch,
|
2066
|
+
};
|
2067
|
+
|
2068
|
+
// First check EXCEPTIONS map, then search with UNIHANS table.
|
2069
|
+
if (ch in EXCEPTIONS) {
|
2070
|
+
token.type = PINYIN;
|
2071
|
+
token.target = EXCEPTIONS[ch];
|
2072
|
+
return token;
|
2073
|
+
}
|
2074
|
+
|
2075
|
+
let offset = -1;
|
2076
|
+
let cmp;
|
2077
|
+
if (ch.charCodeAt(0) < 256) {
|
2078
|
+
token.type = LATIN;
|
2079
|
+
token.target = ch;
|
2080
|
+
return token;
|
2081
|
+
}
|
2082
|
+
cmp = COLLATOR.compare(ch, FIRST_PINYIN_UNIHAN);
|
2083
|
+
if (cmp < 0) {
|
2084
|
+
token.type = UNKNOWN;
|
2085
|
+
token.target = ch;
|
2086
|
+
return token;
|
2087
|
+
}
|
2088
|
+
if (cmp === 0) {
|
2089
|
+
token.type = PINYIN;
|
2090
|
+
offset = 0;
|
2091
|
+
} else {
|
2092
|
+
cmp = COLLATOR.compare(ch, LAST_PINYIN_UNIHAN);
|
2093
|
+
if (cmp > 0) {
|
2094
|
+
token.type = UNKNOWN;
|
2095
|
+
token.target = ch;
|
2096
|
+
return token;
|
2097
|
+
}
|
2098
|
+
if (cmp === 0) {
|
2099
|
+
token.type = PINYIN;
|
2100
|
+
offset = UNIHANS.length - 1;
|
2101
|
+
}
|
2102
|
+
}
|
2103
|
+
|
2104
|
+
token.type = PINYIN;
|
2105
|
+
if (offset < 0) {
|
2106
|
+
let begin = 0;
|
2107
|
+
let end = UNIHANS.length - 1;
|
2108
|
+
while (begin <= end) {
|
2109
|
+
offset = ~~((begin + end) / 2);
|
2110
|
+
const unihan = UNIHANS[offset];
|
2111
|
+
cmp = COLLATOR.compare(ch, unihan);
|
2112
|
+
|
2113
|
+
// Catch it.
|
2114
|
+
if (cmp === 0) {
|
2115
|
+
break;
|
2116
|
+
} else if (cmp > 0) {
|
2117
|
+
// Search after offset.
|
2118
|
+
begin = offset + 1;
|
2119
|
+
} else {
|
2120
|
+
// Search before the offset.
|
2121
|
+
end = offset - 1;
|
2122
|
+
}
|
2123
|
+
}
|
2124
|
+
}
|
2125
|
+
|
2126
|
+
if (cmp < 0) {
|
2127
|
+
offset--;
|
2128
|
+
}
|
2129
|
+
|
2130
|
+
token.target = PINYINS[offset];
|
2131
|
+
if (!token.target) {
|
2132
|
+
token.type = UNKNOWN;
|
2133
|
+
token.target = token.source;
|
2134
|
+
}
|
2135
|
+
return token;
|
2136
|
+
}
|
2137
|
+
|
2138
|
+
function parse(str) {
|
2139
|
+
if (typeof str !== 'string' || !isSupported()) {
|
2140
|
+
return str;
|
2141
|
+
}
|
2142
|
+
return str.split('').map(v => genToken(v));
|
2143
|
+
}
|
2144
|
+
|
2145
|
+
/* harmony default export */ const core = ({
|
2146
|
+
isSupported,
|
2147
|
+
parse,
|
2148
|
+
patchDict,
|
2149
|
+
genToken, // inner usage
|
2150
|
+
convertToPinyin(str, lowerCase, separator) {
|
2151
|
+
return parse(str)
|
2152
|
+
.map(v => {
|
2153
|
+
if (lowerCase && v.type === PINYIN) {
|
2154
|
+
return v.target.toLowerCase();
|
2155
|
+
}
|
2156
|
+
return v.target;
|
2157
|
+
})
|
2158
|
+
.join(separator || '');
|
2159
|
+
},
|
2160
|
+
});
|
2161
|
+
|
2162
|
+
;// CONCATENATED MODULE: ../../packages/select/src/pinyin/patchers/56l.js
|
2163
|
+
/*
|
2164
|
+
* Tencent is pleased to support the open source community by making
|
2165
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
2166
|
+
*
|
2167
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
2168
|
+
*
|
2169
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
2170
|
+
*
|
2171
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
2172
|
+
*
|
2173
|
+
* ---------------------------------------------------
|
2174
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
2175
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
2176
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
2177
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
2178
|
+
*
|
2179
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
2180
|
+
* the Software.
|
2181
|
+
*
|
2182
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
2183
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
2184
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
2185
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
2186
|
+
* IN THE SOFTWARE.
|
2187
|
+
*/
|
2188
|
+
|
2189
|
+
function patcher(DICT) {
|
2190
|
+
// Update EXCEPTIONS dict.
|
2191
|
+
DICT.EXCEPTIONS = {
|
2192
|
+
'\u55f2': 'DIA', // DIE 嗲
|
2193
|
+
'\u78a1': 'ZHOU', // DU 碡
|
2194
|
+
'\u8052': 'GUO', // GUA 聒
|
2195
|
+
'\u7094': 'QUE', // GUI 炔
|
2196
|
+
'\u86b5': 'KE', // HE 蚵
|
2197
|
+
'\u7809': 'HUA', // HUO 砉
|
2198
|
+
'\u5b37': 'MO', // MA 嬷 新增
|
2199
|
+
'\u8e4a': 'XI', // QI 蹊
|
2200
|
+
'\u4e2c': 'PAN', // QIANG 丬
|
2201
|
+
'\u9730': 'XIAN', // SAN 霰
|
2202
|
+
'\u8c49': 'CHI', // SHI 豉
|
2203
|
+
'\u9967': 'XING', // TANG 饧
|
2204
|
+
'\u5e27': 'ZHEN', // ZHENG 帧
|
2205
|
+
'\u828e': 'XIONG', // 芎
|
2206
|
+
'\u8c01': 'SHUI', // 谁
|
2207
|
+
'\u94b6': 'KE', // 钶
|
2208
|
+
};
|
2209
|
+
|
2210
|
+
// Update UNIHANS dict.
|
2211
|
+
DICT.UNIHANS[91] = '\u4f15'; // FU: 夫 --> 伕
|
2212
|
+
DICT.UNIHANS[347] = '\u4eda'; // XIAN: 仙 --> 仚
|
2213
|
+
DICT.UNIHANS[393] = '\u8bcc'; // ZHOU: 州 --> 诌
|
2214
|
+
DICT.UNIHANS[39] = '\u5a64'; // CHOU: 抽 --> 婤
|
2215
|
+
DICT.UNIHANS[50] = '\u8160'; // COU: 凑 --> 腠
|
2216
|
+
DICT.UNIHANS[369] = '\u6538'; // YOU: 优 --> 攸
|
2217
|
+
DICT.UNIHANS[123] = '\u4e6f'; // HU: 乎 --> 乯
|
2218
|
+
DICT.UNIHANS[171] = '\u5215'; // LI: 哩 --> 刕
|
2219
|
+
DICT.UNIHANS[102] = '\u4f5d'; // GOU: 勾 --> 佝
|
2220
|
+
DICT.UNIHANS[126] = '\u72bf'; // HUAN: 欢 --> 犿
|
2221
|
+
DICT.UNIHANS[176] = '\u5217'; // LIE: 毟 --> 列
|
2222
|
+
DICT.UNIHANS[178] = '\u5222'; // LING: 伶 --> 刢
|
2223
|
+
DICT.UNIHANS[252] = '\u5a1d'; // POU: 剖 --> 娝
|
2224
|
+
DICT.UNIHANS[330] = '\u5078'; // TOU: 偷 --> 偸
|
2225
|
+
}
|
2226
|
+
|
2227
|
+
function shouldPatch(toToken) {
|
2228
|
+
if (typeof toToken !== 'function') return false;
|
2229
|
+
// Special unihans that get incorrect pinyins.
|
2230
|
+
if (
|
2231
|
+
toToken('\u4f15').target === 'FOU' &&
|
2232
|
+
toToken('\u4eda').target === 'XIA' &&
|
2233
|
+
toToken('\u8bcc').target === 'ZHONG' &&
|
2234
|
+
toToken('\u5a64').target === 'CHONG' &&
|
2235
|
+
toToken('\u8160').target === 'CONG' &&
|
2236
|
+
toToken('\u6538').target === 'YONG' &&
|
2237
|
+
toToken('\u4e6f').target === 'HOU' &&
|
2238
|
+
toToken('\u5215').target === 'LENG' &&
|
2239
|
+
toToken('\u4f5d').target === 'GONG' &&
|
2240
|
+
toToken('\u72bf').target === 'HUAI' &&
|
2241
|
+
toToken('\u5217').target === 'LIAO' &&
|
2242
|
+
toToken('\u5222').target === 'LIN' &&
|
2243
|
+
toToken('\u94b6').target === 'E'
|
2244
|
+
) {
|
2245
|
+
return true;
|
2246
|
+
}
|
2247
|
+
return false;
|
2248
|
+
}
|
2249
|
+
|
2250
|
+
/* harmony default export */ const _56l = ({
|
2251
|
+
patcher,
|
2252
|
+
shouldPatch,
|
2253
|
+
});
|
2254
|
+
|
2255
|
+
;// CONCATENATED MODULE: ../../packages/select/src/pinyin/index.js
|
2256
|
+
/*
|
2257
|
+
* Tencent is pleased to support the open source community by making
|
2258
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
2259
|
+
*
|
2260
|
+
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
2261
|
+
*
|
2262
|
+
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
2263
|
+
*
|
2264
|
+
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
2265
|
+
*
|
2266
|
+
* ---------------------------------------------------
|
2267
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
2268
|
+
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
2269
|
+
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
2270
|
+
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
2271
|
+
*
|
2272
|
+
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
2273
|
+
* the Software.
|
2274
|
+
*
|
2275
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
2276
|
+
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
2277
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
2278
|
+
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
2279
|
+
* IN THE SOFTWARE.
|
2280
|
+
*/
|
2281
|
+
|
2282
|
+
/**
|
2283
|
+
* Source: <https://github.com/creeperyang/pinyin>
|
2284
|
+
*/
|
2285
|
+
|
2286
|
+
|
2287
|
+
|
2288
|
+
// Patch dict for icudt56l.dat related env, such as safari|node v4.
|
2289
|
+
if (core.isSupported() && _56l.shouldPatch(core.genToken)) {
|
2290
|
+
core.patchDict(_56l);
|
2291
|
+
}
|
2292
|
+
|
2293
|
+
/* harmony default export */ const pinyin = (core);
|
2294
|
+
|
1088
2295
|
;// CONCATENATED MODULE: external "../tag"
|
1089
2296
|
var tag_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1090
2297
|
var tag_y = x => () => x
|
@@ -1093,6 +2300,10 @@ const tag_namespaceObject = tag_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE
|
|
1093
2300
|
var tag_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
1094
2301
|
var tag_less_y = x => () => x
|
1095
2302
|
const tag_less_namespaceObject = tag_less_x({ });
|
2303
|
+
;// CONCATENATED MODULE: external "lodash/debounce"
|
2304
|
+
var debounce_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
2305
|
+
var debounce_y = x => () => x
|
2306
|
+
const debounce_namespaceObject = debounce_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__["default"] });
|
1096
2307
|
;// CONCATENATED MODULE: ../../packages/select/src/selectTagInput.tsx
|
1097
2308
|
|
1098
2309
|
|
@@ -1147,7 +2358,8 @@ const tag_less_namespaceObject = tag_less_x({ });
|
|
1147
2358
|
allowCreate: shared_namespaceObject.PropTypes.bool.def(false),
|
1148
2359
|
disabled: shared_namespaceObject.PropTypes.bool.def(false),
|
1149
2360
|
modelValue: shared_namespaceObject.PropTypes.any,
|
1150
|
-
collapseTags: shared_namespaceObject.PropTypes.bool.def(false)
|
2361
|
+
collapseTags: shared_namespaceObject.PropTypes.bool.def(false),
|
2362
|
+
behavior: (0,shared_namespaceObject.InputBehaviorType)()
|
1151
2363
|
},
|
1152
2364
|
emits: ['update:modelValue', 'remove', 'enter', 'keydown'],
|
1153
2365
|
setup: function setup(props, _ref) {
|
@@ -1272,27 +2484,27 @@ const tag_less_namespaceObject = tag_less_x({ });
|
|
1272
2484
|
_this$$slots4,
|
1273
2485
|
_this$$slots4$suffix;
|
1274
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);
|
1275
|
-
var selectTagClass = (0,shared_namespaceObject.classes)(_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));
|
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'));
|
1276
2488
|
var tagWrapperClass = (0,shared_namespaceObject.classes)(_defineProperty({}, this.resolveClassName('select-tag-wrapper'), true));
|
1277
2489
|
var inputStyle = {
|
1278
2490
|
display: this.selected.length && !this.filterable ? 'none' : ''
|
1279
2491
|
};
|
1280
2492
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
1281
|
-
"
|
1282
|
-
"
|
2493
|
+
"ref": "tagWrapperRef",
|
2494
|
+
"class": selectTagClass
|
1283
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", {
|
1284
2496
|
"class": tagWrapperClass
|
1285
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) {
|
1286
2498
|
var _this$select;
|
1287
2499
|
return (0,external_vue_namespaceObject.createVNode)(tag_namespaceObject["default"], {
|
1288
|
-
"closable": true,
|
1289
|
-
"theme": _this.tagTheme,
|
1290
|
-
"style": {
|
1291
|
-
display: _this.collapseTags && _this.overflowTagIndex && index >= _this.overflowTagIndex ? 'none' : ''
|
1292
|
-
},
|
1293
2500
|
"ref": function ref(el) {
|
1294
2501
|
return _this.tagsRefs[index] = el;
|
1295
2502
|
},
|
2503
|
+
"style": {
|
2504
|
+
display: _this.collapseTags && _this.overflowTagIndex && index >= _this.overflowTagIndex ? 'none' : ''
|
2505
|
+
},
|
2506
|
+
"theme": _this.tagTheme,
|
2507
|
+
"closable": true,
|
1296
2508
|
"onClose": function onClose() {
|
1297
2509
|
return _this.handleRemoveTag(item.value);
|
1298
2510
|
}
|
@@ -1302,11 +2514,11 @@ const tag_less_namespaceObject = tag_less_x({ });
|
|
1302
2514
|
}
|
1303
2515
|
});
|
1304
2516
|
}), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)(tag_namespaceObject["default"], {
|
1305
|
-
"
|
2517
|
+
"ref": "collapseTagRef",
|
1306
2518
|
"style": {
|
1307
2519
|
display: !!this.overflowTagIndex && this.collapseTags ? '' : 'none'
|
1308
2520
|
},
|
1309
|
-
"
|
2521
|
+
"class": this.resolveClassName('select-overflow-tag')
|
1310
2522
|
}, {
|
1311
2523
|
"default": function _default() {
|
1312
2524
|
return [(0,external_vue_namespaceObject.createTextVNode)("+"), _this.selected.length - _this.overflowTagIndex];
|
@@ -1315,13 +2527,13 @@ const tag_less_namespaceObject = tag_less_x({ });
|
|
1315
2527
|
content: this.overflowContent,
|
1316
2528
|
disabled: !this.overflowTagIndex || !this.collapseTags
|
1317
2529
|
}]]), (0,external_vue_namespaceObject.createVNode)("input", {
|
1318
|
-
"class": this.resolveClassName('select-tag-input'),
|
1319
2530
|
"ref": "inputRef",
|
1320
|
-
"type": "text",
|
1321
2531
|
"style": inputStyle,
|
2532
|
+
"class": this.resolveClassName('select-tag-input'),
|
2533
|
+
"disabled": this.disabled,
|
1322
2534
|
"placeholder": !this.selected.length ? this.placeholder : '',
|
1323
2535
|
"readonly": !this.filterable,
|
1324
|
-
"
|
2536
|
+
"type": "text",
|
1325
2537
|
"value": !this.filterable ? '' : this.value,
|
1326
2538
|
"onInput": this.handleInput,
|
1327
2539
|
"onKeydown": this.handleKeydown
|
@@ -1383,6 +2595,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
1383
2595
|
|
1384
2596
|
|
1385
2597
|
|
2598
|
+
|
1386
2599
|
|
1387
2600
|
/* harmony default export */ const src_select = ((0,external_vue_namespaceObject.defineComponent)({
|
1388
2601
|
name: 'Select',
|
@@ -1396,7 +2609,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
1396
2609
|
size: shared_namespaceObject.PropTypes.size().def(shared_namespaceObject.SizeEnum.DEFAULT),
|
1397
2610
|
clearable: shared_namespaceObject.PropTypes.bool.def(true),
|
1398
2611
|
loading: shared_namespaceObject.PropTypes.bool.def(false),
|
1399
|
-
filterable: shared_namespaceObject.PropTypes.bool.def(
|
2612
|
+
filterable: shared_namespaceObject.PropTypes.bool.def(true),
|
1400
2613
|
remoteMethod: shared_namespaceObject.PropTypes.func,
|
1401
2614
|
scrollHeight: shared_namespaceObject.PropTypes.number.def(200),
|
1402
2615
|
showAll: shared_namespaceObject.PropTypes.bool.def(false),
|
@@ -1428,14 +2641,17 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
1428
2641
|
enableVirtualRender: shared_namespaceObject.PropTypes.bool.def(false),
|
1429
2642
|
allowEmptyValues: shared_namespaceObject.PropTypes.array.def([]),
|
1430
2643
|
autoFocus: shared_namespaceObject.PropTypes.bool.def(false),
|
2644
|
+
disableFocusBehavior: shared_namespaceObject.PropTypes.bool.def(false),
|
1431
2645
|
keepSearchValue: shared_namespaceObject.PropTypes.bool.def(false),
|
1432
2646
|
prefix: shared_namespaceObject.PropTypes.string,
|
1433
2647
|
selectedStyle: (0,shared_namespaceObject.SelectedType)(),
|
1434
2648
|
filterOption: {
|
1435
2649
|
type: Function
|
1436
|
-
}
|
2650
|
+
},
|
2651
|
+
searchWithPinyin: shared_namespaceObject.PropTypes.bool.def(true),
|
2652
|
+
highlightKeyword: shared_namespaceObject.PropTypes.bool.def(false) // 搜索高亮
|
1437
2653
|
},
|
1438
|
-
emits: ['update:modelValue', 'change', 'toggle', 'clear', 'scroll-end', 'focus', 'blur', 'tag-remove', 'select', 'deselect'],
|
2654
|
+
emits: ['update:modelValue', 'change', 'toggle', 'clear', 'scroll-end', 'focus', 'blur', 'tag-remove', 'select', 'deselect', 'search-change'],
|
1439
2655
|
setup: function setup(props, _ref) {
|
1440
2656
|
var emit = _ref.emit;
|
1441
2657
|
var t = (0,config_provider_namespaceObject.useLocale)('select');
|
@@ -1470,7 +2686,10 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
1470
2686
|
autoFocus = _toRefs.autoFocus,
|
1471
2687
|
keepSearchValue = _toRefs.keepSearchValue,
|
1472
2688
|
selectedStyle = _toRefs.selectedStyle,
|
1473
|
-
filterOption = _toRefs.filterOption
|
2689
|
+
filterOption = _toRefs.filterOption,
|
2690
|
+
searchWithPinyin = _toRefs.searchWithPinyin,
|
2691
|
+
highlightKeyword = _toRefs.highlightKeyword,
|
2692
|
+
disableFocusBehavior = _toRefs.disableFocusBehavior;
|
1474
2693
|
var localNoDataText = (0,external_vue_namespaceObject.computed)(function () {
|
1475
2694
|
if (props.noDataText === undefined) {
|
1476
2695
|
return t.value.noData;
|
@@ -1523,7 +2742,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
1523
2742
|
});
|
1524
2743
|
var groupsMap = (0,external_vue_namespaceObject.ref)(new Map());
|
1525
2744
|
var selected = (0,external_vue_namespaceObject.ref)([]);
|
1526
|
-
var
|
2745
|
+
var selectedMap = (0,external_vue_namespaceObject.computed)(function () {
|
1527
2746
|
return selected.value.reduce(function (pre, item) {
|
1528
2747
|
pre[item.value] = item.label;
|
1529
2748
|
return pre;
|
@@ -1555,11 +2774,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
1555
2774
|
// 虚拟滚动模式下搜索后的值
|
1556
2775
|
var virtualList = (0,external_vue_namespaceObject.computed)(function () {
|
1557
2776
|
return isRemoteSearch.value ? list.value : list.value.filter(function (item) {
|
1558
|
-
|
1559
|
-
if (hasFilterOptionFunc.value) {
|
1560
|
-
return !!filterOption.value(curSearchValue.value, item);
|
1561
|
-
}
|
1562
|
-
return (_toLowerCase = toLowerCase(String(item[displayKey.value]))) === null || _toLowerCase === void 0 ? void 0 : _toLowerCase.includes(toLowerCase(curSearchValue.value));
|
2777
|
+
return defaultSearchMethod(curSearchValue.value, String(item[displayKey.value]), item);
|
1563
2778
|
});
|
1564
2779
|
});
|
1565
2780
|
// select组件是否禁用
|
@@ -1587,6 +2802,11 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
1587
2802
|
});
|
1588
2803
|
});
|
1589
2804
|
});
|
2805
|
+
// 全部选项
|
2806
|
+
var isAll = (0,external_vue_namespaceObject.computed)(function () {
|
2807
|
+
var _selected$value$;
|
2808
|
+
return selected.value.length === 1 && ((_selected$value$ = selected.value[0]) === null || _selected$value$ === void 0 ? void 0 : _selected$value$.value) === allOptionId.value;
|
2809
|
+
});
|
1590
2810
|
// 是否含有分组
|
1591
2811
|
var isGroup = (0,external_vue_namespaceObject.computed)(function () {
|
1592
2812
|
return !!groupsMap.value.size;
|
@@ -1710,9 +2930,9 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
1710
2930
|
var scrollActiveOptionIntoView = function scrollActiveOptionIntoView() {
|
1711
2931
|
var _contentRef$value, _contentRef$value$que, _optionsDom$;
|
1712
2932
|
var optionsDom = (_contentRef$value = contentRef.value) === null || _contentRef$value === void 0 || (_contentRef$value$que = _contentRef$value.querySelectorAll) === null || _contentRef$value$que === void 0 ? void 0 : _contentRef$value$que.call(_contentRef$value, '.is-selected');
|
1713
|
-
(_optionsDom$ = optionsDom[0]) === null || _optionsDom$ === void 0 || _optionsDom$.scrollIntoView({
|
1714
|
-
block: 'center'
|
1715
|
-
behavior: 'smooth'
|
2933
|
+
optionsDom === null || optionsDom === void 0 || (_optionsDom$ = optionsDom[0]) === null || _optionsDom$ === void 0 || _optionsDom$.scrollIntoView({
|
2934
|
+
block: 'center'
|
2935
|
+
// behavior: 'smooth',
|
1716
2936
|
});
|
1717
2937
|
};
|
1718
2938
|
// 初始化当前悬浮的option项
|
@@ -1729,28 +2949,49 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
1729
2949
|
}
|
1730
2950
|
};
|
1731
2951
|
// 默认搜索方法
|
1732
|
-
var defaultSearchMethod = function defaultSearchMethod(
|
2952
|
+
var defaultSearchMethod = function defaultSearchMethod(searchValue, optionName) {
|
2953
|
+
var _toLowerCase2;
|
2954
|
+
var filterData = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
2955
|
+
if (hasFilterOptionFunc.value) {
|
2956
|
+
return !!filterOption.value(searchValue, select_objectSpread({}, filterData));
|
2957
|
+
}
|
2958
|
+
if (searchWithPinyin.value) {
|
2959
|
+
var _toLowerCase;
|
2960
|
+
var pinyinList = pinyin.parse(optionName).map(function (v) {
|
2961
|
+
if (v.type === 2) {
|
2962
|
+
return v.target.toLowerCase();
|
2963
|
+
}
|
2964
|
+
return v.target;
|
2965
|
+
});
|
2966
|
+
var pinyinStr = pinyinList.reduce(function (res, cur) {
|
2967
|
+
return res + cur[0];
|
2968
|
+
}, '');
|
2969
|
+
return pinyinList.join('').indexOf(searchValue) !== -1 || pinyinStr.indexOf(searchValue) !== -1 || ((_toLowerCase = toLowerCase(String(optionName))) === null || _toLowerCase === void 0 ? void 0 : _toLowerCase.includes(toLowerCase(searchValue)));
|
2970
|
+
}
|
2971
|
+
return (_toLowerCase2 = toLowerCase(String(optionName))) === null || _toLowerCase2 === void 0 ? void 0 : _toLowerCase2.includes(toLowerCase(searchValue));
|
2972
|
+
};
|
2973
|
+
// 处理options模式时默认搜索方法
|
2974
|
+
var handleDefaultOptionSearch = function handleDefaultOptionSearch(searchValue) {
|
1733
2975
|
if (!filterable.value) return;
|
1734
|
-
if (!
|
2976
|
+
if (!searchValue) {
|
1735
2977
|
options.value.forEach(function (option) {
|
1736
2978
|
option.visible = true;
|
1737
2979
|
});
|
1738
2980
|
} else {
|
1739
2981
|
options.value.forEach(function (option) {
|
1740
|
-
|
1741
|
-
option.visible = !!filterOption.value(value, select_objectSpread(select_objectSpread({}, option.$props), option.$attrs));
|
1742
|
-
} else {
|
1743
|
-
var _toLowerCase2;
|
1744
|
-
option.visible = (_toLowerCase2 = toLowerCase(String(option.optionName))) === null || _toLowerCase2 === void 0 ? void 0 : _toLowerCase2.includes(toLowerCase(value));
|
1745
|
-
}
|
2982
|
+
option.visible = defaultSearchMethod(searchValue, String(option.optionName), select_objectSpread(select_objectSpread({}, option.$props), option.$attrs));
|
1746
2983
|
});
|
1747
2984
|
}
|
1748
2985
|
};
|
1749
|
-
var _useRemoteSearch = useRemoteSearch(isRemoteSearch.value ? remoteMethod.value :
|
2986
|
+
var _useRemoteSearch = useRemoteSearch(isRemoteSearch.value ? remoteMethod.value : handleDefaultOptionSearch, initActiveOptionValue),
|
1750
2987
|
searchValue = _useRemoteSearch.searchValue,
|
1751
2988
|
customOptionName = _useRemoteSearch.customOptionName,
|
1752
2989
|
curSearchValue = _useRemoteSearch.curSearchValue,
|
1753
2990
|
searchLoading = _useRemoteSearch.searchLoading;
|
2991
|
+
// 派发search change事件
|
2992
|
+
(0,external_vue_namespaceObject.watch)(searchValue, function () {
|
2993
|
+
emit('search-change', searchValue.value);
|
2994
|
+
});
|
1754
2995
|
// 派发change事件
|
1755
2996
|
var emitChange = function emitChange(val) {
|
1756
2997
|
if (val === modelValue.value) return;
|
@@ -1807,6 +3048,13 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
1807
3048
|
// Option点击事件
|
1808
3049
|
var handleOptionSelected = function handleOptionSelected(option) {
|
1809
3050
|
if (isDisabled.value || !option) return;
|
3051
|
+
// 删除全部选项
|
3052
|
+
var exitAllIndex = selected.value.findIndex(function (item) {
|
3053
|
+
return item.value === allOptionId.value;
|
3054
|
+
});
|
3055
|
+
if (exitAllIndex > -1) {
|
3056
|
+
selected.value.splice(exitAllIndex, 1);
|
3057
|
+
}
|
1810
3058
|
if (multiple.value) {
|
1811
3059
|
// 多选
|
1812
3060
|
var index = selected.value.findIndex(function (item) {
|
@@ -1843,6 +3091,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
1843
3091
|
};
|
1844
3092
|
// 聚焦输入框
|
1845
3093
|
var focusInput = function focusInput() {
|
3094
|
+
if (disableFocusBehavior.value) return;
|
1846
3095
|
setTimeout(function () {
|
1847
3096
|
if (!inputSearch.value && !allowCreate.value) {
|
1848
3097
|
var _searchRef$value;
|
@@ -1882,25 +3131,27 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
1882
3131
|
activeOptionValue.value = '';
|
1883
3132
|
};
|
1884
3133
|
// 全选/取消全选
|
1885
|
-
var
|
3134
|
+
var toggleSelectAll = function toggleSelectAll() {
|
1886
3135
|
if (isAllSelected.value) {
|
1887
3136
|
selected.value = [];
|
1888
3137
|
} else {
|
1889
3138
|
var _list$value;
|
3139
|
+
var tmpSelected = [];
|
1890
3140
|
options.value.forEach(function (option) {
|
1891
|
-
if (option.disabled
|
1892
|
-
|
3141
|
+
if (option.disabled) return;
|
3142
|
+
tmpSelected.push({
|
1893
3143
|
value: option.optionID,
|
1894
3144
|
label: option.optionName || option.optionID
|
1895
3145
|
});
|
1896
3146
|
});
|
1897
3147
|
(_list$value = list.value) === null || _list$value === void 0 || _list$value.forEach(function (item) {
|
1898
|
-
if (item.disabled
|
1899
|
-
|
3148
|
+
if (item.disabled) return;
|
3149
|
+
tmpSelected.push({
|
1900
3150
|
value: item[idKey.value],
|
1901
3151
|
label: item[displayKey.value]
|
1902
3152
|
});
|
1903
3153
|
});
|
3154
|
+
selected.value = tmpSelected;
|
1904
3155
|
}
|
1905
3156
|
emitChange(selected.value.map(function (item) {
|
1906
3157
|
return item.value;
|
@@ -1908,7 +3159,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
1908
3159
|
focusInput();
|
1909
3160
|
};
|
1910
3161
|
// 全部/取消全部
|
1911
|
-
var
|
3162
|
+
var toggleAll = function toggleAll() {
|
1912
3163
|
if (!isShowAll.value) return;
|
1913
3164
|
var index = selected.value.findIndex(function (item) {
|
1914
3165
|
return item.value === allOptionId.value;
|
@@ -1972,7 +3223,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
1972
3223
|
_iterator.f();
|
1973
3224
|
}
|
1974
3225
|
}
|
1975
|
-
return ((_optionsMap$value2 = optionsMap.value) === null || _optionsMap$value2 === void 0 || (_optionsMap$value2 = _optionsMap$value2.get(tmpValue)) === null || _optionsMap$value2 === void 0 ? void 0 : _optionsMap$value2.optionName) || listMap.value[tmpValue] ||
|
3226
|
+
return ((_optionsMap$value2 = optionsMap.value) === null || _optionsMap$value2 === void 0 || (_optionsMap$value2 = _optionsMap$value2.get(tmpValue)) === null || _optionsMap$value2 === void 0 ? void 0 : _optionsMap$value2.optionName) || listMap.value[tmpValue] || selectedMap.value[tmpValue] || tmpValue;
|
1976
3227
|
};
|
1977
3228
|
// 设置selected选项
|
1978
3229
|
var handleSetSelectedData = function handleSetSelectedData() {
|
@@ -2039,6 +3290,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2039
3290
|
case 'Enter':
|
2040
3291
|
{
|
2041
3292
|
var value = e.target.value;
|
3293
|
+
// 搜索和创建的时候不触发enter事件
|
2042
3294
|
if (allowCreate.value && value || e.target === searchRef.value) return;
|
2043
3295
|
var option = optionsMap.value.get(activeOptionValue.value);
|
2044
3296
|
handleOptionSelected(option);
|
@@ -2066,16 +3318,15 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2066
3318
|
selected: selected,
|
2067
3319
|
activeOptionValue: activeOptionValue,
|
2068
3320
|
showSelectedIcon: showSelectedIcon,
|
2069
|
-
isShowAll: isShowAll,
|
2070
|
-
allOptionId: allOptionId,
|
2071
3321
|
selectedStyle: selectedStyle,
|
3322
|
+
curSearchValue: curSearchValue,
|
3323
|
+
highlightKeyword: highlightKeyword,
|
2072
3324
|
register: register,
|
2073
3325
|
unregister: unregister,
|
2074
3326
|
registerGroup: registerGroup,
|
2075
3327
|
unregisterGroup: unregisterGroup,
|
2076
3328
|
handleOptionSelected: handleOptionSelected,
|
2077
|
-
handleGetLabelByValue: handleGetLabelByValue
|
2078
|
-
handleToggleAll: handleToggleAll
|
3329
|
+
handleGetLabelByValue: handleGetLabelByValue
|
2079
3330
|
}));
|
2080
3331
|
(0,external_vue_namespaceObject.onMounted)(function () {
|
2081
3332
|
handleSetSelectedData();
|
@@ -2109,6 +3360,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2109
3360
|
curContentText: curContentText,
|
2110
3361
|
isGroup: isGroup,
|
2111
3362
|
searchValue: searchValue,
|
3363
|
+
curSearchValue: curSearchValue,
|
2112
3364
|
customOptionName: customOptionName,
|
2113
3365
|
isShowAll: isShowAll,
|
2114
3366
|
isShowSelectAll: isShowSelectAll,
|
@@ -2117,6 +3369,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2117
3369
|
isCollapseTags: isCollapseTags,
|
2118
3370
|
popoverConfig: popoverConfig,
|
2119
3371
|
isAllSelected: isAllSelected,
|
3372
|
+
isAll: isAll,
|
2120
3373
|
focusInput: focusInput,
|
2121
3374
|
setHover: setHover,
|
2122
3375
|
cancelHover: cancelHover,
|
@@ -2126,7 +3379,8 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2126
3379
|
handleClear: handleClear,
|
2127
3380
|
hidePopover: hidePopover,
|
2128
3381
|
showPopover: showPopover,
|
2129
|
-
|
3382
|
+
toggleSelectAll: toggleSelectAll,
|
3383
|
+
toggleAll: toggleAll,
|
2130
3384
|
handleOptionSelected: handleOptionSelected,
|
2131
3385
|
handleClickOutside: handleClickOutside,
|
2132
3386
|
handleScroll: handleScroll,
|
@@ -2148,11 +3402,11 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2148
3402
|
var suffixIcon = function suffixIcon() {
|
2149
3403
|
if (_this.loading) {
|
2150
3404
|
return (0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
|
2151
|
-
"loading": true,
|
2152
|
-
"theme": "primary",
|
2153
3405
|
"class": "spinner",
|
3406
|
+
"loading": true,
|
2154
3407
|
"mode": "spin",
|
2155
|
-
"size": "mini"
|
3408
|
+
"size": "mini",
|
3409
|
+
"theme": "primary"
|
2156
3410
|
}, null);
|
2157
3411
|
}
|
2158
3412
|
if (_this.clearable && _this.isHover && _this.selected.length && !_this.isDisabled) {
|
@@ -2184,22 +3438,26 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2184
3438
|
if (!_this.isShowSelectAll) return;
|
2185
3439
|
return (0,external_vue_namespaceObject.createVNode)("li", {
|
2186
3440
|
"class": _this.resolveClassName('select-option'),
|
2187
|
-
"
|
2188
|
-
"
|
3441
|
+
"onClick": _this.toggleSelectAll,
|
3442
|
+
"onMouseenter": _this.handleSelectedAllOptionMouseEnter
|
2189
3443
|
}, [_this.selectedStyle === 'checkbox' && (0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
2190
3444
|
"class": _this.resolveClassName('select-checkbox'),
|
2191
|
-
"
|
2192
|
-
"
|
3445
|
+
"indeterminate": !_this.isAllSelected && !!_this.selected.length && !_this.isAll,
|
3446
|
+
"modelValue": _this.isAllSelected
|
2193
3447
|
}, null), _this.t.selectAll]);
|
2194
3448
|
};
|
2195
3449
|
// 全部
|
2196
3450
|
var renderAll = function renderAll() {
|
2197
|
-
|
2198
|
-
if (
|
2199
|
-
return (0,external_vue_namespaceObject.createVNode)(
|
2200
|
-
"
|
2201
|
-
|
2202
|
-
|
3451
|
+
var _this$selected$;
|
3452
|
+
if (!_this.isShowAll) return;
|
3453
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
3454
|
+
"class": _this.resolveClassName('select-all')
|
3455
|
+
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
3456
|
+
"class": ['wrapper', _this.selected.length === 1 && ((_this$selected$ = _this.selected[0]) === null || _this$selected$ === void 0 ? void 0 : _this$selected$.value) === _this.allOptionId ? 'active' : ''],
|
3457
|
+
"onClick": _this.toggleAll
|
3458
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.TextAll, {
|
3459
|
+
"class": "select-all-icon"
|
3460
|
+
}, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.t.all])])]);
|
2203
3461
|
};
|
2204
3462
|
var renderTriggerInput = function renderTriggerInput() {
|
2205
3463
|
var _this$$slots5;
|
@@ -2211,14 +3469,15 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2211
3469
|
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
2212
3470
|
return _this.customOptionName = $event;
|
2213
3471
|
},
|
3472
|
+
"behavior": _this.behavior,
|
3473
|
+
"collapseTags": _this.isCollapseTags,
|
3474
|
+
"disabled": _this.isDisabled,
|
3475
|
+
"filterable": _this.isInput,
|
3476
|
+
"placeholder": _this.localPlaceholder,
|
2214
3477
|
"selected": _this.selected,
|
2215
3478
|
"tagTheme": _this.tagTheme,
|
2216
|
-
"
|
2217
|
-
"
|
2218
|
-
"disabled": _this.isDisabled,
|
2219
|
-
"onRemove": _this.handleDeleteTag,
|
2220
|
-
"collapseTags": _this.isCollapseTags,
|
2221
|
-
"onEnter": _this.handleCreateCustomOption
|
3479
|
+
"onEnter": _this.handleCreateCustomOption,
|
3480
|
+
"onRemove": _this.handleDeleteTag
|
2222
3481
|
}, {
|
2223
3482
|
prefix: renderPrefix(),
|
2224
3483
|
"default": ((_this$$slots3 = _this.$slots) === null || _this$$slots3 === void 0 ? void 0 : _this$$slots3.tag) && function () {
|
@@ -2234,18 +3493,18 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2234
3493
|
}
|
2235
3494
|
return (0,external_vue_namespaceObject.createVNode)(input_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)({
|
2236
3495
|
"ref": "inputRef",
|
2237
|
-
"
|
3496
|
+
"behavior": _this.behavior,
|
3497
|
+
"disabled": _this.isDisabled,
|
2238
3498
|
"modelValue": _this.isInput ? _this.customOptionName : _this.selectedLabel.join(','),
|
2239
3499
|
"placeholder": _this.isInput ? _this.selectedLabel.join(',') || _this.localPlaceholder : _this.localPlaceholder,
|
2240
3500
|
"readonly": !_this.isInput,
|
2241
3501
|
"selectReadonly": true,
|
2242
|
-
"disabled": _this.isDisabled,
|
2243
|
-
"behavior": _this.behavior,
|
2244
3502
|
"size": _this.size,
|
2245
|
-
"withValidate": false,
|
2246
3503
|
"stopPropagation": false,
|
2247
|
-
"
|
2248
|
-
"
|
3504
|
+
"type": "text",
|
3505
|
+
"withValidate": false,
|
3506
|
+
"onEnter": _this.handleCreateCustomOption,
|
3507
|
+
"onInput": _this.handleInputChange
|
2249
3508
|
}, _this.prefix ? {
|
2250
3509
|
prefix: _this.prefix
|
2251
3510
|
} : null), select_objectSpread(select_objectSpread({}, typeof ((_this$$slots5 = _this.$slots) === null || _this$$slots5 === void 0 ? void 0 : _this$$slots5.prefix) === 'function' ? {
|
@@ -2262,11 +3521,11 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2262
3521
|
var renderSelectTrigger = function renderSelectTrigger() {
|
2263
3522
|
var _this$$slots7, _this$$slots7$trigger;
|
2264
3523
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
2265
|
-
"
|
3524
|
+
"ref": "triggerRef",
|
2266
3525
|
"style": {
|
2267
3526
|
height: _this.autoHeight && _this.collapseTags ? '32px' : ''
|
2268
3527
|
},
|
2269
|
-
"
|
3528
|
+
"class": _this.resolveClassName('select-trigger'),
|
2270
3529
|
"onClick": _this.handleTogglePopover,
|
2271
3530
|
"onMouseenter": _this.setHover,
|
2272
3531
|
"onMouseleave": _this.cancelHover
|
@@ -2277,44 +3536,44 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2277
3536
|
var renderSelectContent = function renderSelectContent() {
|
2278
3537
|
var _this$$slots12, _this$$slots12$defaul, _this$$slots13, _this$$slots14;
|
2279
3538
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
2280
|
-
"
|
2281
|
-
"
|
2282
|
-
}, [_this.filterable && !_this.inputSearch && (0,external_vue_namespaceObject.createVNode)("div", {
|
3539
|
+
"ref": "contentRef",
|
3540
|
+
"class": _this.resolveClassName('select-content-wrapper')
|
3541
|
+
}, [renderAll(), _this.filterable && !_this.inputSearch && (0,external_vue_namespaceObject.createVNode)("div", {
|
2283
3542
|
"class": _this.resolveClassName('select-search-wrapper')
|
2284
3543
|
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Search, {
|
2285
|
-
"class": "icon-search",
|
2286
3544
|
"width": 16,
|
2287
|
-
"height": 16
|
3545
|
+
"height": 16,
|
3546
|
+
"class": "icon-search"
|
2288
3547
|
}, null), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("input", {
|
2289
3548
|
"ref": "searchRef",
|
2290
3549
|
"class": _this.resolveClassName('select-search-input'),
|
2291
|
-
"placeholder": _this.localSearchPlaceholder,
|
2292
3550
|
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
2293
3551
|
return _this.searchValue = $event;
|
2294
|
-
}
|
3552
|
+
},
|
3553
|
+
"placeholder": _this.localSearchPlaceholder
|
2295
3554
|
}, null), [[external_vue_namespaceObject.vModelText, _this.searchValue]])]), !_this.isShowSelectContent && (0,external_vue_namespaceObject.createVNode)("div", {
|
2296
3555
|
"class": _this.resolveClassName('select-empty')
|
2297
3556
|
}, [_this.searchLoading && (0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
|
2298
3557
|
"class": "mr5",
|
2299
|
-
"theme": "primary",
|
2300
3558
|
"loading": true,
|
2301
3559
|
"mode": "spin",
|
2302
|
-
"size": "mini"
|
3560
|
+
"size": "mini",
|
3561
|
+
"theme": "primary"
|
2303
3562
|
}, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.curContentText])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
2304
3563
|
"class": _this.resolveClassName('select-content')
|
2305
3564
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
2306
|
-
"class": _this.enableVirtualRender ? '' : _this.resolveClassName('select-dropdown'),
|
2307
3565
|
"style": {
|
2308
3566
|
maxHeight: "".concat(_this.scrollHeight, "px")
|
2309
3567
|
},
|
3568
|
+
"class": _this.enableVirtualRender ? '' : _this.resolveClassName('select-dropdown'),
|
2310
3569
|
"onScroll": _this.handleScroll
|
2311
3570
|
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("ul", {
|
2312
3571
|
"class": _this.resolveClassName('select-options')
|
2313
|
-
}, [renderSelectAll(),
|
2314
|
-
"
|
3572
|
+
}, [renderSelectAll(), _this.enableVirtualRender ? (0,external_vue_namespaceObject.createVNode)(virtual_render_namespaceObject["default"], {
|
3573
|
+
"ref": "virtualRenderRef",
|
2315
3574
|
"height": _this.virtualHeight,
|
2316
3575
|
"lineHeight": 32,
|
2317
|
-
"
|
3576
|
+
"list": _this.virtualList
|
2318
3577
|
}, {
|
2319
3578
|
"default": function _default(_ref3) {
|
2320
3579
|
var _this$$slots8, _this$$slots9;
|
@@ -2322,8 +3581,8 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2322
3581
|
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);
|
2323
3582
|
return data.map(function (item) {
|
2324
3583
|
return (0,external_vue_namespaceObject.createVNode)(src_option, {
|
2325
|
-
"key": item[_this.idKey],
|
2326
3584
|
"id": item[_this.idKey],
|
3585
|
+
"key": item[_this.idKey],
|
2327
3586
|
"name": item[_this.displayKey]
|
2328
3587
|
}, typeof optionRender === 'function' ? {
|
2329
3588
|
"default": function _default() {
|
@@ -2338,6 +3597,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2338
3597
|
var _this$$slots10;
|
2339
3598
|
return (0,external_vue_namespaceObject.createVNode)(src_option, {
|
2340
3599
|
"id": item[_this.idKey],
|
3600
|
+
"key": item[_this.idKey],
|
2341
3601
|
"name": item[_this.displayKey]
|
2342
3602
|
}, (_this$$slots10 = _this.$slots) !== null && _this$$slots10 !== void 0 && _this$$slots10.optionRender ? {
|
2343
3603
|
"default": function _default() {
|
@@ -2351,10 +3611,10 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2351
3611
|
"class": _this.resolveClassName('select-options-loading')
|
2352
3612
|
}, [(0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
|
2353
3613
|
"class": "spinner mr5",
|
2354
|
-
"theme": "primary",
|
2355
3614
|
"loading": true,
|
2356
3615
|
"mode": "spin",
|
2357
|
-
"size": "mini"
|
3616
|
+
"size": "mini",
|
3617
|
+
"theme": "primary"
|
2358
3618
|
}, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.localLoadingText])])]), [[external_vue_namespaceObject.vShow, _this.isShowSelectContent]])]), ((_this$$slots13 = _this.$slots) === null || _this$$slots13 === void 0 ? void 0 : _this$$slots13.extension) && (0,external_vue_namespaceObject.createVNode)("div", {
|
2359
3619
|
"class": _this.resolveClassName('select-extension')
|
2360
3620
|
}, [(_this$$slots14 = _this.$slots) === null || _this$$slots14 === void 0 ? void 0 : _this$$slots14.extension()])])]);
|
@@ -2362,9 +3622,9 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2362
3622
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
2363
3623
|
"class": selectClass
|
2364
3624
|
}, [(0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)(this.popoverConfig, {
|
2365
|
-
"
|
3625
|
+
"ref": "popoverRef",
|
2366
3626
|
"onAfterShow": this.handlePopoverShow,
|
2367
|
-
"
|
3627
|
+
"onClickoutside": this.handleClickOutside
|
2368
3628
|
}), {
|
2369
3629
|
"default": function _default() {
|
2370
3630
|
return renderSelectTrigger();
|