in src/routes/System/Dict/index.js [281:296]
title: getIntlContent("SHENYU.DIC.TYPE"),
dataIndex: "type",
key: "type",
ellipsis:true,
// width: 180,
sorter: (a,b) => a.type > b.type ? 1 : -1,
render: text => {
if (text.length < 5) {
return <Tag color="cyan">{text}</Tag>;
} else if (text.length < 15) {
return <Tag color="purple">{text}</Tag>;
} else if (text.length < 25) {
return <Tag color="blue">{text}</Tag>;
}
return <Tag color="red">{text}</Tag>;
}