@element-plus/nightly 0.0.20260213 → 0.0.20260215
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/attributes.json +1 -1
- package/dist/index.full.js +431 -353
- package/dist/index.full.min.js +15 -15
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +15 -15
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +431 -354
- package/dist/locale/af.js +1 -1
- package/dist/locale/af.min.js +1 -1
- package/dist/locale/af.min.mjs +1 -1
- package/dist/locale/af.mjs +1 -1
- package/dist/locale/ar-eg.js +1 -1
- package/dist/locale/ar-eg.min.js +1 -1
- package/dist/locale/ar-eg.min.mjs +1 -1
- package/dist/locale/ar-eg.mjs +1 -1
- package/dist/locale/ar.js +1 -1
- package/dist/locale/ar.min.js +1 -1
- package/dist/locale/ar.min.mjs +1 -1
- package/dist/locale/ar.mjs +1 -1
- package/dist/locale/az.js +1 -1
- package/dist/locale/az.min.js +1 -1
- package/dist/locale/az.min.mjs +1 -1
- package/dist/locale/az.mjs +1 -1
- package/dist/locale/bg.js +1 -1
- package/dist/locale/bg.min.js +1 -1
- package/dist/locale/bg.min.mjs +1 -1
- package/dist/locale/bg.mjs +1 -1
- package/dist/locale/bn.js +1 -1
- package/dist/locale/bn.min.js +1 -1
- package/dist/locale/bn.min.mjs +1 -1
- package/dist/locale/bn.mjs +1 -1
- package/dist/locale/ca.js +1 -1
- package/dist/locale/ca.min.js +1 -1
- package/dist/locale/ca.min.mjs +1 -1
- package/dist/locale/ca.mjs +1 -1
- package/dist/locale/ckb.js +1 -1
- package/dist/locale/ckb.min.js +1 -1
- package/dist/locale/ckb.min.mjs +1 -1
- package/dist/locale/ckb.mjs +1 -1
- package/dist/locale/cs.js +1 -1
- package/dist/locale/cs.min.js +1 -1
- package/dist/locale/cs.min.mjs +1 -1
- package/dist/locale/cs.mjs +1 -1
- package/dist/locale/da.js +1 -1
- package/dist/locale/da.min.js +1 -1
- package/dist/locale/da.min.mjs +1 -1
- package/dist/locale/da.mjs +1 -1
- package/dist/locale/de.js +1 -1
- package/dist/locale/de.min.js +1 -1
- package/dist/locale/de.min.mjs +1 -1
- package/dist/locale/de.mjs +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/el.min.js +1 -1
- package/dist/locale/el.min.mjs +1 -1
- package/dist/locale/el.mjs +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/en.min.js +1 -1
- package/dist/locale/en.min.mjs +1 -1
- package/dist/locale/en.mjs +1 -1
- package/dist/locale/eo.js +1 -1
- package/dist/locale/eo.min.js +1 -1
- package/dist/locale/eo.min.mjs +1 -1
- package/dist/locale/eo.mjs +1 -1
- package/dist/locale/es.js +1 -1
- package/dist/locale/es.min.js +1 -1
- package/dist/locale/es.min.mjs +1 -1
- package/dist/locale/es.mjs +1 -1
- package/dist/locale/et.js +1 -1
- package/dist/locale/et.min.js +1 -1
- package/dist/locale/et.min.mjs +1 -1
- package/dist/locale/et.mjs +1 -1
- package/dist/locale/eu.js +1 -1
- package/dist/locale/eu.min.js +1 -1
- package/dist/locale/eu.min.mjs +1 -1
- package/dist/locale/eu.mjs +1 -1
- package/dist/locale/fa.js +1 -1
- package/dist/locale/fa.min.js +1 -1
- package/dist/locale/fa.min.mjs +1 -1
- package/dist/locale/fa.mjs +1 -1
- package/dist/locale/fi.js +1 -1
- package/dist/locale/fi.min.js +1 -1
- package/dist/locale/fi.min.mjs +1 -1
- package/dist/locale/fi.mjs +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/fr.min.js +1 -1
- package/dist/locale/fr.min.mjs +1 -1
- package/dist/locale/fr.mjs +1 -1
- package/dist/locale/he.js +1 -1
- package/dist/locale/he.min.js +1 -1
- package/dist/locale/he.min.mjs +1 -1
- package/dist/locale/he.mjs +1 -1
- package/dist/locale/hi.js +1 -1
- package/dist/locale/hi.min.js +1 -1
- package/dist/locale/hi.min.mjs +1 -1
- package/dist/locale/hi.mjs +1 -1
- package/dist/locale/hr.js +1 -1
- package/dist/locale/hr.min.js +1 -1
- package/dist/locale/hr.min.mjs +1 -1
- package/dist/locale/hr.mjs +1 -1
- package/dist/locale/hu.js +1 -1
- package/dist/locale/hu.min.js +1 -1
- package/dist/locale/hu.min.mjs +1 -1
- package/dist/locale/hu.mjs +1 -1
- package/dist/locale/hy-am.js +1 -1
- package/dist/locale/hy-am.min.js +1 -1
- package/dist/locale/hy-am.min.mjs +1 -1
- package/dist/locale/hy-am.mjs +1 -1
- package/dist/locale/id.js +1 -1
- package/dist/locale/id.min.js +1 -1
- package/dist/locale/id.min.mjs +1 -1
- package/dist/locale/id.mjs +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/it.min.js +1 -1
- package/dist/locale/it.min.mjs +1 -1
- package/dist/locale/it.mjs +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ja.min.js +1 -1
- package/dist/locale/ja.min.mjs +1 -1
- package/dist/locale/ja.mjs +1 -1
- package/dist/locale/kk.js +1 -1
- package/dist/locale/kk.min.js +1 -1
- package/dist/locale/kk.min.mjs +1 -1
- package/dist/locale/kk.mjs +1 -1
- package/dist/locale/km.js +1 -1
- package/dist/locale/km.min.js +1 -1
- package/dist/locale/km.min.mjs +1 -1
- package/dist/locale/km.mjs +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ko.min.js +1 -1
- package/dist/locale/ko.min.mjs +1 -1
- package/dist/locale/ko.mjs +1 -1
- package/dist/locale/ku.js +1 -1
- package/dist/locale/ku.min.js +1 -1
- package/dist/locale/ku.min.mjs +1 -1
- package/dist/locale/ku.mjs +1 -1
- package/dist/locale/ky.js +1 -1
- package/dist/locale/ky.min.js +1 -1
- package/dist/locale/ky.min.mjs +1 -1
- package/dist/locale/ky.mjs +1 -1
- package/dist/locale/lo.js +1 -1
- package/dist/locale/lo.min.js +1 -1
- package/dist/locale/lo.min.mjs +1 -1
- package/dist/locale/lo.mjs +1 -1
- package/dist/locale/lt.js +1 -1
- package/dist/locale/lt.min.js +1 -1
- package/dist/locale/lt.min.mjs +1 -1
- package/dist/locale/lt.mjs +1 -1
- package/dist/locale/lv.js +1 -1
- package/dist/locale/lv.min.js +1 -1
- package/dist/locale/lv.min.mjs +1 -1
- package/dist/locale/lv.mjs +1 -1
- package/dist/locale/mg.js +1 -1
- package/dist/locale/mg.min.js +1 -1
- package/dist/locale/mg.min.mjs +1 -1
- package/dist/locale/mg.mjs +1 -1
- package/dist/locale/mn.js +1 -1
- package/dist/locale/mn.min.js +1 -1
- package/dist/locale/mn.min.mjs +1 -1
- package/dist/locale/mn.mjs +1 -1
- package/dist/locale/ms.js +1 -1
- package/dist/locale/ms.min.js +1 -1
- package/dist/locale/ms.min.mjs +1 -1
- package/dist/locale/ms.mjs +1 -1
- package/dist/locale/my.js +1 -1
- package/dist/locale/my.min.js +1 -1
- package/dist/locale/my.min.mjs +1 -1
- package/dist/locale/my.mjs +1 -1
- package/dist/locale/nb-no.js +1 -1
- package/dist/locale/nb-no.min.js +1 -1
- package/dist/locale/nb-no.min.mjs +1 -1
- package/dist/locale/nb-no.mjs +1 -1
- package/dist/locale/nl.js +1 -1
- package/dist/locale/nl.min.js +1 -1
- package/dist/locale/nl.min.mjs +1 -1
- package/dist/locale/nl.mjs +1 -1
- package/dist/locale/no.js +1 -1
- package/dist/locale/no.min.js +1 -1
- package/dist/locale/no.min.mjs +1 -1
- package/dist/locale/no.mjs +1 -1
- package/dist/locale/pa.js +1 -1
- package/dist/locale/pa.min.js +1 -1
- package/dist/locale/pa.min.mjs +1 -1
- package/dist/locale/pa.mjs +1 -1
- package/dist/locale/pl.js +1 -1
- package/dist/locale/pl.min.js +1 -1
- package/dist/locale/pl.min.mjs +1 -1
- package/dist/locale/pl.mjs +1 -1
- package/dist/locale/pt-br.js +1 -1
- package/dist/locale/pt-br.min.js +1 -1
- package/dist/locale/pt-br.min.mjs +1 -1
- package/dist/locale/pt-br.mjs +1 -1
- package/dist/locale/pt.js +1 -1
- package/dist/locale/pt.min.js +1 -1
- package/dist/locale/pt.min.mjs +1 -1
- package/dist/locale/pt.mjs +1 -1
- package/dist/locale/ro.js +1 -1
- package/dist/locale/ro.min.js +1 -1
- package/dist/locale/ro.min.mjs +1 -1
- package/dist/locale/ro.mjs +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/ru.min.js +1 -1
- package/dist/locale/ru.min.mjs +1 -1
- package/dist/locale/ru.mjs +1 -1
- package/dist/locale/sk.js +1 -1
- package/dist/locale/sk.min.js +1 -1
- package/dist/locale/sk.min.mjs +1 -1
- package/dist/locale/sk.mjs +1 -1
- package/dist/locale/sl.js +1 -1
- package/dist/locale/sl.min.js +1 -1
- package/dist/locale/sl.min.mjs +1 -1
- package/dist/locale/sl.mjs +1 -1
- package/dist/locale/sr.js +1 -1
- package/dist/locale/sr.min.js +1 -1
- package/dist/locale/sr.min.mjs +1 -1
- package/dist/locale/sr.mjs +1 -1
- package/dist/locale/sv.js +1 -1
- package/dist/locale/sv.min.js +1 -1
- package/dist/locale/sv.min.mjs +1 -1
- package/dist/locale/sv.mjs +1 -1
- package/dist/locale/sw.js +1 -1
- package/dist/locale/sw.min.js +1 -1
- package/dist/locale/sw.min.mjs +1 -1
- package/dist/locale/sw.mjs +1 -1
- package/dist/locale/ta.js +1 -1
- package/dist/locale/ta.min.js +1 -1
- package/dist/locale/ta.min.mjs +1 -1
- package/dist/locale/ta.mjs +1 -1
- package/dist/locale/te.js +1 -1
- package/dist/locale/te.min.js +1 -1
- package/dist/locale/te.min.mjs +1 -1
- package/dist/locale/te.mjs +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/th.min.js +1 -1
- package/dist/locale/th.min.mjs +1 -1
- package/dist/locale/th.mjs +1 -1
- package/dist/locale/tk.js +1 -1
- package/dist/locale/tk.min.js +1 -1
- package/dist/locale/tk.min.mjs +1 -1
- package/dist/locale/tk.mjs +1 -1
- package/dist/locale/tr.js +1 -1
- package/dist/locale/tr.min.js +1 -1
- package/dist/locale/tr.min.mjs +1 -1
- package/dist/locale/tr.mjs +1 -1
- package/dist/locale/ug-cn.js +1 -1
- package/dist/locale/ug-cn.min.js +1 -1
- package/dist/locale/ug-cn.min.mjs +1 -1
- package/dist/locale/ug-cn.mjs +1 -1
- package/dist/locale/uk.js +1 -1
- package/dist/locale/uk.min.js +1 -1
- package/dist/locale/uk.min.mjs +1 -1
- package/dist/locale/uk.mjs +1 -1
- package/dist/locale/uz-uz.js +1 -1
- package/dist/locale/uz-uz.min.js +1 -1
- package/dist/locale/uz-uz.min.mjs +1 -1
- package/dist/locale/uz-uz.mjs +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/vi.min.js +1 -1
- package/dist/locale/vi.min.mjs +1 -1
- package/dist/locale/vi.mjs +1 -1
- package/dist/locale/zh-cn.js +1 -1
- package/dist/locale/zh-cn.min.js +1 -1
- package/dist/locale/zh-cn.min.mjs +1 -1
- package/dist/locale/zh-cn.mjs +1 -1
- package/dist/locale/zh-hk.js +1 -1
- package/dist/locale/zh-hk.min.js +1 -1
- package/dist/locale/zh-hk.min.mjs +1 -1
- package/dist/locale/zh-hk.mjs +1 -1
- package/dist/locale/zh-mo.js +1 -1
- package/dist/locale/zh-mo.min.js +1 -1
- package/dist/locale/zh-mo.min.mjs +1 -1
- package/dist/locale/zh-mo.mjs +1 -1
- package/dist/locale/zh-tw.js +1 -1
- package/dist/locale/zh-tw.min.js +1 -1
- package/dist/locale/zh-tw.min.mjs +1 -1
- package/dist/locale/zh-tw.mjs +1 -1
- package/es/components/color-picker/src/color-picker.d.ts +8 -2
- package/es/components/color-picker/src/color-picker.mjs +3 -1
- package/es/components/color-picker/src/color-picker.mjs.map +1 -1
- package/es/components/color-picker-panel/src/color-picker-panel.d.ts +8 -2
- package/es/components/color-picker-panel/src/color-picker-panel.mjs +3 -1
- package/es/components/color-picker-panel/src/color-picker-panel.mjs.map +1 -1
- package/es/components/index.mjs +1 -1
- package/es/components/segmented/index.d.ts +67 -1
- package/es/components/select/src/select.d.ts +19 -0
- package/es/components/select/src/select.mjs +7 -0
- package/es/components/select/src/select.mjs.map +1 -1
- package/es/components/select/src/select.vue.d.ts +3 -0
- package/es/components/select/src/select.vue.mjs +186 -172
- package/es/components/select/src/select.vue.mjs.map +1 -1
- package/es/components/select/src/select.vue2.mjs.map +1 -1
- package/es/components/select-v2/src/defaults.d.ts +21 -2
- package/es/components/select-v2/src/defaults.mjs +7 -0
- package/es/components/select-v2/src/defaults.mjs.map +1 -1
- package/es/components/select-v2/src/select.vue.d.ts +3 -0
- package/es/components/select-v2/src/select.vue.mjs +186 -172
- package/es/components/select-v2/src/select.vue.mjs.map +1 -1
- package/es/components/select-v2/src/select.vue2.mjs.map +1 -1
- package/es/components/time-select/index.mjs +1 -1
- package/es/components/time-select/src/time-select.d.ts +1 -0
- package/es/components/time-select/src/time-select.mjs +3 -2
- package/es/components/time-select/src/time-select.mjs.map +1 -1
- package/es/components/time-select/src/time-select.vue2.mjs +13 -5
- package/es/components/time-select/src/time-select.vue2.mjs.map +1 -1
- package/es/components/tree-select/src/tree-select.vue.d.ts +3 -0
- package/es/index.mjs +1 -1
- package/es/utils/index.mjs +1 -1
- package/es/utils/vue/index.mjs +1 -1
- package/es/utils/vue/install.d.ts +1 -0
- package/es/utils/vue/install.mjs +32 -2
- package/es/utils/vue/install.mjs.map +1 -1
- package/es/utils/vue/typescript.d.ts +4 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/components/color-picker/src/color-picker.d.ts +8 -2
- package/lib/components/color-picker/src/color-picker.js +3 -1
- package/lib/components/color-picker/src/color-picker.js.map +1 -1
- package/lib/components/color-picker-panel/src/color-picker-panel.d.ts +8 -2
- package/lib/components/color-picker-panel/src/color-picker-panel.js +3 -1
- package/lib/components/color-picker-panel/src/color-picker-panel.js.map +1 -1
- package/lib/components/index.js +1 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/segmented/index.d.ts +67 -1
- package/lib/components/select/src/select.d.ts +19 -0
- package/lib/components/select/src/select.js +7 -0
- package/lib/components/select/src/select.js.map +1 -1
- package/lib/components/select/src/select.vue.d.ts +3 -0
- package/lib/components/select/src/select.vue.js +186 -172
- package/lib/components/select/src/select.vue.js.map +1 -1
- package/lib/components/select/src/select.vue2.js.map +1 -1
- package/lib/components/select-v2/src/defaults.d.ts +21 -2
- package/lib/components/select-v2/src/defaults.js +7 -0
- package/lib/components/select-v2/src/defaults.js.map +1 -1
- package/lib/components/select-v2/src/select.vue.d.ts +3 -0
- package/lib/components/select-v2/src/select.vue.js +186 -172
- package/lib/components/select-v2/src/select.vue.js.map +1 -1
- package/lib/components/select-v2/src/select.vue2.js.map +1 -1
- package/lib/components/time-select/index.js +1 -0
- package/lib/components/time-select/index.js.map +1 -1
- package/lib/components/time-select/src/time-select.d.ts +1 -0
- package/lib/components/time-select/src/time-select.js +3 -1
- package/lib/components/time-select/src/time-select.js.map +1 -1
- package/lib/components/time-select/src/time-select.vue2.js +12 -4
- package/lib/components/time-select/src/time-select.vue2.js.map +1 -1
- package/lib/components/tree-select/src/tree-select.vue.d.ts +3 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/utils/index.js +1 -0
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/vue/index.js +1 -0
- package/lib/utils/vue/index.js.map +1 -1
- package/lib/utils/vue/install.d.ts +1 -0
- package/lib/utils/vue/install.js +31 -0
- package/lib/utils/vue/install.js.map +1 -1
- package/lib/utils/vue/typescript.d.ts +4 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +2 -2
- package/tags.json +1 -1
- package/web-types.json +1 -1
|
@@ -178,6 +178,13 @@ const selectProps = runtime.buildProps({
|
|
|
178
178
|
* @description whether show all selected tags when mouse hover text of collapse-tags. To use this, `collapse-tags` must be true
|
|
179
179
|
*/
|
|
180
180
|
collapseTagsTooltip: Boolean,
|
|
181
|
+
/**
|
|
182
|
+
* @description configuration object for the collapse-tags tooltip. To use this, `collapse-tags` and `collapse-tags-tooltip` must be true
|
|
183
|
+
*/
|
|
184
|
+
tagTooltip: {
|
|
185
|
+
type: runtime.definePropType(Object),
|
|
186
|
+
default: () => ({})
|
|
187
|
+
},
|
|
181
188
|
/**
|
|
182
189
|
* @description the max tags number to be shown. To use this, `collapse-tags` must be true
|
|
183
190
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.js","sources":["../../../../../../packages/components/select/src/select.ts"],"sourcesContent":["import { placements } from '@popperjs/core'\nimport { scrollbarEmits } from '@element-plus/components/scrollbar'\nimport {\n useAriaProps,\n useEmptyValuesProps,\n useSizeProp,\n} from '@element-plus/hooks'\nimport { buildProps, definePropType, iconPropType } from '@element-plus/utils'\nimport { useTooltipContentProps } from '@element-plus/components/tooltip'\nimport { ArrowDown, CircleClose } from '@element-plus/icons-vue'\nimport { tagProps } from '@element-plus/components/tag'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { defaultProps } from '@element-plus/components/select-v2/src/useProps'\n\nimport type { EmitFn } from '@element-plus/utils'\nimport type {\n CSSProperties,\n ExtractPropTypes,\n ExtractPublicPropTypes,\n} from 'vue'\nimport type Select from './select.vue'\nimport type {\n Options,\n Placement,\n PopperEffect,\n} from '@element-plus/components/popper'\nimport type { OptionValue } from './type'\nimport type { Props } from '@element-plus/components/select-v2/src/useProps'\n\nexport const selectProps = buildProps({\n /**\n * @description the name attribute of select input\n */\n name: String,\n /**\n * @description native input id\n */\n id: String,\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<OptionValue | OptionValue[] | null>([\n Array,\n String,\n Number,\n Boolean,\n Object,\n ]),\n default: undefined,\n },\n /**\n * @description the autocomplete attribute of select input\n */\n autocomplete: {\n type: String,\n default: 'off',\n },\n /**\n * @description for non-filterable Select, this prop decides if the option menu pops up when the input is focused\n */\n automaticDropdown: Boolean,\n /**\n * @description size of Input\n */\n size: useSizeProp,\n /**\n * @description tooltip theme, built-in theme: `dark` / `light`\n */\n effect: {\n type: definePropType<PopperEffect>(String),\n default: 'light',\n },\n /**\n * @description whether Select is disabled\n */\n disabled: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description whether select can be cleared\n */\n clearable: Boolean,\n /**\n * @description whether Select is filterable\n */\n filterable: Boolean,\n /**\n * @description whether creating new items is allowed. To use this, `filterable` must be true\n */\n allowCreate: Boolean,\n /**\n * @description whether Select is loading data from server\n */\n loading: Boolean,\n /**\n * @description custom class name for Select's dropdown\n */\n popperClass: {\n type: String,\n default: '',\n },\n /**\n * @description custom style for Select's dropdown\n */\n popperStyle: {\n type: definePropType<string | CSSProperties>([String, Object]),\n },\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({}) as Partial<Options>,\n },\n /**\n * @description whether options are loaded from server\n */\n remote: Boolean,\n /**\n * @description debounce delay during remote search, in milliseconds\n */\n debounce: {\n type: Number,\n default: 300,\n },\n /**\n * @description displayed text while loading data from server, default is 'Loading'\n */\n loadingText: String,\n /**\n * @description displayed text when no data matches the filtering query, you can also use slot `empty`, default is 'No matching data'\n */\n noMatchText: String,\n /**\n * @description displayed text when there is no options, you can also use slot `empty`, default is 'No data'\n */\n noDataText: String,\n /**\n * @description function that gets called when the input value changes. Its parameter is the current input value. To use this, `filterable` must be true\n */\n remoteMethod: {\n type: definePropType<(query: string) => void>(Function),\n },\n /**\n * @description custom filter method, the first parameter is the current input value. To use this, `filterable` must be true\n */\n filterMethod: {\n type: definePropType<(query: string) => void>(Function),\n },\n /**\n * @description whether multiple-select is activated\n */\n multiple: Boolean,\n /**\n * @description maximum number of options user can select when `multiple` is `true`. No limit when set to 0\n */\n multipleLimit: {\n type: Number,\n default: 0,\n },\n /**\n * @description placeholder, default is 'Select'\n */\n placeholder: {\n type: String,\n },\n /**\n * @description select first matching option on enter key. Use with `filterable` or `remote`\n */\n defaultFirstOption: Boolean,\n /**\n * @description when `multiple` and `filter` is true, whether to reserve current keyword after selecting an option\n */\n reserveKeyword: {\n type: Boolean,\n default: true,\n },\n /**\n * @description unique identity key name for value, required when value is an object\n */\n valueKey: {\n type: String,\n default: 'value',\n },\n /**\n * @description whether to collapse tags to a text when multiple selecting\n */\n collapseTags: Boolean,\n /**\n * @description whether show all selected tags when mouse hover text of collapse-tags. To use this, `collapse-tags` must be true\n */\n collapseTagsTooltip: Boolean,\n /**\n * @description the max tags number to be shown. To use this, `collapse-tags` must be true\n */\n maxCollapseTags: {\n type: Number,\n default: 1,\n },\n /**\n * @description whether select dropdown is teleported, if `true` it will be teleported to where `append-to` sets\n */\n teleported: useTooltipContentProps.teleported,\n /**\n * @description when select dropdown is inactive and `persistent` is `false`, select dropdown will be destroyed\n */\n persistent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description custom clear icon component\n */\n clearIcon: {\n type: iconPropType,\n default: CircleClose,\n },\n /**\n * @description whether the width of the dropdown is the same as the input\n */\n fitInputWidth: Boolean,\n /**\n * @description custom suffix icon component\n */\n suffixIcon: {\n type: iconPropType,\n default: ArrowDown,\n },\n /**\n * @description tag type\n */\n\n tagType: { ...tagProps.type, default: 'info' },\n /**\n * @description tag effect\n */\n tagEffect: { ...tagProps.effect, default: 'light' },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description in remote search method show suffix icon\n */\n remoteShowSuffix: Boolean,\n /**\n * @description determines whether the arrow is displayed\n */\n showArrow: {\n type: Boolean,\n default: true,\n },\n /**\n * @description offset of the dropdown\n */\n offset: {\n type: Number,\n default: 12,\n },\n /**\n * @description position of dropdown\n */\n placement: {\n type: definePropType<Placement>(String),\n values: placements,\n default: 'bottom-start',\n },\n /**\n * @description list of possible positions for dropdown\n */\n fallbackPlacements: {\n type: definePropType<Placement[]>(Array),\n default: ['bottom-start', 'top-start', 'right', 'left'],\n },\n /**\n * @description tabindex for input\n */\n tabindex: {\n type: [String, Number],\n default: 0,\n },\n /**\n * @description which element the selection dropdown appends to\n */\n appendTo: useTooltipContentProps.appendTo,\n options: {\n type: definePropType<Record<string, any>[]>(Array),\n },\n props: {\n type: definePropType<SelectOptionProps>(Object),\n default: () => defaultProps,\n },\n ...useEmptyValuesProps,\n ...useAriaProps(['ariaLabel']),\n})\n/* eslint-disable @typescript-eslint/no-unused-vars */\nexport const selectEmits = {\n [UPDATE_MODEL_EVENT]: (val: SelectProps['modelValue']) => true,\n [CHANGE_EVENT]: (val: SelectProps['modelValue']) => true,\n 'popup-scroll': scrollbarEmits.scroll,\n 'remove-tag': (val: unknown) => true,\n 'visible-change': (visible: boolean) => true,\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n clear: () => true,\n}\n/* eslint-enable @typescript-eslint/no-unused-vars */\n\nexport type SelectProps = ExtractPropTypes<typeof selectProps>\nexport type SelectPropsPublic = ExtractPublicPropTypes<typeof selectProps>\nexport type SelectEmits = EmitFn<typeof selectEmits>\nexport type SelectInstance = InstanceType<typeof Select> & unknown\nexport type SelectOptionProps = Props\n"],"names":["buildProps","definePropType","useSizeProp","useTooltipContentProps","iconPropType","CircleClose","ArrowDown","tagProps","placements","defaultProps","useEmptyValuesProps","useAriaProps","UPDATE_MODEL_EVENT","CHANGE_EVENT","scrollbarEmits"],"mappings":";;;;;;;;;;;;;;;AA6BO,MAAM,cAAcA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIpC,IAAA,EAAM,MAAA;AAAA;AAAA;AAAA;AAAA,EAIN,EAAA,EAAI,MAAA;AAAA;AAAA;AAAA;AAAA,EAIJ,UAAA,EAAY;AAAA,IACV,MAAMC,sBAAA,CAAmD;AAAA,MACvD,KAAA;AAAA,MACA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,OAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACD,OAAA,EAAS;AAAA,GACX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AA,IACP,IAAA,EAAMF,uBAAsC,KAAK;AAAA,GACnD;AAAA,EACA,KAAA,EAAO;AAAA,IACL,IAAA,EAAMA,uBAAkC,MAAM,CAAA;AAAA,IAC9C,SAAS,MAAMQ;AAAA,GACjB;AAAA,EACA,GAAGC,2BAAA;AAAA,EACH,GAAGC,kBAAA,CAAa,CAAC,WAAW,CAAC;AAC/B,CAAC;AAEM,MAAM,WAAA,GAAc;AAAA,EACzB,CAACC,wBAAkB,GAAG,CAAC,GAAA,KAAmC,IAAA;AAAA,EAC1D,CAACC,kBAAY,GAAG,CAAC,GAAA,KAAmC,IAAA;AAAA,EACpD,gBAAgBC,wBAAA,CAAe,MAAA;AAAA,EAC/B,YAAA,EAAc,CAAC,GAAA,KAAiB,IAAA;AAAA,EAChC,gBAAA,EAAkB,CAAC,OAAA,KAAqB,IAAA;AAAA,EACxC,KAAA,EAAO,CAAC,GAAA,KAAoB,GAAA,YAAe,UAAA;AAAA,EAC3C,IAAA,EAAM,CAAC,GAAA,KAAoB,GAAA,YAAe,UAAA;AAAA,EAC1C,OAAO,MAAM;AACf;;;;;"}
|
|
1
|
+
{"version":3,"file":"select.js","sources":["../../../../../../packages/components/select/src/select.ts"],"sourcesContent":["import { placements } from '@popperjs/core'\nimport { scrollbarEmits } from '@element-plus/components/scrollbar'\nimport {\n useAriaProps,\n useEmptyValuesProps,\n useSizeProp,\n} from '@element-plus/hooks'\nimport { buildProps, definePropType, iconPropType } from '@element-plus/utils'\nimport { useTooltipContentProps } from '@element-plus/components/tooltip'\nimport { ArrowDown, CircleClose } from '@element-plus/icons-vue'\nimport { tagProps } from '@element-plus/components/tag'\nimport { CHANGE_EVENT, UPDATE_MODEL_EVENT } from '@element-plus/constants'\nimport { defaultProps } from '@element-plus/components/select-v2/src/useProps'\n\nimport type { EmitFn } from '@element-plus/utils'\nimport type {\n CSSProperties,\n ExtractPropTypes,\n ExtractPublicPropTypes,\n} from 'vue'\nimport type Select from './select.vue'\nimport type {\n Options,\n Placement,\n PopperEffect,\n} from '@element-plus/components/popper'\nimport type { OptionValue } from './type'\nimport type { Props } from '@element-plus/components/select-v2/src/useProps'\n\n/**\n * @description Tag tooltip configuration interface\n */\nexport interface TagTooltipProps {\n appendTo?: string | HTMLElement\n placement?: Placement\n fallbackPlacements?: Placement[]\n effect?: PopperEffect\n popperClass?: string\n popperStyle?: string | CSSProperties\n transition?: string\n teleported?: boolean\n popperOptions?: Partial<Options>\n showAfter?: number\n hideAfter?: number\n autoClose?: number\n offset?: number\n}\n\nexport const selectProps = buildProps({\n /**\n * @description the name attribute of select input\n */\n name: String,\n /**\n * @description native input id\n */\n id: String,\n /**\n * @description binding value\n */\n modelValue: {\n type: definePropType<OptionValue | OptionValue[] | null>([\n Array,\n String,\n Number,\n Boolean,\n Object,\n ]),\n default: undefined,\n },\n /**\n * @description the autocomplete attribute of select input\n */\n autocomplete: {\n type: String,\n default: 'off',\n },\n /**\n * @description for non-filterable Select, this prop decides if the option menu pops up when the input is focused\n */\n automaticDropdown: Boolean,\n /**\n * @description size of Input\n */\n size: useSizeProp,\n /**\n * @description tooltip theme, built-in theme: `dark` / `light`\n */\n effect: {\n type: definePropType<PopperEffect>(String),\n default: 'light',\n },\n /**\n * @description whether Select is disabled\n */\n disabled: {\n type: Boolean,\n default: undefined,\n },\n /**\n * @description whether select can be cleared\n */\n clearable: Boolean,\n /**\n * @description whether Select is filterable\n */\n filterable: Boolean,\n /**\n * @description whether creating new items is allowed. To use this, `filterable` must be true\n */\n allowCreate: Boolean,\n /**\n * @description whether Select is loading data from server\n */\n loading: Boolean,\n /**\n * @description custom class name for Select's dropdown\n */\n popperClass: {\n type: String,\n default: '',\n },\n /**\n * @description custom style for Select's dropdown\n */\n popperStyle: {\n type: definePropType<string | CSSProperties>([String, Object]),\n },\n /**\n * @description [popper.js](https://popper.js.org/docs/v2/) parameters\n */\n popperOptions: {\n type: definePropType<Partial<Options>>(Object),\n default: () => ({}) as Partial<Options>,\n },\n /**\n * @description whether options are loaded from server\n */\n remote: Boolean,\n /**\n * @description debounce delay during remote search, in milliseconds\n */\n debounce: {\n type: Number,\n default: 300,\n },\n /**\n * @description displayed text while loading data from server, default is 'Loading'\n */\n loadingText: String,\n /**\n * @description displayed text when no data matches the filtering query, you can also use slot `empty`, default is 'No matching data'\n */\n noMatchText: String,\n /**\n * @description displayed text when there is no options, you can also use slot `empty`, default is 'No data'\n */\n noDataText: String,\n /**\n * @description function that gets called when the input value changes. Its parameter is the current input value. To use this, `filterable` must be true\n */\n remoteMethod: {\n type: definePropType<(query: string) => void>(Function),\n },\n /**\n * @description custom filter method, the first parameter is the current input value. To use this, `filterable` must be true\n */\n filterMethod: {\n type: definePropType<(query: string) => void>(Function),\n },\n /**\n * @description whether multiple-select is activated\n */\n multiple: Boolean,\n /**\n * @description maximum number of options user can select when `multiple` is `true`. No limit when set to 0\n */\n multipleLimit: {\n type: Number,\n default: 0,\n },\n /**\n * @description placeholder, default is 'Select'\n */\n placeholder: {\n type: String,\n },\n /**\n * @description select first matching option on enter key. Use with `filterable` or `remote`\n */\n defaultFirstOption: Boolean,\n /**\n * @description when `multiple` and `filter` is true, whether to reserve current keyword after selecting an option\n */\n reserveKeyword: {\n type: Boolean,\n default: true,\n },\n /**\n * @description unique identity key name for value, required when value is an object\n */\n valueKey: {\n type: String,\n default: 'value',\n },\n /**\n * @description whether to collapse tags to a text when multiple selecting\n */\n collapseTags: Boolean,\n /**\n * @description whether show all selected tags when mouse hover text of collapse-tags. To use this, `collapse-tags` must be true\n */\n collapseTagsTooltip: Boolean,\n /**\n * @description configuration object for the collapse-tags tooltip. To use this, `collapse-tags` and `collapse-tags-tooltip` must be true\n */\n tagTooltip: {\n type: definePropType<TagTooltipProps>(Object),\n default: () => ({}),\n },\n /**\n * @description the max tags number to be shown. To use this, `collapse-tags` must be true\n */\n maxCollapseTags: {\n type: Number,\n default: 1,\n },\n /**\n * @description whether select dropdown is teleported, if `true` it will be teleported to where `append-to` sets\n */\n teleported: useTooltipContentProps.teleported,\n /**\n * @description when select dropdown is inactive and `persistent` is `false`, select dropdown will be destroyed\n */\n persistent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description custom clear icon component\n */\n clearIcon: {\n type: iconPropType,\n default: CircleClose,\n },\n /**\n * @description whether the width of the dropdown is the same as the input\n */\n fitInputWidth: Boolean,\n /**\n * @description custom suffix icon component\n */\n suffixIcon: {\n type: iconPropType,\n default: ArrowDown,\n },\n /**\n * @description tag type\n */\n\n tagType: { ...tagProps.type, default: 'info' },\n /**\n * @description tag effect\n */\n tagEffect: { ...tagProps.effect, default: 'light' },\n /**\n * @description whether to trigger form validation\n */\n validateEvent: {\n type: Boolean,\n default: true,\n },\n /**\n * @description in remote search method show suffix icon\n */\n remoteShowSuffix: Boolean,\n /**\n * @description determines whether the arrow is displayed\n */\n showArrow: {\n type: Boolean,\n default: true,\n },\n /**\n * @description offset of the dropdown\n */\n offset: {\n type: Number,\n default: 12,\n },\n /**\n * @description position of dropdown\n */\n placement: {\n type: definePropType<Placement>(String),\n values: placements,\n default: 'bottom-start',\n },\n /**\n * @description list of possible positions for dropdown\n */\n fallbackPlacements: {\n type: definePropType<Placement[]>(Array),\n default: ['bottom-start', 'top-start', 'right', 'left'],\n },\n /**\n * @description tabindex for input\n */\n tabindex: {\n type: [String, Number],\n default: 0,\n },\n /**\n * @description which element the selection dropdown appends to\n */\n appendTo: useTooltipContentProps.appendTo,\n options: {\n type: definePropType<Record<string, any>[]>(Array),\n },\n props: {\n type: definePropType<SelectOptionProps>(Object),\n default: () => defaultProps,\n },\n ...useEmptyValuesProps,\n ...useAriaProps(['ariaLabel']),\n})\n/* eslint-disable @typescript-eslint/no-unused-vars */\nexport const selectEmits = {\n [UPDATE_MODEL_EVENT]: (val: SelectProps['modelValue']) => true,\n [CHANGE_EVENT]: (val: SelectProps['modelValue']) => true,\n 'popup-scroll': scrollbarEmits.scroll,\n 'remove-tag': (val: unknown) => true,\n 'visible-change': (visible: boolean) => true,\n focus: (evt: FocusEvent) => evt instanceof FocusEvent,\n blur: (evt: FocusEvent) => evt instanceof FocusEvent,\n clear: () => true,\n}\n/* eslint-enable @typescript-eslint/no-unused-vars */\n\nexport type SelectProps = ExtractPropTypes<typeof selectProps>\nexport type SelectPropsPublic = ExtractPublicPropTypes<typeof selectProps>\nexport type SelectEmits = EmitFn<typeof selectEmits>\nexport type SelectInstance = InstanceType<typeof Select> & unknown\nexport type SelectOptionProps = Props\n"],"names":["buildProps","definePropType","useSizeProp","useTooltipContentProps","iconPropType","CircleClose","ArrowDown","tagProps","placements","defaultProps","useEmptyValuesProps","useAriaProps","UPDATE_MODEL_EVENT","CHANGE_EVENT","scrollbarEmits"],"mappings":";;;;;;;;;;;;;;;AAgDO,MAAM,cAAcA,kBAAA,CAAW;AAAA;AAAA;AAAA;AAAA,EAIpC,IAAA,EAAM,MAAA;AAAA;AAAA;AAAA;AAAA,EAIN,EAAA,EAAI,MAAA;AAAA;AAAA;AAAA;AAAA,EAIJ,UAAA,EAAY;AAAA,IACV,MAAMC,sBAAA,CAAmD;AAAA,MACvD,KAAA;AAAA,MACA,MAAA;AAAA,MACA,MAAA;AAAA,MACA,OAAA;AAAA,MACA;AAAA,KACD,CAAA;AAAA,IACD,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,YAAA,EAAc;AAAA,IACZ,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,iBAAA,EAAmB,OAAA;AAAA;AAAA;AAAA;AAAA,EAInB,IAAA,EAAMC,mBAAA;AAAA;AAAA;AAAA;AAAA,EAIN,MAAA,EAAQ;AAAA,IACN,IAAA,EAAMD,uBAA6B,MAAM,CAAA;AAAA,IACzC,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,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,EAC1D,CAACC,kBAAY,GAAG,CAAC,GAAA,KAAmC,IAAA;AAAA,EACpD,gBAAgBC,wBAAA,CAAe,MAAA;AAAA,EAC/B,YAAA,EAAc,CAAC,GAAA,KAAiB,IAAA;AAAA,EAChC,gBAAA,EAAkB,CAAC,OAAA,KAAqB,IAAA;AAAA,EACxC,KAAA,EAAO,CAAC,GAAA,KAAoB,GAAA,YAAe,UAAA;AAAA,EAC3C,IAAA,EAAM,CAAC,GAAA,KAAoB,GAAA,YAAe,UAAA;AAAA,EAC1C,OAAO,MAAM;AACf;;;;;"}
|
|
@@ -57,6 +57,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
57
57
|
valueKey: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
58
58
|
collapseTags: BooleanConstructor;
|
|
59
59
|
collapseTagsTooltip: BooleanConstructor;
|
|
60
|
+
tagTooltip: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => import("./select").TagTooltipProps) | (() => import("./select").TagTooltipProps) | ((new (...args: any[]) => import("./select").TagTooltipProps) | (() => import("./select").TagTooltipProps))[], unknown, unknown, () => {}, boolean>;
|
|
60
61
|
maxCollapseTags: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
61
62
|
teleported: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
62
63
|
persistent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
@@ -333,6 +334,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
333
334
|
valueKey: import("@element-plus/nightly/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
|
|
334
335
|
collapseTags: BooleanConstructor;
|
|
335
336
|
collapseTagsTooltip: BooleanConstructor;
|
|
337
|
+
tagTooltip: import("@element-plus/nightly/es/utils").EpPropFinalized<(new (...args: any[]) => import("./select").TagTooltipProps) | (() => import("./select").TagTooltipProps) | ((new (...args: any[]) => import("./select").TagTooltipProps) | (() => import("./select").TagTooltipProps))[], unknown, unknown, () => {}, boolean>;
|
|
336
338
|
maxCollapseTags: import("@element-plus/nightly/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, number, boolean>;
|
|
337
339
|
teleported: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
338
340
|
persistent: import("@element-plus/nightly/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
|
|
@@ -417,6 +419,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
417
419
|
fitInputWidth: boolean;
|
|
418
420
|
filterable: boolean;
|
|
419
421
|
automaticDropdown: boolean;
|
|
422
|
+
tagTooltip: import("./select").TagTooltipProps;
|
|
420
423
|
maxCollapseTags: number;
|
|
421
424
|
multipleLimit: number;
|
|
422
425
|
reserveKeyword: import("@element-plus/nightly/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
@@ -100,179 +100,193 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
100
100
|
data: _ctx.states.selected,
|
|
101
101
|
deleteTag: _ctx.deleteTag,
|
|
102
102
|
selectDisabled: _ctx.selectDisabled
|
|
103
|
-
}, () =>
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
label
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
],
|
|
143
|
-
2
|
|
144
|
-
/* CLASS */
|
|
145
|
-
)
|
|
146
|
-
]),
|
|
147
|
-
_: 2
|
|
148
|
-
/* DYNAMIC */
|
|
149
|
-
}, 1032, ["closable", "size", "type", "effect", "style", "onClose"])
|
|
150
|
-
],
|
|
151
|
-
2
|
|
152
|
-
/* CLASS */
|
|
153
|
-
);
|
|
154
|
-
}),
|
|
155
|
-
128
|
|
156
|
-
/* KEYED_FRAGMENT */
|
|
157
|
-
)),
|
|
158
|
-
_ctx.collapseTags && _ctx.states.selected.length > _ctx.maxCollapseTags ? (vue.openBlock(), vue.createBlock(_component_el_tooltip, {
|
|
159
|
-
key: 0,
|
|
160
|
-
ref: "tagTooltipRef",
|
|
161
|
-
disabled: _ctx.dropdownMenuVisible || !_ctx.collapseTagsTooltip,
|
|
162
|
-
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
163
|
-
effect: _ctx.effect,
|
|
164
|
-
placement: "bottom",
|
|
165
|
-
"popper-class": _ctx.popperClass,
|
|
166
|
-
"popper-style": _ctx.popperStyle,
|
|
167
|
-
teleported: _ctx.teleported,
|
|
168
|
-
"popper-options": _ctx.popperOptions
|
|
169
|
-
}, {
|
|
170
|
-
default: vue.withCtx(() => [
|
|
171
|
-
vue.createElementVNode(
|
|
172
|
-
"div",
|
|
173
|
-
{
|
|
174
|
-
ref: "collapseItemRef",
|
|
175
|
-
class: vue.normalizeClass(_ctx.nsSelect.e("selected-item"))
|
|
176
|
-
},
|
|
177
|
-
[
|
|
178
|
-
vue.createVNode(_component_el_tag, {
|
|
179
|
-
closable: false,
|
|
180
|
-
size: _ctx.collapseTagSize,
|
|
181
|
-
type: _ctx.tagType,
|
|
182
|
-
effect: _ctx.tagEffect,
|
|
183
|
-
"disable-transitions": "",
|
|
184
|
-
style: vue.normalizeStyle(_ctx.collapseTagStyle)
|
|
185
|
-
}, {
|
|
186
|
-
default: vue.withCtx(() => [
|
|
187
|
-
vue.createElementVNode(
|
|
188
|
-
"span",
|
|
189
|
-
{
|
|
190
|
-
class: vue.normalizeClass(_ctx.nsSelect.e("tags-text"))
|
|
191
|
-
},
|
|
192
|
-
" + " + vue.toDisplayString(_ctx.states.selected.length - _ctx.maxCollapseTags),
|
|
193
|
-
3
|
|
194
|
-
/* TEXT, CLASS */
|
|
195
|
-
)
|
|
196
|
-
]),
|
|
197
|
-
_: 1
|
|
198
|
-
/* STABLE */
|
|
199
|
-
}, 8, ["size", "type", "effect", "style"])
|
|
200
|
-
],
|
|
201
|
-
2
|
|
202
|
-
/* CLASS */
|
|
203
|
-
)
|
|
204
|
-
]),
|
|
205
|
-
content: vue.withCtx(() => [
|
|
206
|
-
vue.createElementVNode(
|
|
207
|
-
"div",
|
|
208
|
-
{
|
|
209
|
-
ref: "tagMenuRef",
|
|
210
|
-
class: vue.normalizeClass(_ctx.nsSelect.e("selection"))
|
|
211
|
-
},
|
|
212
|
-
[
|
|
213
|
-
(vue.openBlock(true), vue.createElementBlock(
|
|
214
|
-
vue.Fragment,
|
|
215
|
-
null,
|
|
216
|
-
vue.renderList(_ctx.collapseTagList, (item) => {
|
|
217
|
-
return vue.openBlock(), vue.createElementBlock(
|
|
218
|
-
"div",
|
|
219
|
-
{
|
|
220
|
-
key: _ctx.getValueKey(item),
|
|
221
|
-
class: vue.normalizeClass(_ctx.nsSelect.e("selected-item"))
|
|
222
|
-
},
|
|
223
|
-
[
|
|
224
|
-
vue.createVNode(_component_el_tag, {
|
|
225
|
-
class: "in-tooltip",
|
|
226
|
-
closable: !_ctx.selectDisabled && !item.isDisabled,
|
|
227
|
-
size: _ctx.collapseTagSize,
|
|
228
|
-
type: _ctx.tagType,
|
|
229
|
-
effect: _ctx.tagEffect,
|
|
230
|
-
"disable-transitions": "",
|
|
231
|
-
onClose: ($event) => _ctx.deleteTag($event, item)
|
|
232
|
-
}, {
|
|
233
|
-
default: vue.withCtx(() => [
|
|
234
|
-
vue.createElementVNode(
|
|
235
|
-
"span",
|
|
236
|
-
{
|
|
237
|
-
class: vue.normalizeClass(_ctx.nsSelect.e("tags-text"))
|
|
238
|
-
},
|
|
239
|
-
[
|
|
240
|
-
vue.renderSlot(_ctx.$slots, "label", {
|
|
241
|
-
index: item.index,
|
|
242
|
-
label: item.currentLabel,
|
|
243
|
-
value: item.value
|
|
244
|
-
}, () => [
|
|
245
|
-
vue.createTextVNode(
|
|
246
|
-
vue.toDisplayString(item.currentLabel),
|
|
247
|
-
1
|
|
248
|
-
/* TEXT */
|
|
249
|
-
)
|
|
250
|
-
])
|
|
251
|
-
],
|
|
252
|
-
2
|
|
253
|
-
/* CLASS */
|
|
103
|
+
}, () => {
|
|
104
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
|
|
105
|
+
return [
|
|
106
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
107
|
+
vue.Fragment,
|
|
108
|
+
null,
|
|
109
|
+
vue.renderList(_ctx.showTagList, (item) => {
|
|
110
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
111
|
+
"div",
|
|
112
|
+
{
|
|
113
|
+
key: _ctx.getValueKey(item),
|
|
114
|
+
class: vue.normalizeClass(_ctx.nsSelect.e("selected-item"))
|
|
115
|
+
},
|
|
116
|
+
[
|
|
117
|
+
vue.createVNode(_component_el_tag, {
|
|
118
|
+
closable: !_ctx.selectDisabled && !item.isDisabled,
|
|
119
|
+
size: _ctx.collapseTagSize,
|
|
120
|
+
type: _ctx.tagType,
|
|
121
|
+
effect: _ctx.tagEffect,
|
|
122
|
+
"disable-transitions": "",
|
|
123
|
+
style: vue.normalizeStyle(_ctx.tagStyle),
|
|
124
|
+
onClose: ($event) => _ctx.deleteTag($event, item)
|
|
125
|
+
}, {
|
|
126
|
+
default: vue.withCtx(() => [
|
|
127
|
+
vue.createElementVNode(
|
|
128
|
+
"span",
|
|
129
|
+
{
|
|
130
|
+
class: vue.normalizeClass(_ctx.nsSelect.e("tags-text"))
|
|
131
|
+
},
|
|
132
|
+
[
|
|
133
|
+
vue.renderSlot(_ctx.$slots, "label", {
|
|
134
|
+
index: item.index,
|
|
135
|
+
label: item.currentLabel,
|
|
136
|
+
value: item.value
|
|
137
|
+
}, () => [
|
|
138
|
+
vue.createTextVNode(
|
|
139
|
+
vue.toDisplayString(item.currentLabel),
|
|
140
|
+
1
|
|
141
|
+
/* TEXT */
|
|
254
142
|
)
|
|
255
|
-
])
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
})
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
143
|
+
])
|
|
144
|
+
],
|
|
145
|
+
2
|
|
146
|
+
/* CLASS */
|
|
147
|
+
)
|
|
148
|
+
]),
|
|
149
|
+
_: 2
|
|
150
|
+
/* DYNAMIC */
|
|
151
|
+
}, 1032, ["closable", "size", "type", "effect", "style", "onClose"])
|
|
152
|
+
],
|
|
153
|
+
2
|
|
154
|
+
/* CLASS */
|
|
155
|
+
);
|
|
156
|
+
}),
|
|
157
|
+
128
|
|
158
|
+
/* KEYED_FRAGMENT */
|
|
159
|
+
)),
|
|
160
|
+
_ctx.collapseTags && _ctx.states.selected.length > _ctx.maxCollapseTags ? (vue.openBlock(), vue.createBlock(_component_el_tooltip, {
|
|
161
|
+
key: 0,
|
|
162
|
+
ref: "tagTooltipRef",
|
|
163
|
+
disabled: _ctx.dropdownMenuVisible || !_ctx.collapseTagsTooltip,
|
|
164
|
+
"fallback-placements": (_b = (_a2 = _ctx.tagTooltip) == null ? void 0 : _a2.fallbackPlacements) != null ? _b : [
|
|
165
|
+
"bottom",
|
|
166
|
+
"top",
|
|
167
|
+
"right",
|
|
168
|
+
"left"
|
|
169
|
+
],
|
|
170
|
+
effect: (_d = (_c = _ctx.tagTooltip) == null ? void 0 : _c.effect) != null ? _d : _ctx.effect,
|
|
171
|
+
placement: (_f = (_e = _ctx.tagTooltip) == null ? void 0 : _e.placement) != null ? _f : "bottom",
|
|
172
|
+
"popper-class": (_h = (_g = _ctx.tagTooltip) == null ? void 0 : _g.popperClass) != null ? _h : _ctx.popperClass,
|
|
173
|
+
"popper-style": (_j = (_i = _ctx.tagTooltip) == null ? void 0 : _i.popperStyle) != null ? _j : _ctx.popperStyle,
|
|
174
|
+
teleported: (_l = (_k = _ctx.tagTooltip) == null ? void 0 : _k.teleported) != null ? _l : _ctx.teleported,
|
|
175
|
+
"append-to": (_n = (_m = _ctx.tagTooltip) == null ? void 0 : _m.appendTo) != null ? _n : _ctx.appendTo,
|
|
176
|
+
"popper-options": (_p = (_o = _ctx.tagTooltip) == null ? void 0 : _o.popperOptions) != null ? _p : _ctx.popperOptions,
|
|
177
|
+
transition: (_q = _ctx.tagTooltip) == null ? void 0 : _q.transition,
|
|
178
|
+
"show-after": (_r = _ctx.tagTooltip) == null ? void 0 : _r.showAfter,
|
|
179
|
+
"hide-after": (_s = _ctx.tagTooltip) == null ? void 0 : _s.hideAfter,
|
|
180
|
+
"auto-close": (_t = _ctx.tagTooltip) == null ? void 0 : _t.autoClose,
|
|
181
|
+
offset: (_u = _ctx.tagTooltip) == null ? void 0 : _u.offset
|
|
182
|
+
}, {
|
|
183
|
+
default: vue.withCtx(() => [
|
|
184
|
+
vue.createElementVNode(
|
|
185
|
+
"div",
|
|
186
|
+
{
|
|
187
|
+
ref: "collapseItemRef",
|
|
188
|
+
class: vue.normalizeClass(_ctx.nsSelect.e("selected-item"))
|
|
189
|
+
},
|
|
190
|
+
[
|
|
191
|
+
vue.createVNode(_component_el_tag, {
|
|
192
|
+
closable: false,
|
|
193
|
+
size: _ctx.collapseTagSize,
|
|
194
|
+
type: _ctx.tagType,
|
|
195
|
+
effect: _ctx.tagEffect,
|
|
196
|
+
"disable-transitions": "",
|
|
197
|
+
style: vue.normalizeStyle(_ctx.collapseTagStyle)
|
|
198
|
+
}, {
|
|
199
|
+
default: vue.withCtx(() => [
|
|
200
|
+
vue.createElementVNode(
|
|
201
|
+
"span",
|
|
202
|
+
{
|
|
203
|
+
class: vue.normalizeClass(_ctx.nsSelect.e("tags-text"))
|
|
204
|
+
},
|
|
205
|
+
" + " + vue.toDisplayString(_ctx.states.selected.length - _ctx.maxCollapseTags),
|
|
206
|
+
3
|
|
207
|
+
/* TEXT, CLASS */
|
|
208
|
+
)
|
|
209
|
+
]),
|
|
210
|
+
_: 1
|
|
211
|
+
/* STABLE */
|
|
212
|
+
}, 8, ["size", "type", "effect", "style"])
|
|
213
|
+
],
|
|
214
|
+
2
|
|
215
|
+
/* CLASS */
|
|
216
|
+
)
|
|
217
|
+
]),
|
|
218
|
+
content: vue.withCtx(() => [
|
|
219
|
+
vue.createElementVNode(
|
|
220
|
+
"div",
|
|
221
|
+
{
|
|
222
|
+
ref: "tagMenuRef",
|
|
223
|
+
class: vue.normalizeClass(_ctx.nsSelect.e("selection"))
|
|
224
|
+
},
|
|
225
|
+
[
|
|
226
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
227
|
+
vue.Fragment,
|
|
228
|
+
null,
|
|
229
|
+
vue.renderList(_ctx.collapseTagList, (item) => {
|
|
230
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
231
|
+
"div",
|
|
232
|
+
{
|
|
233
|
+
key: _ctx.getValueKey(item),
|
|
234
|
+
class: vue.normalizeClass(_ctx.nsSelect.e("selected-item"))
|
|
235
|
+
},
|
|
236
|
+
[
|
|
237
|
+
vue.createVNode(_component_el_tag, {
|
|
238
|
+
class: "in-tooltip",
|
|
239
|
+
closable: !_ctx.selectDisabled && !item.isDisabled,
|
|
240
|
+
size: _ctx.collapseTagSize,
|
|
241
|
+
type: _ctx.tagType,
|
|
242
|
+
effect: _ctx.tagEffect,
|
|
243
|
+
"disable-transitions": "",
|
|
244
|
+
onClose: ($event) => _ctx.deleteTag($event, item)
|
|
245
|
+
}, {
|
|
246
|
+
default: vue.withCtx(() => [
|
|
247
|
+
vue.createElementVNode(
|
|
248
|
+
"span",
|
|
249
|
+
{
|
|
250
|
+
class: vue.normalizeClass(_ctx.nsSelect.e("tags-text"))
|
|
251
|
+
},
|
|
252
|
+
[
|
|
253
|
+
vue.renderSlot(_ctx.$slots, "label", {
|
|
254
|
+
index: item.index,
|
|
255
|
+
label: item.currentLabel,
|
|
256
|
+
value: item.value
|
|
257
|
+
}, () => [
|
|
258
|
+
vue.createTextVNode(
|
|
259
|
+
vue.toDisplayString(item.currentLabel),
|
|
260
|
+
1
|
|
261
|
+
/* TEXT */
|
|
262
|
+
)
|
|
263
|
+
])
|
|
264
|
+
],
|
|
265
|
+
2
|
|
266
|
+
/* CLASS */
|
|
267
|
+
)
|
|
268
|
+
]),
|
|
269
|
+
_: 2
|
|
270
|
+
/* DYNAMIC */
|
|
271
|
+
}, 1032, ["closable", "size", "type", "effect", "onClose"])
|
|
272
|
+
],
|
|
273
|
+
2
|
|
274
|
+
/* CLASS */
|
|
275
|
+
);
|
|
276
|
+
}),
|
|
277
|
+
128
|
|
278
|
+
/* KEYED_FRAGMENT */
|
|
279
|
+
))
|
|
280
|
+
],
|
|
281
|
+
2
|
|
282
|
+
/* CLASS */
|
|
283
|
+
)
|
|
284
|
+
]),
|
|
285
|
+
_: 3
|
|
286
|
+
/* FORWARDED */
|
|
287
|
+
}, 8, ["disabled", "fallback-placements", "effect", "placement", "popper-class", "popper-style", "teleported", "append-to", "popper-options", "transition", "show-after", "hide-after", "auto-close", "offset"])) : vue.createCommentVNode("v-if", true)
|
|
288
|
+
];
|
|
289
|
+
}) : vue.createCommentVNode("v-if", true),
|
|
276
290
|
vue.createElementVNode(
|
|
277
291
|
"div",
|
|
278
292
|
{
|