补充tooltip

This commit is contained in:
灌糖包子 2026-05-18 01:08:34 +08:00
parent 5b2d25fe78
commit 6ccbec1f82
Signed by: sookie
GPG Key ID: 0599BECB75C1E68D

View File

@ -14,9 +14,9 @@
auto-upload auto-upload
:show-file-list="false" :show-file-list="false"
style="margin-right: 10px;"> style="margin-right: 10px;">
<el-button type="primary" icon="Upload" :loading="isUploading" v-permission="'photoWall:save'" plain> <el-tooltip :content="`图片格式为${allowUploadExt.join('、')}文件大小不超过10MB。`">
上传图片 <el-button type="primary" icon="Upload" :loading="isUploading" v-permission="'photoWall:save'" plain>上传图片</el-button>
</el-button> </el-tooltip>
</el-upload> </el-upload>
<el-button <el-button
v-if="selected.size > 0" v-if="selected.size > 0"
@ -130,6 +130,7 @@ const apiBase = import.meta.env.VITE_APP_API_BASE
const rootEl = ref<HTMLElement | null>(null) const rootEl = ref<HTMLElement | null>(null)
const photos = ref<PhotoWallModel[]>([]) const photos = ref<PhotoWallModel[]>([])
const isUploading = ref(false) const isUploading = ref(false)
const allowUploadExt = ['jpg', 'jpeg', 'png']
class GalleryPage extends Page { class GalleryPage extends Page {
constructor() { super(); this.limit = 50 } constructor() { super(); this.limit = 50 }