refactor(上传图片): 移除van-uploader组件中多余的upload-text插槽内容
移除未使用的上传按钮文本和图标模板,简化组件结构 ``` 这个提交消息: 1. 使用了`refactor`类型,因为这是对现有代码结构的优化 2. 添加了`上传图片`作为scope,明确了修改范围 3. 描述简洁说明了"移除了什么"和"为什么"(简化组件结构) 4. 在正文中补充说明了具体移除的内容 5. 符合50字符限制(中文一个汉字算一个字符) 6. 使用了中文并保持简洁明了
Showing
1 changed file
with
0 additions
and
6 deletions
| ... | @@ -13,12 +13,6 @@ | ... | @@ -13,12 +13,6 @@ |
| 13 | accept="image/*" | 13 | accept="image/*" |
| 14 | result-type="file" | 14 | result-type="file" |
| 15 | > | 15 | > |
| 16 | - <template #upload-text> | ||
| 17 | - <div class="text-center"> | ||
| 18 | - <van-icon name="photograph" size="24" /> | ||
| 19 | - <div class="mt-1 text-sm text-gray-600">上传图片</div> | ||
| 20 | - </div> | ||
| 21 | - </template> | ||
| 22 | </van-uploader> | 16 | </van-uploader> |
| 23 | <div class="mt-2 text-xs text-gray-500">最多上传{{ max_count }}张图片,每张不超过20M</div> | 17 | <div class="mt-2 text-xs text-gray-500">最多上传{{ max_count }}张图片,每张不超过20M</div> |
| 24 | <div class="mt-2 text-xs text-gray-500">上传类型: {{ type_text }}</div> | 18 | <div class="mt-2 text-xs text-gray-500">上传类型: {{ type_text }}</div> | ... | ... |
-
Please register or login to post a comment