mirror of
https://github.com/certd/certd.git
synced 2026-04-24 20:57:26 +08:00
chore:
This commit is contained in:
@@ -19,7 +19,7 @@ function groupByDomain(options: any[], inDomains: string[]) {
|
|||||||
function buildGroupOptions(options: any[], inDomains: string[]) {
|
function buildGroupOptions(options: any[], inDomains: string[]) {
|
||||||
const grouped = groupByDomain(options, inDomains);
|
const grouped = groupByDomain(options, inDomains);
|
||||||
const groupOptions = [];
|
const groupOptions = [];
|
||||||
groupOptions.push({ value: '', disabled: true, label: '----已匹配----' });
|
groupOptions.push({ value: 'matched', disabled: true, label: '----已匹配----' });
|
||||||
if (grouped.matched.length === 0) {
|
if (grouped.matched.length === 0) {
|
||||||
options.push({ value: '', disabled: true, label: '没有可以匹配的域名' });
|
options.push({ value: '', disabled: true, label: '没有可以匹配的域名' });
|
||||||
} else {
|
} else {
|
||||||
@@ -28,7 +28,7 @@ function buildGroupOptions(options: any[], inDomains: string[]) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (grouped.notMatched.length > 0) {
|
if (grouped.notMatched.length > 0) {
|
||||||
groupOptions.push({ value: '', disabled: true, label: '----未匹配----' });
|
groupOptions.push({ value: 'unmatched', disabled: true, label: '----未匹配----' });
|
||||||
for (const notMatched of grouped.notMatched) {
|
for (const notMatched of grouped.notMatched) {
|
||||||
groupOptions.push(notMatched);
|
groupOptions.push(notMatched);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -154,6 +154,8 @@ export default function ({ crudExpose, context }: CreateCrudOptionsProps): Creat
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
column: {
|
column: {
|
||||||
|
width: 120,
|
||||||
|
align: "center",
|
||||||
cellRender({ value }) {
|
cellRender({ value }) {
|
||||||
if (value < 0) {
|
if (value < 0) {
|
||||||
return <a-tag color={"green"}>公共CNAME</a-tag>;
|
return <a-tag color={"green"}>公共CNAME</a-tag>;
|
||||||
|
|||||||
@@ -266,6 +266,7 @@ onMounted(async () => {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
word-break: keep-all;
|
word-break: keep-all;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user