fix(api-docs): accept functional-component icons in EndpointSection

AntD-Vue icons (SafetyCertificateOutlined, etc.) are functional
components, so the icon prop's type: Object validator was rejecting
them with a "Expected Object, got Function" warning at runtime.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
MHSanaei 2026-05-18 09:59:52 +02:00
parent f50bae9225
commit 93706702c5
No known key found for this signature in database
GPG key ID: 7E4060F2FBE5AB7A

View file

@ -9,7 +9,7 @@ import { safeInlineHtml } from './endpoints.js';
const props = defineProps({
section: { type: Object, required: true },
icon: { type: Object, default: null },
icon: { type: [Object, Function], default: null },
collapsed: { type: Boolean, default: false },
});