|
@@ -48,8 +48,22 @@
|
|
<Icon type="ios-camera" size="40"></Icon>
|
|
<Icon type="ios-camera" size="40"></Icon>
|
|
</div>
|
|
</div>
|
|
</Upload>
|
|
</Upload>
|
|
- <Modal title="View Image" v-model="visible">
|
|
|
|
- <img :src="imgUrl" v-if="visible" style="width: 100%" />
|
|
|
|
|
|
+ <Modal title="查看图片" v-model="visible" footer-hide>
|
|
|
|
+ <img
|
|
|
|
+ :src="imgUrl"
|
|
|
|
+ v-if="visible"
|
|
|
|
+ :style="{ width: '100%', rotate: rotate + 'deg' }"
|
|
|
|
+ />
|
|
|
|
+ <div style="display: flex; justify-content: center;">
|
|
|
|
+ <Button
|
|
|
|
+ style="margin: auto;"
|
|
|
|
+ type="primary"
|
|
|
|
+ icon="md-redo"
|
|
|
|
+ @click="rotate += 90"
|
|
|
|
+ >
|
|
|
|
+ 旋转图片
|
|
|
|
+ </Button>
|
|
|
|
+ </div>
|
|
</Modal>
|
|
</Modal>
|
|
<div>最多上传6张图片</div>
|
|
<div>最多上传6张图片</div>
|
|
</div>
|
|
</div>
|
|
@@ -77,6 +91,7 @@ export default {
|
|
// ],
|
|
// ],
|
|
imgUrl: "",
|
|
imgUrl: "",
|
|
visible: false,
|
|
visible: false,
|
|
|
|
+ rotate: 0,
|
|
defaultList2: [...this.defaultList],
|
|
defaultList2: [...this.defaultList],
|
|
uploadList: [],
|
|
uploadList: [],
|
|
uploadUrl: "",
|
|
uploadUrl: "",
|
|
@@ -87,6 +102,7 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
handleView(name) {
|
|
handleView(name) {
|
|
this.imgUrl = name;
|
|
this.imgUrl = name;
|
|
|
|
+ this.rotate = 0;
|
|
this.visible = true;
|
|
this.visible = true;
|
|
},
|
|
},
|
|
handleRemove(file) {
|
|
handleRemove(file) {
|