UNPKG

@fluent-form/core

Version:

An Angular dynamic forms library powered by Fluent API and JSON.

20 lines (19 loc) 902 B
import type { SafeAny } from '@ngify/core'; import type { FluentColDirective } from '../directives'; import type { Indexable } from '../types'; import type { Column } from './grid'; import type { HooksHolder } from './hooks'; import type { MaybeSchemaReactiveFn, SchemaLike } from './interfaces'; import type { SchemaKey } from './types'; /** * 抽象图示 */ export interface AbstractSchema<Key extends SchemaKey = SchemaKey> extends SchemaLike<Key>, HooksHolder<AbstractSchema> { col?: Column | ReturnType<FluentColDirective['span']>; hidden?: MaybeSchemaReactiveFn<AbstractSchema, boolean>; class?: null | string | string[] | Record<string, boolean | undefined | null>; style?: string | undefined | null | Record<string, SafeAny>; } export interface AbstractBranchSchema<Key extends SchemaKey = SchemaKey> extends AbstractSchema<Key> { schemas: Indexable<AbstractSchema>[]; }