Skip to content

Commit

Permalink
perf: 新增添加栅格添加标签页快捷按钮 @0.8.6-2
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Feb 3, 2021
1 parent d952565 commit 09c5fac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "element-pro-crud",
"version": "0.8.6-1",
"version": "0.8.6-2",
"author": "BoBo<[email protected]>",
"main": "lib/ProCrud.umd.min.js",
"files": [
Expand Down
6 changes: 4 additions & 2 deletions src/component/form-designer/src/WidgetConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@
<el-button size="mini" @click="handleOptionsRemove(index)" circle plain type="danger" icon="el-icon-minus" style="padding: 4px;margin-left: 5px;"></el-button>
</li>
</Draggable>
<el-button size="mini" type="text" @click="handleAddColumn">添加栅格</el-button>
</el-form-item>
<el-form-item label="水平排列方式">
<el-select size="mini" v-model="elementConfig.options.justify">
Expand Down Expand Up @@ -412,7 +413,7 @@
<el-button size="mini" @click="handleOptionsRemove(index)" circle plain type="danger" icon="el-icon-minus" style="padding: 4px;margin-left: 5px;"></el-button>
</li>
</Draggable>
<el-button size="mini" type="text" @click="handleAddOption">添加选项</el-button>
<el-button size="mini" type="text" @click="handleAddOption">添加标签</el-button>
</el-form-item>
</template>

Expand Down Expand Up @@ -670,8 +671,9 @@ export default {
},
handleAddColumn() {
this.elementConfig.columns.push({
span: '',
span: 24,
list: [],
key: `grid_${Math.ceil(Math.random() * 99999)}`,
});
},
generateRule() {
Expand Down

0 comments on commit 09c5fac

Please sign in to comment.