@beisen/ethos
Version:
beisencloud pc react components
63 lines (50 loc) • 1.32 kB
JavaScript
'use strict';
if (!global.fetch && global.window) {
require('whatwg-fetch');
}
var fetch = global.fetch;
module.exports = function () {
return {
fetch: fetch,
defaultPageSize: 20,
defaultPage: 1,
appendDataSourceQueryParams: true,
pagination: null,
columns: [],
dataSource: [],
loading: null,
showLoadMask: true,
columnMinWidth: 60, // 2016.09.26新需求 最小宽度60px
cellPadding: '0px 5px',
filterIconColor: '#6EB8F1',
menuIconColor: '#6EB8F1',
scrollbarSize: 15,
paddingSize: 8,
scrollBy: undefined,
virtualRendering: false,
styleAlternateRowsCls: 'z-style-alternate',
withColumnMenuCls: 'z-with-column-menu',
cellEllipsisCls: 'z-cell-ellipsis',
defaultClassName: 'react-datagrid',
withColumnMenu: true,
sortable: true,
filterable: null,
resizableColumns: null,
reorderColumns: null,
emptyCls: 'z-empty',
emptyTextStyle: null,
emptyWrapperStyle: null,
loadMaskOverHeader: true,
showCellBordersCls: 'z-cell-borders',
showCellBorders: false,
styleAlternateRows: true,
cellEllipsis: true,
rowHeight: 41,
groupNestingWidth: 20,
//wuzhe----添加单个半角字符宽度
singleWordWidth: 6,
defaultStyle: {
position: 'relative'
}
};
};