perf(material-center): 调整标签显示长度限制

This commit is contained in:
rd
2025-09-22 11:30:31 +08:00
parent fcacd6fc1c
commit cecca8ea1d

View File

@ -410,7 +410,7 @@ export default defineComponent({
v-slots={{
tagRender: (val) => {
const { label, value } = val;
if (label.length > 5) {
if (label.length > 4) {
return (
<div class="my-2px">
<Tooltip title={label}>
@ -419,7 +419,7 @@ export default defineComponent({
onClose={() => (record.tag_ids = record.tag_ids.filter((item) => item !== value))}
class="mr-0 !color-#55585F h-20px !lh-20px !text-12px"
>
{label.slice(0, 5) + '...'}
{label.slice(0, 3) + '...'}
</Tag>
</Tooltip>
</div>