mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-06 05:09:00 +08:00
efb48a61fd
* fix(style): adjust button size & demo spacing * fix(style): adjust input padding & with prefix/suffix * fix(style): adjust button padding horizontal * fix(style): adjust form margin & font-size * refactor(docs): use setup simplify form examples
70 lines
1.5 KiB
Vue
70 lines
1.5 KiB
Vue
<template>
|
|
<div class="demo-input-size">
|
|
<el-input
|
|
v-model="input1"
|
|
class="w-50 m-2"
|
|
size="large"
|
|
placeholder="Please Input"
|
|
></el-input>
|
|
<el-input v-model="input2" class="w-50 m-2" placeholder="Please Input" />
|
|
<el-input
|
|
v-model="input3"
|
|
class="w-50 m-2"
|
|
size="small"
|
|
placeholder="Please Input"
|
|
/>
|
|
</div>
|
|
<div class="demo-input-size">
|
|
<el-input
|
|
v-model="input1"
|
|
class="w-50 m-2"
|
|
size="large"
|
|
placeholder="Please Input"
|
|
:suffix-icon="Search"
|
|
></el-input>
|
|
<el-input
|
|
v-model="input2"
|
|
class="w-50 m-2"
|
|
placeholder="Please Input"
|
|
:suffix-icon="Search"
|
|
/>
|
|
<el-input
|
|
v-model="input3"
|
|
class="w-50 m-2"
|
|
size="small"
|
|
placeholder="Please Input"
|
|
:suffix-icon="Search"
|
|
/>
|
|
</div>
|
|
<div class="demo-input-size">
|
|
<el-input
|
|
v-model="input1"
|
|
class="w-50 m-2"
|
|
size="large"
|
|
placeholder="Please Input"
|
|
:prefix-icon="Search"
|
|
></el-input>
|
|
<el-input
|
|
v-model="input2"
|
|
class="w-50 m-2"
|
|
placeholder="Please Input"
|
|
:prefix-icon="Search"
|
|
/>
|
|
<el-input
|
|
v-model="input3"
|
|
class="w-50 m-2"
|
|
size="small"
|
|
placeholder="Please Input"
|
|
:prefix-icon="Search"
|
|
/>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { ref } from 'vue'
|
|
import { Search } from '@element-plus/icons-vue'
|
|
const input1 = ref('')
|
|
const input2 = ref('')
|
|
const input3 = ref('')
|
|
</script>
|