diff --git a/docs/further/front/component.md b/docs/further/front/component.md index 8820fb2d2223b45bb0153aa8c59f1f91ec5f47da..79b55f893aecda05e48faf003afb0e89dab3967c 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