We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 061f00f commit d6c7483Copy full SHA for d6c7483
example/src/forms/AsyncSubmitForm/AsyncSubmitForm.js
@@ -1,5 +1,4 @@
1
-import Form, { Input } from '@detools/vue-form'
2
-import { Notification } from 'element-ui'
+import Form, { Input, Notification } from '@detools/vue-form'
3
4
export default {
5
data() {
@@ -9,14 +8,15 @@ export default {
9
8
},
10
11
methods: {
12
- handleSubmit() {
+ handleSubmit(values) {
13
return new Promise(resolve => {
14
- setTimeout(resolve, 2000)
+ setTimeout(() => {
+ this.formValues = values
15
+
16
+ resolve()
17
+ }, 2000)
18
}).then(() => {
- Notification.success({
- title: 'Yay!',
- message: 'Async submission is working',
19
- })
+ Notification.success('Async submission is working')
20
})
21
22
0 commit comments