components/oi-form/index.vue
@@ -53,6 +53,7 @@ }, methods: { setFormItemVisible(attrs) { console.log(attrs) attrs.forEach((attr) => { let index = this.hiddenIds.findIndex((id) => id == attr.attr); if (attr.show) { @@ -61,6 +62,7 @@ if (index == -1) this.hiddenIds.push(attr.attr); } }); console.log(this.hiddenIds) }, clearFormValues() { if (!this.form.model) return;