Skip to content

Commit

Permalink
style: 移除多余代码
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Jan 27, 2021
1 parent 61dd7cd commit bf2a4a2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion src/component/crud-table/src/GenerateFormDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
:readOnly="isReadOnly"
:remote="remoteFuncs"
:entity.sync="entity"
@btnOnClick="btnOnClick"
@btn-on-click="btnOnClick"
:formTableConfig="formTableConfig" />
<el-row type="flex"
justify="end"
Expand Down
8 changes: 0 additions & 8 deletions src/component/form-designer/src/FormDesigner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,6 @@ export default {
data() {
return {
// 表单名/使用位置
formValues: {
tableName: '',
position: '',
},
basicComponents,
layoutComponents,
advanceComponents,
Expand Down Expand Up @@ -270,14 +266,10 @@ export default {
methods: {
// 返回当前表单设计器对象
getData() {
this.widgetForm.name = this.formValues.tableName;
this.widgetForm.position = this.formValues.position;
return this.widgetForm;
},
setJSON(json) {
this.widgetForm = json;
this.$set(this.formValues, 'tableName', json.name);
this.$set(this.formValues, 'position', json.position);
if (json.list.length > 0) {
[this.widgetFormSelect] = json.list;
}
Expand Down

0 comments on commit bf2a4a2

Please sign in to comment.