ui库和web端产品库合并版本(还需修复细节)
This commit is contained in:
52
ui/packages/layout/AiSearch.vue
Normal file
52
ui/packages/layout/AiSearch.vue
Normal file
@@ -0,0 +1,52 @@
|
||||
<template>
|
||||
<section class="AiSearch">
|
||||
<slot v-if="$slots.label" name="label"/>
|
||||
<span v-else>{{ label }}</span>
|
||||
<div class="content">
|
||||
<slot/>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "AiSearch",
|
||||
props: {
|
||||
label: {default: ""}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.AiSearch {
|
||||
display: flex;
|
||||
|
||||
span {
|
||||
background: #F5F5F5;
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
border: 1px solid #D0D4DC;
|
||||
border-right: none;
|
||||
padding: 0 8px;
|
||||
white-space: nowrap;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
::v-deep .el-input__inner {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
* + * {
|
||||
.el-input__inner {
|
||||
margin-left: -1px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user