Commit Graph

83 Commits

Author SHA1 Message Date
Huangzl
877f5d4d6a fix(components): [menu] Fixing Menu component's flickering issue with surplus sub-items on insufficient page height. (#15953)
fix(components): [menu] fix #15308
2024-02-29 15:04:46 +08:00
kooriookami
d8a9f902b2 chore(components): clear deprecated API (#15922)
* chore(components): clear deprecated API

* docs: update
2024-02-28 12:42:17 +08:00
知晓同丶
2d151119cd fix(components): [menu] Add menu-item margin when calculating calcSliceIndex (#15699)
* fix(components): [menu] Add menu-item margin when calculating `calcSliceIndex`(#15698)

* refactor(components): [menu] simplify code
2024-01-31 15:32:31 +08:00
xiaoming
9475922142 perf(components): [menu] popper close any levels in menu-trigger:hover (#15383) 2024-01-06 20:16:03 +08:00
xiaoming
c8a0dda159 fix(components): [menu] set teleported, parent menu popper not closed (#15342)
* fix(components): [menu] set `teleported`, parent menu poper not closed

* chore: update
2024-01-05 21:47:09 +08:00
知晓同丶
b79defc452 feat(components): [menu] add popper-classsubMenuTimeout props (#15193)
* feat(components): [menu] add `popper-class`、`subMenuTimeout` props

closed #15149

* refactor(components): [menu] simplify timeout props naming

* docs(components): [menu] add description of timeout

* refactor(components): [menu] remove useless codes

* Update menu.md

* revert: Update sub-menu.ts

---------

Co-authored-by: zhixiaotong <zhixiaotong.me@qq.com>
2023-12-23 13:10:54 +08:00
cuongle-hdwebsoft
7f687ae598 feat(components): [el-menu] allow user to hide menu when clicking outside (#14742)
* fix(components): allow user to hide menu when clicking outside

when user sets `menu-trigger` to `click` and then clicking outside, it should be close menu

closed #14738

* revert settings.json config

* fix: debounce hide menu when clicking out side

* fix: only trigger click outside when menu is open

* fix: hide parent menu

* fix: only trigger close menu when its opened

* refactor: remove redundant code

* refactor: remove redundant code

* fix(docs): `collapse-on-click-outside` prop

* fix(docs): `collapse-on-click-outside` prop

* fix: move `clickOutSide` to `menu.ts`

* fix: submenu does not emit `close` when clicking outside

* fix: submenu does not emit `close` when clicking outside

* fix: ts type

* fix: ts type

* fix: only close when passing `props.collapseOnClickOutside` to `true`

* refactor: create `directives` variable

* improvement: allow `recusiveMouseInSubMenu` to receive array

* refactor: remove redundant code

* fix: rename `recusiveMouseInSubMenu` to  `recursiveMouseInSubMenu`

* feat: add `hide-timeout` prop

* fix: revert code

* fix: code owner

* fix: coder owner

* fix: menu closed when clicking on submenu

* refactor: remove redundant code

* fix: get correct index path

* fix: build

* refactor: update docs and remove `unref`

* fix: change `collapseOnClickOutside` to `closeOnClickOutside`

* fix: remove `hideTimeout` prop
2023-12-15 13:34:22 +08:00
知晓同丶
750088624e feat(components): [menu] add popperOffset and ellipsisIcon props(#14923) (#15051)
* feat(components): [menu] add popperOffset and ellipsisIcon props(#14923)

* Update docs/examples/menu/ellipsis.vue

Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>

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

Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>

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

Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>

* docs(components): [menu] upgrade props

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

Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>

---------

Co-authored-by: zhixiaotong <zhixiaotong.me@qq.com>
Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>
2023-12-06 10:34:47 +08:00
qiang
7f375f09af fix(components): [menu] remove excess inline styles (#13693)
* fix(components): [menu] remove excess inline styles

* fix(theme-chalk): [menu] fix styles
2023-10-13 10:37:03 +08:00
Hefty
0f2699008d fix(components): [menu] export MenuInstance (#14284)
* fix(components): [menu] export MenuInstance

closed #14251

* chore: export other component instance

* refactor: extract instace type to instance file
2023-09-16 09:25:00 +08:00
qiang
9900f2aaeb refactor(components): [menu] adjust default value of fallbackPlacements (#13696)
closed #13682
2023-07-22 19:44:23 +08:00
Xc
213fdfb51e fix(components): [menu] calc slice index remove comment node (#12472) 2023-05-09 22:10:29 +08:00
WeiJian
20486bf545 fix(components): [menu] change declartion of ulStyle to setup function (#12319)
Co-authored-by: guoweijian <wudizhanche1000@gmail.com>
2023-04-15 09:48:31 +08:00
Hefty
fc3be9dbdb fix(components): [menu] Avoid call router when index is not provided (#12206)
closed #9945
2023-04-06 18:01:45 +08:00
Xc
2726dc5c98 fix(components): adjust menu close api (#11682)
*When calling externally, you should only need to pass the index, and you don't need to execute emit.
2023-02-25 15:17:38 +08:00
qiang
5c95932769 refactor(components): [menu] add deprecated mark to popperAppendToBody (#11509) 2023-02-12 14:57:21 +08:00
RealityBoy
0fb2dc950c feat(components): [menu] add popper-effect menu attribute (#10867) 2022-12-02 13:23:59 +08:00
zz
6dc77e3e93 Revert "fix(components): [menu] menus that are not in the expanded path do not open" (#10769)
Revert "fix(components): [menu] menus that are not in the expanded path do not open (#10480)"

This reverts commit 781b891c25.
2022-11-25 21:47:05 +08:00
Qiang
781b891c25 fix(components): [menu] menus that are not in the expanded path do not open (#10480)
* fix(components): fix #10431

fix #10431 and unify the hooks into the hooks directory

closed #10431

* Revert "fix(components): fix #10431"

This reverts commit 76524b124c.

* fix(components): revert 76524b1

* fix: a bug in unique-opend

* chore: optimize code and test cases
2022-11-20 14:34:43 +08:00
三咲智子
ab19e8f2e6 perf(components): [tabs] improve order performance 2022-09-16 22:51:44 +08:00
LIUCHAO
1c94256c19 refactor(utils): refactor flattedChildren (#9748) 2022-09-14 11:23:46 +08:00
RealityBoy
068df682de fix(components): [el-menu] compatible menu.value is null (#9566) 2022-08-31 19:33:52 +08:00
zz
3be8b536b8 fix(utils): fix iconPropType (#9506) 2022-08-28 19:13:58 +08:00
zz
f5fa7e741f refactor(utils): refactor iconPropType (#9502) 2022-08-28 13:20:07 +08:00
RealityBoy
b121012a70 feat(components): [menu] add expand-close-iconexpand-open-iconcollapse-close-iconcollapse-open-icon props (#9444)
* feat(components): [menu] add some Icon prop

* chore: types update

* Update sub-menu.ts
2022-08-26 11:25:22 +08:00
RealityBoy
88ba661f69 fix(components): [el-menu] childNodes is null (#9408) 2022-08-23 18:03:04 +08:00
zz
b7fe5df6f9 fix(components): [menu] resize event infinite invoke (#9342)
* fix(components): [menu] resize event infinite invoke

* chore: update

* Update menu.ts

* Update menu.ts

* chore: update

* chore: update

* chore: update test case

* chore: optimize

* Update menu.ts

Co-authored-by: RealityBoy <1923740402@qq.com>
2022-08-19 18:33:50 +08:00
zz
50da145b2b fix(components): [menu] expand active menu item (#9069)
* fix(components): [menu] expand active menu item

* chore: update
2022-07-28 12:57:58 +08:00
RealityBoy
a30b40b1f6 fix: [el-menu] horizontal mode menu drag causes browser crash (#9027) 2022-07-26 16:40:39 +08:00
zz
9f5be85a48 fix(components): [menu] resize when dynamic data in horizontal mode (#8616) 2022-07-21 17:03:58 +08:00
ParkerFiend
609ee571b4 fix(components): [menu] fix infinite flicker after choosing subMenu (#8533)
* fix(components): [menu] fix infinite flicker after choosing subMenu

closed #8525, #8487
2022-07-01 22:01:35 +08:00
三咲智子
7097940f4a refactor: add ts-nocheck and check all files (#8401) 2022-06-22 08:04:42 +08:00
Carter Li
325f84d44f feat(components): menu add more controllable styles (#7549)
1. add some css variables
2. support specifying level padding
3. small code refactor
4. deprecate `background-color` etc
2022-05-12 22:38:26 +08:00
云游君
3d1b3d4a58 refactor(theme-chalk): scss css var namespace (#7344)
* refactor(theme-chalk): scss css var namespace

* fix(theme-chalk): compile getCssVar

* fix(theme-chalk): more --el namespace replace & getCssVarWithDefault

* fix(theme-chalk): use cssVarBlockName & cssVar rewrite button css vars

* fix(theme-chalk): replace empty svg fill color with ns

* chore: use cssVarName for --el-color-white

* chore: fix namespace reactive

* chore: use defaultNamespace
2022-04-26 17:19:09 +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
iamkun
9dd5550bf3 refactor: refactor menu to support namespace (#7131) 2022-04-13 18:49:12 +08:00
三咲智子
184facdb4c chore: add eslint rule sort imports (#6823) 2022-03-25 15:35:56 +08:00
blackie
cc8ee8e031 fix(components): [menu-item] add fallback-placement (#6684) 2022-03-17 10:17:11 +08:00
Yuyao Nie
8b4d55ff9e fix(components): [menu] do not handle resize of child vnode (#6131) 2022-03-15 20:46:22 +08:00
三咲智子
b8c38a9fe5 chore: enhance eslint rules (#6476)
* chore: enhance eslint rules

* chore: enhance eslint rules
2022-03-08 14:03:32 +08:00
Yuyao Nie
a54a0f9283 fix(components): set flex-shrink for first child of submenu title (#6315)
* fix(components): set flex-shrink for first child of submenu title

* chore(components): modify code according to reviews
2022-03-01 15:41:01 +08:00
msidolphin
4b6e9889de feat(components): [el-menu] support customize popper offset (#6049)
* feat(components): [el-menu] support customize popper offset

* docs: improve docs
2022-02-15 11:06:21 +08:00
啝裳
f8bcf51962 fix: delete alteredCollapse in menu (#5889) 2022-02-11 14:52:00 +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
三咲智子
c1e5d724d8 refactor(utils-v2): refactor utils (#5699) 2022-02-09 16:59:08 +08:00
jeremywu
44dc9a1cf5 test(components): remove all sleep statement in the tests (#5784) 2022-02-06 00:37:20 +08:00
kooriookami
c2ee36a7fc fix: tooltip with compoents add persistent (#5250) 2022-01-09 17:38:51 +08:00
msidolphin
d61cf39cf3 chore(components): add shadow to panels (#5146)
* chore(components): add shadow to panels

* fix: improve menu test
2022-01-08 19:52:50 +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