Commit Graph

199 Commits

Author SHA1 Message Date
一只前端汪
7c16480bcd refactor(style): Update Eslint to V9 and Prettier to V3 (#21949)
* refactor(style): Update Eslint to V9 and Prettier to V3

* fix: vscode color

* fix: vscode color

* chore: remove Useless dependence and old config file

* chore: format

* Merge branch 'dev' into eslintV9

* fix: fix

* fix: ssr test

* fix: ssr test

* fix: use defineConfig

* fix: prettier format and ignore docs dist

* fix: index.mjs => index.js

* fix: Vscode color

* fix: prettier ignore global.d.ts

* fix: format

---------

Co-authored-by: 2586740555 <15972343+CYJ090915@user.noreply.gitee.com>
2025-09-29 14:14:30 +08:00
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
Zhong
a4cdb69638 fix(components): replace KeyboardEvent.code with getEventCode (#22268)
fix(components): replace `event.code` with `getEventCode`
2025-09-21 20:57:25 +08:00
qiang
9043e16d94 fix: the KeyboardEvent.code is always empty string on Android (#22228)
closed #20330
2025-09-21 01:23:38 +02:00
sea
cd2285f5bb chore: add consistent-type-imports eslint rules to .ts file (#22195)
* chore: add import type rules to .ts

* chore: update

* chore: update
2025-09-17 10:11:26 +08:00
DDDDD12138
8a91f204fd feat(components): [select/v2] avoid unnecessary model updates when value unchanged (#20123)
* feat: avoid unnecessary model updates when value unchanged

* chore: update cSpell words

* fix: correct test case

* feat: support select-v2

* Update .vscode/settings.json

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>

---------

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>
2025-09-14 10:37:45 +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
micaiguai
2ccb268e82 fix(components): [select & select-v2] avoid line break when input is empty (#21844)
* fix(components): select

Give some space to the input field

* fix(components): [select]

fix(components): [select] Add the judgement of filterable

* fix(components): [select-v2] Give some space to the input field

Give some space to the input field

* fix(components): [select-v2 & select & input] Create constants/form.ts

Create a form.ts file to store the MINIMUM_INPUT_WIDTH constant
2025-08-22 16:10:21 +08: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
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