Commit Graph

61 Commits

Author SHA1 Message Date
Zhan Dong
020c904b18 fix(components): [image-viewer]: add touch event in mobile (#12550)
* style(components): [image-viewer]: add scroll

closed #12473

* fix(components): [image-viewer] add touch event in mobile

closed #12473

* style(components): [image-viewer] remove useless  overflow

---------

Co-authored-by: qiang <qw13131wang@gmail.com>
2025-11-23 09:09:43 +08:00
rzzf
0723ec60ed refactor(components): [image-viewer] use useLockscreen for scroll lock (#22734) 2025-11-11 17:19:00 +08:00
Rainbow
f62501cf40 fix(components): [image-viewer] avoid triggering scroll wheel events outside the preview area (#22722)
* fix: avoid triggering scroll wheel events outside the preview area

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

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

---------

Co-authored-by: rzzf <cszhjh@gmail.com>
2025-11-08 11:58:12 +08:00
qiang
9043e16d94 fix: the KeyboardEvent.code is always empty string on Android (#22228)
closed #20330
2025-09-21 01:23:38 +02:00
jiaxiang
0ff86060ab feat(components): [image-viewer] add error slot (#21961)
* feat(components): [image-viewer] add custom failed content

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

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>

* feat: rename error slot

* test: add custom load failed slot tests for Image and ImageViewer

* docs: perf dome

* fix: update v

* feat: add activeIndex and src properties

* fix: add key binding to img element for better reactivity

* fix: keep original structure

* fix: restore error source in image load-failed example

* feat: add image preview

* refactor: remove unused var

* fix: update demo

* chore: better contrast for dark mode

---------

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
Co-authored-by: Dsaquel <291874700n@gmail.com>
2025-09-17 17:46:35 +02:00
catanswer
8371deaa5d feat(components): [image-viewer] add initial-scale prop (#22071)
* feat(components): [image-viewer] add initialScale attribute

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

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

* feat(components): [image-viewer] support set asynchronously

* feat(components): [image-viewer] Change initialScale to scale

* Update packages/components/image/src/image.ts

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

* chore: format

---------

Co-authored-by: catanswer <--global>
Co-authored-by: btea <2356281422@qq.com>
Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
Co-authored-by: Dsaquel <291874700n@gmail.com>
2025-09-17 15:06:50 +00:00
Zhong
c3711304e5 test(components): add close-on-press-escape test case (#21367) 2025-07-16 09:10:46 +08: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
Zhong
58a5852d2d refactor(components): improve component boolean type (#21260) 2025-07-06 14:56:17 +02: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
Noblet Ouways
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
btea
1b69cb9777 feat(components): [image] progress slot higher priority (#20353)
* feat(components): [image] `progress` slot higher priority

* fix: update

* chore: delete extra spaces

---------

Co-authored-by: warmthsea <2586244885@qq.com>
2025-04-05 22:14:39 +08:00
sea
c65399a4c1 feat(components): [image-viewer] export setActiveItem in slot (#20190)
* feat(components): [image-viewer] export `setActiveItem` in slot

* docs: update

* docs: update
2025-03-19 18:00:22 +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
jiaxiang
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
jiaxiang
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
jiaxiang
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
qiang
b80744c045 fix(components): [image-viewer] unable to capture focus (#17919)
* fix(components): [image-viewer] unable to capture focus

closed #7180

* fix: error

* fix: style

* fix: add release-requested
2024-11-20 09:33:59 +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
qiang
270e1d01ba fix(components): SSR hydration error caused by disabled prop of teleport (#17551)
* fix(components): sSR hydration error caused by disabled prop of teleport

* fix(components): [teleport] type error

* chore: type error
2024-08-04 13:50:09 +08:00
zwgwf
94a24dcbc8 refactor(components): [image-viewer] optimise translate calc method (#13157)
* Use trigonometric functions to calculate translate, which can support any angle
2024-08-03 20:08:08 +08:00
Declan Chiu
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
kooriookami
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
赵添
15238ac02d fix(components): [image-viewer] Maximum recursive updates exceeded error (#15483) 2024-01-13 13:54:02 +08:00
Kasun Weligamage
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
Icey Wu
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
Bean Deng 邓斌
95494b7154 feat(components): [image-viewer] Add rotate event when rotating images (#14138)
* feat(components): [image-viewer] Add rotate event when rotating images

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

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

---------

Co-authored-by: btea <2356281422@qq.com>
2023-09-06 06:28:14 +00:00
wzc520pyfm
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
btea
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
Naeemo
843d07dec0 refactor(components): [image] use standard wheel event (#11107) 2023-01-04 18:01:17 +08:00
cx33
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
zz
0296ba2fb7 refactor(components): [image-viewer] use JSX in Unit test (#9717) 2022-09-09 12:28:45 +09:00
zz
e33a279556 feat(components): [image-viewer] add setActiveItem method (#9389)
* fix(components): [image-viewer] initialIndex lost reactivity

* feat(components): [image-viewer] add `setActiveItem` method

* feat: expose instance type

* chore: add test case

* chore: update docs
2022-08-26 18:18:08 +08:00
류한경
cf9339567b refactor(components): [image-viewer] simplify emits type checking (#8329) 2022-06-17 21:37:30 +08:00
三咲智子
6e60279753 fix(image-viewer): typescript error (#7938) 2022-05-30 10:45:07 +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
Delyan Haralanov
0a0241e54d test: fix console output errors and warnings (#7237) 2022-04-19 17:37:56 +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
bqy_fe
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
msidolphin
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
kooriookami
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
btea
d7297131cf refactor(components): [image, image-viewer] use useNamespace (#5513) 2022-01-22 17:35:50 +08:00
三咲智子
5087026948 refactor: change icon package name (#4625) 2021-12-04 11:20:06 +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