58 Commits

Author SHA1 Message Date
rzzf
fea1ae7a86 test(components): [carousel] use fake timers instead of real timers (#23712)
test(components): [carousel] use mock timers instead of real timers
2026-03-03 11:48:20 +08:00
E66
bdf2fe7d51 fix(components): [carousel] fix vertical indicator layout with label and outside (#23368)
* fix(style): [carousel] fix vertical indicator layout with label prop

* fix(style): [carousel] fix outside indicator in vertical mode

* refactor(style): [carousel] optimize style control

* Update carousel.vue

* Update carousel.scss

* Update packages/theme-chalk/src/carousel.scss

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

* Update carousel.scss

* Update carousel.scss

* Update carousel.scss

* Update packages/theme-chalk/src/carousel.scss

---------

Co-authored-by: rzzf <cszhjh@gmail.com>
Co-authored-by: keeplearning66 <1256734885@qq.com>
2026-02-03 22:03:49 +08:00
E66
0023b39f01 fix(components): [carousel] avoid stopping autoplay after children change (#23494)
* fix(components): [carousel] Carousel stops autoplay

* test(components): [carousel] add test cases

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

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

---------

Co-authored-by: keeplearning66 <1256734885@qq.com>
Co-authored-by: rzzf <cszhjh@gmail.com>
2026-02-01 15:11:06 +08:00
snowbitx
eff17abec3 refactor(components): [carousel] use type-based definitions (#23430)
* refactor(components): [carousel] use type-based definitions

* fix: update

* fix: ts error

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

---------

Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: rzzf <cszhjh@gmail.com>
2026-01-18 18:04:35 +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
Rainbow
f461b7089a refactor(components): remove unnecessary 'props.' in the template (#22381) 2025-10-02 22:01:02 +08:00
Jevin
66a0ca2758 fix(components): [carousel] special case activeIndex is inaccurate (#21736)
* fix: done

* chore: update

* chore: update

* chore: foramt

---------

Co-authored-by: chenwenjie <chenwenjie@zujibao.net>
Co-authored-by: warmthsea <2586244885@qq.com>
2025-08-13 09:49:35 +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
w2xi
a37b793fae fix(components): [tabs] update tabs order correctly when reordering (#21064)
* fix(components): [tabs] update tabs order correctly when reordering

* fix

* perf: reorder only if child components have been moved

* chore: tweak the test

---------

Co-authored-by: dopamine <coderzyou@gmail.com>
2025-07-04 19:00:39 +08:00
dopamine
d05f87b6fd refactor(hooks): [useOrderedChildren] sort child components on patch (#21124) 2025-06-26 17:17:02 +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
dopamine
eff628a65a refactor(components): [carousel] simplify the code for motion blur (#20696) 2025-05-12 16:41:36 +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
thinkasany
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
momei
2fae1b147c fix(components): [carousel] fix style when use motionBlur (#18329) 2024-09-22 13:31:38 +08:00
blesstosam
c657bbe28b refactor(components): [carousel] use var to replace raw string (#17958) 2024-08-22 15:07:30 +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
sea
0b2f6911a9 feat(components): [carousel] export activeIndex (#17650)
Co-authored-by: qiang <qw13131wang@gmail.com>
2024-07-26 10:20:25 +08:00
sea
a11a7d09dc feat(components): [carousel] add cardScale prop (#17621)
* feat: add params

* docs: add content

* perf: code

* ci: again test
2024-07-25 14:31:37 +08:00
wzc520pyfm
07a1ac7583 docs(components): [carousel] use new display tag (#14953) 2024-07-23 10:24:48 +08:00
btea
f52d1cc8c9 fix(components): [carousel] disable the last monitoblur effect (#17374) 2024-07-04 11:31:17 +08:00
Jed
53bc6517f2 feat(components): [Carousel] Add motion blur functionality (#15603)
* feat(components): [Carousel] Add motion blur functionality

docs(components): [Carousel] Add example properties

docs(components): [Carousel] Add docs properties

* fix(components): [Carousel] change the id name in filter in svg

fix(components): [Carousel] button to remove motion blur effect

fix(components): [Carousel] svg hides when motion blur is false

* update(components): [Carousel]  docs/en-US/component/carousel.md

Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>

* update(components): [Carousel] docs/examples/carousel/motion-blur.vue

Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>

* update(components): [Carousel] docs/examples/carousel/motion-blur.vue

Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>

* update(components): [Carousel] packages/components/carousel/src/carousel.ts

Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>

* docs(components): [Carousel]  add feature version labels

---------

Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>
2024-02-29 14:54:06 +08:00
Cloyd Lau
73f4d0f57b fix(components): [carousel] improve a11y (#15579)
* fix(a11y): carousel buttons do not have an accessible name

* fix: eslint warnings

* chore: change the label content

* feat: improve i18n
2024-02-03 14:03:41 +08:00
wzc520pyfm
34effd4e7e refactor(components): [carousel] class optimization in code (#14954)
refactor(components): [carousel] class optimization in code
2023-12-26 20:36:35 +09:00
cuongle-hdwebsoft
cea19ac161 fix(components): prevent carousel from auto playing (#14553)
prevent carousel from auto playing

closed #14524
2023-10-15 19:38:17 +08:00
井柏然
d88cb758d8 fix(components): [carousel] two length transform optimize (#12174)
* fix(components): [carousel] two length transform optimize

* fix(components): [carousel] default init function slot

* fix(components): [carousel] cancel optimize when loop is false

* fix(components): [carousel] filter card type

* fix: test

* style: code lint

* fix: cardtype

* fix: remove test code

* fix: act index

* feat: use flattedchildren

* fix: code lint

* fix: rename and add comment
2023-10-11 19:32:26 +08:00
SaberA1ter
14c43ca59f fix(components): [carousel] Watch items causing state loss(#13010) (#13011)
* fix(components): [carousel] Watch items causing state loss(#13010)

* perf(components): [carousel] Using the third parameter of watch(#13010)

---------

Co-authored-by: ZZQChongYa <zhengziqiang@star-net.cn>
2023-09-16 09:27:12 +08:00
热爱vue的小菜鸟
cd306117ae feat(components): [carousel] If the carousel height is auto apply item height (#12388)
* fix(components): [carousel] :height is auto and card direction  vertical

* fix(components): [carousel] :height is auto and card direction vertical

* fix(components): [carousel] :height is auto and card direction 垂直

* feat(components): [carousel] height is adaptive when height is auto

* feat(components): [carousel] height is adaptive when height is auto

* fix(components): [carousel] :height is auto and card direction 垂直

* fix(components): [carousel] :height is auto and card direction 垂直

* fix(components): [carousel] :height is auto  test.tsx

* fix(components): [carousel] :height is auto and card direction

* fix: delete zIndex

* fix: delete ts type

* fix: add test

* fix: css modification

* fix: delete doc inside

* fix: Revise card width not adaptive

* fix: Modify calcCardTranslate

* fix: test

* fix: calcCardTranslate

* fix: remove redundant code
2023-05-14 17:47:43 +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
류한경
600fd69201 fix(components): [carousel] delete the indicator props (#11483) 2023-02-10 21:35:19 +08:00
zz
93f2a1d950 fix(components): [carousel] missing root ref (#10312) 2022-10-30 16:27:44 +08:00
Jeremy
bfb8e26ed8 refactor(components): [carousel-item] (#10219)
Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-10-26 13:00:42 +08:00
Jeremy
904605587f refactor(components): [carousel] (#10188)
Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-10-24 12:47:42 +00:00
dopamine
a03cf125fd fix(components): [carousel] improper active item (#8904)
* fix(components): [carousel] none of active item

closed #8891

* fix: ts error

* fix: guarantee items order when reusing carousel-item component

* style: code format

* fix: test fail

* chore: correct type

* fix: sorting failed in some cases

* better implementation

better implementation

* impove code accroding to review comment
2022-10-02 08:44:40 +08:00
LIUCHAO
ef90159db5 fix(components): [carousel] reset the timer (#8388) 2022-07-28 21:23:52 +08:00
btea
b86459383e fix(components): [carousel] computed interval prop (#9022) 2022-07-26 16:57:55 +08:00
qiang
d0cbc1f387 refactor(components): [carousel] complete optional values (#8231) 2022-06-13 09:12:41 +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
三咲智子
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
三咲智子
184facdb4c chore: add eslint rule sort imports (#6823) 2022-03-25 15:35:56 +08:00
JeremyWuuuuu
6b74660a20 chore(components): [el-carousel] code style refactor (#6693)
* chore(components): [el-carousel] code style refactor

- Remove duplicated code
- Simplified the code for components

* Wrap resize handle into shallowRef

* Export CourouselItemState type

* Enhance itemInStage method

* Refine code
2022-03-17 22:20:25 +08:00
卜启缘
176bc652ea refactor(components): [carousel] refactor (#6681)
* refactor(components): [carousel] refactor

* fix: build error
2022-03-17 12:21:06 +08:00
三咲智子
5d85fba20c chore: self closing vue tag (#6603) 2022-03-13 16:16:11 -04:00
三咲智子
b8c38a9fe5 chore: enhance eslint rules (#6476)
* chore: enhance eslint rules

* chore: enhance eslint rules
2022-03-08 14:03:32 +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
三咲智子
426a6a686c feat: switch to lodash-unified (#5734)
* feat: switch to lodash-unified

* chore: move lodash mocks
2022-02-08 10:37:21 +08:00
iamkun
94311a8e39 refactor: refactor carousel to support namespace (#5553) 2022-01-25 00:53:20 +08:00
三咲智子
5087026948 refactor: change icon package name (#4625) 2021-12-04 11:20:06 +08:00