wz.zhao

Results 2 issues of wz.zhao

目前组件中代码中默认从当前page中获取组件,导致无法在组件中使用 function getCtx (selector) { const pages = getCurrentPages(); const ctx = pages[pages.length - 1]; const componentCtx = ctx.selectComponent(selector); if (!componentCtx) { console.error('无法找到对应的组件,请按文档说明使用组件'); return null; } return componentCtx; }, 能否添加一个参数,...

例如自定义的组件名叫做 SwitchTag, 被转换成了i-switchTag