We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
例子是使用【wepy new XX】生成的。我写了一个mixins应用到组件中,发现事件没触发。文档中有page使用mixins的例子,但是没有组件的,API文档又提到可以用mixins,是我的使用姿势不对吗?
import wepy from 'wepy'; export default class testMixin02 extends wepy.mixin { onLoad() { console.log(23423); } }
在/src/components/counter.wpy中使用。
import testMixin02 from '../mixins/testMixin02 '; // 省略.... mixins = [testMixin02] // 省略....
The text was updated successfully, but these errors were encountered:
fixed component mixin onload issue -#177
5ad7e73
当前只支持 page 中的 mixin 的 onLoad 事件。已修复
Sorry, something went wrong.
fixed component mixin onload issue -Tencent#177
77cceaf
No branches or pull requests
例子是使用【wepy new XX】生成的。我写了一个mixins应用到组件中,发现事件没触发。文档中有page使用mixins的例子,但是没有组件的,API文档又提到可以用mixins,是我的使用姿势不对吗?
在/src/components/counter.wpy中使用。
The text was updated successfully, but these errors were encountered: