From ecc9ba9c948a35392e1cc9fc00edc2e0e8b36fd5 Mon Sep 17 00:00:00 2001
From: NEKGod <1559096467@qq.com>
Date: Fri, 6 Jan 2023 02:24:00 +0000
Subject: [PATCH] update docs/further/front/component.md.
Signed-off-by: NEKGod <1559096467@qq.com>
---
docs/further/front/component.md | 67 +++++++++++++++++++++++++++++++++
1 file changed, 67 insertions(+)
diff --git a/docs/further/front/component.md b/docs/further/front/component.md
index 8820fb2..79b55f8 100644
--- a/docs/further/front/component.md
+++ b/docs/further/front/component.md
@@ -369,4 +369,71 @@ const handleSubmit = ({ values, errors }) => {
// 处理提交数据
}
+```
+
+
+## 表单弹窗组件 formModal
+### 组件参数
+| 参数名 | 参数类型 | 参数说明 | 是否必填/默认值 |
+|:---:|:---:|:---:|:---:|
+| title | String| 弹出框标题 | |
+| column| Boolean | ma-form组件column属性 | {} |
+| options| Boolean | ma-form组件options属性| {} |
+| default_visible| Boolean | 默认隐藏 | false |
+| submit| Function | 提交回调事件,注意是这样:submit="submit"不用加括号 | |
+### 组件方法
+:::tip
+方法需通过组件定义的 `ref` 来调用
+:::
+| 方法名 | 描述 | 参数 | 返回值 |
+|:---:|:---:|:---:|:---:|
+| open(formData) | 打开弹窗 | formData | Object |
+| close() | 关闭弹窗 | - | - |
+
+### 组件使用
+:::warning 注意
+该组件未进行全局挂载,使用时需要单独引入
+:::
+```html
+
+
+
+
+ 提示信息
+
+
+
+
+
+
+
+
```
\ No newline at end of file
--
Gitee