27 Commits

Author SHA1 Message Date
知晓同丶
ef4832863e feat(components): [slider] allow step to be set to "mark" (#23685)
* feat(components): [slider] add prop `restrictToMarks`

* rerun test

* fix: fix issues

* fix: fix issues

* fix: fix issues

* refactor: replace `restrictToMarks` with step 'mark'

* fix: types issue

* fix: fix issue

* refactor: optimize code & add range test

* Update slider.md for version 2.13.4

* refactor: simpify code & add warn

* chore: enhance step prop description

* fix: fix docs & add warn

* refactor: optimize markList computation and validation logic

* chore: sync description

* chore: bump `2.13.6`

---------

Co-authored-by: zhixiaotong <947803089@qq.com>
Co-authored-by: rzzf <cszhjh@gmail.com>
2026-03-09 10:49:59 +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
qiang
6388dc0f16 fix(components): avoid capturing focus when disabled (#22616)
closed #21095
2025-10-29 11:44:44 +01:00
Zhong
85fe9b86d2 fix(components): [slider] support uneven step sizes (#22401) 2025-10-04 11:09:11 +08:00
Zhong
e3b5db5d2a fix(components): [slider] correctly reset sliderSize (#21812) 2025-08-19 16:35:34 +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
qiang
343cacf5cc fix(components): numpadEnter does not work like the Enter (#18855) 2024-11-14 21:14:51 +08:00
tangyongjie
14c8f752e4 test(components): [slider] remove console.log (#18217) 2024-09-08 18:42:29 +08:00
Lov`u`e
cb8d869082 fix(components): [slider] set slider precision (#15328)
fix(components): add a attribute:precision,used to set slider precision

Co-authored-by: qiang <qw13131wang@gmail.com>
2024-07-27 17:36:08 +08:00
Jeremy
e8bbdf974b feat: integrate use popper (#11045)
* feat: integrate use popper

* Integrate popper with use popper hook.
* Reorganize code for better readabilities.

* fix: contentStyle typing

* fix: test failure

* fix: slider placement testing

* refactor: slider test case refactoring

* fix: virtual triggering

---------

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2023-01-31 11:58:52 +08:00
류한경
640e3bb24d fix(components): [slider] fix type error (#9886) 2022-09-24 14:06:33 +08:00
snowingfox
9cd204712b refactor(components): [tooltip] switch to script-setup syntax (#9685)
Co-authored-by: holazz <2418184580@qq.com>
Co-authored-by: sxzz <sxzz@sxzz.moe>
2022-09-20 03:31:05 +00:00
류한경
2fce0f1d3b fix(components): [slider] not changed marker style (#8737)
* fix(components): [slider] not changed marker style

* test: add mark props test case
2022-07-10 16:28:45 +08:00
류한경
5b817d3008 feat(components): [slider] placement (#8561)
* feat(components): [slider] placement

feat: add fallback placements

feat: rename tooltip-placement

refactor: test code

docs: add placement attribute

docs: prettier

* docs: example placement
2022-07-04 22:35:53 +08:00
三咲智子
7097940f4a refactor: add ts-nocheck and check all files (#8401) 2022-06-22 08:04:42 +08:00
zz
518db1e240 refactor(components): [slider] use JSX in Unit test (#8225) 2022-06-22 00:43:43 +08:00
zz
1975aa24fe refactor(components): [slider] switch to script-setup syntax (#8008) 2022-06-12 08:32:54 +08:00
Delyan Haralanov
c99592502f test: remove deprecated done callback (#7741)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-05-17 20:32:52 +08:00
opengraphica
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
opengraphica
16989d8187 feat(components): [slider] aria keyboard controls and attrs (#7389)
* feat(components): [slider] aria keyboard controls and attrs

fix #7350

* feat(components): [slider] fix lint error in slider types

* feat(components): [slider] change start value for home/end unit test

* feat(components): prevent scrolling on touch screen for runway

* feat(components): [slider] type-o in locale prop

* fix(components): [slider] PR comments r1

* fix(components): [slider] linting errors
2022-04-27 21:38:47 +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
jeremywu
bcd5c8b848 test(components): removing mock folder (#5911)
- Remove mock folder from the project root
- Add mock for each component test file accordingly
2022-02-10 16:35:44 +08:00
kooriookami
b33fed911b feat(components): [el-slider] slider add size prop (#5091)
* feat: slider add size

* feat: update

* feat: update

* feat: update
2022-01-07 15:44:43 +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
三咲智子
55348b30b6 style: use prettier (#3228)
* style: use prettier

* style: just prettier format, no code changes

* style: eslint fix
object-shorthand, prefer-const

* style: fix no-void

* style: no-console
2021-09-04 19:29:28 +08:00
jeremywu
b0f4fc5f23 refactor: update package path and bundle folder (#3016) 2021-08-24 13:36:48 +08:00