perf(material-center): 调整标签显示长度限制
This commit is contained in:
@ -410,7 +410,7 @@ export default defineComponent({
|
|||||||
v-slots={{
|
v-slots={{
|
||||||
tagRender: (val) => {
|
tagRender: (val) => {
|
||||||
const { label, value } = val;
|
const { label, value } = val;
|
||||||
if (label.length > 5) {
|
if (label.length > 4) {
|
||||||
return (
|
return (
|
||||||
<div class="my-2px">
|
<div class="my-2px">
|
||||||
<Tooltip title={label}>
|
<Tooltip title={label}>
|
||||||
@ -419,7 +419,7 @@ export default defineComponent({
|
|||||||
onClose={() => (record.tag_ids = record.tag_ids.filter((item) => item !== value))}
|
onClose={() => (record.tag_ids = record.tag_ids.filter((item) => item !== value))}
|
||||||
class="mr-0 !color-#55585F h-20px !lh-20px !text-12px"
|
class="mr-0 !color-#55585F h-20px !lh-20px !text-12px"
|
||||||
>
|
>
|
||||||
{label.slice(0, 5) + '...'}
|
{label.slice(0, 3) + '...'}
|
||||||
</Tag>
|
</Tag>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user