cuiqian2004
2025-08-14 e540e5b44f56ce8e8edc377dfa4c5b343b1a9eef
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)
         },