headimg
<h3>使用示例</h3>
<pre><code class="language-javascript">import { fabric } from '@/lib/fabric'
const oTextarea = fabric.zGroup.textarea(text, options)</code></pre>
<h3>选项说明 options</h3>
<pre><code class="language-json">//options 默认值
{
scheme: 'default',
autoPosition: true,
top: 0,
left: 0,
width: 0,
height: 0,
}</code></pre>
<table>
<thead>
<tr>
<th>属性</th>
<th>名称</th>
<th>默认值</th>
<th>可选值</th>
</tr>
</thead>
<tbody>
<tr>
<td>scheme</td>
<td>样式方案名</td>
<td>default</td>
<td>String</td>
</tr>
<tr>
<td>autoPosition</td>
<td>自定定位</td>
<td>true</td>
<td>Boolean</td>
</tr>
<tr>
<td>top</td>
<td>顶距</td>
<td>0</td>
<td>Number</td>
</tr>
<tr>
<td>left</td>
<td>左距</td>
<td>0</td>
<td>Number</td>
</tr>
<tr>
<td>width</td>
<td>宽</td>
<td>0</td>
<td>Number</td>
</tr>
<tr>
<td>height</td>
<td>高</td>
<td>0</td>
<td>Number</td>
</tr>
</tbody>
</table>
<p>欢迎使用ShowDoc!</p>