@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/dist/main.cjs.js +1 -1
- package/dist/main.d.mts +2 -2
- package/dist/main.d.ts +2 -2
- package/dist/main.esm.js +1 -1
- package/dist/main.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/table.tsx +2 -2
package/package.json
CHANGED
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) {
|