Skip to content

Commit

Permalink
fix: version update to 0.0.1-2, fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Oct 30, 2020
1 parent e5cf3c1 commit e51fae1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 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.1.0-1",
"version": "0.1.0-2",
"description": "二次封装Table,Form组件,配套表单,表格设计器,一键Crud",
"main": "lib/ProCrud.umd.min.js",
"private": false,
Expand Down
1 change: 1 addition & 0 deletions packages/crud-table/src/GenerateFormDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const STATUS = {
components: {
GenerateForm,
},
name: 'GenerateFormDialog',
})
export default class GenerateFormDialog extends Vue {
// 异步更新表单数据
Expand Down
4 changes: 3 additions & 1 deletion packages/form-designer/src/GenerateForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,9 @@ export default class GenerateForm extends Vue {
})
valueOnChange(val) {
this.$nextTick(() => {
this.$refs.generateForm.clearValidate();
if (this.$refs.generateForm) {
this.$refs.generateForm.clearValidate();
}
});
this.models = { ...this.models, ...val };
}
Expand Down

0 comments on commit e51fae1

Please sign in to comment.