UNPKG

@tplc/business

Version:

94 lines (92 loc) 1.8 kB
import { LcbBlockProps } from '../lcb-block/types' export interface LcbFormField { /** * 业务主键ID */ entryFormFieldConfigId: string /** * 表单配置主键ID */ entryFormConfigId: string /** * 字段 */ field: string /** * 默认字段名称 */ fieldName: string /** * 自定义字段名称 */ fieldCustomName: string /** * 前端输入类型:如text date select img等 */ frontInputType: string /** * 前端输入类型对应的值 如:year month day */ frontInputTypeValue: string /** * 前端输入的固定内容,如[\"计算机\",\"国际金融\",“UI视觉”] */ frontInputContent: string /** * 前端文本提示信息 */ frontPlaceholder: string /** * 文本提示信息 */ frontTip: string /** * 必填标识 */ requiredFlag: boolean /** * 是否存在子集 */ childFlag: boolean /** * 显示条件的字段是什么,数组[field:content,field:content2] */ conditionField: string /** * 组件的props */ props: Record<string, any> range: string[] /** * 最小日期 */ minDate: number /** * 最大日期 */ maxDate: number /** * 默认日期 */ defaultDate: number } export interface LcbFormProps extends LcbBlockProps { fields: LcbFormField[] formType?: string submitText?: string submitUrl?: string agreementType?: string affirmText?: string // 底部悬浮 bottomFixed?: boolean // 是否显示提交按钮 showSubmitButton?: boolean vertical?: boolean // 标题样式配置 titleColor?: string titleFontSize?: number titleFontWeight?: string | number titleFontFamily?: string // 表单唯一标识,用于在 PAGE_PROVIDE_KEY 中注册表单数据 formKey?: string }