(
public parent: IPropParent,
value: IPublicTypeCompositeValue | UNSET = UNSET,
key?: string | number,
spread = false,
options = {},
)
| 226 | private purged = false; |
| 227 | |
| 228 | constructor( |
| 229 | public parent: IPropParent, |
| 230 | value: IPublicTypeCompositeValue | UNSET = UNSET, |
| 231 | key?: string | number, |
| 232 | spread = false, |
| 233 | options = {}, |
| 234 | ) { |
| 235 | makeObservable(this); |
| 236 | this.owner = parent.owner; |
| 237 | this.props = parent.props; |
| 238 | this.key = key; |
| 239 | this.spread = spread; |
| 240 | this.options = options; |
| 241 | if (value !== UNSET) { |
| 242 | this.setValue(value); |
| 243 | } |
| 244 | this.setupItems(); |
| 245 | } |
| 246 | |
| 247 | // TODO: 先用调用方式触发子 prop 的初始化,后续须重构 |
| 248 | @action |
nothing calls this directly
no test coverage detected