CompModelActionsFactory
Defined in: projects/view-angular-core/convert/action/typed-component-common.ts:168
models 工厂: 值是宿主侧的可写信号, 运行时走 twoWayBinding(key, signal)
Type Parameters
Section titled “Type Parameters”Tables
Section titled “Tables”Tables extends CompTables = CompTables
Properties
Section titled “Properties”mapAsync
Section titled “mapAsync”mapAsync: <
F,T>(fn) =>CompAction<F,T>
Defined in: projects/view-angular-core/convert/action/typed-component-common.ts:190
Type Parameters
Section titled “Type Parameters”F
T extends CompTables = Tables
Parameters
Section titled “Parameters”(field) => (value) => any
Returns
Section titled “Returns”CompAction<F, T>
patch: <
F,T>(value) =>CompAction<F,T>
Defined in: projects/view-angular-core/convert/action/typed-component-common.ts:171
Type Parameters
Section titled “Type Parameters”F
T extends CompTables = Tables
Parameters
Section titled “Parameters”T["modelsOrigin"]
Returns
Section titled “Returns”CompAction<F, T>
patchAsync
Section titled “patchAsync”patchAsync: <
F,T,Data>(dataObj) =>CompAction<F,T>
Defined in: projects/view-angular-core/convert/action/typed-component-common.ts:177
Type Parameters
Section titled “Type Parameters”F
T extends CompTables = Tables
Data extends Record<string, never> | { [K in string | number | symbol]?: (field: F) => AsyncResult<T[“modelsOrigin”][K]> } = TightenEmpty<{ [K in string | number | symbol]?: (field: F) => AsyncResult<T[“modelsOrigin”][K]> }>
Parameters
Section titled “Parameters”dataObj
Section titled “dataObj”Data
Returns
Section titled “Returns”CompAction<F, T>
remove
Section titled “remove”remove: <
F,T>(list) =>CompAction<F,T>
Defined in: projects/view-angular-core/convert/action/typed-component-common.ts:187
Type Parameters
Section titled “Type Parameters”F
T extends CompTables = Tables
Parameters
Section titled “Parameters”T["modelKeys"][]
Returns
Section titled “Returns”CompAction<F, T>
set: <
F,T>(value) =>CompAction<F,T>
Defined in: projects/view-angular-core/convert/action/typed-component-common.ts:174
Type Parameters
Section titled “Type Parameters”F
T extends CompTables = Tables
Parameters
Section titled “Parameters”T["modelsOrigin"]
Returns
Section titled “Returns”CompAction<F, T>