Skip to content

Commit

Permalink
feat(antd/next): remove toFieldProps
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed May 18, 2021
1 parent 967f316 commit edf078d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions packages/antd/src/array-table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { ArrayBase, ArrayBaseMixins } from '../array-base'

interface ObservableColumnSource {
field: Formily.Core.Types.GeneralField
fieldProps: Formily.Core.Types.IVoidFieldFactoryProps<any, any>
columnProps: ColumnProps<any>
schema: Schema
display: Formily.Core.Types.FieldDisplayTypes
Expand Down Expand Up @@ -61,7 +60,6 @@ const isAdditionComponent = (schema: Schema) => {
const useArrayTableSources = () => {
const arrayField = useField()
const schema = useFieldSchema()
const options = useContext(SchemaOptionsContext)
const parseSources = (schema: Schema): ObservableColumnSource[] => {
if (
isColumnComponent(schema) ||
Expand All @@ -72,7 +70,6 @@ const useArrayTableSources = () => {
return []
const name = schema['x-component-props']?.['dataIndex'] || schema['name']
const field = arrayField.query(arrayField.address.concat(name)).take()
const fieldProps = field?.props || schema.toFieldProps(options)
const columnProps =
field?.component?.[1] || schema['x-component-props'] || {}
const display = field?.display || schema['x-display']
Expand All @@ -81,7 +78,6 @@ const useArrayTableSources = () => {
name,
display,
field,
fieldProps,
schema,
columnProps,
},
Expand Down
4 changes: 0 additions & 4 deletions packages/next/src/array-table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import { ArrayBase, ArrayBaseMixins } from '../array-base'

interface ObservableColumnSource {
field: Formily.Core.Types.GeneralField
fieldProps: Formily.Core.Types.IVoidFieldFactoryProps<any, any>
columnProps: ColumnProps
schema: Schema
display: Formily.Core.Types.FieldDisplayTypes
Expand Down Expand Up @@ -62,7 +61,6 @@ const isAdditionComponent = (schema: Schema) => {
const useArrayTableSources = () => {
const arrayField = useField()
const schema = useFieldSchema()
const options = useContext(SchemaOptionsContext)
const parseSources = (schema: Schema): ObservableColumnSource[] => {
if (
isColumnComponent(schema) ||
Expand All @@ -73,7 +71,6 @@ const useArrayTableSources = () => {
return []
const name = schema['x-component-props']?.['dataIndex'] || schema['name']
const field = arrayField.query(arrayField.address.concat(name)).take()
const fieldProps = field?.props || schema.toFieldProps(options)
const columnProps =
field?.component?.[1] || schema['x-component-props'] || {}
const display = field?.display || schema['x-display']
Expand All @@ -82,7 +79,6 @@ const useArrayTableSources = () => {
name,
display,
field,
fieldProps,
schema,
columnProps,
},
Expand Down

0 comments on commit edf078d

Please sign in to comment.