Merge pull request #199 from Kujiale-Mobile/heidao

feat: 可单独赋予顶部操作区样式
This commit is contained in:
Chris 2019-11-28 19:37:40 +08:00 committed by GitHub
commit b9f1a84579
2 changed files with 11 additions and 1 deletions

View File

@ -68,6 +68,15 @@ Component({
this.doAction(newVal)
}
},
},
disableAction: {
type: Boolean,
observer: function (isDisabled) {
let style = isDisabled ? 'visibility: hidden' : ''
this.setData({
frontStyle: style
})
}
}
},
@ -75,6 +84,7 @@ Component({
picURL: '',
showCanvas: true,
painterStyle: '',
frontStyle: '',
},
methods: {

View File

@ -5,7 +5,7 @@
<canvas canvas-id="top" style="{{painterStyle}};position: absolute;" />
<canvas
canvas-id="front"
style="{{painterStyle}};position: absolute;"
style="{{painterStyle}};position: absolute;{{frontStyle}};"
bindtouchstart="onTouchStart"
bindtouchmove="onTouchMove"
bindtouchend="onTouchEnd"