Commit b5b3f60c by 李伟康

commit 修改样式

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