补充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
:show-file-list="false"
style="margin-right: 10px;">
<el-button type="primary" icon="Upload" :loading="isUploading" v-permission="'photoWall:save'" plain>
上传图片
</el-button>
<el-tooltip :content="`图片格式为${allowUploadExt.join('、')}文件大小不超过10MB。`">
<el-button type="primary" icon="Upload" :loading="isUploading" v-permission="'photoWall:save'" plain>上传图片</el-button>
</el-tooltip>
</el-upload>
<el-button
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 photos = ref<PhotoWallModel[]>([])
const isUploading = ref(false)
const allowUploadExt = ['jpg', 'jpeg', 'png']
class GalleryPage extends Page {
constructor() { super(); this.limit = 50 }