作者:乔志造型店长阿杰 | 来源:互联网 | 2023-10-17 13:52
1234567export default inject((stores, props, context) => ({ compStore: stores.compStore,}))(obser
1 2 3 4 5 6 7
| export default inject((stores, props, context) => ({
compStore: stores.compStore,
}))(observer(Comp))
//ro ---
@observer(['compStore']) |
两种方式,props里面只有被@observable的属性,没有@action函数