فهرست منبع

fix(material): dynamic-value-input weak cannot cover (#753)

sunyuanonly 4 ماه پیش
والد
کامیت
d8a9feca1b
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      packages/materials/form-materials/src/components/dynamic-value-input/hooks.ts

+ 1 - 1
packages/materials/form-materials/src/components/dynamic-value-input/hooks.ts

@@ -67,7 +67,7 @@ export function useIncludeSchema(schemaFromProps?: IJsonSchema) {
     if (schemaFromProps?.type === 'number') {
       return [schemaFromProps, { type: 'integer' }];
     }
-    return { ...schemaFromProps, extra: { ...schemaFromProps?.extra, weak: true } };
+    return { ...schemaFromProps, extra: { weak: true, ...schemaFromProps?.extra } };
   }, [schemaFromProps]);
 
   return includeSchema;