From 6a41d4432221371c58aac0c1326ecd89f23b5d92 Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Mon, 19 Jan 2026 23:48:35 +0800 Subject: [PATCH] fix(theme): incorrect icon name validation --- theme/src/client/components/VPIcon.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/theme/src/client/components/VPIcon.vue b/theme/src/client/components/VPIcon.vue index 7c124f1c..4537f5fc 100644 --- a/theme/src/client/components/VPIcon.vue +++ b/theme/src/client/components/VPIcon.vue @@ -66,7 +66,9 @@ const rect = computed(() => { return { width, height: height || width } }) const binding = computed(() => ({ - name: (name as string).replace(/^(iconify|iconfont|fontawesome)\s+/, ''), + name: typeof name === 'string' + ? name.replace(/^(iconify|iconfont|fontawesome)\s+/, '') + : name as unknown as string, color, size: rect.value, prefix: __MD_POWER_ICON_PREFIX__ as any,