diff --git a/src/pages/index/components/chatItem.vue b/src/pages/index/components/chatItem.vue index 22b7d3e..30589a0 100644 --- a/src/pages/index/components/chatItem.vue +++ b/src/pages/index/components/chatItem.vue @@ -35,6 +35,7 @@
{{ formatNameText(props.data.name) }} + ({{props.data.group_member_num}}) 部门 @@ -111,7 +112,7 @@ const props = defineProps({ }); // 添加格式化方法 -const formatNameText = (text, maxLength = 19) => { +const formatNameText = (text, maxLength = 16) => { return text.length > maxLength ? `${text.slice(0, maxLength - 1)}...` : text; }; @@ -191,7 +192,7 @@ const handleDelete = () => { display: inline-flex; align-items: center; text-align: center; - margin-left: 10rpx; + // margin-left: 10rpx; margin-top: 4rpx; vertical-align: top; height: 38rpx;