|  |  |  | 
|---|
|  |  |  | label="table.field.fields.fields" | 
|---|
|  |  |  | source="fields" | 
|---|
|  |  |  | parse={v => v} | 
|---|
|  |  |  | validate={required()} | 
|---|
|  |  |  | autoFocus | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </Grid> | 
|---|
|  |  |  | 
|---|
|  |  |  | <TextInput | 
|---|
|  |  |  | label="table.field.fields.fieldsAlise" | 
|---|
|  |  |  | source="fieldsAlise" | 
|---|
|  |  |  | validate={required()} | 
|---|
|  |  |  | parse={v => v} | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </Grid> | 
|---|
|  |  |  | 
|---|
|  |  |  | label="table.field.fields.unique" | 
|---|
|  |  |  | source="unique" | 
|---|
|  |  |  | choices={[ | 
|---|
|  |  |  | { id: 0, name: ' 非唯一' }, | 
|---|
|  |  |  | { id:   1, name: '  唯一' }, | 
|---|
|  |  |  | { id: 0, name: ' 非必填' }, | 
|---|
|  |  |  | { id: 1, name: '  必填' }, | 
|---|
|  |  |  | ]} | 
|---|
|  |  |  | validate={required()} | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </Grid> | 
|---|
|  |  |  | <Grid item xs={6} display="flex" gap={1}> | 
|---|
|  |  |  | 
|---|
|  |  |  | source="flagEnable" | 
|---|
|  |  |  | choices={[ | 
|---|
|  |  |  | { id: 0, name: ' 不启用' }, | 
|---|
|  |  |  | { id:  1, name: ' 启用' }, | 
|---|
|  |  |  | { id: 1, name: ' 启用' }, | 
|---|
|  |  |  | ]} | 
|---|
|  |  |  | validate={required()} | 
|---|
|  |  |  | /> | 
|---|
|  |  |  | </Grid> | 
|---|
|  |  |  |  | 
|---|