96 Commits

Author SHA1 Message Date
keeplearning66
1bdfcc3b0d chore: supplement deprecation annotations (#23570)
* chore: supplement deprecation annotations

* chore: update
2026-02-01 14:19:59 +08:00
XiaoGao
c94130cb55 refactor(components): [drawer] use type-based definitions (#23484)
* put Ts

* refactor(components): [drawer] use type-based definitions

* refactor: update

* fix: type error

* fix: type error

* refactor: tweaks

---------

Co-authored-by: rzzf <cszhjh@gmail.com>
Co-authored-by: keeplearning66 <1256734885@qq.com>
2026-01-21 13:40:34 +08:00
lw56777
46dc569841 refactor(components): [dialog] use type-based definitions (#23432)
* refactor(components): [dialog] use type-based definitions

* fix: test fail

* fix: btea

* fix: btea and rainbow

* refactor: tweaks

---------

Co-authored-by: rzzf <cszhjh@gmail.com>
2026-01-20 17:35:41 +08:00
rzzf
572c2a7098 fix(components): [dialog] clear the lingering closing state (#23249)
* fix(components): [dialog] clear the lingering `closing` state

* test: add case
2025-12-30 21:44:05 +01:00
rzzf
ddececc988 test(components): [dialog] fix intermittent test failures (#23250)
* test(components): [dialog] fix intermittent test failures

* test: update
2025-12-30 16:32:47 +08:00
dopamine
0ca1570aa1 chore: upgrade to Vue 3.5 (#22096)
* chore: upgrade deps

* chore: replace __ExtractPublicPropTypes with ExtractPublicPropTypes

* fix: get rid of type errors

* fix: resolve test errors with @vue/test-utils v2.4.6

* fix: resolve test errors with Vue 3.5.22

* ci: set pnpm flag

* chore: update the Vue peer dependency version

* Apply suggestion from @tolking

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

* docs: update example code

Co-authored-by: warmthsea <2586244885@qq.com>

* chore: remove csstype (#22487)

* chore: fix merge code type error

* chore: fix test:ssr error

- Cannot read properties of undefined (reading 'getSSRProps')

* chore: fix typecheck:vitest error

* chore: update pnpm yaml file

* test: fix collapse accordion error

* chore: update deps

* chore: fix type error

* chore: lock file

* chore: sync change

sync with the remove of vue macro

* refactor: use computed instead of eagerComputed

* fix: timeline.test.tsx typecheck

* chore: clean lock file

try dont throw CodeFactor issues in ci

did:
- rm pnpm-lock.yaml
- rm -rf ./**/node_modules
- pnpm store prune
- pnpm cache delete
- pnpm install

Also stay in 3.1.0 for vue-tsc in order to avoid the warnings of
template refs, see https://github.com/vuejs/language-tools/issues/5815

* chore: format code

---------

Co-authored-by: Dsaquel <291874700n@gmail.com>
Co-authored-by: qiang <qw13131wang@gmail.com>
Co-authored-by: warmthsea <2586244885@qq.com>
Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>
Co-authored-by: btea <2356281422@qq.com>
2025-12-16 09:34:03 +08:00
Kylin
30af39fff6 fix(components): [dialog] cannot be clicked when closed (#22978)
* fix(components): [dialog] cannot be clicked when closed

* refactor: add test

* refactor: update test
2025-12-11 12:04:48 +08:00
rzzf
1859f5137e fix(utils): [addUnit] handle 0 value correctly (#22808)
* fix(utils): [addUnit] handle 0 value correctly

* fix: provide example

* fix: update

* fix: update

* test: update case name

* fix: update

Co-authored-by: Dsaquel <291874700n@gmail.com>

* fix: update

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

---------

Co-authored-by: Dsaquel <291874700n@gmail.com>
Co-authored-by: btea <2356281422@qq.com>
2025-11-18 16:29:01 +08:00
知晓同丶
9ac2da6c07 feat(components): add isDragging to useDraggable for dialog/message-box (#21703)
* feat(components): add isDragging to useDraggable for dialog/message-box

* refactor: perf code
2025-08-16 11:09:07 +02:00
知晓同丶
ff525392ac feat(components): [config-provider] support dialog config (#21684)
* feat(components): [config-provider] support `dialog` config

* chore: remove comment

* fix: `props` take precedence over `globalConfig`

* fix: dialog-content use globalConfig

* revert: undo globalConfig & bump

* docs: supplement  tag

---------

Co-authored-by: zhixiaotong <947803089@qq.com>
2025-08-10 14:26:21 +02:00
Zhong
3182010562 feat(components): [dialog] add modal-penetrable prop (#21511)
* feat(components): [dialog] add `modal-penetrable` prop

* refactor(components): [dialog] optimize code

* test(components): [dialog] update test

* test(components): [test] update test
2025-07-30 16:51:18 +08:00
知晓同丶
39f439e436 feat(components): [dialog] add transition prop (#21479)
* feat(components): [dialog] add `transition` prop

* fix: revert export

* chore: add test

* chore: remove useless mode

* refactor: use built-in utils & simpify code

* refactor: update use-dialog.ts

* refactor: update use-dialog.ts

* fix: add warn tip

* chore: change warn description

* refactor: remove classes & add doc tip
2025-07-24 11:47:40 +02:00
Zhong
bc9a95d9ba chore(components): fix typos (#21473) 2025-07-23 07:09:15 +08:00
Zhong
c3711304e5 test(components): add close-on-press-escape test case (#21367) 2025-07-16 09:10:46 +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
wsVIC
07a6613374 fix(components): [dialog] fix dialog zindex should update responsively (#18520)
Co-authored-by: btea <2356281422@qq.com>
2025-06-04 14:37:58 +08:00
kooriookami
9465d87212 fix(components): [dialog] fix draggable when window resize (#20505)
fix(components): [dialog] Fix draggable when window resize

closed #20500
2025-04-22 20:39:14 +08:00
betavs
5f519a6f25 refactor(components): unify append-to prop type across multiple components (#20501)
* fix(components): [select] update `append-to` prop type

* fix(components): unify `append-to` prop type across multiple components

* docs: update `append-to` prop type
2025-04-22 09:29:19 +08:00
btea
a846ad1d44 feat(components): [dialog] expose handleClose (#20323) 2025-04-02 09:55:33 +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
Meet you
062ac99aec fix(components): [dialog] fix scroll bar not resetting to top on reopen (#19471)
* fix(components): [dialog] Fix scroll bar not resetting to top on reopen

closed #19420

* fix(components): update

* fix(components): [dialog] update

---------

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
2025-01-09 16:47:22 +08:00
Noblet Ouways
5f72ca51cd feat(components): [dialog/drawer] add custom sub classes (#19099)
* feat(components): [dialog/drawer] add custom sub classes

* docs(components): add custom classes for drawer/dialog slots

* docs(components): [dialog/drawer] keep same description

* test: add dialog/drawer sub classes

* refactor: sync typo docs with props

* chore: change release version

* chore: rename

* chore: fix doc

---------

Co-authored-by: btea <2356281422@qq.com>
2025-01-06 10:52:39 +08:00
cosine7
c25026c542 chore(components): [dialog] add instance type (#18127)
refactor(components): [dialog] add instance type
2024-09-03 18:16:46 +08:00
于智勇
6b7e204e5b fix(components): [dialog] rename resetPostion to resetPosition (#17900)
* fix(components): [dialog] rename resetPostion to resetPosition

* chore: fix lint

* chore: reset CHANGELOG.en-US.md

---------

Co-authored-by: tolking <qw13131wang@gmail.com>
2024-08-21 22:34:12 +08:00
donga-gao
2d6c16fae9 fix(components): [dialog] error calling resetPostion before dialog is rendered (#17855)
fix: [Component][dialog]在dialog显示之前调用dialog.resetPostion()方法会抛异常 #17851

Co-authored-by: gao.dong <gao.dong@bestv.com.cn>
2024-08-13 10:06:38 +08:00
知晓同丶
5973402fc0 fix(components): [dialog] appendTo type error (#17814)
closed #17810
2024-08-09 12:55:39 +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
donga-gao
77920735cc feat(hooks): use-draggable support resetPostion (#17699)
* feat(hooks): use-draggable support resetPostion

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

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

* fix: lint

---------

Co-authored-by: gao.dong <gao.dong@bestv.com.cn>
Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-06 17:11:59 +08:00
qiang
270e1d01ba fix(components): SSR hydration error caused by disabled prop of teleport (#17551)
* fix(components): sSR hydration error caused by disabled prop of teleport

* fix(components): [teleport] type error

* chore: type error
2024-08-04 13:50:09 +08:00
chouchouji
2564007850 refactor(components): optimize component boolean type (#17622)
* refactor(components): optimize component boolean type

* style(components): [overlay] fromat code
2024-07-25 14:17:23 +08:00
kooriookami
67cd7e95e6 feat(components): [dialog] Dialog can drag overflow the viewport (#15643)
* style(components): [dialog] Modify dialog style and docs

* chore: update

* feat(components): [dialog] add overflow prop

* feat(components): update
2024-01-25 15:03:34 +08:00
Karolis_Stoncius_Sneakybox
02090482ed feat(components): [dialog] append dialog to any element (#14317)
* feat(components): [dialog] append dialog to any element

Add the ability to append dialog not just to body, but to any element

* fix(components): [dialog] fix appending to body when append-to is used

* docs(components): [dialog] add version to docs append-to attribute
2023-11-14 19:43:05 +08:00
Jungzl
b2e26e3828 fix(components): [dialog] consistent imports of lodash 2023-10-30 13:01:08 +08:00
Chen
fd5fc8e855 fix(components): [dialog] fix el-dialog z-index bug (#14373)
* Fix el-dialog z-index bug

* Update packages/components/dialog/src/use-dialog.ts

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

* chore: lint error

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
Co-authored-by: btea <2356281422@qq.com>
2023-10-29 21:54:44 +08:00
Karolis_Stoncius_Sneakybox
268457135e feat(components): added aria-level attributes for dialog and drawer headers; Fixed input-number's aria-valuenow being null (#13822)
* feat(components): [dialog] added dialog header aria-level attribute

To pass accessibility tests elements with role="heading" require aria-level

* feat(components): [drawer] added drawer header aria-level attribute

To pass accessibility tests elements with role="heading" require aria-level

* fix(components): [input-number] prevent aria-valuenow from being null

To pass accessibility tests aria-valuenow cannot be null

* fix(components): [input-number] fix number input when 0 and update test

Fixes a bug where number input's aria-valuenow will be set to '' when input's value is 0. Also
updates a failing test

* refactor(components): [dialog] change default aria-level to 2

* docs(components): dialog and drawer header aria-level docs update

* docs(components): change headerAriaLevel type to string

* docs(components): kebab-case for docs
2023-08-24 20:14:59 +08:00
Fl
6d4b81e290 test(components): add test case for delay of dialog (#13773) 2023-08-10 22:09:19 +08:00
wzc520pyfm
77125639d3 docs(components): [dialog] use new display tag (#13499)
* docs(components): [dialog] use new display tag

* chore(components): [dialog] remove the incorrect deprecated comment
2023-07-20 20:09:07 +09:00
Xc
d4d24eb9d7 docs(components): [dialog] add deprecated describe (#13143) 2023-06-08 21:46:58 +08:00
btea
105d79b0d9 refactor: extract isClient and isNumber isBoolean (#12504)
* refactor: extract isClient and isNumber isBoolean

* test: update test

* refactor: extract isClient to browser
2023-04-20 20:00:49 +08:00
Jeremy
a30ae9d103 refactor(project): removing packages/tokens (#11769)
* refactor(tokens): remove tokens

* Remove tokens/breadcrumb.

* refactor(tokens): remove tokens/button

* refactor(tokens): remove tokens/carousel

* refactor(tokens): removing tokens/checkbox

* refactor(tokens): removing tokens/collapse

* refactor(tokens): removing tokens/dialog

* refactor(tokens): removing tokens/pagination

* refactor(tokens): removing tokens/radio

* refactor(tokens): removing tokens/row

* refactor(tokens): removing tokens/scrollbar

* refactor(tokens): removing tokens/slider

* refactor(tokens): removing tokens/tabs

* refactor(tokens): removing tokens/upload

* refactor(tokens): removing tokens/popper

* refactor(tokens): removing tokens/tooltip

* refactor(tokens): removing tokens/tooltip-v2

* refactor(tokens): removing tokens/date-picker

* refactor(project): removing tokens/experimentals

* Remove tokens/experimentals
* Remove package/tokens
* Remove tokens related parts

* refactor(project): removing packages/tokens completely

* chore: update import statement
2023-03-01 13:59:21 +08:00
Jeremy
d58149f4bb refactor(components): [config-provider] (#11749)
* refactor(components): [config-provider]

* Port useConfigProviders and tokens to components/.

* refactor(hooks): [global-config]

* Reimplement a few coupled hooks.
* Remove hooks/globa-config and tokens/&.
* Update import paths based on the changes.

* chore: fix a failing test case
2023-02-28 10:35:56 +08:00
Giwayume
715384bf4e fix(components): [dialog] click allow focus out (#10160)
Co-authored-by: OpenGraphica <opengraphica@gmail.com>
2022-10-21 08:50:41 +08:00
jarven
a833206e5b fix(components): [dialog] fix document click event invalid (#6711) 2022-09-22 12:37:04 +08:00
zz
aa735d1f8e fix(components): [dialog] bind $attrs (#9455) 2022-08-29 12:03:40 +08:00
hfutsora
adfe2444db feat(components): [dialog] add align center prop (#8947) 2022-08-29 02:58:54 +00:00
zz
f5fa7e741f refactor(utils): refactor iconPropType (#9502) 2022-08-28 13:20:07 +08:00
bqy_fe
6aa151fc2a fix(components): [dialog] should emit open event after nextTick (#9209)
* fix(components): [dialog] should emit open event after nextTick

* test: update drawer unit test
2022-08-16 22:04:00 +08:00
LIUCHAO
d3291e3fc4 fix(components): [dialog] fix type error (#8898)
* fix(components): [dialog] fix type error

* fix(components): [dialog] use const assertion
2022-07-20 21:46:18 +08:00
LIUCHAO
7ad851241c refactor(components): [dialog] use JSX in Unit test (#8270)
* refactor(components): [dialog] use JSX in Unit test

* fix(components): [dialog] fix type error
2022-07-10 19:40:10 +09:00