Skip to content

Commit

Permalink
docs: 更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyh2001 committed Mar 1, 2024
1 parent b669e3b commit 74727b7
Show file tree
Hide file tree
Showing 3 changed files with 362 additions and 427 deletions.
5 changes: 2 additions & 3 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { defineConfig, useRoute } from 'vitepress'
import { description } from './config/description'
import { nav } from './config/nav'
import { sidebar } from './config/sidebar'
Expand All @@ -11,7 +10,7 @@ import { fileURLToPath, URL } from 'node:url'
*
* @see Introduction https://vitepress.vuejs.org/config/introduction
*/
export default defineConfig({
export default {
title: 'Fighting Design',
head,
description,
Expand Down Expand Up @@ -118,4 +117,4 @@ export default defineConfig({
md.use(PluginDemo)
}
}
})
}
8 changes: 4 additions & 4 deletions docs/components/form.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
- [源代码](https://github.com/FightingDesign/fighting-design/tree/master/packages/fighting-design/form)
- [文档编辑](https://github.com/FightingDesign/fighting-design/blob/master/docs/components/form.md)

:::danger
组件仍在开发阶段,谨慎使用!
:::

## 基本使用

`f-form` 组件中添加 `native-type``submit` 的按钮,将会触发表单的 `on-submit` 回调触发提交表单
Expand Down Expand Up @@ -151,6 +147,10 @@

## 深度校验

:::info
^0.67.2 版本开始兼容
:::

表单对象有深层嵌套的情况下,可以指定 `f-form-item` 层级关系的 `name` 配置项,以 `.` 为分隔符

::: demo
Expand Down
Loading

0 comments on commit 74727b7

Please sign in to comment.