Commit Graph

79 Commits

Author SHA1 Message Date
snowbitx
459288c5a9 feat(components): [autocomplete] support home and end key events (#22324)
* feat(components): [autocomplete] support home and end key events

* refactor: add pageUp+pageDown and fix scroll error

* chore: refer to #22228

* chore: change switch case

* refactor: change steps 10

* Update packages/components/autocomplete/__tests__/autocomplete.test.tsx

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

* test: add test case

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2025-10-12 16:35:33 +08:00
Zhong
b197bbf82d feat(components): [autocomplete] add loopNavigation attributes (#22281)
* fix(components): [autocomplete] allow cyclic keyboard navigation

* fix: update

* docs: update

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

---------

Co-authored-by: btea <2356281422@qq.com>
2025-09-23 17:27:24 +08:00
sea
6d8045e625 improvement(components): trigger enter open tooltip (#19830)
* feat(components): [autocomplete] trigger-on-enter attributes

* feat: update test

* feat: update

* feat: update

* test: update

* chore: fix

Co-authored-by: Dsaquel <291874700n@gmail.com>

* chore: deplace preventDefault for date pickers

---------

Co-authored-by: Dsaquel <291874700n@gmail.com>
2025-09-21 11:04:46 +02:00
Rainbow
2adc067bee feat(components): [autocomplete/time-select/color-picker] add popper-style (#22263)
feat(components): add popper-style
2025-09-21 10:03:35 +08:00
Zhong
0c09980630 fix(components): [autocomplete] avoid option selection by enter in IME (#21245) 2025-09-16 12:12:04 +08:00
Zhong
61ece6bd66 refactor(components): [autocomplete] remove any type (#22127)
* refactor(components): [autocomplete] remove `any` type

* fix: update

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

* fix: update

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

---------

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>
2025-09-12 09:25:31 +00:00
betavs
d5e62eb7b9 fix(components): [autocomplete] type declaration error (#15261) 2025-09-04 20:28:44 +08:00
catanswer
7b25a87d6d feat(components): [autocomplete] add header and footer slot (#21594)
* feat(components): [autocomplete] add header and footer slot

* docs(components): add a bump version for new slots

* test(components): [autocomplete] add header/footer slots test case

* docs(components): [autocomplete] add header and footer slots example

---------

Co-authored-by: yinshenghao <shenghao.yin@eslink.com>
2025-08-05 22:34:39 +02:00
Noblet Ouways
24cfc3685d style(components): remove unused icon class & autocomplete tweaks (#21565)
* style(components): remove unused icon class & autocomplete tweaks

* fix: review

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

---------

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>
2025-08-01 17:16:15 +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
Zhong
58a5852d2d refactor(components): improve component boolean type (#21260) 2025-07-06 14:56:17 +02:00
yuhengshen
a579224896 fix(components): [autocomplete] add placeholder prop type definition (#21206)
* fix(components): [autocomplete] add placeholder prop type definition

* feat(components): [autocomplete] add inputProps and merge properties

* docs: [input] description typo

* feat: explicitly using the `model` & `disabled`

* fix(components): [time-picker] single input name type

* docs: add input attrs link

---------

Co-authored-by: warmthsea <2586244885@qq.com>
2025-07-03 00:15:53 +02: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
betavs
78a208eda2 feat(components): [autocomplete] enable append-to prop (#20472) 2025-04-20 16:42:39 +08:00
momei
36efad5eaf fix(components): [autocomplete] modelValue is null compatible (#20288)
Co-authored-by: momei.lu <momei.lu@yunlsp.com>
2025-03-27 18:19:03 +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
DDDDD12138
acbb0c0ca1 fix(components): [autocomplete] prevent closing if focus is inside popper content (#19522)
fix: [autocomplete] prevent closing if focus is inside popper content
2025-01-21 21:32:24 +08:00
btea
13506ffb81 fix(types): packing unexpected types (#19419)
* fix(types): packing unexpected types

* fix: update

* fix: autocomplete

* fix: update mention & transfer
2024-12-27 17:15:42 +08:00
Dormadekhin Denis
6b01c4531d feat(components): [autocomplete] add getData to exposes (#18237)
* feat(components): [autocomplete] add getData to exposes

* docs(components): [autocomplete] add getData to exposes

* Update docs/en-US/component/autocomplete.md

---------

Co-authored-by: Дормадехин Денис Игоревич <d.dormadekhin@s7.ru>
Co-authored-by: btea <2356281422@qq.com>
2024-09-20 00:23:36 +00: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
myron
0ef4b492b8 fix(components): fixed add listeners not remove on beforeunmount (#17344)
* fix(components): fixed add listeners not remove on beforeunmount

* docs(ci):  close vue hoistStatic mode compile

* Update packages/components/popper/src/trigger.vue

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

* Update packages/components/time-picker/src/common/picker.vue

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

* Update packages/components/tooltip/src/content.vue

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

* Update packages/components/tooltip/src/content.vue

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

* Update packages/components/popper/src/trigger.vue

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

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

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

* Update packages/components/popper/src/trigger.vue

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

* ci: update full bundle vue compiler config, fixed hoistStatic error

* style: eslint fix

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-09 09:40:20 +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
dopamine
79938178dd build: use vue-tsc to generate dts (#16111)
* build: use vue-tsc to generate dts

* reduce inline type declaration

* fix: type checking failed

* apply suggestions from code review

* address PR comments
2024-08-07 12:01:46 +08:00
kooriookami
bd1613d599 feat(hooks): add use-aria hooks (#16598)
* feat(hooks): add use-aria hooks

* feat(components): update

* feat(hooks): update

* feat(hooks): update
2024-04-23 13:56:44 +08:00
btea
d0eb6c3d1a feat: support node 18+ & update tsx and vitest (#16190)
* feat: support node 18+ & update tsx and vitest

* chore: update

* chore: remove

* fix: update dep

* test: fix autocomplete

* test: update

* test: update

* chore: update

* chore: update

* chore: update
2024-04-11 17:48:34 +08:00
qiang
9a7ea5c397 fix(components): [autocomplete] SSR hydration error caused by random ID (#15523) 2024-01-16 22:31:28 +08:00
知晓同丶
9e34ea5e54 feat(components): [autocomplete] add loading slot (#15206)
* feat(components): [autocomplete] add `loading` slot

* chore: Update autocomplete.md

* docs(components): [autocomplete] modify loading slot description

* Update docs/en-US/component/autocomplete.md

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

* Update docs/en-US/component/autocomplete.md

---------

Co-authored-by: zhixiaotong <zhixiaotong.me@qq.com>
Co-authored-by: btea <2356281422@qq.com>
2023-12-23 16:48:08 +08:00
btea
e69f322b36 chore(components): [autocomplete] fix the comment description error (#13979) 2023-08-18 21:26:33 +08:00
井柏然
3245b4e79f fix(components): [autocomplete] tooltip offset (#12216)
* fix(components): [autocomplete] tooltip offset

* fix(components): [autocomplete] remove nextTick
2023-08-10 22:15:06 +08:00
init-qy
4e7f9b908b fix(components): [autocomplete] improve a11y (#12647)
* fix(components): [autocomplete] improve a11y

* fix(components): add a11y tests

* fix: lint
2023-07-22 08:52:57 +08:00
Jeremy
c2710d97d0 fix(components): [global-config] (#11847)
* fix(components): [loading]

* Remove inappropriate way of using injection in directives.

* chore: rewrite implementation

* fix(components): [global-config]

* Fix global config injection in global components.

* chore: fix format

* chore: remove .only modifier

* chore: fix failing tests
2023-03-06 23:20:21 +08:00
qiang
5633dfe54b fix(components): [autocomplete] the blur event is not triggered (#10091)
* fix(components): [autocomplete] the blur event is not triggered

closed #9183

* test(components): [autocomplete] add event:focus

* test(components): [autocomplete] add event:focus

* refactor(components): [autocomplete] optimize code
2023-03-01 14:48:39 +08:00
Jeremy
11925c8231 refactor(tokens) - [form] (#11743)
* refactor(tokens): [form] - remove tokens/form

* Move content in tokens/form to components/form.
* Replace token imports in components/form.

* chore: remove form/tokens and replace imports

* refactor(components): [form/form-item]

* Move `useForm` related hooks to components/form
* Replace references to reduce circular dependencies.
2023-02-27 13:19:20 +08:00
richex-cn
e46fd703a3 fix(components): [autocomplete] clearable and disabled props not working (#11714)
* fix(components): [autocomplete] clearable and disabled props not working

* fix(components): [autocomplete] add name props to input (#11714)
2023-02-24 15:14:04 +08:00
Xc
a2de1b9c1f docs(components): [autocomplete] (#11026)
* docs(components): [autocomplete]
* Update form docs with new syntax.

* docs(components): [autocomplete]

* docs(components): [autocomplete]
2023-02-11 23:39:23 +08:00
qiang
b456125431 fix(components): [tooltip] SSR hydration error caused by random ID (#10541) 2022-11-21 14:10:52 +08:00
qiang
01ce124940 fix(components): [autocomplete] optimize the select event type (#10105)
closed #8787
2022-10-18 18:46:52 +08:00
三咲智子
861a7953b4 refactor(components): switch to vue macros (#9306) 2022-09-16 22:57:41 +08:00
Stephen.K
59c279e8a1 fix: issue #8278 (#8331)
* fix: issue #8278

* fix(components): issue #8728

Co-authored-by: RealityBoy <1923740402@qq.com>
2022-08-31 07:30:09 +00:00
kooriookami
ae96aedf3c feat(components): [autocomplete] fit input width (#8596)
* feat(components): [autocomplete] Add fitInputWidth prop

* feat(components): [autocomplete]

* feat: add docs

* feat(components): [autocomplete]
2022-07-03 17:54:40 +08:00
qiang
97ad78924b fix(components): [autocomplete] error message (#8591) 2022-07-03 01:06:36 +08:00
qiang
598f3ab5cd feat(components): [autocomplete] expose blur event (#8364)
* feat(components): [autocomplete] expose blur event

* docs(components): [autocomplete] update
2022-06-27 13:39:25 +09:00
qiang
bc230e5c23 fix(components): [autocomplete] the popup still appears after select (#8350) 2022-06-19 23:32:20 +08:00
三咲智子
3adb0f2077 refactor(component): improve code (#7959) 2022-05-29 09:42:31 +08:00
opengraphica
e1b88263e3 feat(components): [popper] focus trap and a11y (#7736)
* feat(components): [popper] fix focus traps

* feat(components): [popper] add focus trap tests

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-05-20 18:13:27 +08:00
JeremyWuuuuu
5daf53e8e1 refactor(components)!: remove deprecated warning (#7528) 2022-05-06 13:19:01 +08:00
opengraphica
7173e402b7 feat(components): [form-item] auto attach labels to inputs (#7450)
* feat(components): [form-item] auto attach labels to inputs

* feat(components): [form-item] auto-attach up through select

* feat(components): [form-item] auto id complete for all inputs

* feat(components): [form-item] fix lint, remove unused usePopper hook

* feat(components): [form-item] PR comments
2022-05-05 22:04:32 +08:00
Xc
28e87550e9 fix(components): [autocomplete] fetch-suggestions support AsyncFunction (#7315)
* fix: promise fetch bug

* fix: fetchSuggestions is AsyncFunction

* refactor: improve promise

* fix: del unuse

Co-authored-by: xiaochenchen <xiaochen.chen@igg.com>
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-04-27 02:14:45 +08:00
三咲智子
c75b20fa64 refactor(components): [autocomplete] improve typings (#7381)
* refactor(components): [autocomplete] improve typings

* fix: rename
2022-04-26 12:54:46 +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