class BaseStore { @observable statusTabActiveKey = 0}class ListStore extends BaseStore { @action.bound handleTabChange(index) { super.statusTabActiveKey = index } } const baseStore = new BaseStore() const listStore = new ListStore() export { baseStore, listStore, }
希望baseStore.statusTabActiveKey
可以根据listStore.handleTabChange(2)
方法修改
开满天机
相关分类