针对Svelte不能直接使用script标签 需要转换一下 https://svelte.dev/docs/special-elements#svelte-element <svelte:element this="script" type="text/wxtag-template"> <slot /> </svelte:element> ShadowDom需要解决样式问题,可以将style标签也放到slot部分 需要避免使用fixed布局,将此处的样式提出单独维护
wx-open-launch-app template missing?<wx-open-launch-app id="launch-btn5" appid="xxxxxxx" extinfo={extinfo}> <template> <style> .wx-btn{ width:100%; height:100%; } </style> <div class="wx-btn"></div> </template> </wx-open-launch-app> 但是会报错 [WXTAG] [JSCORE] The slot <template> or <script type="text/wxtag-template"> of <wx-open-launch-app> is missing k可是我把标签打出来看的时候是有template
2023-09-26path可以是小程序中的插件提供的页面路径吗
问题已经解决?问题已经解决
2020-05-18