Commit Graph

67 Commits

Author SHA1 Message Date
qiang
2f8436571a feat(components): [select-v2] accessibility enhancement (#22153)
* feat(components): [select-v2] accessibility enhancement

* chore: test
2025-09-25 10:15:13 +08:00
Noblet Ouways
853df25476 feat(components): [select/v2] add index to label slot (#21884)
* feat(components): [select/v2] add index to label slot

* chore: simplify

Co-authored-by: btea <2356281422@qq.com>

* chore: fix edge cases

---------

Co-authored-by: btea <2356281422@qq.com>
2025-08-25 18:49:02 +02:00
Noblet Ouways
c83b99d2f2 feat(components): unify clear btn display on focus (#21732)
* feat(components): unify clear btn display on focus

* test: add tests

* chore: apply review
2025-08-18 10:54:32 +02:00
Noblet Ouways
822a5796b9 fix(components): [select-v2] set model-value default to undefined (#21540)
* fix(components): [select-v2] set `model-value` default to `undefined`

* test: test
2025-07-31 11:31:43 +08:00
Noblet Ouways
4f8cca0f6c feat(components): [select/select-v2/cascader] expose more tag options (#21157)
* feat(components): [select/select-v2] bind `data` for tag slot

* chore: remove console.log

* feat: expose `deleteTag` aswell

---------

Co-authored-by: warmthsea <2586244885@qq.com>
2025-06-29 13:17:20 +00:00
baozj
524f901045 feat(components): [select] expose selectDisabled prop to #tag slot (#21093)
* feat(components): [select] expose selectDisabled prop to #tag slot

* feat(components): [select] expose selectDisabled and update docs

* feat(components): [select-v2] expose selectDisabled to #tag slot

Add example demonstrating how to use selectDisabled in custom tag rendering.

* docs(components): [select, select-v2] add selectDisabled to #tag slot

* docs(components): [select, select-v2] remove tag-disabled.vue examples

---------

Co-authored-by: baozhangjie <jay.bao@photonpay.com>
2025-06-29 20:59:04 +08:00
Noblet Ouways
2f17df1209 style(eslint-config): newline before import type (#21036)
* perf: change to import-x

* feat: add rules

* chore: fix rule

* chore: fix

* chore: fix

* chore: fix

* style: `pnpm lint:fix`

* Revert "style: `pnpm lint:fix`"

This reverts commit db0116a288.

* Revert "chore: fix"

This reverts commit 69c82a90c0.

* chore: fix

* style: `pnpm lint:fix`

* fix: lint

* chore: `pnpm format`
2025-06-16 15:37:12 +08:00
kooriookami
e0e5e8f303 fix(components): [select-v2] fix scroll position when using props (#20788) 2025-05-20 11:43:30 +08:00
Liao-js
ea2c42783e fix(components): [select-v2] label error when multiple and remote (#20668)
* fix(components): [select-v2] label error when multiple and remote

* fix: test case
2025-05-09 09:29:18 +08:00
Egor Rakutov
ea904eb105 fix(components): [el-select-v2] u-tag sync with :model-value (#20306)
* fix(components): [el-select-v2] u-tag sync with :model-value

* fix: tests, isArray

* fix: remove useless logic

* fix: single select, tests
2025-04-17 15:43:45 +08:00
Egor Rakutov
a3e774e12c fix(components): [el-select-v2] use :model-value without changes (#20149)
fix(components): [el-select-v2] model-value bug
2025-03-18 16:33:19 +08:00
伊墨
2c9d70dc94 feat(components): [select-v2] add fit-input-width prop (#18834)
* feat(components): [select-v2] add `width` prop

* feat(components): [select-v2] change `width` prop to `fit-input-width`

* docs(components): add description

* test(components): [select-v2] fix errors caused by canvas

* chore(components): optimize code and change documents

Co-authored-by: thinkasany <480968828@qq.com>
Co-authored-by: btea <2356281422@qq.com>

* feat: [select-v2] listen for `fit-input-width`

* fix: change the default value of the `fit-input-width` prop

* fix: the width did not change when remote search or creating temporary option

* docs: change document and example code

---------

Co-authored-by: thinkasany <480968828@qq.com>
Co-authored-by: btea <2356281422@qq.com>
2024-12-24 16:39:43 +08:00
Liao-js
e17ec9a8a8 fix(components): [select-v2] empty value check error in inputRef (#19140)
* fix(components): [select-v2] empty value check error in inputRef

* test(components): [select-v2] empty value check error in inputRef

* fix: test case
2024-12-09 17:04:29 +08:00
qiang
990aa4b768 feat(components): [select] add tabindex attribute (#19034) 2024-11-28 13:54:05 +08:00
betavs
247d29cf9a fix(components): [select-v2] data echo abnormality (#18334) 2024-10-17 09:42:33 +08:00
sea
1f82e8ca61 feat(components): [select & select-v2] explicit export selectedLabel (#18350)
* feat(components): [select] export selectedLabel

* docs: update

* docs: update th

* docs: update selectedLabel version
2024-10-11 13:48:12 +08:00
dopamine
8618a6bcd0 refactor: import shared utilities from @element-plus/utils (#18048)
chore: import shared utilities from `@element-plus/utils`
2024-08-29 09:04:03 +08:00
qiang
2f69776b30 fix(components): [select] binding click event is invalid (#17876)
* fix(components): [select] binding click event is invalid

closed #17863

* chore: typo
2024-08-14 10:50:23 +08:00
qiang
949479699b refactor(hooks): determine the focus by event listening (#17719)
* refactor(hooks): determine the focus by event listening

* test: skip the focus test

* test: fix test

* feat(hooks): add beforeFocus

* fix: optimize blur

* chore(components): [mention] remove focus & blur
2024-08-07 18:35:30 +08:00
wzc520pyfm
a9b91d1f0f fix(components): [select-v2] corrent focus to input when select clicked (#17362)
* fix(components): [select-v2] fix remote init

remote-search scenarios shoule be not initialized

* Revert "fix(components): [select-v2] fix remote init"

This reverts commit d8326888e3df96dee482b9c8098738bc698215af.

* fix(components): [select-v2] no trigger init-states when filter/remote

* test(components): [select-v2] add test for no init when remote search

* fix(components): [select-v2] add back the necessary condition

* fix(components): [select-v2] correct input focus

input shoule be fouce when click el-select

* fix(components): [select-v2] focus first and then completed taggle-menu
2024-07-30 10:49:46 +08:00
guetHe
db0fec864a fix(components): [select-v2] with teleported="false" dropdown closes abnormally (#16714)
fix(components): with teleported="false" dropdown closes bug

Move toggleMenu click event to the right place wrapperRef
Only wrapperRef can control tooltip content visble or not

closed #16653
2024-06-20 08:01:05 +08:00
kooriookami
f57b10c2ba style(components): [select & select-v2] remove split dash (#17009)
* style(components): [select & select-v2] remove split dash

* feat(components): update
2024-05-28 16:35:46 +08:00
久染 | JiuRan
4c3c81e3d6 test(component): select remove-tag event triggered by keydown.delelte (#16840)
* fix: select deletePrevTag emit remove tag event

* fix: test case

* fix: select-v2 handleDel

* test: select-v2 test case

* fix: test case index

* chore: remove emit event

---------

Co-authored-by: btea <2356281422@qq.com>
2024-05-21 16:58:32 +08:00
Liao-js
ac2662dd56 fix(components): [select-v2] custom options init error in multiple (#16664)
* fix(components): [select-v2] custom options init error in multiple

* test(components): [select-v2] custom options init in multiple
2024-04-26 15:07:13 +08:00
赵添
18fa408391 fix(components): [select-v2] manually set object type modelValue error (#16473)
* fix(components): [select-v2] manually set object type modelValue error

* fix: update
2024-04-12 09:23:07 +08:00
kooriookami
3f4bee5a90 fix(components): [select-v2] set modalValue when filtering display error (#15981)
fix(components): [select-v2] set modalValue when filtering

closed #15973
2024-02-29 11:31:26 +08:00
wzc520pyfm
9e7709b58f test(components): [select-v2] backspace should not delete disabled tag (#15552) 2024-01-16 22:29:26 +08:00
kooriookami
5844947198 refactor(components): [select & select-v2] Refactor components (#15352)
* refactor(components): [select&select-v2] refactor components

* refactor(components): [select-v2]

* refactor(components): update

* refactor(components): update

* refactor(components): [select-v2]

update

* refactor(components): update

* refactor(components): update

* refactor(components): update type

* refactor(components): update

* refactor(components): update

* refactor(components): update style

* refactor(components): update docs

* refactor(components): update

* refactor(components): fix #15323

* refactor(theme-chalk): update

* refactor(components): update

* refactor(components): update

* refactor(components): update

* refactor(components): fix bugs

* fix(components): fix issue

* fix(components): update

* fix(components): fix some bug

* feat(components): update

* feat(components): add tag slot

* feat(components): update

* fix(components): update

* style(theme-chalk): update style

* fix(theme-chalk): update

* feat(theme-chalk): update

* fix(components): update

* feat: update

* feat: update

* feat: update

* feat(components): update
2024-01-10 11:14:58 +08:00
qiang
bb12dd5e7e fix(components): [select-v2] label error when value not in the options (#14656)
closed #14621
2023-10-28 20:29:31 +08:00
qiang
db0e65577d refactor(components)!: [select-v2] value-key is used for object select (#13263)
refactor(components): [select-v2] value-key is used for object select
2023-10-13 13:08:34 +08:00
kooriookami
b112830d54 feat(components): [select-v2] Add max-collapse-tags prop (#11405)
* feat(components): [select-v2] Add max-collapse-tags prop

* feat(components): update

* feat: update

* feat: update
2023-03-10 15:01:40 +08:00
zz
4cb900bfc8 fix(components): [select-v2] initial value compatibility (#10759)
* fix(components): [select-v2] Initial value compatibility

* chore: simplify logic and add a test case
2022-11-27 22:34:48 +08:00
qiang
b456125431 fix(components): [tooltip] SSR hydration error caused by random ID (#10541) 2022-11-21 14:10:52 +08:00
Mrbigshot
1155f4ceaa fix(components): [select-v2] case-insensitive when filterable (#10575)
Co-authored-by: 叶晨 <cye2@leqee.com>
closes https://github.com/element-plus/element-plus/issues/10573
2022-11-13 17:49:52 +08:00
zz
99fe8b2588 fix(components): [select-v2] empty value should be undefined (#10189) 2022-10-22 21:11:41 +08:00
aei
88faef2763 fix(components): [select-v2] Test file code misspelled (#9978) 2022-09-30 17:24:08 +08:00
zz
051135e38e fix(components): [select-v2] improve placeholder display (#9835) 2022-09-20 03:58:30 +00:00
三咲智子
7097940f4a refactor: add ts-nocheck and check all files (#8401) 2022-06-22 08:04:42 +08:00
Xc
d536b7cb7a fix(components): [select] collapse-tags-tooltip drop first item (#8344)
* fix(components): [select] collapse-tag-tooltip drop first item

* fix(components): [select] collapse-tags-tooltip drop first item test
2022-06-18 18:38:15 +08:00
Delyan Haralanov
c99592502f test: remove deprecated done callback (#7741)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-05-17 20:32:52 +08:00
JeremyWuuuuu
9a88fb4e46 fix(components): [popper] appendToBody API deprecation (#7534)
* fix(components): [popper] appendToBody API deprecation

- Remove `appendToBody` for components still using it.

* Remove duplicated attribute
2022-05-06 18:41:50 +08:00
Delyan Haralanov
0a0241e54d test: fix console output errors and warnings (#7237) 2022-04-19 17:37:56 +08:00
三咲智子
1d13ebb05d feat: drop jest (#7248)
* feat: drop jest

* test: remove ssr

* test: rename

* chore: update tsconfig
2022-04-19 16:51:44 +08:00
Delyan Haralanov
de0ee53cf0 test(components): switch all components to vitest (#7205)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-04-19 12:46:57 +08:00
白雾三语
c2ef5a82f5 fix: [el-select-v2] 修復select-v2 v-model 不能正常的支持 Object (#6888)
* fix: [el-select-v2] 修復select-v2 v-model 不能正常的支持 Object

* feat: [el-select-v2] 修復select-v2 v-model 不能正常的支持 Object,并增加单元测试
2022-03-31 20:45:50 +08:00
joson
cc9df6ea61 style: delete extra spaces (#6903)
Co-authored-by: hezhaoshun <hezhaoshun@cmcm.com>
2022-03-31 09:11:29 +08:00
Herrington Darkholme
51aac2f630 fix(ci): clean up several warning (#6551) 2022-03-12 00:00:07 -05:00
Alan Wang
a3e3acc0fc feat(components): [select-v2]add collapse-tags-tooltip (#6532)
* feat(components): [select-v2]add collapse-tags-tooltip

* feat(components): [select-v2]set fallback-placements

* feat(components): [select-v2]add collapse-tags-tooltip

* feat(components): [select-v2]set fallback-placements

* feat(components): [select-v2]add v-if on tooltip
2022-03-11 15:56:35 +08:00
三咲智子
b8c38a9fe5 chore: enhance eslint rules (#6476)
* chore: enhance eslint rules

* chore: enhance eslint rules
2022-03-08 14:03:32 +08:00
三咲智子
6503e55277 refactor(utils): migrate utils (#5949)
* refactor(utils-v2): migrate utils

* refactor(utils-v2): migrate utils

* refactor(utils-v2): migrate utils

* refactor(utils): remove

* refactor(utils): rename

* refactor(utils): move EVENT_CODE to constants

* refactor: remove generic
2022-02-11 11:03:15 +08:00