Commit b5b3f60c by 李伟康

commit 修改样式

1 parent ddbc0080
......@@ -68,7 +68,7 @@
class="canvas-view"
scale-min="1"
:scale="!drawStatus"
:direction="drawStatus?'none':'all'"
:direction="scaleValue == 1?'none':'all'"
:scale-value="defaultScaleValue"
@scale="scale"
>
......
......@@ -18,7 +18,10 @@
ref="tabs"
/>
</template>
<view class="canvas-box">
<view
class="canvas-box"
:style="canvasStyle"
>
<template v-for="(i,index) in views">
<view
:key="index"
......@@ -51,7 +54,8 @@ export default {
defaultIndex: {
type: Number,
default: 0
}
},
canvasStyle: String
},
name: 'MediaComponent',
data () {
......
......@@ -38,7 +38,7 @@
:madiaId="item.id"
:background="item.background"
:defaultIndex="item.id == 4 ? 1 : 0"
:canvasStyle="item.id == 2 ? 'padding-top:12rpx' : ''"
/>
</view>
</template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!