补充tooltip
This commit is contained in:
parent
5b2d25fe78
commit
6ccbec1f82
@ -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 }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user