(config: Omit<ComputedConfig<T>, 'type'>)
| 102 | * 创建 computed 属性 |
| 103 | */ |
| 104 | const computedProperty = <T = any>(config: Omit<ComputedConfig<T>, 'type'>) => { |
| 105 | return createMobxDescriptor<ComputedConfig<T>>({ |
| 106 | type: MobxExtendType.COMPUTED, |
| 107 | ...config, |
| 108 | }) |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * 创建简单的 computed getter |
no test coverage detected