Commit 2d456dee authored by 王康's avatar 王康

form

parent ed20b01b
...@@ -156,8 +156,8 @@ ...@@ -156,8 +156,8 @@
}, },
/** /**
* 非必传,指定要显示的按钮及类型,默认不显示。 * 非必传,指定要显示的按钮及类型,默认不显示。
* 类型(type)关系到按钮要执行的方法,type=1,执行组件的提交方法,用户传入的方法method会作为提交方法的回调函数执行 * 类型(type)关系到按钮要执行的方法,type=1,执行组件的提交方法,如果用户传入了method,会作为提交方法的回调函数执行
* type=2,执行组件的重置方法,用户传入的方法method会作为重置方法的回调函数执行 * type=2,执行组件的重置方法,如果用户传入了method,会作为重置方法的回调函数执行
* type=3,直接执行用户传入的方法 * type=3,直接执行用户传入的方法
* 如果要传入了确定/取消的回调函数,请先传入对应的按钮 * 如果要传入了确定/取消的回调函数,请先传入对应的按钮
* 示例:[ * 示例:[
......
...@@ -62,12 +62,6 @@ ...@@ -62,12 +62,6 @@
}, },
method3() { method3() {
console.log('method3') console.log('method3')
},
confirm() {
console.log('确定')
},
cancel() {
console.log('取消')
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment