Skip to content

form/props

props

js
//打开的类型
modeType: {
  type: String,
  default: 'editForm'
}
//字段
fieldData: {
  type: Array,
  default: () => []
}
//表信息
tableData: {
  type: Object,
  default: () => ({})
}
// 页面参数
recordRelation: {
  type: Object,
  default: () => ({})
}
//使用类型(打开方式)  1公共 2查找 3关联
openMode: {
  type: [String, Number],
  default: 1
}
//做中间件关联使用  提交时是否直接提交或返回数据
isRelevance: {
  type: Boolean,
  default: false
}

参数表

属性类型默认值说明
modeTypeStringeditForm打开的类型
fieldDataArray[]字段
tableDataObject{}表信息
recordRelationObject{}页面参数
openModeString | Number1打开方式:公共、查找、关联
isRelevanceBooleanfalse做中间件关联使用,提交时是否直接提交或返回数据

API 参数表

tableData

字段说明类型默认值
idIDNumber-
tablename表名称String-
busname业务名称String-

fieldData

字段说明类型默认值
idIDNumber-
columncomment名称String-
columnname字段String-
effecttype类型String-
dictTypecode字典Stringnull
fieldformat日期格式Stringnull
fkentityname实体类(表),多个用,拼接Stringnull
relations关于字段创建时初始值Stringnull