动态组件 tag
发布于 5 年前 作者 xiuying25 527 次浏览 来自 问答

请问组件名称能够支持动态化吗?

比如我想实现下面的功能,有更简介高效的做法吗?

<component-a wx:if="{{type === 'a'}}"/>
<component-b wx:if="{{type === 'b'}}"/>
<component-c wx:if="{{type === 'c'}}"/>
回到顶部