diff --git a/package/component/src/component/tag/index.less b/package/component/src/component/tag/index.less index 07e2df30..34717fbf 100644 --- a/package/component/src/component/tag/index.less +++ b/package/component/src/component/tag/index.less @@ -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 { diff --git a/package/component/src/component/tag/index.vue b/package/component/src/component/tag/index.vue index 2c4dfc24..07f8d36a 100644 --- a/package/component/src/component/tag/index.vue +++ b/package/component/src/component/tag/index.vue @@ -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) { - - - - - + + - 标签 + 标签 标签 @@ -164,10 +164,11 @@ export default { diff --git a/package/document-component/src/document/zh-CN/guide/changelog.md b/package/document-component/src/document/zh-CN/guide/changelog.md index 185974e1..4fa60314 100644 --- a/package/document-component/src/document/zh-CN/guide/changelog.md +++ b/package/document-component/src/document/zh-CN/guide/changelog.md @@ -11,6 +11,15 @@