Giter VIP home page Giter VIP logo

vue-qs-form's Introduction

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>
  <vue-qs-form v-model="form" :data="data" @finish="submitForm"></vue-qs-form>
</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 表单高度 String 250px
autoNext 是否自动下一步 Boolean true/false false
prevBtnText 上一步按钮文字 String 上一步
nextBtnText 下一步按钮文字 String 下一步
submitBtnText 完成按钮文字 String 提交

Event

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

Function

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

License

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

vue-qs-form's People

Contributors

xanke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.