2021-09-17 00:18:50 +08:00
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<el-input v-model="input1" placeholder="Please input">
|
|
|
|
<template #prepend>Http://</template>
|
|
|
|
</el-input>
|
|
|
|
</div>
|
2021-12-15 17:32:09 +08:00
|
|
|
<div class="mt-4">
|
2021-09-17 00:18:50 +08:00
|
|
|
<el-input v-model="input2" placeholder="Please input">
|
|
|
|
<template #append>.com</template>
|
|
|
|
</el-input>
|
|
|
|
</div>
|
2021-12-15 17:32:09 +08:00
|
|
|
<div class="mt-4">
|
2021-09-17 00:18:50 +08:00
|
|
|
<el-input
|
|
|
|
v-model="input3"
|
|
|
|
placeholder="Please input"
|
|
|
|
class="input-with-select"
|
|
|
|
>
|
|
|
|
<template #prepend>
|
2022-04-19 12:39:08 +08:00
|
|
|
<el-select v-model="select" placeholder="Select" style="width: 115px">
|
2022-03-14 04:16:11 +08:00
|
|
|
<el-option label="Restaurant" value="1" />
|
|
|
|
<el-option label="Order No." value="2" />
|
|
|
|
<el-option label="Tel" value="3" />
|
2021-09-17 00:18:50 +08:00
|
|
|
</el-select>
|
|
|
|
</template>
|
|
|
|
<template #append>
|
2022-03-14 04:16:11 +08:00
|
|
|
<el-button :icon="Search" />
|
2021-09-17 00:18:50 +08:00
|
|
|
</template>
|
|
|
|
</el-input>
|
|
|
|
</div>
|
2022-02-21 09:31:18 +08:00
|
|
|
<div class="mt-4">
|
|
|
|
<el-input
|
|
|
|
v-model="input3"
|
|
|
|
placeholder="Please input"
|
|
|
|
class="input-with-select"
|
|
|
|
>
|
|
|
|
<template #prepend>
|
2022-03-14 04:16:11 +08:00
|
|
|
<el-button :icon="Search" />
|
2022-02-21 09:31:18 +08:00
|
|
|
</template>
|
|
|
|
<template #append>
|
2022-04-19 12:39:08 +08:00
|
|
|
<el-select v-model="select" placeholder="Select" style="width: 115px">
|
2022-03-14 04:16:11 +08:00
|
|
|
<el-option label="Restaurant" value="1" />
|
|
|
|
<el-option label="Order No." value="2" />
|
|
|
|
<el-option label="Tel" value="3" />
|
2022-02-21 09:31:18 +08:00
|
|
|
</el-select>
|
|
|
|
</template>
|
|
|
|
</el-input>
|
|
|
|
</div>
|
2021-09-17 00:18:50 +08:00
|
|
|
</template>
|
|
|
|
|
2021-11-05 17:44:02 +08:00
|
|
|
<script setup lang="ts">
|
|
|
|
import { ref } from 'vue'
|
2021-12-04 11:20:06 +08:00
|
|
|
import { Search } from '@element-plus/icons-vue'
|
2021-11-05 17:44:02 +08:00
|
|
|
const input1 = ref('')
|
|
|
|
const input2 = ref('')
|
|
|
|
const input3 = ref('')
|
|
|
|
const select = ref('')
|
2021-09-17 00:18:50 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.input-with-select .el-input-group__prepend {
|
2022-03-13 22:42:57 +08:00
|
|
|
background-color: var(--el-fill-color-blank);
|
2021-09-17 00:18:50 +08:00
|
|
|
}
|
|
|
|
</style>
|