es-grid-template 1.5.4 → 1.5.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/grid-component/ColumnsGroup/ColumnsGroup.js +1 -1
- package/es/grid-component/InternalTable.js +11 -24
- package/es/grid-component/styles.scss +1351 -1347
- package/es/grid-component/table/Group.js +3 -5
- package/lib/grid-component/ColumnsGroup/ColumnsGroup.js +1 -1
- package/lib/grid-component/InternalTable.js +11 -24
- package/lib/grid-component/styles.scss +1351 -1347
- package/lib/grid-component/table/Group.js +3 -5
- package/package.json +1 -1
|
@@ -27,7 +27,7 @@ export const ColumnsGroup = props => {
|
|
|
27
27
|
const [tempGroup, setTempGroup] = useState([]);
|
|
28
28
|
const [clicked, setClicked] = useState(false);
|
|
29
29
|
const rsCol = React.useMemo(() => {
|
|
30
|
-
return columns.filter(it => it.hidden !== true && !tempGroup.includes(it.field));
|
|
30
|
+
return columns.filter(it => it.hidden !== true && !tempGroup.includes(it.field) && it.field !== '#' && it.field !== 'command');
|
|
31
31
|
}, [columns, tempGroup]);
|
|
32
32
|
const options = React.useMemo(() => {
|
|
33
33
|
return rsCol.map(it => ({
|
|
@@ -187,25 +187,6 @@ const InternalTable = props => {
|
|
|
187
187
|
return propRowKey ?? 'rowId';
|
|
188
188
|
}, [propRowKey]);
|
|
189
189
|
const [scrollHeight, setHeight] = useState(0);
|
|
190
|
-
|
|
191
|
-
// const heightt = React.useMemo(() => {
|
|
192
|
-
//
|
|
193
|
-
// const table = document.querySelector(`#${id}`)
|
|
194
|
-
// console.log('table', table)
|
|
195
|
-
//
|
|
196
|
-
// const title: any = table?.querySelector(`.ui-rc-table-title`)
|
|
197
|
-
//
|
|
198
|
-
// console.log('title', title)
|
|
199
|
-
//
|
|
200
|
-
// if (title) {
|
|
201
|
-
// const titleHeight = title.offsetHeight;
|
|
202
|
-
// console.log('Chiều cao:', titleHeight);
|
|
203
|
-
// }
|
|
204
|
-
//
|
|
205
|
-
// return (height ?? 0) - (title ? title.offsetHeight : 0)
|
|
206
|
-
//
|
|
207
|
-
// }, [height, id])
|
|
208
|
-
|
|
209
190
|
const local = lang && lang === 'en' ? en : vi;
|
|
210
191
|
const dateRangeLocale = lang && lang === 'en' ? enDr : viDr;
|
|
211
192
|
const buddhistLocale = {
|
|
@@ -376,7 +357,7 @@ const InternalTable = props => {
|
|
|
376
357
|
}
|
|
377
358
|
}
|
|
378
359
|
}
|
|
379
|
-
}), [
|
|
360
|
+
}), [t, propDataSourceFilter, buddhistLocale, locale, format, dateRangeLocale]);
|
|
380
361
|
const convertColumns = React.useMemo(() => {
|
|
381
362
|
return flatColumns2(columns).map((column, colIndex) => {
|
|
382
363
|
if (column === SELECTION_COLUMN) {
|
|
@@ -411,8 +392,11 @@ const InternalTable = props => {
|
|
|
411
392
|
},
|
|
412
393
|
t: t
|
|
413
394
|
}),
|
|
414
|
-
onCell:
|
|
415
|
-
className: 'cell-number'
|
|
395
|
+
onCell: data => ({
|
|
396
|
+
// className: 'cell-number',
|
|
397
|
+
className: classNames('cell-number', {
|
|
398
|
+
'cell-group': groupColumns && data.children
|
|
399
|
+
})
|
|
416
400
|
}),
|
|
417
401
|
render: (val, record) => {
|
|
418
402
|
if (pagination && pagination.onChange && pagination.currentPage && pagination.pageSize) {
|
|
@@ -431,8 +415,11 @@ const InternalTable = props => {
|
|
|
431
415
|
},
|
|
432
416
|
t: t
|
|
433
417
|
}),
|
|
434
|
-
onCell:
|
|
435
|
-
className: 'cell-number',
|
|
418
|
+
onCell: data => ({
|
|
419
|
+
// className: 'cell-number',
|
|
420
|
+
className: classNames('', {
|
|
421
|
+
'cell-group': groupColumns && data.children
|
|
422
|
+
}),
|
|
436
423
|
style: {
|
|
437
424
|
padding: '2px 8px'
|
|
438
425
|
}
|