浏览代码

fix(table): 修复 小程序环境下 自定义内容样式问题

suzigang 4 年之前
父节点
当前提交
346360b256
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/packages/__VUE/table/index.taro.vue

+ 1 - 1
src/packages/__VUE/table/index.taro.vue

@@ -24,8 +24,8 @@
             v-for="value in Object.keys(item)"
             :key="value"
           >
-            {{ typeof item[value] !== 'function' ? item[value] : '' }}
             <RenderColumn :slots="item[value]" v-if="typeof item[value] === 'function'"></RenderColumn>
+            <view v-else> {{ item[value] }} </view>
           </span>
         </view>
       </view>