DefineEntry
Defined in: projects/view-angular-core/convert/action/typed-field-pipe.ts:433
定义单条 entry: 路径 + 该路径下的 actions。
- 路径 P 由第一个实参推断, 写错编译期报错;
- actions 的期望类型是
ConfigAction<PiFieldAtPath<Root, P>>, 工厂上的 F 由此反推, 所以d.props.patchAsync({ x: (field) => ... })里的 field 与builder.get(path)完全等价(自身 / 父级 / 根级 / 别名)。
注意: 工厂调用必须写在本次的 actions 数组里, 提前存到变量会丢上下文。
Extends
Section titled “Extends”Type Parameters
Section titled “Type Parameters”Root extends v.BaseSchema<any, any, any>
DefineEntry<
P>(path,actions):FieldEntry
Defined in: projects/view-angular-core/convert/action/typed-field-pipe.ts:436
定义单条 entry: 路径 + 该路径下的 actions。
- 路径 P 由第一个实参推断, 写错编译期报错;
- actions 的期望类型是
ConfigAction<PiFieldAtPath<Root, P>>, 工厂上的 F 由此反推, 所以d.props.patchAsync({ x: (field) => ... })里的 field 与builder.get(path)完全等价(自身 / 父级 / 根级 / 别名)。
注意: 工厂调用必须写在本次的 actions 数组里, 提前存到变量会丢上下文。
Type Parameters
Section titled “Type Parameters”P extends NodePathsOf<any, [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]> | [string, "[rest]"] | [string, number] | [string, "[value]"] | [string, "[key]"] | [string, string] | ["[rest]", "[rest]"] | ["[rest]", number] | ["[rest]", "[value]"] | ["[rest]", "[key]"] | ["[rest]", string] | [number, "[rest]"] | [number, number] | [number, "[value]"] | [number, "[key]"] | [number, string] | ["[value]", "[rest]"] | ["[value]", number] | ["[value]", "[value]"] | ["[value]", "[key]"] | ["[value]", string] | ["[key]", "[rest]"] | ["[key]", number] | ["[key]", "[value]"] | ["[key]", "[key]"] | ["[key]", string]
Parameters
Section titled “Parameters”[...P[]]
actions
Section titled “actions”readonly FieldActionOf<Root, P>[]
Returns
Section titled “Returns”Properties
Section titled “Properties”attributes
Section titled “attributes”attributes:
AttributesGroupFactory
Defined in: projects/view-angular-core/convert/action/typed-field-pipe.ts:122
Inherited from
Section titled “Inherited from”class:
object
Defined in: projects/view-angular-core/convert/action/typed-field-pipe.ts:139
class 族: 同步形态不涉 field, 异步形态的回调必须拿到路径精确的 field。
这里重新声明而不是 typeof classAction: 底层函数把 field 写死成了松散形态。
asyncBottom
Section titled “asyncBottom”asyncBottom: <
F>(classNameFn) =>ConfigAction<F>
Type Parameters
Section titled “Type Parameters”F extends AnyField
Parameters
Section titled “Parameters”classNameFn
Section titled “classNameFn”AsyncCallback<string, F>
Returns
Section titled “Returns”ConfigAction<F>
asyncComponent
Section titled “asyncComponent”asyncComponent: <
F>(classNameFn) =>ConfigAction<F>
Type Parameters
Section titled “Type Parameters”F extends AnyField
Parameters
Section titled “Parameters”classNameFn
Section titled “classNameFn”AsyncCallback<string, F>
Returns
Section titled “Returns”ConfigAction<F>
asyncTop
Section titled “asyncTop”asyncTop: <
F>(classNameFn) =>ConfigAction<F>
Type Parameters
Section titled “Type Parameters”F extends AnyField
Parameters
Section titled “Parameters”classNameFn
Section titled “classNameFn”AsyncCallback<ClassValue, F>
Returns
Section titled “Returns”ConfigAction<F>
bottom
Section titled “bottom”bottom: <
F>(className,merge?) =>ConfigAction<F>
Type Parameters
Section titled “Type Parameters”F
Parameters
Section titled “Parameters”className
Section titled “className”ClassValue
merge?
Section titled “merge?”boolean
Returns
Section titled “Returns”ConfigAction<F>
component
Section titled “component”component: <
F>(className,merge?) =>ConfigAction<F>
Type Parameters
Section titled “Type Parameters”F
Parameters
Section titled “Parameters”className
Section titled “className”ClassValue
merge?
Section titled “merge?”boolean
Returns
Section titled “Returns”ConfigAction<F>
top: <
F>(className,merge?) =>ConfigAction<F>
Type Parameters
Section titled “Type Parameters”F
Parameters
Section titled “Parameters”className
Section titled “className”ClassValue
merge?
Section titled “merge?”boolean
Returns
Section titled “Returns”ConfigAction<F>
Inherited from
Section titled “Inherited from”createOptions
Section titled “createOptions”createOptions:
object
Defined in: projects/view-angular-core/convert/action/typed-field-pipe.ts:126
patch: <
F>(value) =>ConfigAction<F>
Type Parameters
Section titled “Type Parameters”F
Parameters
Section titled “Parameters”any
Returns
Section titled “Returns”ConfigAction<F>
set: <
F>(value) =>ConfigAction<F>
Type Parameters
Section titled “Type Parameters”F
Parameters
Section titled “Parameters”any
Returns
Section titled “Returns”ConfigAction<F>
Inherited from
Section titled “Inherited from”disableWhen
Section titled “disableWhen”disableWhen: <
F>(options) =>ConfigAction<F>
Defined in: projects/view-angular-core/convert/action/typed-field-pipe.ts:155
Type Parameters
Section titled “Type Parameters”F extends AnyField
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”ConfigAction<F>
Inherited from
Section titled “Inherited from”events
Section titled “events”events:
EventsGroupFactory
Defined in: projects/view-angular-core/convert/action/typed-field-pipe.ts:124
Inherited from
Section titled “Inherited from”hideWhen
Section titled “hideWhen”hideWhen: <
F>(options) =>ConfigAction<F>
Defined in: projects/view-angular-core/convert/action/typed-field-pipe.ts:154
Type Parameters
Section titled “Type Parameters”F extends AnyField
Parameters
Section titled “Parameters”options
Section titled “options”Returns
Section titled “Returns”ConfigAction<F>
Inherited from
Section titled “Inherited from”hooks:
HooksGroupFactory
Defined in: projects/view-angular-core/convert/action/typed-field-pipe.ts:125
Inherited from
Section titled “Inherited from”inputs
Section titled “inputs”inputs:
KeyGroupFactory
Defined in: projects/view-angular-core/convert/action/typed-field-pipe.ts:119
Inherited from
Section titled “Inherited from”models
Section titled “models”models:
KeyGroupFactory
Defined in: projects/view-angular-core/convert/action/typed-field-pipe.ts:120
Inherited from
Section titled “Inherited from”outputChange
Section titled “outputChange”outputChange: <
F>(fn) =>ConfigAction<F>
Defined in: projects/view-angular-core/convert/action/typed-field-pipe.ts:162
监听其他字段的 output: 回调里 list/listenFields 与监听项逐位对齐
Type Parameters
Section titled “Type Parameters”F extends AnyField
Parameters
Section titled “Parameters”Returns
Section titled “Returns”ConfigAction<F>
Inherited from
Section titled “Inherited from”outputs
Section titled “outputs”outputs:
OutputsGroupFactory
Defined in: projects/view-angular-core/convert/action/typed-field-pipe.ts:123
Inherited from
Section titled “Inherited from”props:
KeyGroupFactory
Defined in: projects/view-angular-core/convert/action/typed-field-pipe.ts:118
Inherited from
Section titled “Inherited from”providers
Section titled “providers”providers:
object
Defined in: projects/view-angular-core/convert/action/typed-field-pipe.ts:130
change
Section titled “change”change: <
T>(providersFn) =>RawConfigAction<"viewRawConfig",T,AnyCoreSchemaHandle>
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”providersFn
Section titled “providersFn”(input) => InjectorProvider[]
Returns
Section titled “Returns”RawConfigAction<"viewRawConfig", T, AnyCoreSchemaHandle>
patch: <
T>(providers) =>RawConfigAction<"viewRawConfig",T,AnyCoreSchemaHandle>
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”providers
Section titled “providers”Returns
Section titled “Returns”RawConfigAction<"viewRawConfig", T, AnyCoreSchemaHandle>
set: <
T>(providers) =>RawConfigAction<"viewRawConfig",T,AnyCoreSchemaHandle>
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”providers
Section titled “providers”Returns
Section titled “Returns”RawConfigAction<"viewRawConfig", T, AnyCoreSchemaHandle>
Inherited from
Section titled “Inherited from”slots:
KeyGroupFactory
Defined in: projects/view-angular-core/convert/action/typed-field-pipe.ts:121
Inherited from
Section titled “Inherited from”valueChange
Section titled “valueChange”valueChange: <
F>(listenFn) =>ConfigAction<F>
Defined in: projects/view-angular-core/convert/action/typed-field-pipe.ts:158
Type Parameters
Section titled “Type Parameters”F extends AnyField
Parameters
Section titled “Parameters”listenFn
Section titled “listenFn”Returns
Section titled “Returns”ConfigAction<F>
Inherited from
Section titled “Inherited from”wrappers
Section titled “wrappers”wrappers:
object
Defined in: projects/view-angular-core/convert/action/typed-field-pipe.ts:153
changeAsync
Section titled “changeAsync”changeAsync: <
T>(indexFn,actions) =>RawConfigAction<"viewRawConfig",T,AnyCoreSchemaHandle> =changeAsyncWrapper
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”indexFn
Section titled “indexFn”(list) => any
actions
Section titled “actions”ConfigAction<any>[]
Returns
Section titled “Returns”RawConfigAction<"viewRawConfig", T, AnyCoreSchemaHandle>
patch: <
T>(wrappers) =>RawConfigAction<"viewRawConfig",T,AnyCoreSchemaHandle>
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”wrappers
Section titled “wrappers”(string | SetOptional<SetUnWrapper$<CoreWrapperConfig, WrapperChangeKey>, WrapperChangeKey>)[]
Returns
Section titled “Returns”RawConfigAction<"viewRawConfig", T, AnyCoreSchemaHandle>
patchAsync
Section titled “patchAsync”patchAsync: <
T>(type,actions?,options?) =>RawConfigAction<"viewRawConfig",T,AnyCoreSchemaHandle> =patchAsyncWrapper
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”any
actions?
Section titled “actions?”ConfigAction<any>[]
options?
Section titled “options?”insertIndex?
Section titled “insertIndex?”number
Returns
Section titled “Returns”RawConfigAction<"viewRawConfig", T, AnyCoreSchemaHandle>
remove
Section titled “remove”remove: <
T>(removeList) =>RawConfigAction<"viewRawConfig",T,AnyCoreSchemaHandle> =removeWrappers
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”removeList
Section titled “removeList”string[] | ((list) => Signal<CoreWrapperConfig>[])
Returns
Section titled “Returns”RawConfigAction<"viewRawConfig", T, AnyCoreSchemaHandle>
set: <
T>(wrappers) =>RawConfigAction<"viewRawConfig",T,AnyCoreSchemaHandle>
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”wrappers
Section titled “wrappers”(string | SetOptional<SetUnWrapper$<CoreWrapperConfig, WrapperChangeKey>, WrapperChangeKey>)[]
Returns
Section titled “Returns”RawConfigAction<"viewRawConfig", T, AnyCoreSchemaHandle>