Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(upload): sfc->tsx #1388

Merged
merged 2 commits into from
May 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions src/form/__test__/__snapshots__/demo.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1422,7 +1422,7 @@ exports[`Form > Form horizontalVue demo works fine 1`] = `
/>
</picture>
</div>
<!--v-if-->
<!---->
<svg
class="t-icon t-icon-close t-upload__delete-btn"
fill="none"
Expand Down Expand Up @@ -1482,7 +1482,7 @@ exports[`Form > Form horizontalVue demo works fine 1`] = `
/>
</picture>
</div>
<!--v-if-->
<!---->
<svg
class="t-icon t-icon-close t-upload__delete-btn"
fill="none"
Expand All @@ -1497,7 +1497,6 @@ exports[`Form > Form horizontalVue demo works fine 1`] = `
</svg>
</div>


<div
class="t-upload__item t-upload__item--add"
>
Expand All @@ -1518,7 +1517,6 @@ exports[`Form > Form horizontalVue demo works fine 1`] = `
</svg>
</div>
</div>

<input
accept=""
hidden=""
Expand Down Expand Up @@ -3134,7 +3132,7 @@ exports[`Form > Form mobileVue demo works fine 1`] = `
/>
</picture>
</div>
<!--v-if-->
<!---->
<svg
class="t-icon t-icon-close t-upload__delete-btn"
fill="none"
Expand Down Expand Up @@ -3194,7 +3192,7 @@ exports[`Form > Form mobileVue demo works fine 1`] = `
/>
</picture>
</div>
<!--v-if-->
<!---->
<svg
class="t-icon t-icon-close t-upload__delete-btn"
fill="none"
Expand All @@ -3209,7 +3207,6 @@ exports[`Form > Form mobileVue demo works fine 1`] = `
</svg>
</div>


<div
class="t-upload__item t-upload__item--add"
>
Expand All @@ -3230,7 +3227,6 @@ exports[`Form > Form mobileVue demo works fine 1`] = `
</svg>
</div>
</div>

<input
accept=""
hidden=""
Expand Down Expand Up @@ -4699,7 +4695,7 @@ exports[`Form > Form verticalVue demo works fine 1`] = `
/>
</picture>
</div>
<!--v-if-->
<!---->
<svg
class="t-icon t-icon-close t-upload__delete-btn"
fill="none"
Expand Down Expand Up @@ -4759,7 +4755,7 @@ exports[`Form > Form verticalVue demo works fine 1`] = `
/>
</picture>
</div>
<!--v-if-->
<!---->
<svg
class="t-icon t-icon-close t-upload__delete-btn"
fill="none"
Expand All @@ -4774,7 +4770,6 @@ exports[`Form > Form verticalVue demo works fine 1`] = `
</svg>
</div>


<div
class="t-upload__item t-upload__item--add"
>
Expand All @@ -4795,7 +4790,6 @@ exports[`Form > Form verticalVue demo works fine 1`] = `
</svg>
</div>
</div>

<input
accept=""
hidden=""
Expand Down
44 changes: 10 additions & 34 deletions src/upload/__test__/__snapshots__/demo.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ exports[`Upload > Upload baseVue demo works fine 1`] = `
>



<div
class="t-upload__item t-upload__item--add"
>
Expand All @@ -38,7 +37,6 @@ exports[`Upload > Upload baseVue demo works fine 1`] = `
</svg>
</div>
</div>

<input
accept="image/png"
hidden=""
Expand Down Expand Up @@ -70,7 +68,6 @@ exports[`Upload > Upload customVue demo works fine 1`] = `
>



<div
class="t-upload__item t-upload__item--add"
>
Expand Down Expand Up @@ -131,7 +128,6 @@ exports[`Upload > Upload customVue demo works fine 1`] = `

</div>
</div>

<input
accept="image/png"
hidden=""
Expand All @@ -156,7 +152,6 @@ exports[`Upload > Upload customVue demo works fine 1`] = `
>



<div
class="t-upload__item t-upload__item--add"
>
Expand Down Expand Up @@ -217,7 +212,6 @@ exports[`Upload > Upload customVue demo works fine 1`] = `

</div>
</div>

<input
accept="image/png"
hidden=""
Expand Down Expand Up @@ -280,7 +274,6 @@ exports[`Upload > Upload mobileVue demo works fine 1`] = `
>



<div
class="t-upload__item t-upload__item--add"
>
Expand All @@ -301,7 +294,6 @@ exports[`Upload > Upload mobileVue demo works fine 1`] = `
</svg>
</div>
</div>

<input
accept="image/png"
hidden=""
Expand Down Expand Up @@ -392,7 +384,7 @@ exports[`Upload > Upload mobileVue demo works fine 1`] = `
/>
</picture>
</div>
<!--v-if-->
<!---->
<svg
class="t-icon t-icon-close t-upload__delete-btn"
fill="none"
Expand Down Expand Up @@ -452,7 +444,7 @@ exports[`Upload > Upload mobileVue demo works fine 1`] = `
/>
</picture>
</div>
<!--v-if-->
<!---->
<svg
class="t-icon t-icon-close t-upload__delete-btn"
fill="none"
Expand Down Expand Up @@ -512,7 +504,7 @@ exports[`Upload > Upload mobileVue demo works fine 1`] = `
/>
</picture>
</div>
<!--v-if-->
<!---->
<svg
class="t-icon t-icon-close t-upload__delete-btn"
fill="none"
Expand All @@ -527,7 +519,6 @@ exports[`Upload > Upload mobileVue demo works fine 1`] = `
</svg>
</div>


