Skip to content

Commit

Permalink
feat(@uform/next/antd): support mapTextComponent and mapStyledProps
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Mar 7, 2019
1 parent 0ff36d5 commit b0f7134
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/antd/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ import './fields/transfer'
import './fields/array'
import './fields/table'
import './fields/password'
import { mapStyledProps, mapTextComponent } from './utils'
import { SchemaForm } from '@uform/react'
export * from '@uform/react'
export * from './components/formButtonGroup'
export * from './components/button'
export * from './components/layout'

export { mapStyledProps, mapTextComponent }
export default SchemaForm
3 changes: 2 additions & 1 deletion packages/next/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@ import './fields/transfer'
import './fields/array'
import './fields/table'
import './fields/password'
import { mapStyledProps, mapTextComponent } from './utils'
import { SchemaForm } from '@uform/react'
export * from '@uform/react'
export * from './components/formButtonGroup'
export * from './components/button'
export * from './components/layout'

export { mapStyledProps, mapTextComponent }
export default SchemaForm
2 changes: 2 additions & 0 deletions packages/react/src/decorators/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,11 @@ export const connect = opts => Target => {
if (isFn(editable)) {
if (!editable(name)) {
props.disabled = true
props.readOnly = true
}
} else if (editable === false) {
props.disabled = true
props.readOnly = true
}
}

Expand Down

0 comments on commit b0f7134

Please sign in to comment.