docs_vue2/one/docs/demo/form/help.vue
xiaodemen d0dd1ea473 docs: add docs for form
Change-Id: I6b84399995ed28e9fe098abe38465ed5d685fb47
2022-03-30 22:46:18 +08:00

51 lines
795 B
Vue

<template>
<article>
<veui-form
:data="formData"
>
<veui-field
label="姓名:"
tip="提示"
help="辅助文本"
name="name"
>
<veui-input v-model="formData.name"/>
</veui-field>
<veui-field
label="爱好:"
help="辅助文本"
name="hobby"
help-position="bottom"
>
<veui-input v-model="formData.hobby"/>
</veui-field>
</veui-form>
</article>
</template>
<script>
import { Form, Field, Input } from 'veui'
export default {
components: {
'veui-form': Form,
'veui-field': Field,
'veui-input': Input
},
data () {
return {
formData: {
name: '',
hobby: ''
}
}
}
}
</script>
<style lang="less" scoped>
section {
margin-bottom: 20px;
}
</style>