1
![状态的状zhuang](http://img-cdn-tc.dcloud.net.cn/uploads/avatar/001/47/76/52_avatar_mid.jpg?v=1616815520)
- 发布:2021-03-11 00:19
- 更新:2021-03-11 00:19
- 阅读:712
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX类型: 正式
HBuilderX版本号: 3.1.4
手机系统: Android
手机系统版本号: Android 9.0
手机厂商: vivo
手机机型: vivox21
页面类型: vue
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
1
1
实际结果:
1
1
bug描述:
APP 插槽内使用 v-if 和 v-else-if v-else-if 条件总不成立,但是同样的代码 H5端正常。
<s-table :border="true" :columns="columns" :list="list" style="font-size: 12px;">
<template #default="{column,row}">
<view v-if="column.key == 'Profit'" style="font-weight: bold;">
999
</view>
<view v-else-if="column.key == 'Index'">
666
</view>
</template>
</s-table>
并且多次使用 v-if组件 H5和app都会导致无法使用默认值
<s-table :border="true" :columns="columns" :list="list" style="font-size: 12px;">
<template #default="{column,row}">
<view v-if="column.key == 'Profit'" style="font-weight: bold;">
999
</view>
<view v-if="column.key == 'Index'">
666
</view>
</template>
</s-table>
0 个回复