tmagic-editor/docs/assets/api_form_form-dialog-methods.md.B_sgIgX8.js
2026-06-04 09:22:54 +00:00

2 lines
3.0 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{ax as o,z as a,A as l,b5 as i}from"./chunks/framework.V2ssSR2R.js";const m=JSON.parse('{"title":"FormDialog组件 methods","description":"","frontmatter":{},"headers":[],"relativePath":"api/form/form-dialog-methods.md","filePath":"api/form/form-dialog-methods.md"}'),r={name:"api/form/form-dialog-methods.md"};function t(d,e,s,n,c,h){return l(),a("div",null,[...e[0]||(e[0]=[i('<h1 id="formdialog组件-methods" tabindex="-1">FormDialog组件 methods <a class="header-anchor" href="#formdialog组件-methods" aria-label="Permalink to “FormDialog组件 methods”"></a></h1><h2 id="cancel" tabindex="-1">cancel <a class="header-anchor" href="#cancel" aria-label="Permalink to “cancel”"></a></h2><ul><li><strong>详情:</strong> 关闭弹窗</li></ul><h2 id="save" tabindex="-1">save <a class="header-anchor" href="#save" aria-label="Permalink to “save”"></a></h2><ul><li><p><strong>签名:</strong> <code>save(): Promise&lt;void&gt;</code></p></li><li><p><strong>返回:</strong></p><ul><li><code>{Promise&lt;void&gt;}</code></li></ul></li><li><p><strong>详情:</strong> 调用内部 Form 的 <code>submitForm</code> 进行校验,校验通过后触发 <code>submit</code> 事件(参数为表单值与 <code>{ changeRecords }</code>);若校验失败则触发 <code>error</code> 事件</p></li></ul><h2 id="show" tabindex="-1">show <a class="header-anchor" href="#show" aria-label="Permalink to “show”"></a></h2><ul><li><p><strong>签名:</strong> <code>show(): void</code></p></li><li><p><strong>详情:</strong> 打开弹窗,等价于将内部 <code>dialogVisible</code> 置为 <code>true</code></p></li></ul><h2 id="hide" tabindex="-1">hide <a class="header-anchor" href="#hide" aria-label="Permalink to “hide”"></a></h2><ul><li><p><strong>签名:</strong> <code>hide(): void</code></p></li><li><p><strong>详情:</strong> 关闭弹窗,等价于将内部 <code>dialogVisible</code> 置为 <code>false</code></p></li></ul><h2 id="form" tabindex="-1">form <a class="header-anchor" href="#form" aria-label="Permalink to “form”"></a></h2><ul><li><p><strong>类型:</strong> <code>Ref&lt;InstanceType&lt;typeof Form&gt; | undefined&gt;</code></p></li><li><p><strong>详情:</strong> 内部 Form 组件的实例引用,可通过它访问 Form 上 <code>defineExpose</code> 暴露的方法与属性</p></li></ul><h2 id="savefetch" tabindex="-1">saveFetch <a class="header-anchor" href="#savefetch" aria-label="Permalink to “saveFetch”"></a></h2><ul><li><p><strong>类型:</strong> <code>Ref&lt;boolean&gt;</code></p></li><li><p><strong>详情:</strong> 保存按钮的 loading 状态</p></li></ul><h2 id="dialogvisible" tabindex="-1">dialogVisible <a class="header-anchor" href="#dialogvisible" aria-label="Permalink to “dialogVisible”"></a></h2><ul><li><p><strong>类型:</strong> <code>Ref&lt;boolean&gt;</code></p></li><li><p><strong>详情:</strong> 弹窗的显示状态</p></li></ul>',15)])])}const p=o(r,[["render",t]]);export{m as __pageData,p as default};