Browse Source

:bug: Fixing a bug. 表单设计事件无法处理

aeizzz 1 year ago
parent
commit
3f24651fd7
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/views/gen/design.vue

+ 3 - 0
src/views/gen/design.vue

@@ -17,6 +17,9 @@ function stringifyWithFunctions(object) {
     if (key === 'onLoad') {
     if (key === 'onLoad') {
       return `(${val})`;
       return `(${val})`;
     }
     }
+    if (['uploadPreview', 'change', 'focus', 'click', 'blur'].includes(key)) {
+      return `${val}`
+    }
     return val;
     return val;
   });
   });
 };
 };