2022-03-30 14:09:18 +08:00
|
|
|
<template>
|
|
|
|
<article>
|
2022-03-31 13:24:57 +08:00
|
|
|
<section>
|
|
|
|
<veui-checkbox
|
|
|
|
v-model="helpPosition"
|
|
|
|
true-value="bottom"
|
|
|
|
false-value="side"
|
|
|
|
>
|
|
|
|
辅助信息显示在底部
|
|
|
|
</veui-checkbox>
|
|
|
|
</section>
|
2022-03-30 14:09:18 +08:00
|
|
|
<veui-form
|
|
|
|
:data="formData"
|
|
|
|
>
|
|
|
|
<veui-field
|
|
|
|
name="name"
|
2022-03-31 13:24:57 +08:00
|
|
|
label="姓名"
|
|
|
|
tip="你的全名"
|
|
|
|
help="至少 2 个字符"
|
|
|
|
:help-position="helpPosition"
|
2022-03-30 14:09:18 +08:00
|
|
|
>
|
|
|
|
<veui-input v-model="formData.name"/>
|
|
|
|
</veui-field>
|
|
|
|
<veui-field
|
2022-03-31 13:24:57 +08:00
|
|
|
name="address"
|
|
|
|
label="地址"
|
|
|
|
tip="居住地的详细地址"
|
|
|
|
help="精确到门牌号"
|
|
|
|
:help-position="helpPosition"
|
2022-03-30 14:09:18 +08:00
|
|
|
>
|
2022-03-31 13:24:57 +08:00
|
|
|
<veui-input v-model="formData.address"/>
|
2022-03-30 14:09:18 +08:00
|
|
|
</veui-field>
|
|
|
|
</veui-form>
|
|
|
|
</article>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2022-03-31 13:24:57 +08:00
|
|
|
import { Form, Field, Input, Checkbox } from 'veui'
|
2022-03-30 14:09:18 +08:00
|
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
|
|
'veui-form': Form,
|
|
|
|
'veui-field': Field,
|
2022-03-31 13:24:57 +08:00
|
|
|
'veui-input': Input,
|
|
|
|
'veui-checkbox': Checkbox
|
2022-03-30 14:09:18 +08:00
|
|
|
},
|
|
|
|
data () {
|
|
|
|
return {
|
|
|
|
formData: {
|
|
|
|
name: '',
|
2022-03-31 13:24:57 +08:00
|
|
|
address: ''
|
|
|
|
},
|
|
|
|
helpPosition: 'side'
|
2022-03-30 14:09:18 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
section {
|
|
|
|
margin-bottom: 20px;
|
|
|
|
}
|
|
|
|
</style>
|