@tplc/business
Version:
84 lines (82 loc) • 1.49 kB
text/typescript
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
}