Skip to content

Commit

Permalink
docs(@uform/core): improve docs (#402)
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang authored Nov 19, 2019
1 parent 4cf4bb8 commit ded9b93
Show file tree
Hide file tree
Showing 8 changed files with 355 additions and 256 deletions.
4 changes: 1 addition & 3 deletions packages/antd/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ export * from '@uform/react-schema-renderer'
export * from './components'
export * from './types'
export { mapStyledProps, mapTextComponent } from './shared'
export const SchemaForm: React.FC<
IAntdSchemaFormProps
> = SchemaMarkupForm as any
export const SchemaForm: React.FC<IAntdSchemaFormProps> = SchemaMarkupForm as any
export const Field: React.FC<IAntdSchemaFieldProps> = SchemaMarkupField
export default SchemaForm
17 changes: 16 additions & 1 deletion packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -907,9 +907,24 @@ interface IMutators {
}>
}

type InternalFormats =
| 'url'
| 'email'
| 'ipv6'
| 'ipv4'
| 'idcard'
| 'taodomain'
| 'qq'
| 'phone'
| 'money'
| 'zh'
| 'date'
| 'zip'
| string

interface ValidateDescription {
     // Regular rule type
     format?: string
     format?: InternalFormats
     // Custom validator
     validator?: CustomValidator
     // Is it required?
Expand Down
Loading

0 comments on commit ded9b93

Please sign in to comment.