DefineComponentEntry
Defined in: packages/solid/src/util/typed-field-component-pipe.ts:125
定义单条 entry: 路径 + 组件 + 该路径下的 actions。
- 路径 P 由第一个实参推断, 组件 K 由第二个实参推断;
- 组件先翻成表再进
CompEntryAction, 工厂侧靠CompAction的配对通道拿到同一张表, 所以d.inputs.patchAsync({...})的 key/值类型依旧由这条 entry 的组件决定。
component 可省(或直接传 undefined): 走「默认设计」—— 用该路径 schema 的 type(如 ‘string’) 当组件标识。
Extends
Section titled “Extends”Type Parameters
Section titled “Type Parameters”Root extends v.BaseSchema<any, any, any>
Cfg
Call Signature
Section titled “Call Signature”DefineComponentEntry<
P,K>(path,component,actions):FieldEntry
Defined in: packages/solid/src/util/typed-field-component-pipe.ts:129
定义单条 entry: 路径 + 组件 + 该路径下的 actions。
- 路径 P 由第一个实参推断, 组件 K 由第二个实参推断;
- 组件先翻成表再进
CompEntryAction, 工厂侧靠CompAction的配对通道拿到同一张表, 所以d.inputs.patchAsync({...})的 key/值类型依旧由这条 entry 的组件决定。
component 可省(或直接传 undefined): 走「默认设计」—— 用该路径 schema 的 type(如 ‘string’) 当组件标识。
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, string] | [string, "[rest]"] | [string, number] | [string, "[value]"] | [string, "[key]"] | ["[rest]", string] | ["[rest]", "[rest]"] | ["[rest]", number] | ["[rest]", "[value]"] | ["[rest]", "[key]"] | [number, string] | [number, "[rest]"] | [number, number] | [number, "[value]"] | [number, "[key]"] | ["[value]", string] | ["[value]", "[rest]"] | ["[value]", number] | ["[value]", "[value]"] | ["[value]", "[key]"] | ["[key]", string] | ["[key]", "[rest]"] | ["[key]", number] | ["[key]", "[value]"] | ["[key]", "[key]"]
K extends string | number | symbol | LazyMarkType<any> | LazyImport<any> | ((props) => any) | ((props) => any) | undefined
Parameters
Section titled “Parameters”[...P[]]
component
Section titled “component”K
actions
Section titled “actions”readonly CompEntryAction<Root, P, [K] extends [undefined] ? TablesOfComponent<DefaultComponentOf<Cfg, ComponentKeyOfNode<PiFieldScopeOf<GetResult<Root, Root, any, InferAliasMap<Root>, P>>["schema"]>>> : TablesOfComponent<ComponentOf<Cfg, K>>>[]
Returns
Section titled “Returns”FieldEntry
Call Signature
Section titled “Call Signature”DefineComponentEntry<
P>(path,actions):FieldEntry
Defined in: packages/solid/src/util/typed-field-component-pipe.ts:141
直接传 actions: 组件走默认的 schema type
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, string] | [string, "[rest]"] | [string, number] | [string, "[value]"] | [string, "[key]"] | ["[rest]", string] | ["[rest]", "[rest]"] | ["[rest]", number] | ["[rest]", "[value]"] | ["[rest]", "[key]"] | [number, string] | [number, "[rest]"] | [number, number] | [number, "[value]"] | [number, "[key]"] | ["[value]", string] | ["[value]", "[rest]"] | ["[value]", number] | ["[value]", "[value]"] | ["[value]", "[key]"] | ["[key]", string] | ["[key]", "[rest]"] | ["[key]", number] | ["[key]", "[value]"] | ["[key]", "[key]"]
Parameters
Section titled “Parameters”[...P[]]
actions
Section titled “actions”readonly CompEntryAction<Root, P, TablesOfComponent<DefaultComponentOf<Cfg, ComponentKeyOfNode<PiFieldScopeOf<GetResult<Root, Root, any, InferAliasMap<Root>, P>>["schema"]>>>>[]
Returns
Section titled “Returns”FieldEntry
Properties
Section titled “Properties”attributes
Section titled “attributes”attributes:
TypedAttributesActionsFactory<SolidAttributeName>
Defined in: dist/view-core/types/piying-view-core.d.ts:1605
Inherited from
Section titled “Inherited from”TypedComponentActionFactories.attributes
class:
object
Defined in: dist/view-core/types/piying-view-core.d.ts:860
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”TypedComponentActionFactories.class
createOptions
Section titled “createOptions”createOptions:
object
Defined in: dist/view-core/types/piying-view-core.d.ts:847
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”TypedComponentActionFactories.createOptions
disableWhen
Section titled “disableWhen”disableWhen: <
F>(options) =>ConfigAction<F>
Defined in: dist/view-core/types/piying-view-core.d.ts:870
Type Parameters
Section titled “Type Parameters”F extends AnyField
Parameters
Section titled “Parameters”options
Section titled “options”DisableWhenOption<F>
Returns
Section titled “Returns”ConfigAction<F>
Inherited from
Section titled “Inherited from”TypedComponentActionFactories.disableWhen
events
Section titled “events”events:
TypedComponentEventsActionsFactory
Defined in: dist/view-core/types/piying-view-core.d.ts:1494
Inherited from
Section titled “Inherited from”TypedComponentActionFactories.events
hideWhen
Section titled “hideWhen”hideWhen: <
F>(options) =>ConfigAction<F>
Defined in: dist/view-core/types/piying-view-core.d.ts:869
Type Parameters
Section titled “Type Parameters”F extends AnyField
Parameters
Section titled “Parameters”options
Section titled “options”HideWhenOption<F>
Returns
Section titled “Returns”ConfigAction<F>
Inherited from
Section titled “Inherited from”TypedComponentActionFactories.hideWhen
hooks:
HooksGroupFactory
Defined in: dist/view-core/types/piying-view-core.d.ts:846
Inherited from
Section titled “Inherited from”TypedComponentActionFactories.hooks
inputs
Section titled “inputs”inputs:
CompInputActionsFactory<CompTables>
Defined in: dist/view-core/types/piying-view-core.d.ts:1491
Inherited from
Section titled “Inherited from”TypedComponentActionFactories.inputs
outputChange
Section titled “outputChange”outputChange: <
F,T>(fn) =>CompAction<F,T>
Defined in: dist/view-core/types/piying-view-core.d.ts:1497
与 outputs 同族: 靠 CompAction 别名配对把表送进回调内部的 output 名约束
Type Parameters
Section titled “Type Parameters”F
T extends CompTables = CompTables
Parameters
Section titled “Parameters”CompOutputChangeFn<F, T["outputKeys"], T["outputsHandlerMap"]>
Returns
Section titled “Returns”CompAction<F, T>
Inherited from
Section titled “Inherited from”TypedComponentActionFactories.outputChange
outputs
Section titled “outputs”outputs:
CompOutputActionsFactory<CompTables>
Defined in: dist/view-core/types/piying-view-core.d.ts:1492
Inherited from
Section titled “Inherited from”TypedComponentActionFactories.outputs
props:
KeyGroupFactory
Defined in: dist/view-core/types/piying-view-core.d.ts:839
Inherited from
Section titled “Inherited from”TypedComponentActionFactories.props
providers
Section titled “providers”providers:
object
Defined in: dist/view-core/types/piying-view-core.d.ts:851
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”InjectorProvider[]
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”InjectorProvider[]
Returns
Section titled “Returns”RawConfigAction<"viewRawConfig", T, AnyCoreSchemaHandle>
Inherited from
Section titled “Inherited from”TypedComponentActionFactories.providers
slots:
KeyGroupFactory
Defined in: dist/view-core/types/piying-view-core.d.ts:842
Inherited from
Section titled “Inherited from”TypedComponentActionFactories.slots
valueChange
Section titled “valueChange”valueChange: <
F>(listenFn) =>ConfigAction<F>
Defined in: dist/view-core/types/piying-view-core.d.ts:871
Type Parameters
Section titled “Type Parameters”F extends AnyField
Parameters
Section titled “Parameters”listenFn
Section titled “listenFn”ValueChangeFn<F>
Returns
Section titled “Returns”ConfigAction<F>
Inherited from
Section titled “Inherited from”TypedComponentActionFactories.valueChange
wrappers
Section titled “wrappers”wrappers:
Omit<{changeAsync: <T>(indexFn,actions) =>RawConfigAction<"viewRawConfig",T,AnyCoreSchemaHandle>;patch: <T>(wrappers) =>RawConfigAction<"viewRawConfig",T,AnyCoreSchemaHandle>;patchAsync: <T>(type,actions?,options?) =>RawConfigAction<"viewRawConfig",T,AnyCoreSchemaHandle>;remove: <T>(removeList) =>RawConfigAction<"viewRawConfig",T,AnyCoreSchemaHandle>;set: <T>(wrappers) =>RawConfigAction<"viewRawConfig",T,AnyCoreSchemaHandle>; },"set"|"patch"|"patchAsync"|"remove"> &TypedWrappersActionsFactory<Cfg>
Defined in: dist/view-core/types/piying-view-core.d.ts:1495
Inherited from
Section titled “Inherited from”TypedComponentActionFactories.wrappers