Commit Graph

63 Commits

Author SHA1 Message Date
Simon He
96a081b755
chore(components): [dropdown] format (#10465)
refactor(components): [dropdown]

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-06 22:14:45 +08:00
wzc520pyfm
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
qiang
a5dc290f48
fix(components): [dropdown] SSR hydration error caused by random ID (#15532) 2024-01-16 22:31:55 +08:00
qiang
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
Wu Rui
0f4aeaf3c0
fix(components): [dropdown] improve types (#12514) 2023-04-20 19:59:38 +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
Xc
b15a57a895
fix(components): [dropdown] unmounted error (#11649) 2023-02-19 05:13:40 +08:00
Giwayume
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
Jeremy
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
qiang
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
Danny Hebert
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
LIUCHAO
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
opengraphica
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
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
opengraphica
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
JeremyWuuuuu
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
Delyan Haralanov
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
gjfei
0e274ad7d4
feat(components): [dropdown] add buttonProps (#6183) (#6185) 2022-03-23 19:26:46 +08:00
Delyan Haralanov
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
blackie
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
msidolphin
9677fe6bc7
fix(components): [el-dropdown-menu] adjust html tag (#6231) 2022-02-24 11:11:44 +08:00
iwusong
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
msidolphin
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
mawi1512
129a2d72e5
fix(components): [el-dropdown] use custom attributes for dropdown items (#5779)
* fix(components): [el-dropdown] use custom attributes for dropdown items

* fix: forward props and attrs
2022-02-09 15:07:20 +08:00
Alan Wang
db41ec5d5e
feat(components): [el-dropdown]add handleOpen and handleClose methods (#5444)
* feat(components): [el-dropdown]add handleOpen and handleClose methods

* feat(components): [el-dropdown]add handleOpen and handleClose methods

* feat(components): [el-dropdown]add handleOpen and handleClose methods
2022-01-19 15:04:44 +08:00
kooriookami
f632072186
feat: dropdown add popper-options prop (#5396) 2022-01-16 13:56:16 +08:00
Alan Wang
708542eca6
fix(components): [el-dropdown-menu] size (#5343) 2022-01-12 22:59:54 +08:00
kooriookami
57e0d1d1bb
fix(style): [el-dropdown] fix doc style (#5266)
* fix: update style

* style: update

* feat: update test
2022-01-11 10:29:25 +08:00
jeremywu
df57ddfe39
fix(components): [el-dropdown] cannot be closed by clicking outside (#5287)
- Fix the issue that dropdown with trigger 'click' cannot be closed when clicking outside content
- Fix the same issue for popover popconfirm
- Remove useless code from `el-tooltip-content` which can be much simpler
- Use `onClick` to replace `onMousedown` because `onMousedown` is triggered prior than `onClick`
- Adjust test cases against these changes above
2022-01-11 10:24:48 +08:00
kooriookami
43ad4aa072
fix: dropdowm item can not click (#5257) 2022-01-10 09:48:59 +08:00
kooriookami
c2ee36a7fc
fix: tooltip with compoents add persistent (#5250) 2022-01-09 17:38:51 +08:00
jeremywu
dd19cae2bc
refactor(components): popper composables (#5035)
* refactor(components): popper composables

- Refactor popper composables

* updates

* updates for tooltip

* Updates for popper. TODO: fix controlled tooltip animation

* Fix controlled mode popper animation issue

* Add new feature for customizing tooltip theme

* Fix popover and popconfirm error

* - Add Collection component for wrapping a collection of component
- Add FocusTrap component for trap focus for popups
- Add RovingFocus component for roving focus component type
- Adjust dropdown component based on these newly added components
- Add popper-trigger component for placing the trigger
- TODO: Finish current dropdown component, and all component's tests plus documents

* Refactor popper

* Complete organizing popper

* Almost finish dropdown

* Update popper tests

* update only-child test

* Finish focus trap component test

* Finish tooltip content test

* Finish tooltip trigger tests

* Finish tooltip tests

* finish tests for Collection and RovingFocusGroup

* Fix test cases for timeselect & select & popover

* Fix popover, popconfirm, menu bug and test cases

* Fix select-v2 test error caused by updating popper

* Fix date-picker test issue for updating popper

* fix test cases

* Fix eslint

* Rebase dev & fix tests

* Remove unused code
2022-01-04 09:15:15 +08:00
João Gonçalves
0a43be5939
feat(components): [el-dropdown] add new "popper-class" prop (#4909)
Co-authored-by: João Gonçalves <joaogoncalves@pixelmatters.com>
2021-12-21 09:44:37 +08:00
三咲智子
db1d9401fe
feat(components): [el-config-provider] add size (#4730) 2021-12-10 17:21:01 +08:00
三咲智子
5087026948
refactor: change icon package name (#4625) 2021-12-04 11:20:06 +08:00