@arim-aisdc/public-components 0.0.11 → 0.0.12

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.
@@ -81,7 +81,8 @@ var TableMax = function TableMax(_ref) {
81
81
  _ref$showSizeChanger = _ref.showSizeChanger,
82
82
  showSizeChanger = _ref$showSizeChanger === void 0 ? true : _ref$showSizeChanger,
83
83
  changePagination = _ref.changePagination,
84
- defaultScrollY = _ref.defaultScrollY,
84
+ _ref$defaultScrollY = _ref.defaultScrollY,
85
+ defaultScrollY = _ref$defaultScrollY === void 0 ? 600 : _ref$defaultScrollY,
85
86
  _ref$columnResizeMode = _ref.columnResizeMode,
86
87
  columnResizeMode = _ref$columnResizeMode === void 0 ? 'onChange' : _ref$columnResizeMode,
87
88
  rowKey = _ref.rowKey,
@@ -1126,7 +1127,7 @@ var TableMax = function TableMax(_ref) {
1126
1127
  className: "table-center",
1127
1128
  ref: tableContentRef,
1128
1129
  style: {
1129
- height: !autoHeight && defaultScrollY ? defaultScrollY : 'fix-content'
1130
+ maxHeight: !autoHeight && defaultScrollY ? defaultScrollY : 'fix-content'
1130
1131
  },
1131
1132
  children: [/*#__PURE__*/_jsx("div", {
1132
1133
  ref: tableHeaderRef,
@@ -1,10 +1,10 @@
1
- export declare const numberSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
2
- export declare const stringSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
3
- export declare const timeSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
1
+ export declare const numberSortFn: (rowA: any, rowB: any, columnId: string) => 1 | -1 | 0;
2
+ export declare const stringSortFn: (rowA: any, rowB: any, columnId: string) => 1 | -1 | 0;
3
+ export declare const timeSortFn: (rowA: any, rowB: any, columnId: string) => 1 | -1 | 0;
4
4
  declare const customSortFns: {
5
- numberSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
6
- stringSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
7
- timeSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
5
+ numberSortFn: (rowA: any, rowB: any, columnId: string) => 1 | -1 | 0;
6
+ stringSortFn: (rowA: any, rowB: any, columnId: string) => 1 | -1 | 0;
7
+ timeSortFn: (rowA: any, rowB: any, columnId: string) => 1 | -1 | 0;
8
8
  };
9
9
  export default customSortFns;
10
10
  export type SortFnType = keyof typeof customSortFns | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arim-aisdc/public-components",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "前端组件库",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",