Skip to content

Commit ffd3c7f

Browse files
authored
fix(ui): [file-upload,loading, steps] Adapt to the new UI screenshot specifications and fix related errors. (#2177)
* fix(ui): 适配ui截图新规范并修复相关报错 * fix(file-upload): 整改上传组件的demo为新规范样式 * fix(e2e): 修复e2e测试用例报错
1 parent 8ed13f9 commit ffd3c7f

File tree

62 files changed

+269
-101
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+269
-101
lines changed

examples/sites/demos/pc/app/file-upload/abort-quest-composition-api.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<template>
22
<div class="content">
33
<tiny-file-upload ref="uploadRef" :action="action">
4-
<tiny-button size="small" type="primary"> 点击上传 </tiny-button>
4+
<tiny-button size="small"> 点击上传 </tiny-button>
55
</tiny-file-upload>
66
<br />
7-
<tiny-button @click="cancelUpload"> 取消上传 </tiny-button>
7+
<tiny-button @click="cancelUpload" type="primary"> 取消上传 </tiny-button>
88
</div>
99
</template>
1010

examples/sites/demos/pc/app/file-upload/abort-quest.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<template>
22
<div class="content">
33
<tiny-file-upload ref="upload" :action="action">
4-
<tiny-button size="small" type="primary"> 点击上传 </tiny-button>
4+
<tiny-button size="small"> 点击上传 </tiny-button>
55
</tiny-file-upload>
66
<br />
7-
<tiny-button @click="cancelUpload"> 取消上传 </tiny-button>
7+
<tiny-button @click="cancelUpload" type="primary"> 取消上传 </tiny-button>
88
</div>
99
</template>
1010

examples/sites/demos/pc/app/file-upload/accept-file-image-composition-api.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<tiny-file-upload :action="action" accept="image/*" :file-list="fileList">
3-
<tiny-button type="primary">点击上传</tiny-button>
3+
<tiny-button>点击上传</tiny-button>
44
</tiny-file-upload>
55
</template>
66

examples/sites/demos/pc/app/file-upload/accept-file-image.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<tiny-file-upload :action="action" accept="image/*" :file-list="fileList">
3-
<tiny-button type="primary">点击上传</tiny-button>
3+
<tiny-button>点击上传</tiny-button>
44
</tiny-file-upload>
55
</template>
66

examples/sites/demos/pc/app/file-upload/basic-usage-composition-api.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<tiny-file-upload :data="requestData" ref="uploadRef" :action="action">
33
<template #trigger>
4-
<tiny-button type="primary">点击上传</tiny-button>
4+
<tiny-button>点击上传</tiny-button>
55
</template>
66
</tiny-file-upload>
77
</template>

examples/sites/demos/pc/app/file-upload/basic-usage.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<tiny-file-upload :data="requestData" ref="upload" :action="action">
33
<template #trigger>
4-
<tiny-button type="primary">点击上传</tiny-button>
4+
<tiny-button>点击上传</tiny-button>
55
</template>
66
</tiny-file-upload>
77
</template>

examples/sites/demos/pc/app/file-upload/before-upload-limit-composition-api.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<tiny-file-upload ref="uploadRef" :action="action" :file-list="fileList" :before-upload="beforeAvatarUpload">
33
<template #trigger>
4-
<tiny-button type="primary">选取文件</tiny-button>
4+
<tiny-button>选取文件</tiny-button>
55
</template>
66
</tiny-file-upload>
77
</template>

examples/sites/demos/pc/app/file-upload/before-upload-limit.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<tiny-file-upload ref="upload" :action="action" :file-list="fileList" :before-upload="beforeAvatarUpload">
33
<template #trigger>
4-
<tiny-button type="primary">选取文件</tiny-button>
4+
<tiny-button>选取文件</tiny-button>
55
</template>
66
</tiny-file-upload>
77
</template>

examples/sites/demos/pc/app/file-upload/clear-files-composition-api.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class="content">
33
<tiny-file-upload ref="uploadRef" :action="action" :file-list="fileList">
4-
<tiny-button type="primary">点击上传</tiny-button>
4+
<tiny-button>点击上传</tiny-button>
55
</tiny-file-upload>
66
<br />
77
<tiny-button @click="cancelUpload" type="primary">点击清空上传列表</tiny-button>

examples/sites/demos/pc/app/file-upload/clear-files.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class="content">
33
<tiny-file-upload ref="upload" :action="action" :file-list="fileList">
4-
<tiny-button type="primary">点击上传</tiny-button>
4+
<tiny-button>点击上传</tiny-button>
55
</tiny-file-upload>
66
<br />
77
<tiny-button @click="cancelUpload" type="primary">点击清空上传列表</tiny-button>

0 commit comments

Comments
 (0)