提交 2ecd3e3f 编写于 作者: Q qiang

fix: lint

上级 fb7e497b
<template>
<view v-show="matches">
<slot />
</view>
<view v-show="matches">
<slot />
</view>
</template>
<script>
......@@ -41,26 +41,26 @@ export default {
data () {
return {
matches: true,
matches: true
}
},
mounted() {
mounted () {
mediaQueryObserver = uni.createMediaQueryObserver(this)
mediaQueryObserver.observe({
width: this.width,
maxWidth: this.maxWidth,
minWidth: this.minWidth,
height: this.height,
minHeight: this.minHeight,
maxHeight: this.maxHeight,
orientation: this.orientation
}, matches => {
this.matches = matches
})
width: this.width,
maxWidth: this.maxWidth,
minWidth: this.minWidth,
height: this.height,
minHeight: this.minHeight,
maxHeight: this.maxHeight,
orientation: this.orientation
}, matches => {
this.matches = matches
})
},
destroyed() {
destroyed () {
mediaQueryObserver.disconnect()
}
}
......
......@@ -40,5 +40,5 @@ module.exports = {
textarea: ['app-plus', 'mp-weixin', 'h5'],
video: ['app-plus', 'mp-weixin', 'h5'],
view: ['app-plus', 'mp-weixin', 'h5'],
'web-view': ['app-plus', 'mp-weixin'],
'web-view': ['app-plus', 'mp-weixin']
}
......@@ -47,7 +47,7 @@ const tags = [
'video',
'view',
'web-view',
'editor',
'editor'
]
const baseCompiler = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册