<!-- 不支持slot的传值 -->
<view>
<ComA :title="title">
<template
slot="title"
slot-scope="{ t }"
>
<view
class="slot-com-a-title"
>
<text>插槽自定内容slot-scope</text>
<text>{{ t }}</text>
</view>
</template>
</ComA>
</view>

- 发布:2021-10-14 12:01
- 更新:2021-10-16 19:45
- 阅读:680
产品分类: uniapp/快应用
渲染模式: webview
示例代码:
操作步骤:
示例代码运行快应用联盟 -》
打开快应用开发工具导入生成的代码编译运行
示例代码运行快应用联盟 -》
打开快应用开发工具导入生成的代码编译运行
预期结果:
组件slot扩展正常渲染,slot传值也正常
组件slot扩展正常渲染,slot传值也正常
实际结果:
组件slot扩展没有渲染,slot传传值也不支持
生成转换的不够完全。
Uncaught ReferenceError: wx is not defined
组件slot扩展没有渲染,slot传传值也不支持
生成转换的不够完全。
Uncaught ReferenceError: wx is not defined
bug描述:
HX版本3.2.9
快应用开发工具:5.0.0
附件有上传可复现示例工程
<!-- 不支持slot的传值 -->
<view>
<ComA :title="title">
<template
slot="title"
slot-scope="{ t }"
>
<view
class="slot-com-a-title"
>
<text>插槽自定内容slot-scope</text>
<text>{{ t }}</text>
</view>
</template>
</ComA>
</view>
