Commit Graph

52 Commits

Author SHA1 Message Date
Xc
b1f3b6602c docs(components): [tooltip, popover] controlled mode warnings (#12088)
* docs(components): [tooltip, popover]
* Add controlled mode api description

* docs: add code lost

* chore: add missing comments

---------

Co-authored-by: Dsaquel <291874700n@gmail.com>
2025-09-29 14:18:39 +08:00
Zhong
bc9a95d9ba chore(components): fix typos (#21473) 2025-07-23 07:09:15 +08:00
yuhengshen
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
Noblet Ouways
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 db0116a288.

* Revert "chore: fix"

This reverts commit 69c82a90c0.

* chore: fix

* style: `pnpm lint:fix`

* fix: lint

* chore: `pnpm format`
2025-06-16 15:37:12 +08:00
sea
3892c0ca32 feat(components): [popover] append-to prop (#20596) 2025-05-02 16:12:56 +08:00
betavs
c340be0779 feat(components): [popover] add trigger-keys prop for keyboard control of popover display (#20264)
feat(components): [popover] enable trigger-keys prop
2025-04-03 14:22:49 +08:00
dopamine
7be4a3765e chore: emits smaller declaration files (#20109)
* Revert "fix(types): packing unexpected types (#19419)"

This reverts commit 13506ffb81.

* 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
dopamine
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
wzc520pyfm
3ec8580bc0 docs(components): [popover] use new display tag (#15387) 2024-07-22 14:23:17 +08:00
Xc
c4fcb15288 Revert "fix(components): [popover] default trigger" (#12341)
Revert "fix(components): [popover] default trigger (#12321)"

This reverts commit bda7d9a57c.
2023-04-06 22:16:59 +08:00
井柏然
bda7d9a57c fix(components): [popover] default trigger (#12321) 2023-04-06 20:35:50 +09:00
qiang
b456125431 fix(components): [tooltip] SSR hydration error caused by random ID (#10541) 2022-11-21 14:10:52 +08:00
zz
dec859a3df fix(components): [popover] abnormal style when effect is dark (#10190) 2022-10-22 21:12:15 +08:00
zz
f5af4c84fd refactor(components): [popover] use JSX in Unit test (#8337) 2022-08-27 16:59:38 +00:00
zz
eea3e60385 fix(components): use namespace (#9299) 2022-08-13 14:43:00 +08:00
Xc
ef22e5db62 feat(components): [tooltip] adjust controlled mode (#8762)
* feat(components): [tooltip] adjust controlled mode
2022-07-17 23:14:51 +08:00
三咲智子
7097940f4a refactor: add ts-nocheck and check all files (#8401) 2022-06-22 08:04:42 +08:00
zz
ed174ff73f refactor(components): [popover] switch to script-setup syntax (#8273) 2022-06-22 01:01:11 +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
JeremyWuuuuu
5daf53e8e1 refactor(components)!: remove deprecated warning (#7528) 2022-05-06 13:19:01 +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
Xc
02530026e6 fix: popover esc after visible invalid (#7064)
* fix: popover esc after visible invalid

* fix: popover esc after visible invalid(#7058)

Co-authored-by: xiaochenchen <xiaochen.chen@igg.com>
2022-04-10 14:08:38 +08:00
三咲智子
184facdb4c chore: add eslint rule sort imports (#6823) 2022-03-25 15:35:56 +08:00
三咲智子
b8c38a9fe5 chore: enhance eslint rules (#6476)
* chore: enhance eslint rules

* chore: enhance eslint rules
2022-03-08 14:03:32 +08:00
Alan Wang
ac89f5f4e1 fix(components): [el-popover] transition error (#6329) 2022-03-06 17:59:42 +08:00
啝裳
f5c2051bed feat: [el-popover] add before-enter、before-leave (#6203) 2022-02-21 17:08:21 +08:00
msidolphin
78b24dfdfd fix(components): [el-table] optimize popover performance (#6170) 2022-02-21 09:21:59 +08:00
啝裳
0b0ad578bd fix: add offset in usePopoverProps (#5982) 2022-02-11 19:50:16 +08:00
啝裳
5789318ef4 fix: delete offset in usePopoverProps (#5980) 2022-02-11 19:22:54 +08:00
啝裳
dafc701af8 fix: replenish popover missing types (#5958)
* fix: replenish popover missing types

* fix: update
2022-02-11 17:56:21 +08:00
bqy
23c7c7843e refactor(components): [popover] use useNamespace (#5727) 2022-02-11 11:47:22 +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
三咲智子
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
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
C.Y.Kun
e62e29ef5b fix(components): [popover] after-enter/leave events not trigger (#5681) 2022-01-31 23:07:09 +08:00
BigPengZai
38a1a02680 fix(components): [el-popover] hide-after bug (#5386)
fix [el-popover] hide-after bug

fix #5372
2022-01-25 12:07:24 +08:00
msidolphin
3037fdc8c5 fix(components): [el-popover] revert hide method (#5344)
fix #5334
2022-01-18 10:42:21 +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
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
三咲智子
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
btea
db9a5e6bd6 fix(components): [el-popover] fix the title renderIf type error (#3552) 2021-09-24 09:21:38 +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
Aex
03f02b5554 refactor(utils): improve debug warn (#3302) 2021-09-09 11:49:48 +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