Commit Graph

110 Commits

Author SHA1 Message Date
Rainbow
0b1a57f23d fix(components): [select/select-v2] correct the trigger timing of visible-change (#22897)
fix(components): correct the trigger timing of visible-change
2025-11-22 23:14:53 +08:00
Putia3
1375b3e604 fix(components): [select] shouldn't add is-hovering to disabled option (#22845)
fix(components): [select] shouldn't add "is-hovering" when disabled
2025-11-22 17:14:32 +08:00
Rainbow
439c0b5b88 improvement(components): [select/select-v2] hoveringIndex stays on the most recently selected option with multiple (#22782)
* improvement: hoveringIndex stays on the last selected option

* improvement: update

---------

Co-authored-by: rzzf <cszhjh@gmail.com>
2025-11-20 15:09:16 +08:00
Rainbow
3243b71e37 improvement(components): [select] locate the most recently selected option when using multiple (#22753)
* improvement: locate the most recently selected one when using multiple

* test: add test case
2025-11-20 14:45:53 +08:00
Map1en
21a651b13d fix(components): [select] after the last select unmounts memory leak issue (#22764)
* fix(components): after the last select unmounts memory leak issue

* fix: avoid intercepting info from other components

---------

Co-authored-by: btea <2356281422@qq.com>
2025-11-15 10:33:07 +08:00
yicheny
581a83a9b9 fix(components): [select] sync label when persistent is false and options change (#22755)
fix(components): sync label when persistent=false and options change

- Rehydrate options from slot vnodes on slots/model change when dropdown is closed

BREAKING CHANGE: Closes #22754

closed #22754

Co-authored-by: alex.yang <alex.yang@hytechc.com>
2025-11-12 22:37:20 +08:00
rzzf
5868853923 fix(components): [select] unable to select options using NumpadEnter (#22715) 2025-11-07 10:16:31 +08:00
Noblet Ouways
34db6aedc3 fix(components): [select] allow delete non existant option (#22706) 2025-11-06 10:49:05 +08:00
btea
43b9a0d5b8 test: coverage config update (#22656)
* test: coverage config update

* test: update
2025-10-31 22:32:59 +08:00
snowbitx
0877f73cdd feat(components): [select] support home and end key events (#22446)
* feat(components): [select] support home and end key events

* fix: keydown end error

* fix: filterable input

* fix: keydown stop error

* refactor: change default behavior and fix disabled

* Update packages/components/select/src/useSelect.ts

Co-authored-by: Zhong <cszhjh@gmail.com>

* Update packages/components/select/src/useSelect.ts

Co-authored-by: Zhong <cszhjh@gmail.com>

* Update packages/components/select/src/useSelect.ts

Co-authored-by: Zhong <cszhjh@gmail.com>

* fix: build error

* refactor: use inline function

---------

Co-authored-by: Zhong <cszhjh@gmail.com>
2025-10-29 15:54:25 +08:00
Zhong
2dca78bd76 fix(components): [select] scrolling is not triggered when the option value is zero (#22578)
* fix(components): [select] scroll missing when first option value is zero

* test: add case

* test: update
2025-10-25 11:58:21 +02:00
Lensiq
d66daf3e2b fix(components): [select] prevent duplicate option registration (#22541)
* fix(components): [select] prevent duplicate option registration

* fix: update

* chore: add test

* fix: update

* Update packages/components/select/src/select.vue

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

---------

Co-authored-by: Zhong <cszhjh@gmail.com>
Co-authored-by: btea <2356281422@qq.com>
2025-10-22 16:51:23 +08:00
Rainbow
b917fafccc feat(components): [select/select-v2] support debounce prop (#22471)
* feat(components): [select/select-v2] support debounce prop

* feat: update

* feat: update

* feat: update

* docs: update version number

* feat: update

* feat: update

* feat: update

* feat: update

* feat: update

* feat: update
2025-10-20 10:46:24 +08:00
Rainbow
7d1f52127f fix(components): [select] loading appears on first click when remote (#22323)
* fix(components): [select] loading appears on first click when remote

* test: add test case
2025-10-09 23:00:06 +02:00
kooriookami
80850b4cb3 fix(components): [select] fix label not show when persistent is false (#22317)
* fix(components): [select] fix label not show when persistent is false

* fix(components): [select]

* fix(components): [select]

* fix(components): [select]
2025-09-26 13:45:31 +08:00
一只前端汪
3d7fcdadab fix(components): [select/v2] width of drop-down panel exceeds the input (#21910)
* fix(components): [select/V2] width of dropdown panel exceeds the input

* fix(components): [select/V2] width of drop-down panel exceeds the input

* fix: select constants

* fix: select

---------

Co-authored-by: 2586740555 <15972343+CYJ090915@user.noreply.gitee.com>
2025-08-29 15:10:36 +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
7644c1fe4a feat(components): [cascader/select/date-picker] add popper-style (#21807)
* feat(components): add popper style

* test: enforce ci passing

* chore: handle select-v2 & apply review

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

* chore: bump for select component

---------

Co-authored-by: btea <2356281422@qq.com>
2025-08-21 10:46:06 +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
qiang
826373a133 fix(components): [select] click outside should lose focus (#21702)
* fix(components): [select] click outside should lose focus

* chore: add test
2025-08-11 14:44:03 +08:00
snowbitx
dbbacae7d1 feat(components): [select] support options prop rendering (#21203)
* feat(components): [select] support options prop rendering

* feat(components):[select] format

* feat(components):[select] format

* Update packages/components/select/src/select.vue

Thanks for the guidance!

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>

* Update packages/components/select/src/select.vue

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>

* Merge remote-tracking branch 'upstream/dev' into feat/autocomplete-size

* feat(components): [select] format

* feat(components): [select] Add test case

* feat(components): [select] Add doc

* Update packages/components/select/src/select.ts

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>

* feat(components): [select] Code optimization

* feat(components): [select] Code optimization

* feat(components): [select] format

* feat(components): [select] format

* docs: refact

* refactor: simplify

* chore: useless diff change

* Update shared.ts

* Update message.ts

* Update popper.ts

* Update result.ts

* Update form-item.ts

* Update cascader-panel.test.tsx

* chore: useless change

* Update select.vue

* Update option.vue

* Update select.vue

---------

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
Co-authored-by: Dsaquel <291874700n@gmail.com>
2025-07-29 09:54:30 +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
btea
880de62fee fix(components): [tree-select] value label rendering error (#20947)
* fix(components): [tree-select] value label rendering error

* Update packages/components/select/src/select.vue

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* fix: update

* fix: update

* fix: lint

* test: case

* fix: lint

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-11 21:37:04 +08:00
Jeff
6f8e91f771 refactor(components): [select] modify manuallyRenderSlots execute (#20854)
* refactor(components): [select] modify `manuallyRenderSlots` execute

* refactor(components): [select] modify ’manuallyRenderSlots‘ execute

* fix(components): [select] fix render slots attempt when persistent=false

* fix: remove duplicate judgments

---------

Co-authored-by: Dsaquel <291874700n@gmail.com>
Co-authored-by: btea <2356281422@qq.com>
2025-06-06 08:56:35 +08:00
伊墨
b31e727edd fix(components): [select] display exception when label is 0 or "" (#20905)
* fix(components): [option] display exception when label is `0` or `""`

* test: add test case
2025-06-03 01:07:37 +00:00
btea
433b622aee refactor: rename test env (#20816) 2025-05-22 16:17:15 +08:00
btea
8ddbb1d85a fix(components): [select] select value label rendering error (#20769)
* fix(components): [select] select value label rendering error

* chore: comment

* fix: update

* fix: update

* feat: manual render

* refactor: immediate watch

* test: update

* test: with multiple
2025-05-21 13:54:59 +08:00
Noki
f31d3b6d0c fix(components): [select] typed value causes default-first-option to fail (#19806)
* fix(components): [select] default-first-option

* fix(components): [select] watch optionArray ref

* test(components): [select] add default-first-option

* test(components): [select] remove only

* test(components): [select] use remote-method

* fix(components): [select] add condition for optionsArray loop

* fix(components): [select] remove condition for optionsArray loop
2025-03-11 15:24:07 +00:00
dopamine
be43878d2f fix(components): [select] use option.isDisabled as the source of truth (#19137)
* fix(components): [select] use option.isDisabled as the source of truth

* add one test case
2024-12-05 19:56:02 +08:00
qiang
990aa4b768 feat(components): [select] add tabindex attribute (#19034) 2024-11-28 13:54:05 +08:00
Aaron-zon
2bef172a07 test(components): fix test cases in select.test.ts (#18969) 2024-11-21 20:30:33 +08:00
sea
300b58c548 fix(components): [select] keep the selected label (#18549)
* fix(components): [select] keep the selected label

* style: op code & fix eslint warn

* fix: update

* feat: update cu
Co-authored-by: dopamine <coderzyou@gmail.com>

* feat: update cu

Co-authored-by: dopamine <coderzyou@gmail.com>

* feat: update cu

Co-authored-by: dopamine <coderzyou@gmail.com>

* update select.test.ts

Co-authored-by: dopamine <coderzyou@gmail.com>

* chore: delete useless code

---------

Co-authored-by: dopamine <coderzyou@gmail.com>
2024-11-17 14:06:44 +08:00
Zhong
d59acf696e fix(components): [select] prevent keyboard from deleting disabled option (#18752)
* fix(components): [Select] prevent backspace from delete disabled option

* fix(components): [select] prevent keyboard from deleting disabled option
2024-11-04 15:32:33 +08:00
qiang
a6430f5b98 fix(components): [select] error parameters of getValueIndex (#14173)
* fix(components): [select] error arguments of getValueIndex

closed #14139 #18247

* test: fix test

* style(components): [select] optimize code format
2024-10-29 14:43:24 +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
qiang
8908e738e5 fix(components): [select] the blur not triggered when click the outside (#18478)
* fix(components): [select] the blur not triggered when click the outside

closed #18235, #18238

* test: add test
2024-10-11 11:47:35 +08:00
tangyongjie
271385f6a5 test(components): [select] fix test warning (#18211) 2024-09-07 07:54:26 +08:00
qiang
8e6b88dcca revert(components): [select] cancel type conversion at initialization (#18088)
closed #17944
2024-09-03 15:20:46 +08:00
wzc520pyfm
c90ebf8ca4 test(components): [select] add case for disabled and automatic-dropdown (#18112) 2024-09-01 08:02:55 +08:00
qiang
044f0afc1e fix(components): [select] switching single/multiple generates an error (#18030)
closed #17890
2024-08-29 19:06:41 +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
qiang
d9ec05749d refactor(components): [select] cancel type conversion at initialization (#17606)
* refactor(components): [select] cancel type conversion at initialization

* fix: options

* chore: optimized code

* docs: update
2024-08-07 11:53:48 +08:00
Aaron-zon
50ba6c2c77 fix(components): [select] with teleported="false" dropdown closes abnormally (#17548)
* fix(components): with teleported=false dropdown closes abnormally

* fix: test error

* fix: test error

---------

Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-07 11:44:03 +08:00
sleepyShen1989
203f76b0eb test(components): [select] fix option type warning (#17020) 2024-05-30 18:47:18 +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
dopamine
441e07edbb test(components): [select] modify the grouping of several test cases (#16824)
chore: modify the grouping of several test cases
2024-05-12 11:43:17 +08:00
dopamine
2cba92fc82 fix(components): [select] isDisabled is not fresh (#16419)
* fix(components): [select] `isDisabled` is not fresh

* add a test case
2024-04-26 14:39:45 +08:00
Liao-js
261062859c fix(components): [select] group error when custom option component (#16621)
* fix(components): [select] group error when custom option component

* Update packages/components/select/src/option-group.vue

Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>

* perf(components): [select] group flattedChildren

* perf(components): [select] group flattedChildren

* test(components): [select] group when custom option component case

---------

Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>
2024-04-25 15:34:43 +08:00