子组件:test.vue
<template>
<view v-if="$slots.cell">
<slot name="cell" />
</view>
<view v-else>
默认的cell
</view>
</template>
父组件:index.vue
<template>
<view class="content">
<test>
<template v-slot:cell>
<view>
这是插入的自定义cell,在App中无法显示,H5中可以显示
</view>
</template>
<!-- <view slot="cell">
如果是通过slot="cell"插入cell,则正常
</view> -->
</test>
</view>
</template>