170 Commits

Author SHA1 Message Date
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
btea
64e9316547 fix(components): [select-v2] stop the click event propagation of header/footer slot (#21617)
fix(components): [select-v2] stop the click event propagation of header/footer slot
2025-08-04 13:20:39 +02:00
Rainbow
b1cd22fb14 fix(components): [select-v2] avoid abnormal display of new options (#21538)
* fix(components): [select-v2] avoid abnormal display of new options

* fix: update

* fix: update

* fix: update

---------

Co-authored-by: Zhong <58726932+cszhjh@users.noreply.github.com>
2025-07-31 16:27:26 +08: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
Zhong
62edc0c906 fix(components): [select-v2] resolve invalid filter and remote methods (#21419)
* fix(components): [select-v2] resolve invalid filter and remote methods

* refactor(components): [select-v2] delete redundant comparisons

---------

Co-authored-by: cszhjh <cszhjh@192.168.0.104>
2025-07-21 08:59:07 +08:00
Noblet Ouways
ed29cf0dfb docs: fix examples & type consistency (#21333)
* docs(components): [select] fix consistency

* chore: remove all `:height="208"`
2025-07-14 09:42:58 +08:00
Spaceman
94a5d9bb1c fix(components): [select-v2] scrollbar resets to top after select item (#21257)
* fix(components): [select-v2] scrollbar resets to top after select item

issue #21225

* fix(components): [select-v2] scrollbar resets to top after select item

使用函数包裹能解决isFunction(props.remoteMethod)触发watchEffect的问题

* fix(components): [select-v2] scrollbar resets to top after select item
2025-07-10 17:05:06 +08:00
yuhengshen
cfc661c626 feat(types): [components] add public prop types (#21222)
* feat(types): [utils] add ExtractPublicPropTypes type

* feat(types): [components] add props public type

* chore(types): use type-only import for Prop from 'vue'

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

---------

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
2025-07-07 00:51:32 +08:00
btea
1e28b08bcb fix(components): [select/select-v2] apply popper-class to tag tooltip (#21212) 2025-07-02 17:15:42 +08:00
qiang
b881ef25cb refactor(hooks): [useFocusController] add disabled attribute (#21032)
refactor(hooks): [useFocusController] add disabled prop

Co-authored-by: warmthsea <2586244885@qq.com>
2025-07-01 08:41:35 +00: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
sea
47bf23be53 refactor: [select, select-v2]: unified name & supplement type (#20050)
* chore: update

* chore: update
2025-06-04 17:46:56 +08:00
kooriookami
e4a93aae74 fix(components): [select-v2] fix default-first-option and allow-create are not effective together (#20872)
fix(components): [select-v2] fix default-first-option

closed #20871
2025-05-29 16:27:44 +08:00
kooriookami
e0e5e8f303 fix(components): [select-v2] fix scroll position when using props (#20788) 2025-05-20 11:43:30 +08:00
知晓同丶
5490bedf85 fix(components): [select-v2] tooltipRef maybe undefined (#20688)
closed #20687
2025-05-09 14:07:16 +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
betavs
ec6e0c51a5 fix(components): [select] update selection width calculation (#20615)
* fix(components): [select] update selection width calculation

* fix(components): [select-v2] update selection width calculation
2025-05-01 18:23:23 +08:00
kooriookami
498acc321b fix(components): [select-v2] fix fit-input-width (#20509)
* fix(components): [select-v2] fix fit-input-width

* fix(components): [select-v2]

* fix(components): update

* fix(components): update
2025-04-27 16:05:24 +08:00
betavs
3a3db6e564 refactor(components): use built-in methods to check for undefined and null (#20537)
style(components): check the undefined type for unification
2025-04-24 22:51:58 +08:00
betavs
5f519a6f25 refactor(components): unify append-to prop type across multiple components (#20501)
* fix(components): [select] update `append-to` prop type

* fix(components): unify `append-to` prop type across multiple components

* docs: update `append-to` prop type
2025-04-22 09:29:19 +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
Feynman
ee13188cca feat(components): [select-v2] add suffix-icon prop with default ArrowDown (#20370)
* feat(components): [select-v2] add suffixIcon prop with default ArrowDown

- Introduced a new `suffixIcon` prop to allow customization of the icon in the select component.
- Updated the icon rendering logic to utilize the `suffixIcon` prop instead of a hardcoded value.

* feat(docs): [select-v2] add suffix-icon prop for custom icon support

- Added a new `suffix-icon` prop to the select component, allowing users to customize the suffix icon.
- Updated documentation to reflect the new prop and its default value.

* chore: add version

---------

Co-authored-by: warmthsea <2586244885@qq.com>
2025-04-09 08:10:30 +00:00
Haceral
642946e4fd fix(components): [select, select-v2] blur validate not executed (#20232) 2025-03-30 13:59:28 +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
dopamine
7be4a3765e chore: emits smaller declaration files (#20109)
* Revert "fix(types): packing unexpected types (#19419)"

This reverts commit 13506ffb81.

* Revert "chore: add explicit type annoation (#19352)"

* fix(typescript): borken import paths in declaration files

* chore: emits smaller declaration files
2025-03-18 10:08:44 +08:00
sea
434208c9ad fix(components): [select-v2] option need double click in IOS (#20041)
* fix(components): [select-v2] option need double click in IOS

* chore: format
2025-03-07 11:13:07 +08:00
DDDDD12138
87e3d1d400 fix(components): [select-v2] allow propagation of non-control key events in custom options (#19984)
fix: allow propagation of non-control key events in custom options
2025-02-27 22:09:14 +08:00
DDDDD12138
3ef10ec5b8 perf(components): [select-v2] optimize to avoid unnecessary computations (#19970)
* perf: avoid redundant property checks and regex constructions

* perf: optimize allOptions handling and introduce hasOptions

* feat: update 'allOptions' type
2025-02-26 16:45:01 +08:00
Lo
6bc45440f8 feat(components): [select, select-v2] add loading class to validateIcon (#19379)
fix(components): [select, select-v2] add loading class to validateIcon
2025-01-02 18:02:46 +08:00
qiang
1ca9d9c3fa fix(components): [select] input width fills the remaining width (#19292)
* fix(components): [select] input width fills the remaining width

closed #17886

* fix: type
2025-01-02 13:41:13 +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
btea
21964f6769 chore: add explicit type annoation (#19352)
* chore: add explicit type annoation

* chore: update

* chore: update
2024-12-23 13:15:20 +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
wzc520pyfm
718ffcfb85 chore(components): improve type for popper effect (#17860)
* chore(components): improve type for popper effect

Abort #17758 #17751 #17040 #17030

* chore: use `NonNullable<unknown>` instead of `{}`

* chore(components): extract a common type for popper effect

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-12-05 09:44:47 +08:00
qiang
990aa4b768 feat(components): [select] add tabindex attribute (#19034) 2024-11-28 13:54:05 +08:00
btea
ad2f8507a0 fix(components): [select] the disabled state should render the input tag (#18443)
* fix(components): [select] the disabled state should render the input tag

* fix: sync select
2024-11-22 22:40:47 +08:00
Manshu Tusker
0cc526e1c1 fix(components): [select-v2] resolve overlap of tags and placeholder (#18388)
* fix(components): [select-v2] resolve overlap of tags and placeholder

closed #18382

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

ok

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

---------

Co-authored-by: btea <2356281422@qq.com>
2024-11-14 21:24:48 +08:00
qiang
343cacf5cc fix(components): numpadEnter does not work like the Enter (#18855) 2024-11-14 21:14:51 +08:00
蓝桥春雪
62bade4fda fix(components): [select & select-v2] status-icon is invalid (#18101)
fix(components): [select & select-v2] The check result icon is still displayed when status-icon is false

Co-authored-by: 蓝桥春雪 <yj.wang3@sinitek.com>
2024-11-12 20:17:29 +08:00
DDDDD12138
4f04bcd46f feat(components): [select] add offset and show-arrow prop (#18837)
feat: add show-arrow prop to control dropdown arrow visibility
2024-11-11 17:10:48 +08:00
btea
906141b4d2 improvement: [select] optimize the effect of keyboard switching options (#18773)
* improvement: [select] optimize the effect of keyboard switching options

* fix: apply to select-v2
2024-11-07 21:57:38 +08:00
btea
6b5c12b275 feat(components): [select-v2] add append-to prop (#18798)
* feat(components): [select-v2] add `append-to` prop

* docs: update
2024-11-06 08:59:28 +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
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
sea
16bb0b7df1 fix(components): [select] use blur in the tooltip slot has no effect (#18335)
* fix(components): [select] use `blur` in the tooltip slot has no effect

* fix(components): [select-v2] use `blur` in the slot has no effect

* feat: delete useless code
2024-10-09 22:48:28 +08:00
dopamine
cd517d6743 chore(components): [select-v2] remove ts-nocheck comments in select-v2 (#16746)
* chore: remove ts-nocheck comments in select-v2

* take the review comments

* improve emits type

* the keys of emits use camelCase instead of kebab-case

* apply suggestions from code review

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

* reduce duplicate ESLint comments

* use more succinct syntax to define props

* revert emits to kebab-case

* fix: type checking failed

* chore: illustrate why return early in validateIcon

* fix: signature with duplicate parameter names

Co-authored-by: qiang <qw13131wang@gmail.com>

---------

Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: qiang <qw13131wang@gmail.com>
2024-09-23 13:45:35 +08:00
btea
c4f7e27bdd fix(components): [select-v2] label display error when re-rendering (#18128)
* fix(components): [select-v2] label display error when re-rendering

* fix: update
2024-09-10 15:53:11 +08:00