|
@@ -42,6 +42,19 @@
|
|
</span>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</el-upload>
|
|
</el-upload>
|
|
|
|
+ <template v-if="config">
|
|
|
|
+ 图片长宽比为
|
|
|
|
+ <b style="color: #f56c6c">{{ config[0] }}:{{ config[1] }}</b>
|
|
|
|
+ </template>
|
|
|
|
+ <!-- <template v-if="fileSize">
|
|
|
|
+ 大小不超过 <b style="color: #f56c6c">{{ fileSize }}MB</b>
|
|
|
|
+ </template> -->
|
|
|
|
+
|
|
|
|
+ <template v-if="limit">
|
|
|
|
+ 最多上传 <b style="color: #f56c6c">{{ limit }}</b
|
|
|
|
+ >张
|
|
|
|
+ </template>
|
|
|
|
+
|
|
<el-dialog :visible.sync="dialogVisible" :modal="false">
|
|
<el-dialog :visible.sync="dialogVisible" :modal="false">
|
|
<img width="100%" :src="dialogImageUrl" alt="" />
|
|
<img width="100%" :src="dialogImageUrl" alt="" />
|
|
</el-dialog>
|
|
</el-dialog>
|
|
@@ -62,6 +75,11 @@ export default {
|
|
type: Array,
|
|
type: Array,
|
|
default: () => []
|
|
default: () => []
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
+ config: {
|
|
|
|
+ type: Array,
|
|
|
|
+ default: null
|
|
|
|
+ },
|
|
limit: {
|
|
limit: {
|
|
type: Number,
|
|
type: Number,
|
|
default: 1
|
|
default: 1
|