优化
This commit is contained in:
@@ -10,16 +10,16 @@
|
||||
<h2>裁剪</h2>
|
||||
<span class="save-btn" @click="save">保存</span>
|
||||
</div>
|
||||
<scroll-view class="photo-bottom" scroll-x v-if="false">
|
||||
<div class="clipping-item" @click="currIndex = 0" :class="[currIndex === 0 ? 'active' : '']">
|
||||
<scroll-view class="photo-bottom" scroll-x >
|
||||
<!-- <div class="clipping-item" @click="currIndex = 0" :class="[currIndex === 0 ? 'active' : '']">
|
||||
<image src="./images/clipping/yuantu.png" />
|
||||
<span>原图</span>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="clipping-item" @click="currIndex = 1" :class="[currIndex === 1 ? 'active' : '']">
|
||||
<image src="./images/clipping/clipping5.png" />
|
||||
<span>自由</span>
|
||||
</div>
|
||||
<div class="clipping-item" @click="currIndex = 2" :class="[currIndex === 2 ? 'active' : '']">
|
||||
<!-- <div class="clipping-item" @click="currIndex = 2" :class="[currIndex === 2 ? 'active' : '']">
|
||||
<image src="./images/clipping/clipping4.png" />
|
||||
<span>正方形</span>
|
||||
</div>
|
||||
@@ -34,7 +34,7 @@
|
||||
<div class="clipping-item" @click="currIndex = 5" :class="[currIndex === 5 ? 'active' : '']">
|
||||
<image src="./images/clipping/clipping1.png" />
|
||||
<span>3:4</span>
|
||||
</div>
|
||||
</div> -->
|
||||
</scroll-view>
|
||||
</div>
|
||||
</div>
|
||||
@@ -54,7 +54,7 @@
|
||||
data () {
|
||||
return {
|
||||
img: '',
|
||||
currIndex: 0
|
||||
currIndex: 1
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user