diff --git a/.trellis/workspace/hechang27-sprt/index.md b/.trellis/workspace/hechang27-sprt/index.md index 69f1ec6..5f36bac 100644 --- a/.trellis/workspace/hechang27-sprt/index.md +++ b/.trellis/workspace/hechang27-sprt/index.md @@ -8,8 +8,8 @@ - **Active File**: `journal-1.md` -- **Total Sessions**: 7 -- **Last Active**: 2026-03-28 +- **Total Sessions**: 8 +- **Last Active**: 2026-03-30 --- @@ -19,7 +19,7 @@ | File | Lines | Status | |------|-------|--------| -| `journal-1.md` | ~238 | Active | +| `journal-1.md` | ~308 | Active | --- @@ -29,6 +29,7 @@ | # | Date | Title | Commits | |---|------|-------|---------| +| 8 | 2026-03-30 | Table-v2 comprehensive demo page | `62ab397` | | 7 | 2026-03-28 | Restructure and cleanup list-table-v2 mini-table rendering | `a2eeb86` | | 6 | 2026-03-27 | Expose cellRenderer and headerCellRenderer for list-table-v2 | `3c97cd7` | | 5 | 2026-03-26 | Fix table-v2 resize flicker with queueMicrotask pattern | `179aafe` | diff --git a/.trellis/workspace/hechang27-sprt/journal-1.md b/.trellis/workspace/hechang27-sprt/journal-1.md index 74584b3..ded2db7 100644 --- a/.trellis/workspace/hechang27-sprt/journal-1.md +++ b/.trellis/workspace/hechang27-sprt/journal-1.md @@ -236,3 +236,73 @@ Refactored mini-table rendering to use useTemplateRef, added debug display for h ### Next Steps - None - task complete + + +## Session 8: Table-v2 comprehensive demo page + +**Date**: 2026-03-30 +**Task**: Table-v2 comprehensive demo page + +### Summary + +(Add summary) + +### Main Changes + +## Session Summary + +Reworked `examples/view/base/table-v2.vue` into a comprehensive demo page for `list-table-v2`, patterned after Element Plus documentation style. + +### Features Implemented + +| # | Section | Features Tested | +|---|---------|----------------| +| 1 | Basic Usage | Data binding, columns, pagination, @query/@row-click/@cell-click events | +| 2 | Styling | border prop, align (left/center/right) | +| 3 | Fixed Columns | fixed: "left"/"right" | +| 4 | Data Formatting | timestamp: "unix", filesize: true, dict | +| 5 | Custom Cell Renderer | cellRenderer JSX function | +| 6 | Custom Header Renderer | headerCellRenderer JSX function | +| 7 | Dynamic Height | Auto-probe (no rowHeight), ResizeObserver, debug | +| 8 | Fixed Height Mode | rowHeight: 60 (disables probe) | +| 9 | Column Width | width, minWidth | +| 10 | Dimensions | height, maxHeight, headerHeight | +| 11 | Slot Cells | slot: true + #columnKey template | +| 12 | i18n Support | i18n key with vue3-i18n | +| 13 | Combined Test | All features together stress test | +| 14 | Renderer Edge Cases | cellRenderer + fixed + pagination | + +### Bug Fixes + +- Fixed `headerCellRenderer` shorthand property error (was using wrong variable name) +- Added missing `toggleMaxHeight` function +- Fixed data format: `page="false"` tables need plain arrays, not `{data, total}` objects +- Fixed `.app-main` overflow to enable page scrolling + +### Updated Files +- `examples/view/base/table-v2.vue` - Demo page (14 sections, ~1000 lines) +- `packages/manage/router/index.vue` - Changed overflow: hidden → overflow-y: auto + +### Verification +- Build passes: bun run build ✓ +- TypeScript passes: tsc --noEmit ✓ +- Browser tested: All 14 tables render data correctly, no JS errors + + +### Git Commits + +| Hash | Message | +|------|---------| +| `62ab397` | (see git log) | + +### Testing + +- [OK] (Add test results) + +### Status + +[OK] **Completed** + +### Next Steps + +- None - task complete