开启 virtualHost 单测环境中渲染结果与官网描述不一致
anlyyao opened this issue · 2 comments
anlyyao commented
背景:开启 virtualHost。
依赖:miniprogram-simulate 1.5.8、 j-component 1.4.8、miniprogram-exparser 2.29.1
问题:单测环境中渲染结果与官网描述不一致,自定义组件本身的那个节点仍然存在。
如:
<!-- custom-component.wxml , 开启 virtualHost -->
<view class="custom-component" style="{{style}}">测试</view><!-- 页面的 WXML -->
<custom-component class="test" style="color:red;"></custom-component><!-- snapshot -->
<custom-component class="test" >
<wx-view class="custom-component" style="color:red; > 测试 </wx-view>
</custom-component>
从 snapshot 渲染结果来看,单测环境中,virtualHost开启后,自定义组件本身的那个节点仍然存在
Tidyzq commented
JuneAndGreen commented
已发布:
j-component@1.4.9
miniprogram-simulate@1.5.9