mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-04 04:08:34 +08:00
50 lines
1.4 KiB
Vue
50 lines
1.4 KiB
Vue
<template>
|
|
<el-form label-position="left" label-width="auto" style="max-width: 600px">
|
|
<el-space fill>
|
|
<el-alert type="info" show-icon :closable="false">
|
|
<p>"Full Name" label is automatically attached to the input:</p>
|
|
</el-alert>
|
|
<el-form-item label="Full Name">
|
|
<el-input v-model="formAccessibility.fullName" />
|
|
</el-form-item>
|
|
</el-space>
|
|
<el-space fill>
|
|
<el-alert type="info" show-icon :closable="false">
|
|
<p>
|
|
"Your Information" serves as a label for the group of inputs. <br />
|
|
You must specify labels on the individal inputs. Placeholders are not
|
|
replacements for using the "label" attribute.
|
|
</p>
|
|
</el-alert>
|
|
<el-form-item label="Your Information">
|
|
<el-row :gutter="20">
|
|
<el-col :span="12">
|
|
<el-input
|
|
v-model="formAccessibility.firstName"
|
|
aria-label="First Name"
|
|
placeholder="First Name"
|
|
/>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<el-input
|
|
v-model="formAccessibility.lastName"
|
|
aria-label="Last Name"
|
|
placeholder="Last Name"
|
|
/>
|
|
</el-col>
|
|
</el-row>
|
|
</el-form-item>
|
|
</el-space>
|
|
</el-form>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { reactive } from 'vue'
|
|
|
|
const formAccessibility = reactive({
|
|
fullName: '',
|
|
firstName: '',
|
|
lastName: '',
|
|
})
|
|
</script>
|