摘要: 下面给出修改后的版本。核心改动: 去掉 dataIndex 与 render 的重复(保留 render,移除嵌套 dataIndex)。 项目轴布局中,把 fixed: 'right' 从分组列下移到叶子列(buildMonthChildCol 已经支持)。 期间轴布局中,右侧分组的 key 加上 阅读全文
posted @ 2026-10-15 16:03 小兔子09 阅读(1) 评论(0) 推荐(0)
摘要: // 组件外:类型补充 type CommonBuilderParams = { visibleCols: ColConfig[]; hasData: boolean; leftFixedKey?: string[]; rightFixedKey?: string[]; currentMonthKe 阅读全文
posted @ 2026-10-15 13:42 小兔子09 阅读(5) 评论(0) 推荐(0)
摘要: const MonthHeaderLabel: React.FC<{ m: string; isCurrent: boolean; monthLabel: (v: string) => string }> = ({ m, isCurrent, monthLabel, }) => { if (!isC 阅读全文
posted @ 2026-10-15 13:36 小兔子09 阅读(2) 评论(0) 推荐(0)
摘要: import type { TableColumnsType, FilterDropdownProps } from 'antd'; // 类型 type ProposalData = any; type ColConfig = { key: string; title: string; dataI 阅读全文
posted @ 2026-10-15 09:48 小兔子09 阅读(3) 评论(0) 推荐(0)
摘要: const columns = useMemo<TableColumnsType<ProposalData>>(() => { const visibleCols = PROPOSAL_COLUMNS.filter((col) => visibleColumnKeys.includes(col.ke 阅读全文
posted @ 2026-10-15 09:23 小兔子09 阅读(5) 评论(0) 推荐(0)
摘要: ** 期间轴:非 dynamic 项做固定列,dynamic 项按月份分组 */ const buildColumnsForTableDateRange = useCallback( (dates: string[]) => { const totalDate = getMonthsInRange( 阅读全文
posted @ 2026-10-09 15:30 小兔子09 阅读(5) 评论(0) 推荐(0)
摘要: import RecordCountDisplay from '@/components/RecordCountDisplay'; import { useTableScrollY } from '@/hooks/useTableScrollY'; import { Alert, Button, C 阅读全文
posted @ 2026-10-09 15:05 小兔子09 阅读(3) 评论(0) 推荐(0)
摘要: import RecordCountDisplay from '@/components/RecordCountDisplay'; import { useTableScrollY } from '@/hooks/useTableScrollY'; import { Alert, Button, C 阅读全文
posted @ 2026-10-09 14:16 小兔子09 阅读(4) 评论(0) 推荐(0)
摘要: import React, { useState, useMemo } from 'react'; import { Table, Button } from 'antd'; import { DownOutlined, RightOutlined } from '@ant-design/icons 阅读全文
posted @ 2026-10-09 12:43 小兔子09 阅读(6) 评论(0) 推荐(0)
摘要: 1. 学会了一个CSS 分割 grid布局,并且每4个一行。 好方便 <div style={{ display: 'grid', gridTemplateColumns: 'repeat(4, 1fr)', gap: 8 }}> 2. Ant design Checkbox全选 需要Checkbo 阅读全文
posted @ 2026-09-30 10:40 小兔子09 阅读(4) 评论(0) 推荐(0)