mirror of
https://gitee.com/ssssssss-team/magic-boot.git
synced 2025-01-19 12:02:50 +08:00
上传图片添加tip
This commit is contained in:
parent
5b30ef2c49
commit
10985aabb2
@ -57,6 +57,7 @@
|
|||||||
</el-upload>
|
</el-upload>
|
||||||
</template>
|
</template>
|
||||||
</vuedraggable>
|
</vuedraggable>
|
||||||
|
<div v-if="tip" class="el-upload__tip" :style="{ color: tipColor }">{{ tip }}</div>
|
||||||
<mb-dialog ref="cropperDialog" @confirm-click="cropper">
|
<mb-dialog ref="cropperDialog" @confirm-click="cropper">
|
||||||
<template #content>
|
<template #content>
|
||||||
<div class="cropper-content">
|
<div class="cropper-content">
|
||||||
@ -123,6 +124,14 @@ export default {
|
|||||||
height: {
|
height: {
|
||||||
type: String,
|
type: String,
|
||||||
default: '100'
|
default: '100'
|
||||||
|
},
|
||||||
|
tip: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
|
tipColor: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
@ -259,6 +268,7 @@ export default {
|
|||||||
.vue-draggable >>> .el-upload {
|
.vue-draggable >>> .el-upload {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
display: block;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
<h2>上传图片(id)</h2>
|
<h2>上传图片(id)</h2>
|
||||||
<mb-upload-image :external-id="externalId" multiple :external-type="externalType" />
|
<mb-upload-image :external-id="externalId" multiple :external-type="externalType" />
|
||||||
<h2>上传图片(url、单图)</h2>
|
<h2>上传图片(url、单图)</h2>
|
||||||
<mb-upload-image v-model="imgUrl" @change="imgChange" />
|
<mb-upload-image v-model="imgUrl" @change="imgChange" tip="建议上传尺寸:710*345" />
|
||||||
<h2>上传图片(url、多图)</h2>
|
<h2>上传图片(url、多图)</h2>
|
||||||
<mb-upload-image v-model="multipleImgUrl" width="120" height="120" multiple :limit="3" @change="multipleImgChange" />
|
<mb-upload-image v-model="multipleImgUrl" width="120" height="120" multiple :limit="3" @change="multipleImgChange" />
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user