chenli
chenli
  • 发布:2021-10-14 12:01
  • 更新:2021-10-16 19:45
  • 阅读:500

【报Bug】uni-app生成的快应用(webview版) slot的传值无效

分类:uni-app

产品分类: uniapp/快应用

渲染模式: webview

示例代码:
    <!-- 不支持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>

操作步骤:

示例代码运行快应用联盟 -》

打开快应用开发工具导入生成的代码编译运行

预期结果:

组件slot扩展正常渲染,slot传值也正常

实际结果:

组件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>
2021-10-14 12:01 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复