comment
This commit is contained in:
parent
1f141e3ae0
commit
ec92908d74
|
|
@ -6,7 +6,7 @@ const (
|
||||||
FormTypeInput = "input" //文本输入框
|
FormTypeInput = "input" //文本输入框
|
||||||
FormTypeText = "text" //多行文本
|
FormTypeText = "text" //多行文本
|
||||||
FormTypeRadio = "radio" //单选框
|
FormTypeRadio = "radio" //单选框
|
||||||
FormTypeCheckbox = "checkbox" //单选框
|
FormTypeCheckbox = "checkbox" //多选框
|
||||||
FormTypeSwitch = "switch" //开关
|
FormTypeSwitch = "switch" //开关
|
||||||
FormTypeJson = "json" //JSON输入框
|
FormTypeJson = "json" //JSON输入框
|
||||||
)
|
)
|
||||||
|
|
@ -23,7 +23,7 @@ type Form struct {
|
||||||
Value interface{} `json:"value"` //表单值
|
Value interface{} `json:"value"` //表单值
|
||||||
Disable bool `json:"disable,omitempty"` //是否禁用
|
Disable bool `json:"disable,omitempty"` //是否禁用
|
||||||
Tips string `json:"tips"` //表单提示
|
Tips string `json:"tips"` //表单提示
|
||||||
Option []*FormOption `json:"option"` //表单选项,radion和checkbox需要
|
Option []*FormOption `json:"option"` //表单选项,radio和checkbox需要
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewFroms(tplConfig, saveConfig string) ([]*Form, error) {
|
func NewFroms(tplConfig, saveConfig string) ([]*Form, error) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue