mirror of https://github.com/halo-dev/halo
![]() #### What type of PR is this? /kind feature /milestone 2.0 #### What this PR does / why we need it: 添加 Codemirror 类型的 FormKit 输入框。 在 Vue 单组件中使用: ```vue <script lang="ts" setup> const code = ref("") </script> <template> <FormKit v-model="code" label="页脚代码" type="code" validation="required" /> </template> ``` 在 FormKit Schema 中使用(插件 / 主题设置表单定义): ```yaml - $formkit: code name: code label: 页脚代码 ``` #### Screenshots: <img width="1331" alt="image" src="https://user-images.githubusercontent.com/21301288/198954003-02ce1972-8f7f-4959-a349-5650d166f3ae.png"> #### Special notes for your reviewer: /cc @halo-dev/sig-halo-console #### Does this PR introduce a user-facing change? ```release-note 添加 Codemirror 类型的 FormKit 输入框。 ``` |
||
---|---|---|
.. | ||
custom-formkit-input | ||
routes-generation |