Skip to content

Commit

Permalink
perf: 优化组件联动hidden属性赋值方式 @0.8.8-3
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Feb 24, 2021
1 parent 123e5b9 commit bdc9d4c
Show file tree
Hide file tree
Showing 2 changed files with 3 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.8-2",
"version": "0.8.8-3",
"author": "BoBo<[email protected]>",
"main": "lib/ProCrud.umd.min.js",
"files": [
Expand Down
4 changes: 2 additions & 2 deletions src/component/form-designer/src/GenerateForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ export default class GenerateForm extends Vue {
const field = this.fieldMap[_.field];
if (field) {
switch (_.operator) {
case 'show': field.hidden = false; this.models[_.field] = _.value; break;
case 'hidden': field.hidden = true; break;
case 'show': this.$set(field, 'hidden', false); this.models[_.field] = _.value; break;
case 'hidden': this.$set(field, 'hidden', true); break;
case 'required':
this.setRequired(field);
break;
Expand Down

0 comments on commit bdc9d4c

Please sign in to comment.