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
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
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
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
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
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
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
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
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
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
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
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
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
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
843d07dec0
refactor(components): [image] use standard wheel event ( #11107 )
2023-01-04 18:01:17 +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
0296ba2fb7
refactor(components): [image-viewer] use JSX in Unit test ( #9717 )
2022-09-09 12:28:45 +09:00
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
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
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
de0ee53cf0
test(components): switch all components to vitest ( #7205 )
...
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-04-19 12:46:57 +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
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
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
e9f3d989c6
fix(components): [el-image] preview-src-list warn ( #4472 )
2021-11-21 19:17:17 +08:00
a3d23587c0
fix(components): [image-viewer] fix typo ( #4183 )
2021-11-03 14:17:47 +08:00
883fd8d6ef
epic: refactor icons ( #3492 )
...
* refactor(components): el-alert icon (#3441 )
* refactor(components): el-alert icon
* fix: el-alert test
* fix: [el-alert] lint error
* feat(utils): add icon util
* refactor(components): el-alert icon
* refactor(utils): icon
* test: update alert test
* refactor: remove el-icon in util
* refactor(components): el-notification icon (#3512 )
* chore: temp save changes
* refactor: update icon
* fix: var
* docs: update icon
* fix: type class error
* style: remove unused class
* fix: update icon type
* docs: update icon
* fix: update iconComponent
* refactor(components): el-dialog icon (#3505 )
* refactor(components): [el-dialog] icon
* fix: typo
* refactor: dialog icon ref
* refactor: dialog icon
* style: update close button size
* refactor(components): el-message-box icon (#3507 )
* refactor(components): message-box icon
* refactor(components): message icon
* fix: test
* refactor: update ref
* fix: test
* docs: update icon
* fix: delete unused code
* docs: update type
* fix: update close button size
* fix: type
* fix: icon type class
* fix: icon type
* fix: update type class
* refactor(components): el-popconfirm icon (#3513 )
* refactor(components): el-popconfirm icon
* fix: space styles
* docs: update example
* docs: update example for trigger event
* refactor(components): el-page-header icon (#3518 )
* refactor(components): el-page-header icon
* docs: update icon
* fix: space errors
* refactor(components): el-steps icon (#3520 )
* refactor(components): el-backtop icon (#3514 )
* refactor(components): el-backtop icon
* fix: update font size
* refactor(components): el-button icon (#3536 )
* refactor(components): el-button icon
* fix: update example
* refactor(components): el-button icon
* refactor: style simplify
Co-authored-by: imswk <syfzxx@vip.qq.com>
* refactor(components): el-tree icon (#3590 )
Co-authored-by: qianjie <qianjie@patsnap.com>
* refactor(components): el-avatar icon (#3599 )
Co-authored-by: qianjie <qianjie@patsnap.com>
* refactor(components): el-carousel icon (#3602 )
Co-authored-by: qianjie <qianjie@patsnap.com>
* refactor(components): el-progress icon (#3607 )
Co-authored-by: qianjie <qianjie@patsnap.com>
* refactor(components): el-result icon (#3609 )
Co-authored-by: qianjie <qianjie@patsnap.com>
* refactor(components): el-timeline icon (#3646 )
Co-authored-by: qianjie <qianjie@patsnap.com>
* refactor(components): el-table icon (#3611 )
Co-authored-by: qianjie <qianjie@patsnap.com>
* chore: add vue to gitignore
* fix: buildProp error
* refactor(components): el-pagination icon (#3605 )
* test: el-menu deprecated icon font (#3794 )
* test: el-loading deprecated icon font (#3795 )
* chore: Update changelog 1.1.0-beta.20 (#3838 )
* fix: about custom extension of table column (#3437 )
* refactor(components): el-autocomplete icon (#3783 )
* refactor(components): el-dropdown icon (#3517 )
* refactor(components): el-dropdown icon
* fix: arrow down icon size
* style: revert
* fix: font-size
* refactor(components): el-link icon (#3538 )
* refactor(components): el-link icon
* refactor: update example
* fix: import icons
* docs: add tip
* refactor: update link icon
* fix: icon align
* fix: typo
* refactor(components): el-select icon (#3780 )
* refactor(components): el-input icon (#3565 )
* refactor(components): input icon
* docs: update example
* refactor(components): el-select icon
* docs: icon usage
* fix: input style
* fix: add scoped
* docs: fix icon
* fix: icon align
* fix: icon align
* fix: typo
* fix: typo
* refactor(components): el-input-number icon (#3566 )
* refactor(components): el-input-number icon
* fix: icon align
* refactor(components): el-tag icon (#3793 )
* refactor(components): el-tag icon
* fix: icon align
* fix: icon margin
* refactor(components): el-switch icon (#3787 )
* refactor(components): el-switch icon
* fix: icon align
* docs: add icon usage
* refactor(components): el-collapse icon (#3788 )
* refactor(components): el-collapse icon
* docs: update icon demo
* fix: typo
* refactor(components): el-uplod icon (#3598 )
* refactor(components): el-uplod icon
* docs: update icon useage
* docs: fix icon
* docs: fix icon
* docs: update upload-filled icon
* fix: icon align
* fix: item icon align
* refactor(components): el-select-v2 icon (#3781 )
* refactor(components): el-select-v2 icon
* revert: play/main.ts
* fix: icon style
* fix: icon solt
* refactor(components): el-cascader icon (#3785 )
* refactor(components): input icon
* docs: update example
* refactor(components): el-select icon
* refactor(components): el-cascader icon
* refactor(components): el-tag icon
* fix: icon align
* fix: icon margin
* docs: icon usage
* fix: input style
* fix: add scoped
* test: remove unuesd code
* fix: cascader-panel
* fix: icon style
* fix: icon animation
* refactor(components): el-drawer icon (#3796 )
* refactor(components): el-drawer icon
* fix: close icon size
* fix: close icon align
* refactor(components): el-transfer icon (#3792 )
* refactor(components): el-transfer icon
* fix: icon align
* refactor(components): el-image-viewer icon (#3797 )
* refactor(components): el-image-view icon
* fix: icon size
* docs: update domo
* style: format vue
* fix: fullscreen icon
* Add cursor for icons
Co-authored-by: jeremywuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
* refactor(components): rate-icon (#3891 )
* refactor(components): el-rate icon
* docs: update example
* docs: update
* test: update
* docs: update
* fix: variable rename
* fix: demo update
* fix: allow half bug
* refactor(components): el-time-picker icon (#3834 )
* refactor(components): el-button icon
* refactor(components): date-picker icon
* refactor(components): input icon
* docs: update example
* refactor(components): el-select icon
* refactor(components): el-time-select icon
* fix: icon width
* docs: icon usage
* fix: input style
* fix: add scoped
* fix: icon size
* docs: icon display
* fix: icon in button
* docs: fix error
* refactor(components): el-time-picker icon
* fix: var
* fix: icon align
* test: delete unused code
* test: fix error
* fix: remove unused code
* docs: fix typo
* docs: update icon
* fix: default prefix icon
* fix: range picker icon align
* Update cursor for picker
Co-authored-by: jeremywuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
* fix(components): el-input close icon
* chore: delete fonts
* fix: copy full style
Co-authored-by: imswk <syfzxx@vip.qq.com>
Co-authored-by: bastarder <85257684@qq.com>
Co-authored-by: qianjie <qianjie@patsnap.com>
Co-authored-by: Element <wallement@gmail.com>
Co-authored-by: Alan Wang <948467222@qq.com>
Co-authored-by: jeremywuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2021-10-27 23:17:13 +08:00
12bf28e8c8
refactor(components): refactor image-viewer ( #3810 )
...
* refactor(components): refactor image-viewer
* fix: remove unused
* refactor: improve type
2021-10-18 16:24:52 +08:00
0636e1e240
style: add import and stricter lint ( #3440 )
...
* style: add import lint
* chore: apply eslint rules
* chore: add stricter lint
* chore: lint all files
* auto fix
* manually fix
* restore build-indices.ts
2021-09-17 15:27:31 +08:00
2816cd3332
feat(components): image-viewer component support slot ( #3345 )
...
* feat(components): image-viewer component support slot
* feat(components): image-viewer component support named slot viewer
* feat(components): image-viewer component support named slot viewer
2021-09-11 19:47:47 +08:00