63 Commits

Author SHA1 Message Date
69d717028e test(components): [avatar, image] improve image load test stability (#21762)
* test(components): [avatar] improve fallback slot test stability

* test: improve image test
2025-08-15 14:26:30 +08:00
6cf0a1d48f fix(components): [image] support lazy inside transformed containers (#21573)
* fix(components): [image] support lazy inside transformed containers

* fix: update
2025-08-05 14:33:14 +08:00
c3711304e5 test(components): add close-on-press-escape test case (#21367) 2025-07-16 09:10:46 +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
58a5852d2d refactor(components): improve component boolean type (#21260) 2025-07-06 14:56:17 +02: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
00c78d6fbf fix(components): [image-viewer] dont persist image preview list (#20807)
* fix(components): [image-viewer] dont persist image preview list

* chore: rearrange tests
2025-05-23 16:00:42 +08:00
3fc96e15f8 fix(components): [image] make show-progress prop available (#20590)
fix(components): [image] make `show-progress` prop available (close #20588)
2025-04-29 09:39:29 +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
ad2cbd2a23 refactor(components): [image] image-viewer standalone use (#19715)
* chore: remove prevent body scroll in image-viewer

* docs: format

---------

Co-authored-by: warmthsea <2586244885@qq.com>
2025-02-25 22:10:34 +08:00
61d5dcc3ae feat(components): [image-viewer] add toolbar slot (#19497)
* feat(components): [image-viewer] add toolbar slot

* feat(docs): add docs

* docs: update

* docs: update

* docs: update image viewer API types for clarity

* docs: update custom toolbar version in image documentation to 2.9.4

* Update docs/examples/image/custom-toolbar.vue

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>

* style: remove dividers

* revert: style

* docs: format

---------

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>
2025-01-17 15:50:44 +08:00
ac42b639ce feat(components): [image-viewer] add progress slot and show-progress props (#19465)
* refactor(components): simplify computed properties in image-viewer

* feat(components): [image-viewer] add progress number

* test(components): remove console logs from image-viewer tests

* feat(components): [image-viewer] update progress display and style

* test(components): update progress selector in image-viewer tests

* feat(components): [image-viewer] add slot support for progress display

* docs(components): [image] add progress content description

* docs(components): update docs

* feat(components): [image] simplify progress slot binding

* docs(components): update

* Update packages/components/image-viewer/__tests__/image-viewer.test.tsx

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

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

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

* docs: update progress version in image documentation

* Update packages/components/image-viewer/src/image-viewer.vue

Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>

* feat: add showProgress props

* docs: add demo

* docs: update v

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

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

---------

Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>
2025-01-16 11:44:35 +08:00
2f1e8b3a43 feat(components): [image-viewer] add showPreview method (#19466)
* feat(components): [image-viewer] add showPreview method

* docs(components): [image] update showPreview method version to 2.9.4
2025-01-11 21:50:29 +08:00
10fcc59ed4 refactor: replace Array.isArray with the built-in isArray (#18671)
chore(components): [descriptions] isArray replace Array.isArray
2024-10-28 15:36:44 +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
aceefd7a24 fix(components): [image] cannot trigger event when image is loaded error (#17692)
* fix(components): [image] cannot trigger event when image is loaded error

closed #17540

* fix: use `excludeListeners` to exclude event listeners

* refactor: optimize code

* fix: replace exclude with pick

* refactor: pick container attrs

---------

Co-authored-by: zhixiaotong <947803089@qq.com>
2024-08-02 17:59:59 +08:00
c03c03b493 fix(components): [image] imageViewer crossorigin configuration missing (#17341)
* fix(components): [image] imageViewer crossorigin configuration missing

* fix: 修复代码格式化的问题和 crossorigin 的泛型类型缺失问题

* fix: 修复 imageViewer crossorigin props 没有传入的问题

* fix: 剔除 imageViewer 多余的 crossorigin 的 ref 定义

---------

Co-authored-by: 邱子健 <qiuzijian@realibox.com>
2024-07-01 17:40:37 +08:00
48e75f53dd test: fix ci image/avatar test error (#16863)
* test: fix ci image test error

* test: add test

* test: add test

* test: add ci

* test: add ci

* test: fix avatar emitted undefined

* test: fix ci image test error

* test: fix ci image/avatar test error

* test: fix ci image/avatar test error

* test: again test

* test: again test2

* test: delete test ci
2024-05-16 12:49:50 +08:00
f60db10134 fix(components): [image-viewer] Fix crossorigin (#15511)
* fix(components): [image-viewer] Fix crossorigin

closed #15468

* fix(components): update
2024-01-15 14:34:26 +08:00
52d89cc06d docs(components): [image] add type of crossorigin (#15471)
* docs(components): [image] add type of crossorigin

* Revert "docs(components): [image] add type of crossorigin"

This reverts commit a87f7803cceea80d4c46526190be7cec9a9e45cd.

* fix(components): [image] clear the default value of crossorigin.

* docs(components): [image] set crossorigin default type to ''.

* docs(components): [image] format table style

* fix(components): [image] remove the default value of crossorigin.

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

* fix(components): [image] remove type declarations for crossorigin constants

---------

Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>
2024-01-12 16:06:33 +08:00
4a3318f7b1 fix(components): [image, image-viewer] Add crossorigin property (#15406)
Co-authored-by: Xc <124118265@qq.com>
2024-01-08 17:21:21 +08:00
39fe0a4e22 feat(components): [image-viewer] add minScale and maxScale (#14120)
* fix(components): [image-viewer] add scale props

* docs(components): [image] add min-scale and max-scale  properties

* feat(components): [image] add minScale and maxScale properties

* docs(components): [image] add example properties

* docs(components): [image] add docs  properties

* docs(components): [image] add docs properties

* docs(components): [image] update  version tag
2023-10-12 15:23:48 +00:00
abd6faecc3 docs(components): [image] update class by computed and new docs (#13024)
* docs(components): [image and image viewer] use new display tag

* refactor(components): [image | image-viewer] set class by computed

* docs(components): [image] update head of image viewer exposes
2023-06-03 20:54:43 +08:00
caae0d1a48 fix(components): [image] fixed lazyLoad scroll end not loading (#12596)
Co-authored-by: cicada <ruoheng@pinduoduo.com>
2023-05-01 10:55:16 +08:00
105d79b0d9 refactor: extract isClient and isNumber isBoolean (#12504)
* refactor: extract isClient and isNumber isBoolean

* test: update test

* refactor: extract isClient to browser
2023-04-20 20:00:49 +08:00
d172535084 fix(components): [image] Display error content when picture loading fails (#11600)
* fix(components): [image] Add status attribute and set styles

* fix(components): [image] remove image wrapper container

* chore(components): [image] remove invalid test

* fix(components): [image] update

* chore(components): [image] Remove unwanted code and optimize code

* chore(components): [image] optimize code
2023-04-09 16:11:26 +08:00
a4b73eccda feat(components): el-image support set zoom-rate (#10930)
* feat(components): el-image support set zoom-rate

* docs(components): el-image add `zoom-rate` attr
2022-12-12 10:38:39 +08:00
8411ecc93a feat(components): [image] fix #8919 bug (#8920)
Co-authored-by: wanyiding <wanyiding@tuhu.cn>
2022-07-26 17:53:35 +08:00
d10b02b422 fix(components): [image] position styles error when used slots (#8109)
* fix(components): [image] position styles error when used slots

* feat(components): [image] hide image on load

* feat(components): [image] load emit
2022-06-09 10:23:58 +08:00
60cd22b890 feat(components): [image] support native lazy loading (#7968) 2022-06-01 13:21:05 +08:00
21a7089ec5 refactor(build): use type unsafe (#7523)
* refactor(build): use type unsafe

* fix: windows
2022-05-13 16:55:10 +08:00
5daf53e8e1 refactor(components)!: remove deprecated warning (#7528) 2022-05-06 13:19:01 +08:00
879be3ce28 fix(components): [image] fix attrs (#7451)
closes #7242
2022-05-02 14:49:25 +08:00
Xc
335569e8a7 feat(components)[image] imageviewer add close-on-press-escape(#7154) (#7182)
* feat: imageviewer add close-on-press-escape(#7154)

Co-authored-by: xiaochenchen <xiaochen.chen@igg.com>
2022-04-25 13:34:40 +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
c14ac56be7 fix(components): [image] add infinite prop (#7021) 2022-04-06 17:36:08 +08:00
8c26036e60 refactor(components): [image, image-viewer] refactor (#6704)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-03-30 21:44:30 +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
b8c38a9fe5 chore: enhance eslint rules (#6476)
* chore: enhance eslint rules

* chore: enhance eslint rules
2022-03-08 14:03:32 +08:00
15895d6d4d refactor(utils): extract isElement (#6292) 2022-02-26 15:00:57 +08:00
dcb7365365 feat(components): [el-image] support append preview to body (#5883)
* feat(components): [el-image] support append preview to body

* chore: add deprecated warning

* chore: compatible with  append-to-body and get zIndex from PopupManager

* fix: apply transition on the initial render

* fix: PopupManager import

* fix: modify default value

* chore: rename to teleported

* chore: rename to teleported

* fix: resolve import issue

* fix: resolve import issue

* fix: resolve import issue
2022-02-11 15:16:45 +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
eb6553bedf fix(components): [image-viewer] fix some bugs and improve style (#5673)
* fix: fix ElImageViewer

* fix: update

* perf: perf zoomRate
2022-01-28 15:21:43 +08:00
d7297131cf refactor(components): [image, image-viewer] use useNamespace (#5513) 2022-01-22 17:35:50 +08:00
9460e42ac6 fix(components): [el-image] image load error (#4820)
Co-authored-by: C.Y.Kun <30518686+emojiiii@users.noreply.github.com>
2022-01-18 22:26:28 +08:00
6287c1f92d refactor(utils): remove isServer (#4792) 2021-12-12 23:28:03 +08:00
bbd16a08e9 refactor(hooks): refactor hooks (#4253)
* refactor(hooks): remove use-css-var

* refactor(hooks): remove use-events

* refactor(hooks): remove use-migrating

* refactor(hooks): remove use-transition

* refactor(hooks): named export useAttrs

* refactor(hooks): named export useFocus

* refactor(hooks): refactor useFormItem

* refactor(hooks): refactor useGlobalConfig

* refactor(hooks): refactor useLocale

* refactor(hooks): refactor useLockscreen

* refactor(hooks): refactor useModal

* refactor(hooks): refactor useModelToggle

* refactor(hooks): refactor usePreventGlobal

* refactor(hooks): refactor useRestoreActive

* refactor(hooks): refactor useTeleport

* refactor(hooks): refactor useThrottleRender

* refactor(hooks): refactor useTimeout

* refactor(hooks): refactor useTransitionFallthrogh
2021-11-29 15:58:44 +08:00