<template>
  <div class="demo-form">
    <tiny-form overflow-title :model="formData" label-width="100px">
      <tiny-form-item label="请输入人员信息请输入人员信息">
        <tiny-input v-model="formData.user"></tiny-input>
      </tiny-form-item>
      <tiny-form-item label="请输入数量信息请输入数量信息">
        <tiny-numeric v-model="formData.quantity"></tiny-numeric>
      </tiny-form-item>
      <tiny-form-item label="单选">
        <tiny-radio v-model="formData.sex" label="1">男</tiny-radio>
        <tiny-radio v-model="formData.sex" label="2" text="女"></tiny-radio>
      </tiny-form-item>
    </tiny-form>
  </div>
</template>

<script>
import { Form, FormItem, Input, Numeric, Radio } from '@opentiny/vue'

export default {
  components: {
    TinyForm: Form,
    TinyFormItem: FormItem,
    TinyInput: Input,
    TinyNumeric: Numeric,
    TinyRadio: Radio
  },
  data() {
    return {
      formData: {
        user: '',
        quantity: 0,
        sex: ''
      }
    }
  }
}
</script>

<style scoped>
.demo-form {
  width: 380px;
}
</style>
