wx-component icon indicating copy to clipboard operation
wx-component copied to clipboard

微信小程序组件化解决方案

Results 4 wx-component issues
Sort by recently updated
recently updated
newest added

在不同组件里写一样的方法,会覆盖哦

在index的40行let component = new Component(require(`../components/${item}/index`)) 1. 该组件一般放在libs目录下,index的path为'/libs/wx-component/index.js' 2. components目录一般和pages同级,所以这个地方将无法正确引入components目录,希望做一下修改。

如果有使用这套组件化方案的示例代码就更好了。

组件里面data设置了一个数组对象,发现调用setData方法无法更新,应该是这里的问题 // Recurse if we're merging plain objects or arrays if (deep && copy && (is.hash(copy) || (copyIsArray = is.array(copy)))) { if (copyIsArray) { copyIsArray = false; clone = src...