import{aw as o,ag as s,y as i,z as l,A as e,P as r,b0 as m,L as d,H as n}from"./chunks/framework.BCBheFgR.js";const _=JSON.parse('{"title":"Textarea 文本域","description":"","frontmatter":{},"headers":[],"relativePath":"form-config/fields/textarea.md","filePath":"form-config/fields/textarea.md"}'),b={name:"form-config/fields/textarea.md"};function f(h,t,c,p,u,x){const a=s("demo-block");return l(),i("div",null,[t[2]||(t[2]=e("h1",{id:"textarea-文本域",tabindex:"-1"},[d("Textarea 文本域 "),e("a",{class:"header-anchor",href:"#textarea-文本域","aria-label":'Permalink to "Textarea 文本域"'},"​")],-1)),t[3]||(t[3]=e("h2",{id:"基础用法",tabindex:"-1"},[d("基础用法 "),e("a",{class:"header-anchor",href:"#基础用法","aria-label":'Permalink to "基础用法"'},"​")],-1)),r(a,{type:"form",config:[{type:"textarea",name:"textarea",text:"文本域"}]},{source:n(()=>t[0]||(t[0]=[e("p",null," 在开启多选模式后，默认情况下会展示所有已选中的选项的Tag ",-1)])),_:1}),t[4]||(t[4]=e("h2",{id:"禁用状态",tabindex:"-1"},[d("禁用状态 "),e("a",{class:"header-anchor",href:"#禁用状态","aria-label":'Permalink to "禁用状态"'},"​")],-1)),r(a,{type:"form",config:[{type:"textarea",name:"textarea",text:"文本域",disabled:()=>!0}]},{source:n(()=>t[1]||(t[1]=[e("p",null," 通过 disabled 属性指定是否禁用 input 组件 ",-1)])),_:1}),t[5]||(t[5]=m('<h2 id="input-attributes" tabindex="-1">Input Attributes <a class="header-anchor" href="#input-attributes" aria-label="Permalink to &quot;Input Attributes&quot;">​</a></h2><table tabindex="0"><thead><tr><th>参数</th><th>说明</th><th>类型</th><th>可选值</th><th>默认值</th></tr></thead><tbody><tr><td>name</td><td>绑定值</td><td>string</td><td>—</td><td>—</td></tr><tr><td>placeholder</td><td>输入框占位文本</td><td>string</td><td>—</td><td>—</td></tr><tr><td>text</td><td>表单标签</td><td>string</td><td>—</td><td>—</td></tr><tr><td>disabled</td><td>是否禁用</td><td>boolean / <a href="https://github.com/Tencent/tmagic-editor/blob/master/packages/form/src/schema.ts" target="_blank" rel="noreferrer">FilterFunction</a></td><td>—</td><td>false</td></tr><tr><td>placeholder</td><td>输入框占位文本</td><td>string</td><td>—</td><td>—</td></tr><tr><td>trim</td><td>是否去掉首尾空格</td><td>boolean</td><td>—</td><td>false</td></tr><tr><td>filter</td><td>过滤值</td><td>string / Function</td><td>number</td><td>-</td></tr><tr><td>onChange</td><td>值变化时触发的函数</td><td><a href="https://github.com/Tencent/tmagic-editor/blob/master/packages/form/src/schema.ts" target="_blank" rel="noreferrer">OnChangeHandler </a></td><td>—</td><td>-</td></tr></tbody></table>',2))])}const T=o(b,[["render",f]]);export{_ as __pageData,T as default};