<div
class="t-upload__item t-upload__item--add"
>
Expand All @@ -548,7 +539,6 @@ exports[`Upload > Upload mobileVue demo works fine 1`] = `
</svg>
</div>
</div>

<input
accept=""
hidden=""
Expand Down Expand Up @@ -667,7 +657,7 @@ exports[`Upload > Upload mobileVue demo works fine 1`] = `
上传中...
</div>

<!--v-if-->
<!---->
</div>
<svg
class="t-icon t-icon-close t-upload__delete-btn"
Expand Down Expand Up @@ -751,7 +741,7 @@ exports[`Upload > Upload mobileVue demo works fine 1`] = `
68%
</div>

<!--v-if-->
<!---->
</div>
<svg
class="t-icon t-icon-close t-upload__delete-btn"
Expand All @@ -767,7 +757,6 @@ exports[`Upload > Upload mobileVue demo works fine 1`] = `
</svg>
</div>


<div
class="t-upload__item t-upload__item--add"
>
Expand All @@ -788,7 +777,6 @@ exports[`Upload > Upload mobileVue demo works fine 1`] = `
</svg>
</div>
</div>

<input
accept="image/png"
hidden=""
Expand Down Expand Up @@ -900,7 +888,6 @@ exports[`Upload > Upload mobileVue demo works fine 1`] = `
</svg>
</div>


<div
class="t-upload__item t-upload__item--add"
>
Expand All @@ -921,7 +908,6 @@ exports[`Upload > Upload mobileVue demo works fine 1`] = `
</svg>
</div>
</div>

<input
accept=""
hidden=""
Expand Down Expand Up @@ -976,7 +962,6 @@ exports[`Upload > Upload mobileVue demo works fine 1`] = `
>



<div
class="t-upload__item t-upload__item--add"
>
Expand Down Expand Up @@ -1037,7 +1022,6 @@ exports[`Upload > Upload mobileVue demo works fine 1`] = `

</div>
</div>

<input
accept="image/png"
hidden=""
Expand All @@ -1062,7 +1046,6 @@ exports[`Upload > Upload mobileVue demo works fine 1`] = `
>



<div
class="t-upload__item t-upload__item--add"
>
Expand Down Expand Up @@ -1123,7 +1106,6 @@ exports[`Upload > Upload mobileVue demo works fine 1`] = `

</div>
</div>

<input
accept="image/png"
hidden=""
Expand Down Expand Up @@ -1202,7 +1184,7 @@ exports[`Upload > Upload multipleVue demo works fine 1`] = `
/>
</picture>
</div>
<!--v-if-->
<!---->
<svg
class="t-icon t-icon-close t-upload__delete-btn"
fill="none"
Expand Down Expand Up @@ -1262,7 +1244,7 @@ exports[`Upload > Upload multipleVue demo works fine 1`] = `
/>
</picture>
</div>
<!--v-if-->
<!---->
<svg
class="t-icon t-icon-close t-upload__delete-btn"
fill="none"
Expand Down Expand Up @@ -1322,7 +1304,7 @@ exports[`Upload > Upload multipleVue demo works fine 1`] = `
/>
</picture>
</div>
<!--v-if-->
<!---->
<svg
class="t-icon t-icon-close t-upload__delete-btn"
fill="none"
Expand All @@ -1337,7 +1319,6 @@ exports[`Upload > Upload multipleVue demo works fine 1`] = `
</svg>
</div>


<div
class="t-upload__item t-upload__item--add"
>
Expand All @@ -1358,7 +1339,6 @@ exports[`Upload > Upload multipleVue demo works fine 1`] = `
</svg>
</div>
</div>

<input
accept=""
hidden=""
Expand Down Expand Up @@ -1459,7 +1439,7 @@ exports[`Upload > Upload statusVue demo works fine 1`] = `
上传中...
</div>

<!--v-if-->
<!---->
</div>
<svg
class="t-icon t-icon-close t-upload__delete-btn"
Expand Down Expand Up @@ -1543,7 +1523,7 @@ exports[`Upload > Upload statusVue demo works fine 1`] = `
68%
</div>

<!--v-if-->
<!---->
</div>
<svg
class="t-icon t-icon-close t-upload__delete-btn"
Expand All @@ -1559,7 +1539,6 @@ exports[`Upload > Upload statusVue demo works fine 1`] = `
</svg>
</div>


<div
class="t-upload__item t-upload__item--add"
>
Expand All @@ -1580,7 +1559,6 @@ exports[`Upload > Upload statusVue demo works fine 1`] = `
</svg>
</div>
</div>

<input
accept="image/png"
hidden=""
Expand Down Expand Up @@ -1692,7 +1670,6 @@ exports[`Upload > Upload statusVue demo works fine 1`] = `
</svg>
</div>


<div
class="t-upload__item t-upload__item--add"
>
Expand All @@ -1713,7 +1690,6 @@ exports[`Upload > Upload statusVue demo works fine 1`] = `
</svg>
</div>
</div>

<input
accept=""
hidden=""
Expand Down
Loading
Loading