🌀(tag): update
This commit is contained in:
@@ -73,12 +73,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
&-ellipsis &-text {
|
||||
display: inline-block;
|
||||
white-space: nowrap;
|
||||
word-wrap: normal;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis
|
||||
& &-text {
|
||||
overflow: hidden; text-overflow: ellipsis; white-space: nowrap
|
||||
}
|
||||
|
||||
& &-close-icon {
|
||||
|
||||
@@ -49,7 +49,6 @@ const classTag = computed(() => [
|
||||
[`layui-tag-${props.type}`]: props.type,
|
||||
"layui-tag-bordered": props.bordered,
|
||||
"layui-tag-disabled": props.disabled,
|
||||
"layui-tag-ellipsis": props.maxWidth,
|
||||
},
|
||||
]);
|
||||
|
||||
@@ -105,13 +104,8 @@ function useTagCustomStyle(props: TagProps) {
|
||||
<span v-if="$slots.icon" class="layui-tag-icon">
|
||||
<slot name="icon" />
|
||||
</span>
|
||||
<span
|
||||
style="overflow: hidden; text-overflow: ellipsis; white-space: nowrap"
|
||||
>
|
||||
<span v-if="maxWidth" :style="styleTag" class="layui-tag-text">
|
||||
<slot />
|
||||
</span>
|
||||
<slot v-else />
|
||||
<span class="layui-tag-text">
|
||||
<slot />
|
||||
</span>
|
||||
<span
|
||||
v-if="closable"
|
||||
|
||||
Reference in New Issue
Block a user