65 Commits

Author SHA1 Message Date
db680e4dd0 fix(components): [checkbox-group] dynamic prop-value cause ivalidate loop (#21309)
* fix(components): [checkbox-group]

fix  el-checkbox-group in el-form-item with dynamic prop cause infinite update loop

closed #21305

* chore: fix lint

---------

Co-authored-by: Dsaquel <291874700n@gmail.com>
2025-07-15 00:06:21 +08:00
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
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 db0116a288299c507e3cfc4d7a22e2207265d920.

* Revert "chore: fix"

This reverts commit 69c82a90c01525e38180be4c21e8ef5602512318.

* chore: fix

* style: `pnpm lint:fix`

* fix: lint

* chore: `pnpm format`
2025-06-16 15:37:12 +08:00
7be4a3765e chore: emits smaller declaration files (#20109)
* Revert "fix(types): packing unexpected types (#19419)"

This reverts commit 13506ffb814d2b1300bf57c06648b6b27281c7c5.

* 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
7dbac0e1bc chore: use event constants instead string (#20104)
* chore: use UPDATE_MODEL_EVENT constants

* chore: update INPUT_EVENT & CHANGE_EVENT
2025-03-12 15:52:07 +08:00
35b4240600 fix(components): [checkbox] default false if no false-value attr (#18187)
* fix(components): [checkbox] default false if no false-value attr

closed #18186

* test(components): [checkbox] add test case

closed #18186
2024-09-21 10:36:23 +08:00
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
0f8282520f chore(components): remove deprecated 2.8.0 (#17735)
* chore(components): remove deprecated 2.8.0

* chore(components): update
2024-08-02 11:08:24 +08:00
29ae802fae chore(components): fix test warning (#16688) 2024-04-28 14:56:16 +08:00
bd1613d599 feat(hooks): add use-aria hooks (#16598)
* feat(hooks): add use-aria hooks

* feat(components): update

* feat(hooks): update

* feat(hooks): update
2024-04-23 13:56:44 +08:00
d2b8633f98 fix(components): [checkbox] fix true-value and false-value (#16051)
* fix(components): [checkbox] fix true-value and false-value

closed #16049

* fix(components): update test
2024-03-06 16:51:20 +08:00
3ca4473aeb feat(components): [checkbox & radio] Use value instead of label act as value (#15525)
* feat(components): [checkbox & radio] Use value instead of label

* feat(components): update

* feat(components): update

* feat(components): update

* feat(components): update

* feat(components): update

* feat(components): update test

* feat(components): true-value false-value

* feat(components): update
2024-02-28 12:48:07 +08:00
01c99477a6 feat(components): [checkbox] Checkbox can uncheck exceed max value (#15513)
* feat(components): [checkbox] Checkbox can uncheck exceed max value

closed #15494

* feat(components): add test
2024-01-16 16:35:57 +08:00
9e08fef52c fix(components): [checkbox] indeterminate checkbox a11y fix (#14322) 2023-10-12 08:55:23 -05:00
e32cef1d1b refactor(components): [checkbox] set the label default value to undefined (#14011)
* fix(components): [checkbox] allow the label value to be number 0

* fix: update computed

* test: add test case

* fix: update
2023-10-11 15:00:09 +08:00
95e411ee08 fix(components): [radio checkbox] fix click event triggered twice (#13936)
fix(components): [radio checkbox] @click event triggered twice
2023-08-15 21:44:21 +08:00
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
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
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
3780064ce7 style(components): [checkbox] fix checkbox-button class var spelling (#11044)
Co-authored-by: din <amifed.me@gmail.com>
2023-01-04 18:03:28 +08:00
Xc
15d146949f docs(components): [checkbox] (#10888)
* docs(components): [checkbox]
* Adjust API style
* classname
2022-12-09 14:46:27 +08:00
4b0db5d8a1 fix(components): [checkbox] wrong checked status when label is Object (#9863)
* fix(components): [checkbox] wrong checked status when label is Object

* fix(components): [checkbox] add unit test for label is object

* fix(components): [checkbox] add unit test for label is object

Co-authored-by: init-qy <953218204@qq.com>
2022-11-10 12:10:18 +08:00
b3be81dc50 fix(components): [checkbox] circular reference (#10278) 2022-10-27 14:05:10 +08:00
7641f2455c fix(components): the label causes the click event to trigger twice (#9991)
Co-authored-by: qiang <itaco@qq.com>
2022-10-10 19:30:00 +08:00
zz
174a98b21f fix(components): [checkbox] fix injection warn (#9813) 2022-09-18 18:41:17 +08:00
49109158c8 refactor(components): [checkbox] refactor (#9594)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-09-16 20:53:11 +08:00
Xc
3f588b0406 fix(components): [checkbox] label is object in group (#9271)
* fix(components): [checkbox] label is object in group

* fix(components): [checkbox] abbreviated code
2022-08-25 21:59:03 +08:00
zz
2d450be082 fix(components): [checkbox] injected form context may be undefined (#8865)
* fix(components): [checkbox] injected form context may be undefined

* chore: fix error
2022-08-05 21:45:17 +08:00
zz
0cabd42412 refactor(components): [checkbox] use JSX in Unit test (#9009) 2022-07-25 22:28:08 +09:00
44f48c65af fix(components): [checkbox] fix type error (#8937)
* fix(components): [checkbox] fix type error

* fix(components): [checkbox] fix type error
2022-07-25 20:40:07 +09:00
72d0bc2177 fix(components): add validate-event for form types component (#8173)
* fix(components): add validate-event for form types component

* chore: format code
2022-07-02 21:01:05 +08:00
zz
a894fbf990 refactor(components): [transfer] switch to script-setup syntax (#8343)
* refactor(components): [transfer] switch to script-setup syntax

* chore: improve code

* chore: improve type

* fix: lost reactivity

* chore: fix data error

* chore: simplify code
2022-06-27 22:08:03 +08:00
7097940f4a refactor: add ts-nocheck and check all files (#8401) 2022-06-22 08:04:42 +08:00
ytx
12b6d443c6 fix(components): [checkbox-group] fix Wrong type checking (#8195)
el-checkbox-group uses the emit type of el-checkbox,
resulting in a type check error in the console during development
2022-06-13 21:32:25 +08:00
18891d79e9 test(components): [checkbox] add data type (#8077) 2022-06-03 22:41:26 +08:00
Xc
8ef2bf70e2 refactor(components): [checkbox-button] switch to script-setup syntax (#7827) 2022-05-24 16:51:19 +08:00
Xc
452f9fc4f9 refactor(components): [checkbox-group] switch to script-setup syntax (#7825)
* refactor(components): [checkbox-group] switch to script-setup syntax

* refactor(components): [checkbox-group] switch to script-setup syntax

* refactor(components): [checkbox-group] switch to script-setup syntax
2022-05-24 15:49:12 +08:00
Xc
d96470f9d2 refactor(components): [checkbox] switch to script-setup syntax (#7794)
* refactor: checkbox switch to script-setup syntax

* refactor: checkbox use useSizeProps and edit test
2022-05-20 15:35:02 +08:00
f3a8856c63 improvement(theme-chalk): visual enhancement (#7563)
* improvement(theme-chalk): visual enhancement

- Add visual enhancement for keyboard nagivation on form items.

* Fix linter issue

* Fix switch active text issue

* Fix bordered radio demo issue
2022-05-16 21:01:41 +08:00
7173e402b7 feat(components): [form-item] auto attach labels to inputs (#7450)
* feat(components): [form-item] auto attach labels to inputs

* feat(components): [form-item] auto-attach up through select

* feat(components): [form-item] auto id complete for all inputs

* feat(components): [form-item] fix lint, remove unused usePopper hook

* feat(components): [form-item] PR comments
2022-05-05 22:04:32 +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
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
5d85fba20c chore: self closing vue tag (#6603) 2022-03-13 16:16:11 -04:00
d3915ed493 fix(components): [el-checkbox] modelValue (#6168) (#6169) 2022-03-07 16:58:14 +08:00
c72679e4e9 refactor(components)!: refactor form (#5401)
* refactor(components): refactor form

* refactor: resolve PR comments

* refactor(components): refactor isNested

* refactor: resolve PR comments
2022-03-06 22:20:56 +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
a34ad9c53d fix(components): [el-checkbox] is-disabled class is added unexpectedly
- Fix the regression error which cause non-grouped chekcbox has unexpected `is-disabled` class
2022-01-25 11:51:43 +08:00
fec3d0c69d refactor(components): [checkbox] use useNamespace (#5493) 2022-01-24 18:13:44 +08:00