Blame view

ant-design-vue-jeecg/src/views/jeecg/helloworld2.vue 609 Bytes
肖超群 authored
1
2
3
4
5
6
<template>
  <div>
    hello world!
  </div>
</template>
<script>
肖超群 authored
7
8
9
10
11
export default {
  data() {
    return {
      description: '表单页用于向用户收集或验证信息,基础表单常见于数据项较少的表单场景。',
      value: 1,
肖超群 authored
12
肖超群 authored
13
14
      // form
      form: this.$form.createForm(this),
肖超群 authored
15
肖超群 authored
16
17
18
19
20
21
22
23
24
25
26
27
    }
  },
  methods: {
    // handler
    handleSubmit(e) {
      e.preventDefault()
      this.form.validateFields((err, values) => {
        if (!err) {
          // eslint-disable-next-line no-console
          console.log('Received values of form: ', values)
        }
      })
肖超群 authored
28
29
    }
  }
肖超群 authored
30
}
肖超群 authored
31
</script>