我想通过使用
我想避免这个问题:
text-overflow: ellipsis
来限制 v-chip 的宽度,但似乎 Vuetify 的 v-chip
不支持此属性。我想避免这个问题:
![enter image description here](https://istack.dev59.com/SfitB.webp)
<v-chip-group
v-model="selected"
mandatory
column
active-class="primary--text"
>
<v-chip v-for="(item, i) in recipes" :key="i"
class="chip-overflow"
@click:close="deleteListedRecipe(item)"
close>
{{ item.name }}
</v-chip>
</v-chip-group>
.chip-overflow {
max-width: 150px;
padding: 2px 5px;
display:block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}