This commit is contained in:
jiangyong 2025-08-28 19:35:29 +08:00
parent 1f141e3ae0
commit ec92908d74
1 changed files with 2 additions and 2 deletions

View File

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