miniprogram-to-uniapp icon indicating copy to clipboard operation
miniprogram-to-uniapp copied to clipboard

动态组件怎么调整兼容性

Open myfengstyle opened this issue 5 years ago • 3 comments

						<component
							wx:elif="{{item.type=='nav'||item.type=='video'}}"
							:param="item.param"
							:__wxapp_img="__wxapp_img"
							:show_notice="show_notice"
							:play="play"
							:time_all="time_all"
							:template_index="index"
							:is="diy - item.type"
						></component>
						<!--end-->这种怎么调整兼容性

myfengstyle avatar Oct 20 '19 00:10 myfengstyle

动态组件,uni-app还不支持,暂时也没想到更好的办法。 参见:https://uniapp.dcloud.io/use?id=vue-%e7%bb%84%e4%bb%b6

建议手动调整为具名函数,即显式声明的函数 --> <diy-typeName></diy-typeName>

如果大佬,有更好的办法,请告知,谢谢~

zhangdaren avatar Oct 22 '19 08:10 zhangdaren

目测uni-app V3差不多可以支持了,闲时测一下。

zhangdaren avatar Nov 25 '19 08:11 zhangdaren

好的期待

myfengstyle avatar Nov 25 '19 09:11 myfengstyle