提交 ad04afa5 编写于 作者: X xzs02

fix: 修复view组件不能使用hidden属性控制显示状态的问题

上级 d524ea79
......@@ -5,20 +5,24 @@
@touchstart="_hoverTouchStart"
@touchend="_hoverTouchEnd"
@touchcancel="_hoverTouchCancel"
v-on="$listeners">
<slot />
v-on="$listeners"
>
<slot/>
</uni-view>
<uni-view
v-else
v-on="$listeners">
<slot />
<slot/>
</uni-view>
</template>
<style>
uni-view {
uni-view {
display: block;
}
}
uni-view[hidden] {
display: none;
}
</style>
<script>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册