ソースを参照

applied auto row height

CR023
Jason Chuang 3週間前
コミット
167cf5a3a4
6個のファイルの変更9行の追加9行の削除
  1. +4
    -4
      src/components/FiDataGrid.js
  2. +1
    -1
      src/pages/GFMIS/DataGrid.js
  3. +1
    -1
      src/pages/GFMIS/TransactionDataGrid.js
  4. +1
    -1
      src/pages/Payment/Search_GLD/DataGrid.js
  5. +1
    -1
      src/pages/Payment/Search_Public/DataGrid.js
  6. +1
    -1
      src/pages/pnspsUserGroupSearchPage/UserGroupTable.js

+ 4
- 4
src/components/FiDataGrid.js ファイルの表示

@@ -21,7 +21,7 @@ export function FiDataGrid({ rows, columns, sx, autoHeight = true,
hideFooterSelectedRowCount, rowModesModel, editMode, hideFooterSelectedRowCount, rowModesModel, editMode,
pageSizeOptions, filterItems, customPageSize, doLoad, applyGridOnReady, applySearch, pageSizeOptions, filterItems, customPageSize, doLoad, applyGridOnReady, applySearch,
tab, height, maxHeight, pagination = true, serverSorting = false, tab, height, maxHeight, pagination = true, serverSorting = false,
disablePagingOnGazetteIssue = true, ...props }) {
disablePagingOnGazetteIssue = true, hideRowsPerPage = false, ...props }) {
const intl = useIntl(); const intl = useIntl();
const [_rows, set_rows] = useState([]); const [_rows, set_rows] = useState([]);
const [_doLoad, set_doLoad] = useState({}); const [_doLoad, set_doLoad] = useState({});
@@ -359,7 +359,7 @@ export function FiDataGrid({ rows, columns, sx, autoHeight = true,
count={total} count={total}
page={pagerPage} page={pagerPage}
rowsPerPage={pagerPageSize} rowsPerPage={pagerPageSize}
rowsPerPageOptions={loadAllOnGazetteIssue ? [] : _pageSizeOptions}
rowsPerPageOptions={(loadAllOnGazetteIssue || hideRowsPerPage) ? [] : _pageSizeOptions}
labelDisplayedRows={() => { labelDisplayedRows={() => {
if (!_rows?.length || total === 0) { if (!_rows?.length || total === 0) {
return `0-0 ${intl.formatMessage({ id: "of" })} ${total}`; return `0-0 ${intl.formatMessage({ id: "of" })} ${total}`;
@@ -370,7 +370,7 @@ export function FiDataGrid({ rows, columns, sx, autoHeight = true,
: Math.min(page * pageSize + _rows.length, total); : Math.min(page * pageSize + _rows.length, total);
return `${from}-${to} ${intl.formatMessage({ id: "of" })} ${total}`; return `${from}-${to} ${intl.formatMessage({ id: "of" })} ${total}`;
}} }}
labelRowsPerPage={intl.formatMessage({ id: "rowsPerPage" }) + ":"}
labelRowsPerPage={hideRowsPerPage ? () => "" : intl.formatMessage({ id: "rowsPerPage" }) + ":"}
getItemAriaLabel={(type) => { getItemAriaLabel={(type) => {
if (type === 'previous') { if (type === 'previous') {
return intl.formatMessage({ id: 'paginationPrev' }); return intl.formatMessage({ id: 'paginationPrev' });
@@ -381,7 +381,7 @@ export function FiDataGrid({ rows, columns, sx, autoHeight = true,
return ''; return '';
}} }}
onPageChange={loadAllOnGazetteIssue ? () => {} : handleChangePage} onPageChange={loadAllOnGazetteIssue ? () => {} : handleChangePage}
onRowsPerPageChange={loadAllOnGazetteIssue ? () => {} : handleChangePageSize}
onRowsPerPageChange={(loadAllOnGazetteIssue || hideRowsPerPage) ? () => {} : handleChangePageSize}
/> />
); );
}, },


+ 1
- 1
src/pages/GFMIS/DataGrid.js ファイルの表示

@@ -76,7 +76,7 @@ export default function SearchTable({ previewSearchCriteria, onPreviewGridOnRead
<FiDataGrid <FiDataGrid
key={previewToken} key={previewToken}
sx={_sx} sx={_sx}
rowHeight={80}
getRowHeight={() => 'auto'}
columns={columns} columns={columns}
customPageSize={10} customPageSize={10}
onRowDoubleClick={handleEditClick} onRowDoubleClick={handleEditClick}


+ 1
- 1
src/pages/GFMIS/TransactionDataGrid.js ファイルの表示

@@ -117,7 +117,7 @@ export default function SearchPaymentTable({ searchCriteria, applyGridOnReady, a
<div style={{ width: '100%' }}> <div style={{ width: '100%' }}>
<FiDataGrid <FiDataGrid
sx={_sx} sx={_sx}
rowHeight={60}
getRowHeight={() => "auto"}
columns={columns} columns={columns}
height={500} height={500}
autoHeight={false} autoHeight={false}


+ 1
- 1
src/pages/Payment/Search_GLD/DataGrid.js ファイルの表示

@@ -194,7 +194,7 @@ export default function SearchPaymentTable({ searchCriteria, applyGridOnReady, a
<div style={{ width: '100%' }}> <div style={{ width: '100%' }}>
<FiDataGrid <FiDataGrid
sx={_sx} sx={_sx}
rowHeight={80}
getRowHeight={() => 'auto'}
columns={columns} columns={columns}
customPageSize={10} customPageSize={10}
onRowDoubleClick={handleEditClick} onRowDoubleClick={handleEditClick}


+ 1
- 1
src/pages/Payment/Search_Public/DataGrid.js ファイルの表示

@@ -119,7 +119,7 @@ export default function SearchPublicNoticeTable({ searchCriteria, applyGridOnRea
<div style={{ minHeight: 400, width: '100%' }}> <div style={{ minHeight: 400, width: '100%' }}>
<FiDataGrid <FiDataGrid
sx={_sx} sx={_sx}
rowHeight={80}
getRowHeight={() => 'auto'}
columns={columns} columns={columns}
customPageSize={10} customPageSize={10}
onRowDoubleClick={handleEditDoubleClick} onRowDoubleClick={handleEditDoubleClick}


+ 1
- 1
src/pages/pnspsUserGroupSearchPage/UserGroupTable.js ファイルの表示

@@ -68,7 +68,7 @@ export default function UserGroupTable({searchCriteria, applyGridOnReady,applySe
<FiDataGrid <FiDataGrid
columns={columns} columns={columns}
customPageSize={10} customPageSize={10}
pageSizeOptions={[10, 15, 20]}
hideRowsPerPage
onRowDoubleClick={handleRowDoubleClick} onRowDoubleClick={handleRowDoubleClick}
applyGridOnReady={applyGridOnReady} applyGridOnReady={applyGridOnReady}
applySearch={applySearch} applySearch={applySearch}


読み込み中…
キャンセル
保存