0.5.4 • Published 6 years ago

vue-qs-form v0.5.4

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

vue-qs-form

Vue quick step form, Vue快速问卷表单

npm npm npm Build Status Codecov npm

**需配合element-ui使用 https://github.com/elemefe**

快速开始

import Vue from 'vue'
import vueQsForm from 'vue-qs-form'

export default {
  name: 'App',

  components: {
    vueQsForm
  }
}

示例

<template>
  <vueQsForm v-model="form" :data="data" @finish="submitForm"></vueQsForm>
</template>

<script>
import vueQsForm from 'vue-qs-form'

export default {
  name: 'App',
  components: {
    vueQsForm
  },

  data: () => ({
    form: '',
    data: [
      {
        'key': 'qa1',
        'title': '问题一',
        'radios': [
          [0, '否'],
          [1, '是']
        ]
      },
      {
        'key': 'qa2',
        'title': '问题二',
        'radios': [
          [0, '否'],
          [1, '是']
        ]
      }
    ]
  }),
}
</script>

Props

参数说明必须类型可选值默认值
data表单数据String
height表单高度String250px
autoNext是否自动下一步Booleantrue/falsefalse
prevBtnText上一步按钮文字String上一步
nextBtnText下一步按钮文字String下一步
submitBtnText完成按钮文字String提交

Event

事件名称说明回调参数
submit点击提交事件表单数据
atend到达最后-

Function

方法名称说明回调参数
restForm重置表单-

License

Vue-qs-form is open-sourced software licensed under the MIT license

0.5.4

6 years ago

0.5.3

6 years ago

0.5.2

6 years ago

0.4.8

6 years ago

0.4.7

6 years ago

0.4.6

6 years ago

0.4.5

6 years ago

0.4.0

6 years ago

0.1.0

6 years ago