Skip to content

Commit

Permalink
fix: FormKit code input type error (#5522)
Browse files Browse the repository at this point in the history
#### 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
```
  • Loading branch information
ruibaby committed Mar 18, 2024
1 parent 581a738 commit 21bc7fe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ui/env.d.ts
Expand Up @@ -119,5 +119,10 @@ declare module "@formkit/inputs" {
type: "menuCheckbox";
value?: string[];
};

code: {
type: "code";
value?: string;
};
}
}

0 comments on commit 21bc7fe

Please sign in to comment.