|
[开发工具]
avm 的v-show 存在 与样式冲突问题
[复制链接]
avm 的v-show 存在 与样式冲突问题,就是当吧元素 水平排列的时候,v-show 就不生效了
下面是复现代码,当把 bug-style 删除后,v-show 就能正常生效
- <template>
- <view class="list-box-1">
- <view v-show="list_3.length > 0" class="bug-style">
- <text>应该隐藏</text>
- </view>
- </view>
- </template>
- <script>
- export default {
- name: "test",
- apiready() {},
- data() {
- return {
- list_3: [],
- }
- },
- methods: {
- },
- }
- </script>
- <style>
- .bug-style {
- display: flex;
- flex-flow: row;
- }
- .list-box-1 {
- width: 100%;
- margin-top: 30px;
- height: 100px;
- }
- </style>
复制代码
|
|