fix: FormKit code input type error (#5522)

#### 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
<FormKit type="code" v-model="text" />
```

那么 v-model 的类型会不正确。以前忽略了此问题的原因是在之前 code 类型的输入框没有以组件的形式使用过,系统中都是使用 FormKit Schema 调用的。

#### Does this PR introduce a user-facing change?

```release-note
None
```
pull/5526/head
Ryan Wang 2024-03-18 16:24:08 +08:00 committed by GitHub
parent 581a738423
commit 21bc7fee8a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

5
ui/env.d.ts vendored
View File

@ -119,5 +119,10 @@ declare module "@formkit/inputs" {
type: "menuCheckbox";
value?: string[];
};
code: {
type: "code";
value?: string;
};
}
}