84 Commits

Author SHA1 Message Date
rzzf
123cb136bb fix(components): [table] ts-plugin(4023) error (#23161)
* fix(components): [table] ts-plugin(4082) error

* fix: update
2025-12-19 13:35:29 +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
Noblet Ouways
a5d2064936 chore: refine process.env judgment (#23019)
* Revert "chore: only show warnings in dev mode (#22675)"

This reverts commit 1f7cdc3915.

* chore: single condition

* Revert "chore(build): replace process (#21584)"

This reverts commit 86f49acafd.
2025-12-09 13:07:23 +08:00
sea
1f7cdc3915 chore: only show warnings in dev mode (#22675)
* chore: only show warnings in dev mode

* chore: test

* chore: test2

* chore: test3

* chore: test3

* chore: update 4

* chore: update

* chore: update

* chore: update

* chore: update

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

* chore: add security checks to all process

---------

Co-authored-by: btea <2356281422@qq.com>
2025-11-10 09:25:01 +08:00
Cui yunlong
58a506b889 fix(directives): fix memory leak in v-mousewheel directive (#20781)
* fix(directives): fix memory leak in v-mousewheel directive

- Add proper cleanup in unmounted hook
- Handle directive value updates
- Add TypeScript interface for WheelElement
- Add comprehensive tests
- Improve code organization

fixes #[20022]

* chore: lint

---------

Co-authored-by: cuiyunlong <cuiyunlong1_wb@qiyi.com>
Co-authored-by: qiang <qw13131wang@gmail.com>
2025-10-28 12:50:07 +01:00
qiang
a038e00d48 fix(directives): [vRepeatClick] remove event listener during unmounted (#22439)
* fix(directives): [vRepeatClick] remove event listener during unmounted

* Update packages/directives/repeat-click/index.ts

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

* fix: type error

---------

Co-authored-by: btea <2356281422@qq.com>
2025-10-11 13:27:25 +02:00
qiang
9043e16d94 fix: the KeyboardEvent.code is always empty string on Android (#22228)
closed #20330
2025-09-21 01:23:38 +02:00
Jeremy
a9f7bcb54f feat(project): organize dependencies properly (#21683) 2025-08-09 09:33:16 +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
jiaxiang
10fcc59ed4 refactor: replace Array.isArray with the built-in isArray (#18671)
chore(components): [descriptions] isArray replace Array.isArray
2024-10-28 15:36:44 +08:00
myron
0ef4b492b8 fix(components): fixed add listeners not remove on beforeunmount (#17344)
* fix(components): fixed add listeners not remove on beforeunmount

* docs(ci):  close vue hoistStatic mode compile

* Update packages/components/popper/src/trigger.vue

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

* Update packages/components/time-picker/src/common/picker.vue

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

* Update packages/components/tooltip/src/content.vue

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

* Update packages/components/tooltip/src/content.vue

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

* Update packages/components/popper/src/trigger.vue

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

* Update packages/components/autocomplete/src/autocomplete.vue

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

* Update packages/components/popper/src/trigger.vue

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

* ci: update full bundle vue compiler config, fixed hoistStatic error

* style: eslint fix

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-08-09 09:40:20 +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
三咲智子
31f530a06c refactor(directives): [repeat-click] refactor (#9853) 2022-09-21 15:01:49 +08:00
Obaydur Rahman
e25df5408f fix(directives): [repeat-click] Interval time is too short for single clicks (#9466)
* fix(directives): [repeat-click] time is too short for single clicks

* fix(test-utils): [repeat-click] increase sleep time

Updated times according to PR #9466

* fix(test-utils): [repeat-click] increase test time

Updated times according to PR #9466

* chore: update

* chore: improve test case

Co-authored-by: holazz <2418184580@qq.com>
2022-08-31 13:47:58 +08:00
zz
bbf206f08d fix(directives): [mousewheel] fix type error (#8880) 2022-07-27 09:25:04 +08:00
zz
89a57af7fe refactor(directives): drop resize (#8617) 2022-07-22 10:16:56 +08:00
zz
6837b22841 refactor(directives): [repeat-click] use addEventListener (#8784) 2022-07-21 18:15:57 +08:00
zz
a3c8fda97a fix(directives): [repeat-click] click handler is fired correctly (#8828) 2022-07-21 16:22:50 +08:00
zz
098c439ce8 refactor(directives): [trap-focus] use JSX in Unit test (#8819) 2022-07-17 20:34:15 +09:00
zz
83d1e2191e refactor(directives): [trap-focus] refactor (#8818) 2022-07-16 10:12:21 +09:00
zz
16326d579b refactor(directives): [click-outside] use JSX in Unit test (#8783)
* refactor(directives): [click-outside] use JSX in Unit test

* chore: update
2022-07-16 09:07:15 +09:00
zz
a8aaff64bd fix(directives): [click-outside] fix type error (#8782) 2022-07-16 08:17:59 +09:00
zz
9fef09333f refactor(directives): [repeat-click] use JSX in Unit test (#8785) 2022-07-12 20:42:38 +09:00
三咲智子
7097940f4a refactor: add ts-nocheck and check all files (#8401) 2022-06-22 08:04:42 +08:00
TANGENNT
9b399385e0 fix(directives): use standard wheel event with passive option (#7256)
Both DOMMouseScroll and mousewheel event are non-standard now. And "[Violation]" warning will be
printed in console without setting `passive: true`.

fix #7016 #2016
2022-04-25 23:19:59 +08:00
Delyan Haralanov
34f6f71042 test: enable clearMocks in vitest config (#7263) 2022-04-20 17:02:44 +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
三咲智子
80d903771f feat: extract eslint config to separate package (#6495) 2022-03-10 15:39:13 +08:00
三咲智子
b8c38a9fe5 chore: enhance eslint rules (#6476)
* chore: enhance eslint rules

* chore: enhance eslint rules
2022-03-08 14:03:32 +08:00
btea
15895d6d4d refactor(utils): extract isElement (#6292) 2022-02-26 15:00:57 +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
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
三咲智子
6287c1f92d refactor(utils): remove isServer (#4792) 2021-12-12 23:28:03 +08:00
btea
36b1f19b78 refactor(directives): use util method replace judge firefox (#4086) 2021-10-30 11:31:00 +08:00
三咲智子
4e99d0b5ba build!: simplify build & support esm import (#4018)
* build!: simplify build & support native esm import

* build: refactor build

* refactor: reorganize files

* refactor: refactor build

* build: improve perf

* fix: scripts

* build: add rollup-plugin-filesize

* chore: scripts ignore no-console

* build: disable tree-shaking

* build: improve code

* build: add sourcemap

* build: add banner

* refactor: remove annotation

* build!: improve esm exports (#3871)

* build: improve esm import

* refactor: change mjs for esm version

* chore: improve exports map

* fix: add sideEffects

* refactor: improve alias

* build: upgrade dependencies
2021-10-25 17:07:48 +08:00
jeremywu
16f069ebbe Revert "build!: simplify build & support native esm import (#3900)" (#3945)
* Revert "build!: simplify build & support native esm import (#3900)"

This reverts commit fb94222bb4.

* remove module

* Fix linter

* Add @element-plus/icons as dependency

* update pnpm lock file

* temporary lock element-plus at 1.1.0-beta.20
2021-10-20 09:42:32 +08:00
三咲智子
fb94222bb4 build!: simplify build & support native esm import (#3900)
* build: refactor build

* refactor: reorganize files

* refactor: refactor build

* build: improve perf

* fix: scripts

* build: add rollup-plugin-filesize

* chore: scripts ignore no-console

* build: disable tree-shaking

* build: improve code

* build: add sourcemap

* build: add banner

* refactor: remove annotation
2021-10-18 14:45:57 +08:00
三咲智子
ab8982379e build: refactor each package build (#3709) 2021-09-28 20:28:47 +08:00
btea
ea31eeabed chore(project): revise rm rf to rimraf (#3680) 2021-09-27 16:38:15 +08:00
三咲智子
b88e932775 chore: change normalize-wheel to esm version (#3371) 2021-09-27 09:55:40 +08:00
三咲智子
7a9c6f38d7 build: parallel build (#3416) 2021-09-26 01:29:07 +08:00
三咲智子
5f5248020c chore(project): adjust dependency (#3595) 2021-09-24 09:28:21 +08:00
三咲智子
f9e192535f refactor: replace yarn with pnpm (#3571)
* refactor: replace yarn with pnpm

* chore: install pnpm

* chore: disable cache

* ignore pnpm-lock.yaml

* resolve deps

* setup pnpm
2021-09-23 08:12:37 +08:00
云游君
ac30cd0d6e chore: add vscode config & upgrade typescript/sass/vite (#3502)
* chore: add vscode config & upgrade typescript/sass/vite

* fix: format scss by prettier
2021-09-19 19:34:25 +08:00
jeremywu
477519a52e feat(project): local dev environment (#3463)
- Add vite config for local dev
2021-09-17 16:42:20 +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