UNPKG

@cn-ui/core

Version:

The @cn-ui/core is a collection of UI components and utilities for building modern web applications with SolidJS.

29 lines (28 loc) 903 B
import { type Atom } from "@cn-ui/reactive"; import type { PropSlot } from "../table/defineTable"; import "./form-core.css"; import type { RootColumnDef } from "./utils"; export interface FormCoreProps<T, D> { "v-model": Atom<any>; originData?: T; index?: number; config: RootColumnDef<T, D>; disabled?: boolean; wrap?: boolean; span?: number; showLabel?: boolean; errorMessage?: string; } export declare function FormCore<T, D>(props: FormCoreProps<T, D>): import("solid-js").JSX.Element; export declare const extendsFormCoreSlotProp: (props: { /** 无值时的提示 */ placeholder?: PropSlot<string>; /** 禁止操作 */ disabled?: PropSlot<boolean>; /** 只读状态, 保证控件不会被输入控制 */ readonly?: PropSlot<boolean>; /** 强制必填 */ required?: PropSlot<boolean>; }) => { [k: string]: string | boolean; };