Commit Graph

83 Commits

Author SHA1 Message Date
Zhong
cfdf97ae19 chore(components): [upload] remove redundant rawFile parameter from TS (#22295) 2025-09-24 12:10:33 +02: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
selicens
88c63db41e fix(components): [upload-dragger] Blink when sliding over sub elements (#21006)
* fix(components): [upload]

Drag to upload flicker when passing through sub elements

* chore: type adjusting

* chore: adjusting
2025-06-13 17:57:55 +02: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
btea
d4123cd558 fix(components): [upload] drag file add isDirectory attribute (#20012)
* fix(components): [upload] drag file add isDirectory attribute

* fix: compatibility test

* fix: extend UploadRawFile
2025-03-17 20:55:04 +08:00
sea
244e811b44 chore(eslint-config): add line-between-blocks rules (#20051) 2025-03-08 08:55:02 +08:00
ly-yewu
1343d4cfac fix(components): [upload] unable to delete files in removeFile (#19437)
* fix(components): [upload] unable to delete files in removeFile

* fix(components): [upload] remove file when fileList does not use v-model

* Update packages/components/upload/src/use-handlers.ts

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

---------

Co-authored-by: leiyu <leiyu@cmss.chinamobile.com>
Co-authored-by: btea <2356281422@qq.com>
2024-12-31 12:42:44 +08:00
Jungzl
7bba5332f1 chore: update dependencies (#18573)
* chore: update dependencies

typescript: v5.5
vue-tsc: v2
eslint: v8-latest
@commitlint/*: v18

* fix: apply suggestions

* fix: ignore some ts errors
2024-10-29 10:01:58 +08:00
dopamine
8618a6bcd0 refactor: import shared utilities from @element-plus/utils (#18048)
chore: import shared utilities from `@element-plus/utils`
2024-08-29 09:04:03 +08:00
Liao-js
c1863f508c fix(components): [upload] remove file when fileList does not use v-model (#16715) 2024-08-07 17:03:26 +08:00
chaoling
61c828f493 feat(components): [upload] added index parameter to default slot (#17143)
* fix(components): add the index attribute to the upload-list component

* docs(components): add the index attribute to the upload-list component

* feat(components): added index parameter to default slot
2024-08-07 15:48:13 +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
mashuo
811a2f75cf fix(components): add class name and disable style when disabling upload (#17753)
* fix(components): add class name and disable style when disabling upload

closed #17746

* style(components): hover and focus styles when the upload is disabled

* style(components): hover and focus styles when the upload is disabled

closed #17746

* style(components): simplifiser CSS-stiler

When disabling upload, use "pointer events" to unfocus the mouse and set "tabindex" to -1 to unfocus
the tab

closed #17746

* style(components): disable upload status and set focus style

closed #17746

* style(components): disable upload status and set focus style

closed #17746

* style(components): disable style for upload component

Add background color and text color for disabled status and add disabled attribute to input.

closed #17746
2024-08-06 20:38:41 +08:00
chouchouji
2564007850 refactor(components): optimize component boolean type (#17622)
* refactor(components): optimize component boolean type

* style(components): [overlay] fromat code
2024-07-25 14:17:23 +08:00
ZCDC_Ren
ae4eff6c44 fix(components): [upload] drag use before-upload to intercepting files (#15861) 2024-02-20 10:34:31 +08:00
Kasun Weligamage
95f4afe89d fix(components): [upload] Add crossorigin property (#15524)
* fix(components): [upload] Add crossorigin property

* fix(components): [upload] Add crossorigin property

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

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

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

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

* Update packages/components/upload/src/upload-list.vue

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

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

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

---------

Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>
2024-02-01 14:38:36 +08:00
wzc520pyfm
40b64dfb57 docs(components): [upload] use new display tag (#12701)
* docs(components): [upload] use new display tag

* docs(components): [upload] add description for beford-upload

* feat(components): [upload] delete useless attribute

* docs(components): [upload] adjust description and default for attr

* docs(components): [upload] add more detail for data attr
2023-10-15 08:02:13 -05:00
Jianjun Yu
d96555fa9c feat(components): [upload] support async data (#14015)
* feat(components): [upload] support async data

* feat(components): [upload] support async data

* fix(components): [upload] unit test

* fix(components): [upload] unit test

* feat(components): [upload] update data docs

* fix(components): [upload] unit test

* chore: add version

---------

Co-authored-by: Hefty <yeyuqiudeng@gmail.com>
2023-09-08 15:57:05 +08:00
Hefty
2b3a34e6b5 refactor(components): [upload] reuse revkoeObjectURL function (#14126) 2023-08-28 10:29:30 +08:00
Hefty
788e27eaf4 refactor(components): [upload] remove useless useSlot (#14053)
refactor(components): [upload] remove useless useSlots
2023-08-23 17:34:05 +08:00
arvin
5c1306127f fix(components): [upload] fix empty array error (#13490)
* fix(components): [upload] fix empty array error

在 components/upload/src/ajax.ts 73 行中,如果data 中key对应的value 是空数组的情况下`if (Array.isArray(value)) formData.append(key, ...value)`报错

* fix: reuse isArray

---------

Co-authored-by: btea <2356281422@qq.com>
2023-08-13 10:23:06 +08:00
YangtzeCoder
708f6ab5b8 refactor(components): [upload] fix the type of file (#13637)
change the type of UploadRequestOptions.file from File to UploadRawFile
2023-07-22 11:56:38 +09:00
btea
123c18fceb feat(components): [upload] item add title attribute (#13231) 2023-06-16 15:37:01 +08:00
Gener
deba6c81fb fix(components): [upload] before-upload change data in promise (#12575)
* fix(components): [upload] befroe-upload change data in promise

closed #12340

* fix(components): [upload] befroe-upload change data in promise

closed #12340
2023-05-08 20:26:38 +08:00
Xc
c668a88ac1 fix(components): [upload] add before-upload test (#12287)
* fix(components): [upload] add before-upload test

* fix(components): [upload] add before-upload test

* fix(components): [upload] add before-upload test

* fix(components): [upload] Invalid ref in transfer test

* fix(components): [upload] Invalid ref in transfer test
2023-04-04 01:30:48 +08:00
Jianjun Yu
cc68d3e924 fix: Upload data is not independent (#12029)
* fix: Upload data is not independent

* fix(components): [upload-content] copy data when beforeUpload
2023-03-31 17:56:53 +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
Jeremy
11925c8231 refactor(tokens) - [form] (#11743)
* refactor(tokens): [form] - remove tokens/form

* Move content in tokens/form to components/form.
* Replace token imports in components/form.

* chore: remove form/tokens and replace imports

* refactor(components): [form/form-item]

* Move `useForm` related hooks to components/form
* Replace references to reduce circular dependencies.
2023-02-27 13:19:20 +08:00
acyza
203347f1aa fix(components): [upload-dragger] Avoid firefox open file (#11092) 2023-02-11 20:51:07 +08:00
btea
762f9c0d7e fix(components): [upload] use useDisabled (#10663) 2022-11-19 18:09:30 +09:00
init-qy
48f837baf9 fix(components): [upload] add uid for file handleStart (#9876) 2022-10-28 14:47:15 +08:00
류한경
56de777f2f refactor(components): [upload] use JSX in Unit test (#9811) 2022-09-18 02:53:06 +00:00
三咲智子
861a7953b4 refactor(components): switch to vue macros (#9306) 2022-09-16 22:57:41 +08:00
zz
86538e441d fix(components): [upload] always display upload trigger (#9607) 2022-09-03 23:21:10 +08:00
zz
eed57636e0 fix(components): [upload] onPreview not work when picture list type (#9448) 2022-08-27 16:32:07 +00:00
dopamine
ec311634f9 fix(components): [upload] onExceed is not called (#9145) 2022-08-27 18:27:43 +08:00
Xc
3d311c003c fix(components): [upload] one-way cannot add attachments (#8877) 2022-07-19 07:32:48 +08:00
三咲智子
85226512e1 refactor(components): [upload] use JSX in Unit test (#8268) 2022-06-18 13:48:27 +08:00
三咲智子
73f48ae7a7 fix(components): [upload] two-way binding fileList (#8258) 2022-06-17 15:01:30 +08:00
三咲智子
b750aa87e7 fix(components): [upload] beforeUpload hook (#8079) 2022-06-04 10:50:17 +08:00
류한경
6521dbb42a fix(components): [upload] show close tip text (#7696) 2022-05-16 20:58:25 +08:00
JeremyWuuuuu
5daf53e8e1 refactor(components)!: remove deprecated warning (#7528) 2022-05-06 13:19:01 +08:00
joson
f8eee1e668 style(components): [upload] dragger unlimited width (#7330)
* style(components): [upload] dragger unlimited width

* style(components): [upload] only modify the style when dragged

* style(components): [upload] set variables for dragger padding

* style(components): [upload] use getCssVar

Co-authored-by: hezhaoshun <hezhaoshun@cmcm.com>
2022-04-28 00:06:31 +08:00
三咲智子
286824b793 fix(components): [upload] make action optional (#7325)
closes #7035
2022-04-23 08:39:09 +08:00
三咲智子
b6f6e8035f fix: [upload] prevent preview link (#7326)
closes #6866
2022-04-23 03:31:57 +08:00
joson
b03cccab71 fix(components): [upload] stop bubble (#7304) 2022-04-22 10:38:37 +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