75 Commits

Author SHA1 Message Date
50f29f3e3e fix(components): [dropdown] prevent unexpected scrolling on hovering (#20518)
prevent unexpected scrolling when the root element

sets scroll-padding

closed #20455
2025-07-23 13:14:57 +00: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
8f380ce884 refactor(components): standardize injection keys (#20616) 2025-06-06 14:45:39 +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
sea
244e811b44 chore(eslint-config): add line-between-blocks rules (#20051) 2025-03-08 08:55:02 +08:00
2ee14a3256 fix(components): [dropdown] button-props as a Partial type (#20035)
fix(components): [dropdown] `button-props` as a partial type
2025-03-06 19:11:01 +08:00
sea
6a22c579e6 chore: [dropdown] remove @ts-nocheck & fix type error (#19912)
* chore: [dropdown] remove @ts-nocheck & fix type error

* docs: update
2025-02-22 13:42:06 +08:00
b408586a22 feat(components): [dropdown] add persistent prop (#19797)
* feat(components): add persistent attribute

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

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

* fix: docs

---------

Co-authored-by: btea <2356281422@qq.com>
2025-02-14 21:03:42 +08:00
bd4800bf38 feat(components): [dropdown] add triggerKeys attribute (#19124)
* feat(components): [dropdown] add triggerKeys attribute

Add a triggerKeys property to the dropdown to allow users to customize the triggerKeys, thereby
addressing interaction issues when el-input is used as the trigger element.

closed #19102

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

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

* fix: rename triggerKeys to dropdownTriggerKeys

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

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

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

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

* fix: remove redundant logic

---------

Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: qiang <qw13131wang@gmail.com>
2024-12-08 17:03:41 +08:00
343cacf5cc fix(components): numpadEnter does not work like the Enter (#18855) 2024-11-14 21:14:51 +08:00
88bf23e4b1 fix(components): [dropdown-item] remove redundant attributes (#18340) 2024-10-13 08:44:44 +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
96a081b755 chore(components): [dropdown] format (#10465)
refactor(components): [dropdown]

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-06 22:14:45 +08:00
5fc967c63e docs(components): [dropdown] use new display tag (#15378)
* docs(components): [dropdown] use new display tag

* docs(components): [dropdown] format doc

* docs(components): [dropdown] add delete tag for button type
2024-07-23 10:42:19 +08:00
a5dc290f48 fix(components): [dropdown] SSR hydration error caused by random ID (#15532) 2024-01-16 22:31:55 +08:00
9cee96751c fix(components): [dropdown] adjust onItemLeave trigger (#13212)
fix(components): trigger focus change when the trigger includes hover

closed #13131
2023-08-22 21:38:05 +08:00
0f4aeaf3c0 fix(components): [dropdown] improve types (#12514) 2023-04-20 19:59:38 +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
Xc
b15a57a895 fix(components): [dropdown] unmounted error (#11649) 2023-02-19 05:13:40 +08:00
3d43d51503 fix(components): [dropdown] fix focus after close (#11586)
* fix(components): [dropdown] fix focus after close

closed #9837

* fix(components): [dropdown] fix linting

* fix(components): remove events on unmount

---------

Co-authored-by: OpenGraphica <opengraphica@gmail.com>
2023-02-17 12:35:45 +08:00
4d569aa297 fix(components): [dropdown] (#11431)
* Add `.self` modifier for dropdown-menu container.
* Add `.self` modifier for dropdown-item container.
* Fix form issue contained by dropdown-menu.

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2023-02-07 21:55:59 +08:00
b456125431 fix(components): [tooltip] SSR hydration error caused by random ID (#10541) 2022-11-21 14:10:52 +08:00
10737d2495 fix(components): [dropdown-item] prevent click if disabled (#10532) 2022-11-08 23:37:12 +08:00
edd8b3cebe feat(components): [dropdown] add props for teleported API (#10012) 2022-10-27 15:19:49 +08:00
Xc
6a9fe5dadb fix(components): [dropdown] button group style missing (#10029) 2022-10-09 16:06:18 +08:00
7bb6b6d99f refactor(utils): drop off/on/once, use EventListener instead (#8960)
* refactor(utils): drop off/on/once, use EventListener instead

* refactor(utils): use useEventListener

* refactor(utils): use useEventListener

* style(components): [roving-focus-group] useEventListener  pass ref
2022-07-26 23:01:07 +08:00
zz
b04c263519 fix(components): [dropdown] fix style (#9034) 2022-07-26 19:32:38 +08:00
RJW
7f3000aa26 fix(components): [dropdown] fix A11y when tooltip show (#8655) 2022-07-07 23:09:29 +08:00
RJW
2486d92d25 fix(components): [dropdown] fix visible-change event delay trigger (#8602) 2022-07-04 11:12:13 +08:00
7097940f4a refactor: add ts-nocheck and check all files (#8401) 2022-06-22 08:04:42 +08:00
af732b124b feat(components): [dropdown] a11y (#7946)
* feat(components): [dropdown] always use button trigger

* feat(components): [dropdown] a11y unit tests

* feat(components): [dropdown] pr comments
2022-05-30 11:51:25 +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
9c51dab123 feat(components): [dialog] a11y and focus trap on dialog components (#7550)
* feat(components): [dialog] a11y and focus trap on dialog components

* feat(components): [dialog] remove default browser focus style

* feat(components): [dialog] clean up async and comment
2022-05-10 17:58:18 +08:00
9a88fb4e46 fix(components): [popper] appendToBody API deprecation (#7534)
* fix(components): [popper] appendToBody API deprecation

- Remove `appendToBody` for components still using it.

* Remove duplicated attribute
2022-05-06 18:41:50 +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
184facdb4c chore: add eslint rule sort imports (#6823) 2022-03-25 15:35:56 +08:00
0e274ad7d4 feat(components): [dropdown] add buttonProps (#6183) (#6185) 2022-03-23 19:26:46 +08:00
b61dc63375 fix(components): [dropdown] ignore show/hide timeouts for click trigger (#6720) 2022-03-21 21:52:58 +08:00
5d85fba20c chore: self closing vue tag (#6603) 2022-03-13 16:16:11 -04:00
b8c38a9fe5 chore: enhance eslint rules (#6476)
* chore: enhance eslint rules

* chore: enhance eslint rules
2022-03-08 14:03:32 +08:00
a178131193 fix(components): [dropdown] add disabled support (#6375)
* fix(components): [dropdown] add disabled support

* fix(components): [dropdown] resolve review

* fix(components): [dropdown] resolve review
2022-03-06 18:19:08 +08:00
9677fe6bc7 fix(components): [el-dropdown-menu] adjust html tag (#6231) 2022-02-24 11:11:44 +08:00
46dfd1588e fix(components): [el-dropdown-item] (#6147)
the method of click event is executed twice in some cases (#5838)
2022-02-21 10:14:05 +08:00
7569ccaf90 fix: namespace typo (#5972)
* chore: typo

* chore: typo

* chore: typo
2022-02-11 18:07:14 +08:00
dafc701af8 fix: replenish popover missing types (#5958)
* fix: replenish popover missing types

* fix: update
2022-02-11 17:56:21 +08:00
b712dd8466 refactor: fix buildProps (#5936) 2022-02-11 11:40:50 +08:00
6503e55277 refactor(utils): migrate utils (#5949)
* refactor(utils-v2): migrate utils

* refactor(utils-v2): migrate utils

* refactor(utils-v2): migrate utils

* refactor(utils): remove

* refactor(utils): rename

* refactor(utils): move EVENT_CODE to constants

* refactor: remove generic
2022-02-11 11:03:15 +08:00
bqy
553f5ffb96 refactor(components): [dropdown,dropdown-item,dropdown-menu] use useNamespace (#5719) 2022-02-11 10:51:38 +08:00
c1e5d724d8 refactor(utils-v2): refactor utils (#5699) 2022-02-09 16:59:08 +08:00