@zat-design/sisyphus-react 3.6.7-beta.5 → 3.6.7-beta.6
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/es/ProTable/index.js
CHANGED
|
@@ -219,7 +219,7 @@ function ProTable(props) {
|
|
|
219
219
|
columns: newColumns.map(function (item) {
|
|
220
220
|
return {
|
|
221
221
|
dataIndex: item.dataIndex,
|
|
222
|
-
width: Math.round(Number(item.width))
|
|
222
|
+
width: typeof item.width === 'number' ? Math.round(Number(item.width)) : item.width
|
|
223
223
|
};
|
|
224
224
|
})
|
|
225
225
|
});
|
|
@@ -244,7 +244,7 @@ function ProTable(props) {
|
|
|
244
244
|
columns: curColumns.map(function (item) {
|
|
245
245
|
return {
|
|
246
246
|
dataIndex: item.dataIndex,
|
|
247
|
-
width: Math.round(Number(item.width))
|
|
247
|
+
width: typeof item.width === 'number' ? Math.round(Number(item.width)) : item.width
|
|
248
248
|
};
|
|
249
249
|
})
|
|
250
250
|
}));
|
|
@@ -45,7 +45,7 @@ export interface ProTableProps<T = any> extends Omit<TableProps<any>, 'summary'
|
|
|
45
45
|
resizeColumn?: boolean;
|
|
46
46
|
sortRow?: boolean | 'drag' | 'move';
|
|
47
47
|
columnConfig?: boolean | {
|
|
48
|
-
onColumnOk: (columns: ProTableColumn[]) => Promise<void>;
|
|
48
|
+
onColumnOk: (cacheColumns: any, columns: ProTableColumn[]) => Promise<void>;
|
|
49
49
|
};
|
|
50
50
|
cacheTime?: number | boolean;
|
|
51
51
|
sortColumnText?: string;
|
package/lib/ProTable/index.js
CHANGED
|
@@ -223,7 +223,7 @@ function ProTable(props) {
|
|
|
223
223
|
columns: newColumns.map(function (item) {
|
|
224
224
|
return {
|
|
225
225
|
dataIndex: item.dataIndex,
|
|
226
|
-
width: Math.round(Number(item.width))
|
|
226
|
+
width: typeof item.width === 'number' ? Math.round(Number(item.width)) : item.width
|
|
227
227
|
};
|
|
228
228
|
})
|
|
229
229
|
});
|
|
@@ -248,7 +248,7 @@ function ProTable(props) {
|
|
|
248
248
|
columns: curColumns.map(function (item) {
|
|
249
249
|
return {
|
|
250
250
|
dataIndex: item.dataIndex,
|
|
251
|
-
width: Math.round(Number(item.width))
|
|
251
|
+
width: typeof item.width === 'number' ? Math.round(Number(item.width)) : item.width
|
|
252
252
|
};
|
|
253
253
|
})
|
|
254
254
|
}));
|
|
@@ -45,7 +45,7 @@ export interface ProTableProps<T = any> extends Omit<TableProps<any>, 'summary'
|
|
|
45
45
|
resizeColumn?: boolean;
|
|
46
46
|
sortRow?: boolean | 'drag' | 'move';
|
|
47
47
|
columnConfig?: boolean | {
|
|
48
|
-
onColumnOk: (columns: ProTableColumn[]) => Promise<void>;
|
|
48
|
+
onColumnOk: (cacheColumns: any, columns: ProTableColumn[]) => Promise<void>;
|
|
49
49
|
};
|
|
50
50
|
cacheTime?: number | boolean;
|
|
51
51
|
sortColumnText?: string;
|