Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VueElementTemplate
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄瑜
VueElementTemplate
Commits
2d456dee
Commit
2d456dee
authored
Mar 18, 2018
by
王康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
form
parent
ed20b01b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
HmComplexForm.vue
src/views/haomo/components/forms/HmComplexForm.vue
+2
-2
index.vue
src/views/haomo/components/forms/index.vue
+0
-6
No files found.
src/views/haomo/components/forms/HmComplexForm.vue
View file @
2d456dee
...
...
@@ -156,8 +156,8 @@
},
/**
* 非必传,指定要显示的按钮及类型,默认不显示。
* 类型(type)关系到按钮要执行的方法,type=1,执行组件的提交方法,
用户传入的方法method
会作为提交方法的回调函数执行
* type=2,执行组件的重置方法,
用户传入的方法method
会作为重置方法的回调函数执行
* 类型(type)关系到按钮要执行的方法,type=1,执行组件的提交方法,
如果用户传入了method,
会作为提交方法的回调函数执行
* type=2,执行组件的重置方法,
如果用户传入了method,
会作为重置方法的回调函数执行
* type=3,直接执行用户传入的方法
* 如果要传入了确定/取消的回调函数,请先传入对应的按钮
* 示例:[
...
...
src/views/haomo/components/forms/index.vue
View file @
2d456dee
...
...
@@ -62,12 +62,6 @@
},
method3
()
{
console
.
log
(
'method3'
)
},
confirm
()
{
console
.
log
(
'确定'
)
},
cancel
()
{
console
.
log
(
'取消'
)
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment