83 Commits

Author SHA1 Message Date
Kylin
f154ce27c6 feat(components): [button] add dashed prop (#22738)
* feat(components): [input] add the dashed attribute

* docs: update tag

* refactor: update the documentation of config-provider

* refactor: update config-provider test

* refactor: update button test

* refactor: update test

* test: update

* refactor: update css

* refactor: reset

* refactor: update css

* refactor: delete blank lines

* docs: update version

* docs: update button type

* docs: update button type

---------

Co-authored-by: rzzf <cszhjh@gmail.com>
2026-02-03 10:39:54 +08:00
keeplearning66
1bdfcc3b0d chore: supplement deprecation annotations (#23570)
* chore: supplement deprecation annotations

* chore: update
2026-02-01 14:19:59 +08:00
snowbitx
0db1ae698c refactor(components): [config-provider] improve ConfigContext types (#23528)
* refactor(components): [config-provider] align shadow type

* refactor(components): [config-provider] align button/link  context type

* Update button.vue

* Change link type from 'primary' to 'success'
2026-01-26 10:35:38 +08:00
snowbitx
6a5f2ff2e9 refactor(components): [badge/breadcrumb/button] use type-based definitions (#23414)
* refactor(components): [badge] use type-based definitions

* refactor(components): breadcrumb,breadcrumb-item

* refactor(components): button,button-group

* fix: correct badgeStyle default value

* fix: correct button default value

* fix: correct badge-style

* Update packages/components/button/src/button-group.vue

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

* fix: delete false default

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

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

* Update packages/components/breadcrumb/src/breadcrumb-item.vue

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

* fix: correct offset default in badge.md

* fix: revert the badgeStyle handling

---------

Co-authored-by: rzzf <cszhjh@gmail.com>
2026-01-18 16:12:20 +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
Jeff
663607ad8b test(components): add case about the disabled value of component has the highest priority (#23042)
* test: button add form disabled case

* test: cascader add test case

* test: checkbox add test case

* test: colorPicker add test case

* test: inputNumber add test case

* test: input add test case

* test: radio add test case

* feat: rate add test case

* test: segemented add test case

* test: select add test case

* test: selectV2 add test case

* test: slider add test case

* test: switch add test case

* test: timeselect add test case

* Update packages/components/button/__tests__/button.test.tsx

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

* test: modify desc

* test(components):  clean annotation

* Update packages/components/time-select/__tests__/time-select.test.tsx

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

* Update packages/components/time-select/__tests__/time-select.test.tsx

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

---------

Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: rzzf <cszhjh@gmail.com>
2025-12-11 13:11:08 +08:00
btea
2d64179491 refactor!: the disabled value of component has the highest priority (#18739)
* refactor!: the disabled value of component has the highest priority

* fix: update

* fix: compatible with switch loading

* feat: apply to cascader, select, select-v2

* fix: update

* fix: update selectv2

* fix: update autocomplete

* fix: date-picker-panel

* fix: update rate/slider/upload

* fix: slider error

* fix: update checkbox

* fix: checkbox error
2025-12-01 21:20:57 +08:00
Den Moshkin
e3eff3725f feat(components): [button-group]: add direction prop (#18906)
* feat(components): [button-group]:add vertical direction for button group

* feat(components): [button-group]: add direction prop (update)

* feat(components): [button-group]: fix docs

* feat(components): [button-group]: update version

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

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

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

* chore: format

* docs: improve sentence

* docs: improve display example

* refactor: enhance prop type

- fit with segmented direction prop
- enhance type according with
https://github.com/element-plus/element-plus/pull/22757

---------

Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: Dsaquel <291874700n@gmail.com>
2025-11-23 09:07:43 +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
bc71cba2d2 feat(components): [config-provider/button] add text prop (#21806) 2025-08-19 17:08:31 +02: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
Noblet Ouways
6c924a7066 feat(components): [config-provider] support more button config (#20726)
* feat(components): [config-provider] support more button config

* chore: add docs & test

* chore: remove empty string
2025-05-14 15:02:50 +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
qi
5b9f446900 fix(components): [button] use tag and disabled comp click triggered (#17804)
* fix(components): [button] use tag and disabled comp click triggered

* refactor: optimize code
2024-08-16 11:01:07 +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
chouchouji
c03c1dd2ce refactor(components): [button-group] optimize code (#17607) 2024-07-21 18:05:47 +08:00
yang
c3c3793e4f flx(component): buttonColor is calculated in the 'var' case (#17319)
* flx(component): buttonColor is calculated in the 'var' case

* pass test:ssr

* add prefix

* pass lint
2024-06-28 14:14:01 +08:00
wzc520pyfm
af94533e10 refactor(components): [button] use buttonkls (#16090) 2024-04-04 17:08:01 +08:00
sleepyShen1989
74bfbefc28 test(components): [button] change slot mode (#14823) 2023-11-18 16:47:34 +08:00
Hill
820e5a6b20 test(components): [button] fix typos in test description (#14314) 2023-09-18 08:47:36 +08:00
btea
4315f02362 test: [button] add comment resolve ts error (#13965)
* test: [button] add comment resolve ts error

* chore: update comment
2023-08-15 19:23:08 +08:00
Fl
4515023c40 test(components): [button] add test cases for using props of form and form-item (#13726)
test(components): add test cases for using props of form and form-item

add case for using size and disabled from form

add case for using size from form-item
2023-07-29 22:18:45 +08:00
qiang
b0709e1d83 feat(components): [button] add tag attribute (#11853)
* feat(components): [button] add tag attribute

* fix: typo

* docs: update

* refactor(components): [button] detach button props

* docs: update
2023-04-10 22:27:43 +08:00
Jeremy
4c27822ef0 fix(components): circular referencing issue (#11777)
* fix(components): circular referencing issue

* Move sizes related into hooks.
* Remove size definitions in forms only re-exports.

* chore: fix failing tests
2023-03-01 16:44:09 +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
Jeremy
11925c8231 refactor(tokens) - [form] (#11743)
* refactor(tokens): [form] - remove tokens/form

* Move content in tokens/form to components/form.
* Replace token imports in components/form.

* chore: remove form/tokens and replace imports

* refactor(components): [form/form-item]

* Move `useForm` related hooks to components/form
* Replace references to reduce circular dependencies.
2023-02-27 13:19:20 +08:00
Xc
b3553a1cae docs(components): [button] (#10594)
* docs(components): [button]

* docs(components): [button]
2022-11-14 10:46:38 +08:00
Jeremy
4150baa7a3 refactor(components): [button] (#10152)
* refactor(components): [button]

* Extract logic code out of component.
* Reorganize code for better readabilities.

* chore: remove export of button group instance
2022-10-20 17:14:02 +08:00
Xc
ebc1e969e6 fix(components): [button] type text deprecated (#9611) 2022-09-03 23:09:53 +08:00
zz
f5fa7e741f refactor(utils): refactor iconPropType (#9502) 2022-08-28 13:20:07 +08:00
류한경
a9766220a6 refactor(components): [button] use JSX in Unit test (#8024) 2022-06-01 13:02:18 +08:00
0song
0e3ea58421 fix: correct the deprecated note for el-button (#7854)
fix: correct the deprecated note for el-button
2022-05-23 08:30:50 +00:00
JeremyWuuuuu
5bfa42cfed feat(components): [button] restore type="text" (#7761) 2022-05-18 00:39:31 +08:00
Xc
ad3d998752 feat(components): [button] add link api (#7652)
* feat: button add link type

* fix: code lint

* feat: button add link api

* docs: edit word

Co-authored-by: xiaochenchen <xiaochen.chen@igg.com>
2022-05-14 12:20:02 +08:00
JeremyWuuuuu
a4aad5a9c0 feat(components): [button] update text button (#7515) 2022-05-05 23:53:47 +08:00
云游君
3d1b3d4a58 refactor(theme-chalk): scss css var namespace (#7344)
* refactor(theme-chalk): scss css var namespace

* fix(theme-chalk): compile getCssVar

* fix(theme-chalk): more --el namespace replace & getCssVarWithDefault

* fix(theme-chalk): use cssVarBlockName & cssVar rewrite button css vars

* fix(theme-chalk): replace empty svg fill color with ns

* chore: use cssVarName for --el-color-white

* chore: fix namespace reactive

* chore: use defaultNamespace
2022-04-26 17:19:09 +08:00
Delyan Haralanov
0a0241e54d test: fix console output errors and warnings (#7237) 2022-04-19 17:37:56 +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
云游君
33859cca5d feat: add dark for custom button & adjust details (#7086) 2022-04-10 23:58:20 +08:00
三咲智子
184facdb4c chore: add eslint rule sort imports (#6823) 2022-03-25 15:35:56 +08:00
三咲智子
5d85fba20c chore: self closing vue tag (#6603) 2022-03-13 16:16:11 -04:00
Herrington Darkholme
14353dbfce fix(ci): suppress warning by mark icon as raw (#6555) 2022-03-12 15:58:29 +08:00
Alan Wang
e95dedd22b fix(components): [button] space is not added (#6361) 2022-03-02 12:17:03 +08:00
三咲智子
dbbfa34bec feat(components): [button] add icon slot (#6343) 2022-03-01 00:11:24 +08:00
blackie
c7d738e468 refactor(components): [button-group] switch to script-setup syntax (#6256) 2022-02-24 10:15:28 +08:00
云游君
496398ce38 refactor(theme-chalk): use scss list & map generate type css var (#6221)
* refactor(theme-chalk): use scss list & map generate type css var

* chore(theme-chalk): remove quote for var

* refactor(theme-chalk): use light-7 for check button

* refactor(theme-chalk): use light var for check-tag

* refactor(theme-chalk): use css var for tag color

* refactor(theme-chalk): remove tag-color in scss var
2022-02-23 10:09:32 +08:00