Commit Graph

271 Commits

Author SHA1 Message Date
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
Noblet Ouways
9c64744a3a chore: remove type-fest (#23002)
* chore: remove type-fest

* chore: apply suggestion

Co-authored-by: rzzf <cszhjh@gmail.com>

---------

Co-authored-by: rzzf <cszhjh@gmail.com>
2025-12-05 22:08:40 +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
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
sea
237a61d62a chore: cancel debugWarn env check (#22657)
* chore: test

* chore: test

* chore: update
2025-10-31 23:17:19 +08:00
一只前端汪
7c16480bcd refactor(style): Update Eslint to V9 and Prettier to V3 (#21949)
* refactor(style): Update Eslint to V9 and Prettier to V3

* fix: vscode color

* fix: vscode color

* chore: remove Useless dependence and old config file

* chore: format

* Merge branch 'dev' into eslintV9

* fix: fix

* fix: ssr test

* fix: ssr test

* fix: use defineConfig

* fix: prettier format and ignore docs dist

* fix: index.mjs => index.js

* fix: Vscode color

* fix: prettier ignore global.d.ts

* fix: format

---------

Co-authored-by: 2586740555 <15972343+CYJ090915@user.noreply.gitee.com>
2025-09-29 14:14:30 +08:00
Noblet Ouways
630b66f4cc refactor: remove unused code related to tooltip-v2 (#22304)
* refactor: remove unused code related to tooltip-v2

* test: redo & rewrite refs test
2025-09-24 08:49:29 +08:00
qiang
9043e16d94 fix: the KeyboardEvent.code is always empty string on Android (#22228)
closed #20330
2025-09-21 01:23:38 +02:00
sea
ca4a798545 fix(components): [date-picker]: use array modelValue datetime type debacle (#22033)
fix(components): [date-picker]: use array value datetime type debacle
2025-09-06 07:46:11 +08:00
sea
79e61faef7 fix: circular deps cause build size increase (#22051)
* chore: test build size

* chore: test

* chore: test

* chore: update import link

* chore: update

* chore: update

* chore: fix

* chore: update
2025-09-05 18:00:08 +08:00
qiang
7a18e717d8 feat(components): [tooltip] add focus-on-target prop (#21905)
* feat(components): [tooltip] add focus-on-hover prop

* chore: rename ot focusOnTarget

* chore: remove focusVisible

* chore:  error
2025-09-04 09:05:52 +08:00
qiang
6847d4fbb0 chore(hooks): [useLocale] autocomplete locale field keys (#21876) 2025-08-24 00:03:46 +02:00
ylcjwq
38bc248a4c Revert "fix(components): [table] render default slot only when it returns valid vnodes (#21651)" (#21728)
* revert: revert fix table slot rendering (#21651)

* Revert "fix(components): [table] render default slot only when it returns valid vnodes (#21651)"

This reverts commit 6bf6313f35.

---------

Co-authored-by: dopamine <coderzyou@gmail.com>
2025-08-13 21:02:11 +08:00
Jeremy
a9f7bcb54f feat(project): organize dependencies properly (#21683) 2025-08-09 09:33:16 +08:00
dopamine
6bf6313f35 fix(components): [table] render default slot only when it returns valid vnodes (#21651) 2025-08-06 14:39:10 +02:00
sea
ad01328cb8 chore: fix dev-volar type resolution (#21321) 2025-07-12 19:05:20 +08:00
yuhengshen
5ee6449b01 fix(types): [other] cannot find declare module types from installed packages (#21266)
* fix(types): cannot find declare module types from installed packages

* fix(types): play global type error

* fix(types): typecheck error
2025-07-11 13:47:18 +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
kooriookami
bd17819bb4 feat(components): [alert] [result] [message] [message-box] [notification] add primary type (#20782)
feat(components): add primary type
2025-05-20 07:46:08 +08:00
sea
d4d525a216 fix(utils): nuxt build error (#20325)
* fix(utils): nuxt build error

* chore: update
2025-04-03 14:23:54 +08:00
sea
1084071fcf chore(eslint-config): add newline-after-import rules (#20309)
chore: add `newline-after-import` rules
2025-03-31 20:48:10 +08:00
btea
d323d7f71e fix(components): [description] tsx rendering functional component error (#19879)
* fix(components): [description] tsx render

* fix: update

* fix: update

* test: add test case
2025-02-18 18:33:49 +08:00
dopamine
f4d3547fa5 chore: stop re-exporting isVNode (#19108) 2024-12-05 10:30:00 +08:00
ddeerdevil
2a032217c7 fix(utils):[vue] ensure flattedChildren traverse component's subTree (#18649)
* fix(utils):[vue] 在h函数中组件的chidlren是数组时,会导致tabs等组件渲染错误

* fix(utils):[vue] add flattedChildren tests & fix lint error

* test(utils): [vue] fix tests's lint errors(element-plus:#18649)
2024-11-02 21:00:55 +08:00
jiaxiang
dab6b73040 refactor: replace type checking with built-in functions (#18720)
* refactor: replace typeof string with the built-in isString

* refactor: replace typeof boolean with the built-in isBoolean

* refactor: replace typeof undefined with the built-in isUndefined

* chore: style

* chore: style
2024-10-31 09:21:21 +08:00
jiaxiang
36bd70670e refactor: replace typeof fn with the built-in isFunction (#18705) 2024-10-30 08:42:04 +08:00
Jungzl
7bba5332f1 chore: update dependencies (#18573)
* chore: update dependencies

typescript: v5.5
vue-tsc: v2
eslint: v8-latest
@commitlint/*: v18

* fix: apply suggestions

* fix: ignore some ts errors
2024-10-29 10:01:58 +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
qiang
845c07adef feat(components): [date-picker] accessibility enhancement (#18109)
* feat(components): [date-picker] accessibility enhancement

closed #14150

* docs: update

* test: add test

* chore: change prevent to passive

* fix: long press the clear icon to open the time panel

* fix: cannot read $el

* fix: cannot read $el

* docs: updata
2024-10-27 12:14:53 +08:00
dopamine
cd517d6743 chore(components): [select-v2] remove ts-nocheck comments in select-v2 (#16746)
* chore: remove ts-nocheck comments in select-v2

* take the review comments

* improve emits type

* the keys of emits use camelCase instead of kebab-case

* apply suggestions from code review

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

* reduce duplicate ESLint comments

* use more succinct syntax to define props

* revert emits to kebab-case

* fix: type checking failed

* chore: illustrate why return early in validateIcon

* fix: signature with duplicate parameter names

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

---------

Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: qiang <qw13131wang@gmail.com>
2024-09-23 13:45:35 +08:00
dopamine
8618a6bcd0 refactor: import shared utilities from @element-plus/utils (#18048)
chore: import shared utilities from `@element-plus/utils`
2024-08-29 09:04:03 +08:00
thinkasany
b1b69ed235 chore(utils): improve code style for global-node (#17675)
refactor: improve code style for global-node
2024-07-30 15:07:59 +08:00
Panzer_Jack
dbfa93bab1 feat(components): [date-picker] type add months params (#17342)
* feat(components): [date-picker] `type` add `months` params

closed #17317

* feat(components): [date-picker] optimized code

* docs(components): [date-picker] enhanced multiple selection example

* test(components): [date-picker] add test

---------

Co-authored-by: Panzer_Jack <shenchang@bilibili.com>
2024-07-19 11:47:25 +08:00
wzc520pyfm
98ce640684 test(utils): [vue] add icon,install,vnode and global-node test (#16216)
* test(utils): [vue] add icon,install,vnode and global-node test

* test(utils): [global-node] remove repeat code of useless
2024-04-30 10:37:27 +08:00
btea
d0eb6c3d1a feat: support node 18+ & update tsx and vitest (#16190)
* feat: support node 18+ & update tsx and vitest

* chore: update

* chore: remove

* fix: update dep

* test: fix autocomplete

* test: update

* test: update

* chore: update

* chore: update

* chore: update
2024-04-11 17:48:34 +08:00
wzc520pyfm
223d0da28a test(utils): [vue] add refs, size and validator test (#16201) 2024-03-23 09:43:03 +08:00
赵添
f7fa14836a fix(components): [anchor] querySelector error (#16078) 2024-03-08 15:25:39 +08:00
赵添
bd3593140b style(components): [anchor] marker transition change (#16023)
* style(components): [anchor] marker transition change

* fix(components): [anchor] clear animate scroll
2024-03-04 09:58:19 +08:00
赵添
25bebce59d feat(components): anchor component (#15670)
* feat(components): anchor component

* fix(components): [anchor] marker opacity style

* test(components): [anchor] update snapshots

* fix(components): [anchor] style change and add version tag

* docs(components): [anchor] affix mode demo add affix offset

* fix(components): [anchor] change api

* fix: slot name change

* fix: scrollTo method change

* fix: delete getCurrentAnchor api

* style: text overflow

* docs: change toc to anchor

* refactor: useEventListener

* fix: update

* fix: update
2024-02-27 14:22:26 +08:00
qiang
f83761dd2a style(eslint-config): add eslint rules to restrict the imports of lodash (#15773)
* style(eslint-config): add eslint rules to restrict the imports of lodash

* fix: lint error

* test(components): [infinite-scroll] test error

* test(components): [infinite-scroll] test error
2024-02-03 12:10:23 +08:00
qiang
240fe6b8e0 fix(components): [collapse] SSR hydration error caused by random ID (#15500) 2024-01-15 03:24:50 +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
Hefty
c92652d241 fix(components): [input] Write Chinese in parenthesis, letters repeat (#12154)
* fix(components): [input] Write chinese in parenthesis, letters repeat

closed #11723

* fix: remove redundant |
2023-04-15 10:55:56 +08:00
Naeemo
1ef66c2e34 refactor(components): [backtop] use scrollTo with smooth (#11103) 2023-01-04 18:01:38 +08:00
kooriookami
42fb53aaa6 perf(utils): addUnit support string number (#10362) 2022-11-02 16:48:55 +08:00
Xc
b45346cc93 fix(utils): [vnode] flattedChildren support subTree (#10298) 2022-10-31 16:21:50 +08:00
BTB
19bd02b6bb fix: withInstallDirective type error (#9946)
Co-authored-by: zz <2418184580@qq.com>
2022-09-28 16:46:14 +08:00
三咲智子
ab19e8f2e6 perf(components): [tabs] improve order performance 2022-09-16 22:51:44 +08:00