From 21bc7fee8a75d19ac83060e5e88f9a29e4020f23 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Mon, 18 Mar 2024 16:24:08 +0800 Subject: [PATCH] fix: FormKit code input type error (#5522) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #### What type of PR is this? /area ui /kind bug /milestone 2.14.0 #### What this PR does / why we need it: 修复 FormKit 中 code 输入框的类型异常,在此之前如果这样使用: ```vue ``` 那么 v-model 的类型会不正确。以前忽略了此问题的原因是在之前 code 类型的输入框没有以组件的形式使用过,系统中都是使用 FormKit Schema 调用的。 #### Does this PR introduce a user-facing change? ```release-note None ``` --- ui/env.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ui/env.d.ts b/ui/env.d.ts index bb43da4ffa..e505ad3ada 100644 --- a/ui/env.d.ts +++ b/ui/env.d.ts @@ -119,5 +119,10 @@ declare module "@formkit/inputs" { type: "menuCheckbox"; value?: string[]; }; + + code: { + type: "code"; + value?: string; + }; } }