Commit Graph

29 Commits

Author SHA1 Message Date
Xc
5849909577
fix: [dropdown] with dialog use zIndex loop (#7012)
Co-authored-by: xiaochenchen <xiaochen.chen@igg.com>
2022-04-10 17:30:08 +08:00
三咲智子
184facdb4c
chore: add eslint rule sort imports (#6823) 2022-03-25 15:35:56 +08:00
JeremyWuuuuu
5afe23c18c
refactor(components): [el-popper] refactor popper to script setups (#6725)
- Update legacy syntax to script setup for popper
- Update tests due to changes
- Move popper/token to element-plus/tokens
2022-03-24 21:22:46 +08:00
JeremyWuuuuu
c415f8bdbc
fix(components): [popper-trigger] SSR issue (#6575)
* fix(components): [popper-trigger] ssr issue

- Moved all watch expressions inside `onMounted` to avoid SSR error

* Update unwrapMesurable for skipping SSR
2022-03-13 14:10:14 +08:00
btea
15895d6d4d
refactor(utils): extract isElement (#6292) 2022-02-26 15:00:57 +08:00
weidehai
265a0b79cd
fix(components): [el-popper] fix #6152 bug (#6173) 2022-02-23 10:49:53 +08:00
jeremywu
fc294561c2
fix(components): [el-popper] effect prop validation error (#5978) 2022-02-11 20:13:23 +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
a995d4487b
refactor(components): [popper] use useNamespace (#5728) 2022-02-11 04:01:18 +08:00
三咲智子
c1e5d724d8
refactor(utils-v2): refactor utils (#5699) 2022-02-09 16:59:08 +08:00
三咲智子
b80e5c69e9
refactor(hooks): refactor popup manager to useZIndex (#5701) 2022-02-09 16:31:31 +08:00
QuXiaoMing
1add6d2c70
fix(components): [el-popover] update popperInstance when props change (#5835)
Co-authored-by: xiaoming <xiaoming@mgtv.com>
2022-02-09 16:05:02 +08:00
jeremywu
dbb00ef4b6
fix(components): [el-popper] append to body compatability (#5755)
* fix(components): [el-popper] append to body compatability

- Add a new hook for deprecation warning
- Add deprecation warnings for previous used `append-to-body` API
- Add test for the API.

* Address PR comments

* Update documentations for deprecated

* Fix formatting issue
2022-02-04 14:59:58 +08:00
msidolphin
82182a91aa
fix(components): [el-date-picker] panel position error after view switch (#5277)
* fix(components): [el-date-picker] panel position error after view switch

* fix: [el-popper] zIndex not update issue
2022-01-11 10:40:40 +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
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
11752052dc
fix(components): popper content fallback placements (#5119)
- Fix popper content don't fallback to correct placement
2022-01-04 11:00:00 +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
三咲智子
4335b01d6c
refactor(utils)!: refactor global config (#4793)
* refactor(utils)!: remove global config

* refactor(utils): named export PopupManager

* fix tests
2021-12-30 19:31:35 +08:00
SongWuKong
8f57bf610e
fix(components): [el-popper] onVisibilityChange (#4907) 2021-12-21 14:03:51 +08:00
jeremywuuuuu
3786ba9993 fix(utils): remove $ from util
- Replace $ with unref from vue
- Remove $ from `@element-plus/utils/util` to prevent ref sugar issue
2021-10-20 06:14:18 -04:00
Kevin
cd2bd26d63 test: upgrade @vue/test-utils to v2.0.0-rc.15 2021-10-06 17:19:00 +08:00
三咲智子
0636e1e240
style: add import and stricter lint (#3440)
* style: add import lint

* chore: apply eslint rules

* chore: add stricter lint

* chore: lint all files

* auto fix

* manually fix

* restore build-indices.ts
2021-09-17 15:27:31 +08:00
三咲智子
c86c2b0fe9
style: eslint enable prefer-template (#3414)
* style: eslint enable prefer-template

* chore: apply eslint rules
2021-09-17 09:18:24 +08:00
三咲智子
2f23940152
refactor(utils): refactor throwError (#3301)
* refactor(utils): refactor error

* refactor(utils): remove default export
2021-09-10 10:01:17 +08:00
三咲智子
55348b30b6
style: use prettier (#3228)
* style: use prettier

* style: just prettier format, no code changes

* style: eslint fix
object-shorthand, prefer-const

* style: fix no-void

* style: no-console
2021-09-04 19:29:28 +08:00
Sanxiaozhizi
6cc16bbd06
refactor: enhance type definition (#3062)
* chore: add vue-tsc for type check

* refactor(components): respect Vue's own style type

* refactor(components): improve props type

* chore(build): improve types

* fix(components): remove unnecessary props

* perf(components): use shallowRef

* fix(components): add missing property type for table

* refactor(components): improve time-picker types

* refactor(components): extract import type

* refactor(components): improve popper types

* refactor(components): upload list types

* fix(docs): fix type

* better type

* fix: remove index
2021-08-31 09:40:13 +08:00
jeremywu
b0f4fc5f23
refactor: update package path and bundle folder (#3016) 2021-08-24 13:36:48 +08:00