mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
add select prepend
This commit is contained in:
parent
3c495d5e48
commit
e77270d9f3
|
@ -1,27 +1,29 @@
|
||||||
<template functional>
|
<template functional>
|
||||||
<component
|
<div :class="$style.container">
|
||||||
:is="$options.components.ElSelect"
|
<div v-if="$slots.prepend" :class="$style.prepend">
|
||||||
v-bind="props"
|
|
||||||
:value="props.value"
|
|
||||||
:size="$options.methods.getSize(props.size)"
|
|
||||||
:class="$style[$options.methods.getClass(props)]"
|
|
||||||
:popper-class="$options.methods.getPopperClass(props, $style)"
|
|
||||||
v-on="listeners"
|
|
||||||
:ref="data.ref"
|
|
||||||
>
|
|
||||||
<template v-slot:prepend>
|
|
||||||
<slot name="prepend" />
|
<slot name="prepend" />
|
||||||
</template>
|
</div>
|
||||||
<template v-slot:prefix>
|
<component
|
||||||
<slot name="prefix" />
|
:is="$options.components.ElSelect"
|
||||||
</template>
|
v-bind="props"
|
||||||
<template v-slot:suffix>
|
:value="props.value"
|
||||||
<slot name="suffix" />
|
:size="$options.methods.getSize(props.size)"
|
||||||
</template>
|
:class="$style[$options.methods.getClass(props)]"
|
||||||
<template v-slot:default>
|
:popper-class="$options.methods.getPopperClass(props, $style)"
|
||||||
<slot></slot>
|
v-on="listeners"
|
||||||
</template>
|
:ref="data.ref"
|
||||||
</component>
|
>
|
||||||
|
<template v-slot:prefix>
|
||||||
|
<slot name="prefix" />
|
||||||
|
</template>
|
||||||
|
<template v-slot:suffix>
|
||||||
|
<slot name="suffix" />
|
||||||
|
</template>
|
||||||
|
<template v-slot:default>
|
||||||
|
<slot></slot>
|
||||||
|
</template>
|
||||||
|
</component>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
@ -124,4 +126,25 @@ export default {
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
display: inline-flex;
|
||||||
|
width: 100%;
|
||||||
|
--input-border-color: none;
|
||||||
|
border: var(--border-base);
|
||||||
|
border-radius: var(--input-border-radius, var(--border-radius-base))
|
||||||
|
}
|
||||||
|
|
||||||
|
.prepend {
|
||||||
|
display: inline-block;
|
||||||
|
font-size: var(--font-size-2xs);
|
||||||
|
border-right: var(--border-base);
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 0 var(--spacing-3xs);
|
||||||
|
background-color: var(--color-background-light);
|
||||||
|
border-bottom-left-radius: var(--input-border-radius, var(--border-radius-base));
|
||||||
|
border-top-left-radius: var(--input-border-radius, var(--border-radius-base));
|
||||||
|
color: var(--color-text-base);
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue