Skip to content

Commit

Permalink
perf: some change 优化表单设计器
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Feb 22, 2021
1 parent bf473ff commit 4c6ff60
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/component/form-designer/src/FormDesigner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,14 @@
<el-button type="primary" size="small" icon="el-icon-tickets" @click="handleGenerateJson">生成JSON</el-button>
<el-button type="primary" size="small" icon="el-icon-document" @click="handleGenerateCode">生成代码</el-button>
<el-button type="danger" size="small" icon="el-icon-delete" @click="handleClear">清空</el-button>
<el-button type="normal" size="small" icon="el-icon-attract" :disabled="!(allTables && getFormKey)" @click="formVisible = true">自动绑定</el-button>
<el-tooltip placement="bottom" effect="dark">
<div slot="content">
需传入getFormKey方法,详见文档
</div>
<div style="display: inline-block">
<el-button type="normal" size="small" icon="el-icon-attract" :disabled="!(allTables && getFormKey)" @click="formVisible = true">自动绑定</el-button>
</div>
</el-tooltip>
<slot name="custom-btn"></slot>
</div>
</el-header>
Expand Down

0 comments on commit 4c6ff60

Please sign in to comment.