pull/243/head
xiaojunnuo 2024-11-08 10:14:48 +08:00
parent fdc6eef921
commit edd6615bcf
3 changed files with 5 additions and 2 deletions

View File

@ -19,7 +19,7 @@ function groupByDomain(options: any[], inDomains: string[]) {
function buildGroupOptions(options: any[], inDomains: string[]) {
const grouped = groupByDomain(options, inDomains);
const groupOptions = [];
groupOptions.push({ value: '', disabled: true, label: '----已匹配----' });
groupOptions.push({ value: 'matched', disabled: true, label: '----已匹配----' });
if (grouped.matched.length === 0) {
options.push({ value: '', disabled: true, label: '没有可以匹配的域名' });
} else {
@ -28,7 +28,7 @@ function buildGroupOptions(options: any[], inDomains: string[]) {
}
}
if (grouped.notMatched.length > 0) {
groupOptions.push({ value: '', disabled: true, label: '----未匹配----' });
groupOptions.push({ value: 'unmatched', disabled: true, label: '----未匹配----' });
for (const notMatched of grouped.notMatched) {
groupOptions.push(notMatched);
}

View File

@ -154,6 +154,8 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
}
},
column: {
width: 120,
align: "center",
cellRender({ value }) {
if (value < 0) {
return <a-tag color={"green"}>CNAME</a-tag>;

View File

@ -266,6 +266,7 @@ onMounted(async () => {
overflow: hidden;
text-overflow: ellipsis;
word-break: keep-all;
white-space: nowrap;
}
}
}