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.esm.js CHANGED
@@ -759,8 +759,7 @@ function DynamicForm({ schema, mode, visible, initialValues, onSubmit, onCancel,
759
759
  view: `查看${entityName}`,
760
760
  };
761
761
  const formFields = schema.fields.filter((f) => {
762
- if (mode === 'view')
763
- return f.table !== false && f.table !== undefined;
762
+ // 查看模式和编辑模式都应该遵循form字段配置
764
763
  return f.form !== false && f.form !== undefined;
765
764
  });
766
765
  useEffect(() => {