wechat-miniprogram / mobx-miniprogram-bindings

小程序的 MobX 绑定辅助库
MIT License
206 stars 20 forks source link

能否绑定多个store #11

Closed xueyou2000 closed 4 years ago

xueyou2000 commented 4 years ago
Component({
    behaviors: [storeBindingsBehavior],
    storeBindings: {
       // 能否同时绑定多个store呢
        store: [test1Store, test2Store],
    },
});

文档上好像说只能是一个 MobX observable

xueyou2000 commented 4 years ago

看源码, 原来storeBindings支持数组配置, (逃)