hi-tm 0.0.2-beta-0.0.2 → 0.0.2-beta-0.0.4
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.
|
@@ -340,13 +340,12 @@ mobileCardConfig = {
|
|
|
340
340
|
// Render a single table row (parent or child)
|
|
341
341
|
const renderTableRow = (row, index, isLastRow) => {
|
|
342
342
|
// Width for the expand/collapse control column
|
|
343
|
-
const gridTemplateStyle = gridClassName || 'repeat(auto-fit, minmax(100px, 1fr))';
|
|
344
343
|
return (react_1.default.createElement("div", { key: `row-container-${row.id}` },
|
|
345
344
|
react_1.default.createElement("div", { className: `grid w-full items-center ${row.isChild
|
|
346
345
|
? childRowConfig.childRowClass || 'bg-blue-300 bg-opacity-10'
|
|
347
346
|
: index % 2 === 0
|
|
348
347
|
? 'bg-white'
|
|
349
|
-
: 'bg-[#c8cfd8] bg-opacity-[0.08]'} border-b border-solid border-black/15 ${onView ? 'cursor-pointer hover:bg-blue-100' : ''} ${row.data?.some((item) => item.type === 'avatar') ? 'h-[60px]' : 'h-14'}`, style: { gridTemplateColumns:
|
|
348
|
+
: 'bg-[#c8cfd8] bg-opacity-[0.08]'} border-b border-solid border-black/15 ${onView ? 'cursor-pointer hover:bg-blue-100' : ''} ${row.data?.some((item) => item.type === 'avatar') ? 'h-[60px]' : 'h-14'}`, style: { gridTemplateColumns: gridClassName || 'repeat(auto-fit, minmax(100px, 1fr))' }, onClick: () => {
|
|
350
349
|
if (onView) {
|
|
351
350
|
onView(row.id);
|
|
352
351
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
2
|
export interface DataItem {
|
|
3
3
|
id: number;
|
|
4
|
-
type: 'text' | 'avatar' | 'status' | 'operation' | 'icon' | 'date' | 'price';
|
|
4
|
+
type: 'text' | 'avatar' | 'status' | 'operation' | 'icon' | 'date' | 'price' | 'contactNumber';
|
|
5
5
|
value: string | number | boolean | null;
|
|
6
6
|
statusClass?: string;
|
|
7
7
|
textAlign?: 'left' | 'center' | 'right';
|