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; @@ -80,6 +82,7 @@ this.form.model[attr] = item.value; this.$emit("on-change", item) }, onClick(item) { this.$emit("on-click", item) },