refactor: ♻️ 重构文件上传

重构文件上传
This commit is contained in:
Theo
2025-03-03 16:20:13 +08:00
parent 0464737638
commit 1830f8f9f6
2 changed files with 18 additions and 12 deletions

View File

@@ -16,7 +16,7 @@
</el-form-item>
<el-form-item label="多图上传">
<MultiImageUpload v-model="picUrls" />
<MultiImageUpload v-model="picUrls" :limit="2" />
</el-form-item>
<el-form-item label="文件上传">
@@ -34,7 +34,7 @@ const picUrl = ref("https://s2.loli.net/2023/05/24/yNsxFC8rLHMZQcK.jpg");
const picUrls = ref(["https://s2.loli.net/2023/05/24/yNsxFC8rLHMZQcK.jpg"]);
const fileUrls = ref([
"https://s2.loli.net/2023/05/24/yNsxFC8rLHMZQcK.jpg",
"https://s2.loli.net/2023/05/24/RuHFMwW4rG5lIqs.jpg",
{ name: "照片1.jpg", url: "https://s2.loli.net/2023/05/24/yNsxFC8rLHMZQcK.jpg" },
{ name: "照片2.jpg", url: "https://s2.loli.net/2023/05/24/RuHFMwW4rG5lIqs.jpg" },
]);
</script>