perf(material-center): 调整标签显示长度限制
This commit is contained in:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user