@jswork/antd-components 1.0.221 → 1.0.222

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jswork/antd-components",
3
- "version": "1.0.221",
3
+ "version": "1.0.222",
4
4
  "main": "dist/main.cjs.js",
5
5
  "module": "dist/main.esm.js",
6
6
  "types": "dist/main.d.ts",
package/src/lib/table.tsx CHANGED
@@ -174,13 +174,13 @@ export class AcTable extends React.Component<AcTableProps, AcTableState> {
174
174
  get calculateColumnsAction() {
175
175
  const { name, columnsAction, columnsActionParams, lang } = this.props;
176
176
  if (typeof columnsAction !== 'undefined') return columnsAction;
177
- return tableAction({ name, lang, ...columnsActionParams });
177
+ return [tableAction({ name, lang, ...columnsActionParams })];
178
178
  }
179
179
 
180
180
  get calculateColumns() {
181
181
  const { columnsFields, columns } = this.props;
182
182
  if (columns && columns.length > 0) return columns;
183
- return [...columnsFields!, this.calculateColumnsAction] as TableProps['columns'];
183
+ return [...columnsFields!, ...this.calculateColumnsAction] as TableProps['columns'];
184
184
  }
185
185
 
186
186
  constructor(props: AcTableProps) {