Przeglądaj źródła

feat: 基础数据表单预览页默认展示readOnly模式

lanjianrong 3 lat temu
rodzic
commit
acf0868d34
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      src/pages/Schema/Base/index.tsx

+ 2 - 1
src/pages/Schema/Base/index.tsx

@@ -107,7 +107,8 @@ const Index: React.FC<BaseProps> = ({ base, pTypeList, dispatch }) => {
 
   const renderForm = () => {
     const normalForm = createForm({
-      validateFirst: true
+      validateFirst: true,
+      pattern: 'readOnly'
     })
 
     const SchemaField = createSchemaField({