feat(ui): improve access provider tags appearance

This commit is contained in:
Fu Diwei
2025-04-01 21:23:51 +08:00
parent 8cdb2afa69
commit 899a0b75b0
2 changed files with 34 additions and 12 deletions

View File

@@ -295,7 +295,7 @@ const AccessForm = forwardRef<AccessFormInstance, AccessFormProps>(({ className,
}}
disabled={scene !== "add"}
placeholder={providerPlaceholder}
showOptionTags={range == null || range === "both-dns-hosting"}
showOptionTags={range == null || (range === "both-dns-hosting" ? { [ACCESS_USAGES.DNS]: true, [ACCESS_USAGES.HOSTING]: true } : false)}
showSearch={!disabled}
/>
</Form.Item>