From 11f787d1720706f60c8de848cf2b5b43a0e75e22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= <37316281+yanhao98@users.noreply.github.com> Date: Sun, 24 Nov 2024 23:29:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BD=BF=E7=94=A8=20markRaw=20?= =?UTF-8?q?=E5=8C=85=E8=A3=85=E6=B6=88=E6=81=AF=E7=BB=84=E4=BB=B6=EF=BC=8C?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=80=A7=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/__fk-inputs__/sections/messages.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/__fk-inputs__/sections/messages.ts b/src/__fk-inputs__/sections/messages.ts index 9cba508..7c8c7c3 100644 --- a/src/__fk-inputs__/sections/messages.ts +++ b/src/__fk-inputs__/sections/messages.ts @@ -1,8 +1,9 @@ import MessagesCmp from '@/__fk-inputs__/components/messages.vue'; import { createSection } from '@formkit/inputs'; +import { markRaw } from 'vue'; export const messages = createSection('messages', () => ({ - $cmp: MessagesCmp as any, + $cmp: markRaw(MessagesCmp) as any, // [element = node.$cmp](https://github.com/formkit/formkit/blob/2d5387ba98597775cb2a752af65aee84bc438863/packages/vue/src/FormKitSchema.ts#L449) props: { context: '$node.context', }, if: '$defaultMessagePlacement && $fns.length($messages)', }))