Skip to content

Commit

Permalink
fix(next-components): Replace ArrayList.Item with Table.Column. Fix #…
Browse files Browse the repository at this point in the history
  • Loading branch information
soulwu authored Oct 9, 2020
1 parent 4b0f976 commit e116838
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/next-components/src/array-table/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ const SelectionRow = (Table as any).SelectionRow

const ArrayComponents = {
Wrapper: Table,
Item: Table.Column,
CircleButton,
TextButton,
AdditionIcon: () => <Icon type="add" className="next-icon-first" />,
Expand Down Expand Up @@ -158,7 +157,7 @@ export const ArrayTable = styled(
...props.getExtendsProps()
}
return (
<ArrayList.Item
<Table.Column
width={200}
{...itemProps}
title={complieExpression(props.title, expressionScope)}
Expand Down Expand Up @@ -198,7 +197,7 @@ export const ArrayTable = styled(
>
{columns}
{editable && operations !== false && (
<ArrayList.Item
<Table.Column
width={operationsWidth || 200}
lock="right"
{...operations}
Expand Down

0 comments on commit e116838

Please sign in to comment.