CompInputActionsFactory
Defined in: projects/view-core/convert/action/typed-component-common.ts:101
inputs 工厂: 值类型取自表, field 类型由 entry 的期望元素类型反推
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-core/convert/action/typed-component-common.ts:127
map 运行时拿到的是「已解析的普通值对象」, 不是响应式引用, 所以 value 用 origin 形态; 返回不做约束(就是返回一个新的值对象)。
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-core/convert/action/typed-component-common.ts:104
Type Parameters
Section titled “Type Parameters”F
T extends CompTables = Tables
Parameters
Section titled “Parameters”T["inputsOrigin"]
Returns
Section titled “Returns”CompAction<F, T>
patchAsync
Section titled “patchAsync”patchAsync: <
F,T,Data>(dataObj) =>CompAction<F,T>
Defined in: projects/view-core/convert/action/typed-component-common.ts:110
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[“inputsOrigin”][K]> } = TightenEmpty<{ [K in string | number | symbol]?: (field: F) => AsyncResult<T[“inputsOrigin”][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-core/convert/action/typed-component-common.ts:120
Type Parameters
Section titled “Type Parameters”F
T extends CompTables = Tables
Parameters
Section titled “Parameters”T["inputKeys"][]
Returns
Section titled “Returns”CompAction<F, T>
set: <
F,T>(value) =>CompAction<F,T>
Defined in: projects/view-core/convert/action/typed-component-common.ts:107
Type Parameters
Section titled “Type Parameters”F
T extends CompTables = Tables
Parameters
Section titled “Parameters”T["inputsOrigin"]
Returns
Section titled “Returns”CompAction<F, T>