MultiSelect: chip container fixes
parent
5cdbe284f2
commit
ac8aeac72f
|
@ -30,7 +30,7 @@
|
||||||
{{ label || 'empty' }}
|
{{ label || 'empty' }}
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="display === 'chip'">
|
<template v-else-if="display === 'chip'">
|
||||||
<div v-for="item of chipSelectedItems" :key="getLabelByValue(item)" :class="cx('token')" v-bind="ptm('token')">
|
<span v-for="item of chipSelectedItems" :key="getLabelByValue(item)" :class="cx('token')" v-bind="ptm('token')">
|
||||||
<slot name="chip" :value="item" :removeCallback="(event) => removeOption(event, item)">
|
<slot name="chip" :value="item" :removeCallback="(event) => removeOption(event, item)">
|
||||||
<Chip :class="cx('tokenLabel')" :label="getLabelByValue(item)" :removeIcon="removeTokenIcon" removable :unstyled="unstyled" @remove="removeOption($event, item)" :pt="ptm('tokenLabel')">
|
<Chip :class="cx('tokenLabel')" :label="getLabelByValue(item)" :removeIcon="removeTokenIcon" removable :unstyled="unstyled" @remove="removeOption($event, item)" :pt="ptm('tokenLabel')">
|
||||||
<template #removeicon>
|
<template #removeicon>
|
||||||
|
@ -38,7 +38,7 @@
|
||||||
</template>
|
</template>
|
||||||
</Chip>
|
</Chip>
|
||||||
</slot>
|
</slot>
|
||||||
</div>
|
</span>
|
||||||
<template v-if="!modelValue || modelValue.length === 0">{{ placeholder || 'empty' }}</template>
|
<template v-if="!modelValue || modelValue.length === 0">{{ placeholder || 'empty' }}</template>
|
||||||
</template>
|
</template>
|
||||||
</slot>
|
</slot>
|
||||||
|
|
Loading…
Reference in New Issue