crud-page-react 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -760,8 +760,7 @@ function DynamicForm({ schema, mode, visible, initialValues, onSubmit, onCancel,
760
760
  view: `查看${entityName}`,
761
761
  };
762
762
  const formFields = schema.fields.filter((f) => {
763
- if (mode === 'view')
764
- return f.table !== false && f.table !== undefined;
763
+ // 查看模式和编辑模式都应该遵循form字段配置
765
764
  return f.form !== false && f.form !== undefined;
766
765
  });
767
766
  react.useEffect(() => {