20 Commits

Author SHA1 Message Date
snowbitx
9f7efadca3 refactor(components): [segmented] use type-based definitions (#23453)
* refactor(components): [segmented] use type-based definitions

* chore: add default value

---------

Co-authored-by: keeplearning66 <1256734885@qq.com>
2026-01-19 09:52:12 +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
ykcory
1cdf9b3ce5 fix(components): [segmented] fire change event if option not checked (#19705)
* fix(components): [segmented] update change event processing (#19684)

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

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

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

* test: set test case

* chore: fmt

---------

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
Co-authored-by: Dsaquel <291874700n@gmail.com>
2025-11-25 22:32:28 +08:00
Rainbow
f461b7089a refactor(components): remove unnecessary 'props.' in the template (#22381) 2025-10-02 22:01:02 +08:00
Noblet Ouways
574ad88659 fix(components): [segmented] wrap options item slot to any (#21794)
* fix(components): [segmented] wrap options item slot to any

closed #21791

* chore: add comment
2025-08-18 07:24:09 +08:00
Jeff
80157249ef fix(components): [segmented] fix label item width render (#21379)
* fix(components): [segmented]  fix label item width render

* Update segmented.vue

* chore: use zhiaxiaotong solution

* Update segmented.vue

* chore: foramt

Co-authored-by: zhixiaotong <947803089@qq.com>

---------

Co-authored-by: 知晓同丶 <zhixiaotong.me@qq.com>
2025-07-17 15:45:54 +00: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
09e23e98d0 feat(components): [segmented] add aliases for custom options (#20319)
feat(components): [segmented] Add aliases for custom options

closed #20310
2025-04-02 14:26:35 +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
DDDDD12138
38b691093d fix(components): [segmented] invisible active indicator after clearing selection (#18818)
fix(components): [segmented] invisible active indicator after clear
2024-11-07 13:39:54 +08:00
thinkasany
6b1e951368 feat(components): segmented support vertical direction (#18653)
* feat(components): segmented support vertical direction

* fix(components): improve

* fix(components): empty commit

* fix(components): update api to direction

* chore(components): use n.m

* fix(components): improve

* fix(components): fix

* fix(components): fix

* Update docs/examples/segmented/custom-direction.vue

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

* Update docs/examples/segmented/custom-direction.vue

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

* fix(components): lint fix

---------

Co-authored-by: btea <2356281422@qq.com>
2024-10-31 22:52:43 +08:00
btea
2a9c6dacdc fix(components): [segmented] no option to not render (#18509) 2024-10-17 18:47:51 +08:00
ve
9123a05826 fix(components): [segmented] item may be undefined (#18199)
* fix(components): [segmented] item may be undefined

* fix(components): [segmented] ts type error

* fix(components): [segmented] Update document Option ts type
2024-09-13 17:36:42 +08:00
wzc520pyfm
ec9cfe81dd fix(components): [segmented] fix async disabled style of selected item (#17716)
* fix(components): [segmented] fix async disabled style of selected item

closed #17715

* fix(components): [segmented] fix async disabled style of selected item

* test(components): [segmented] updated count of disabled test

* chore(components): [segmented] remove redundant code
2024-08-18 11:32:02 +08:00
ToyCat93
b0b98e5d11 fix(components): [segmented] modelValue boolean type validation warning (#17656)
* fix(components): [segmented] of boolean type, throw invalid event args

* docs(components): [segmented] add boolean type to the v-model
2024-07-26 13:48:41 +08:00
kooriookami
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
kooriookami
546b21ea82 feat(components): [segmented] new component (#16258)
* feat(components): [segmented] new component

* feat(components): [segmented]

* feat(components): update

* feat(components): update

* feat(theme-chalk): update

* feat(components): update

* feat: update

* feat: update

* feat(components): add focus-visible

* feat(theme-chalk): update

* feat(components): fix test

* docs: docs

* feat(components): update

* feat: add icon
2024-04-11 18:48:52 +08:00