diff --git a/config/form.go b/config/form.go index 99a5508..dbfd5f5 100644 --- a/config/form.go +++ b/config/form.go @@ -17,12 +17,13 @@ type FormOption struct { } type Form struct { - Type string `json:"type"` //表单类型 - Name string `json:"name"` //表单名称 - Key string `json:"key"` //表单KEY - Value interface{} `json:"value"` //表单值 - Tips string `json:"tips"` //表单提示 - Option []*FormOption `json:"option"` //表单选项,radion和checkbox需要 + Type string `json:"type"` //表单类型 + Name string `json:"name"` //表单名称 + Key string `json:"key"` //表单KEY + Value interface{} `json:"value"` //表单值 + Disable bool `json:"disable,omitempty"` //是否禁用 + Tips string `json:"tips"` //表单提示 + Option []*FormOption `json:"option"` //表单选项,radion和checkbox需要 } func NewFroms(tplConfig, saveConfig string) ([]*Form, error) {