72 Commits

Author SHA1 Message Date
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
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
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
58a5852d2d refactor(components): improve component boolean type (#21260) 2025-07-06 14:56:17 +02:00
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
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 db0116a288299c507e3cfc4d7a22e2207265d920.

* Revert "chore: fix"

This reverts commit 69c82a90c01525e38180be4c21e8ef5602512318.

* chore: fix

* style: `pnpm lint:fix`

* fix: lint

* chore: `pnpm format`
2025-06-16 15:37:12 +08:00
78a208eda2 feat(components): [autocomplete] enable append-to prop (#20472) 2025-04-20 16:42:39 +08:00
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
7be4a3765e chore: emits smaller declaration files (#20109)
* Revert "fix(types): packing unexpected types (#19419)"

This reverts commit 13506ffb814d2b1300bf57c06648b6b27281c7c5.

* 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
b456125431 fix(components): [tooltip] SSR hydration error caused by random ID (#10541) 2022-11-21 14:10:52 +08:00
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
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
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
97ad78924b fix(components): [autocomplete] error message (#8591) 2022-07-03 01:06:36 +08:00
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
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
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
5daf53e8e1 refactor(components)!: remove deprecated warning (#7528) 2022-05-06 13:19:01 +08:00
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
de0ee53cf0 test(components): switch all components to vitest (#7205)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-04-19 12:46:57 +08:00
c05bc511a8 fix(components): [autocomplete] can not fetch suggestions after clear (#6847)
* fix(components): [autocomplete] can not fetch suggestions after clear

* style: define valuePresented constant
2022-03-29 15:48:50 +08:00
184facdb4c chore: add eslint rule sort imports (#6823) 2022-03-25 15:35:56 +08:00
6eead7cc2f fix(components): [autocomplete] fix can not fetch suggestions when after clear (#6820) 2022-03-25 15:30:24 +08:00
bdbb70b49c feat(components): [autocomplete] fetchSuggestions supports Promise (#6695) 2022-03-21 15:51:39 +08:00
6eb8cfa1ef chore(ssr): moveout ssr testing files (#6655)
- Move testing files to ssr-testing/
2022-03-15 20:18:06 +08:00
2d3d09b545 test(ssr): add ssr testing cases (#6647) 2022-03-15 19:21:54 +08:00