File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ var form = new seeditForm({
77
77
+ delBtnYes ` string ` 确定删除按钮文案
78
78
+ listAddBtn ` string ` 新建地址按钮文案
79
79
+ listEditBtn ` string ` 修改地址按钮文案
80
- + list/attr : ` array ` 需要验证的表单元素列表, 以下参数除placeholder外均依赖[ validator] ( https://moekit.com/package/validator ) 组件的表单标签属性
80
+ + list/addr : ` array ` 需要验证的表单元素列表, 以下参数除placeholder外均依赖[ validator] ( https://moekit.com/package/validator ) 组件的表单标签属性(list额外信息, addr实际需要的地址信息)
81
81
+ placeholer `string` 表单占位符,表单无内容时显示
82
82
+ required `boolean` 默认为空,设置为true才算启用必填校验
83
83
+ data-alt `string` 表单验证失败的文案
@@ -93,7 +93,9 @@ var form = new seeditForm({
93
93
+ onError: ` function ` 提交资料失败回调
94
94
+ onClose: ` function ` 返回按钮的回调事件
95
95
+ onSubmit: ` function ` 提交按钮的回调事件
96
- + editJson: ` function ` 外部修改提交的json,参数num控制在哪个环节修改数据
96
+ + editJson: ` function ` 外部修改提交的json,提供两个参数:data, num
97
+ + data: 提交接口的数据
98
+ + num: 2为地址库环节提交数据,undefine为活动接口环节提交数据
97
99
+ indexHtml ` function ` 外部插入html代码,显示在最外层页面
98
100
99
101
## 初始化参数的` list ` 下的` name ` 值介绍
You can’t perform that action at this time.
0 commit comments