mirror of https://github.com/halo-dev/halo
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
parent
581a738423
commit
21bc7fee8a
|
@ -119,5 +119,10 @@ declare module "@formkit/inputs" {
|
|||
type: "menuCheckbox";
|
||||
value?: string[];
|
||||
};
|
||||
|
||||
code: {
|
||||
type: "code";
|
||||
value?: string;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue