@canvas-components/list-table 0.3.12 → 0.3.13
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/README.md +45 -4
- package/dist/index.cjs +4657 -778
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +170 -4
- package/dist/index.d.ts +170 -4
- package/dist/index.js +4656 -780
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CanvasChartSparklineOption } from '@canvas-components/chart';
|
|
2
|
+
import { XlsxExportOptions } from '@canvas-components/utils';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* 排序状态。
|
|
@@ -125,17 +126,41 @@ interface ListTableDebugOptions {
|
|
|
125
126
|
* 列表表格性能阶段指标。
|
|
126
127
|
*/
|
|
127
128
|
interface ListTablePerformanceMetric {
|
|
128
|
-
phase: "grouping" | "snapshot" | "render";
|
|
129
|
+
phase: "query" | "grouping" | "snapshot" | "render" | "publish" | "offscreen";
|
|
129
130
|
durationMs: number;
|
|
130
131
|
inputRowCount: number;
|
|
131
132
|
outputRowCount: number;
|
|
132
133
|
cacheHit?: boolean;
|
|
134
|
+
/** 快照缓存未命中的首个输入原因。 */
|
|
135
|
+
cacheMissReason?: string;
|
|
133
136
|
groupedRowCount?: number;
|
|
134
137
|
scrollOnly?: boolean;
|
|
138
|
+
/** 本帧由动画扫描与绘制共享的单元格内容缓存命中数。 */
|
|
139
|
+
cellContentCacheHits?: number;
|
|
140
|
+
/** 本帧实际执行单元格内容解析的次数。 */
|
|
141
|
+
cellContentCacheMisses?: number;
|
|
142
|
+
/** 本帧结束时保留的单元格内容缓存项数。 */
|
|
143
|
+
cellContentCacheEntries?: number;
|
|
135
144
|
batchCount?: number;
|
|
136
145
|
indexNodeCount?: number;
|
|
137
146
|
cancelledCount?: number;
|
|
138
147
|
status?: "ready" | "cancelled" | "error";
|
|
148
|
+
/** 查询实际使用的执行器。 */
|
|
149
|
+
executor?: "none" | "worker" | "main" | "mixed";
|
|
150
|
+
/** Worker 回退主线程的原因;多阶段回退时使用逗号分隔。 */
|
|
151
|
+
fallbackReason?: string;
|
|
152
|
+
/** 单次查询发生的执行器回退次数。 */
|
|
153
|
+
fallbackCount?: number;
|
|
154
|
+
/** 主线程协作式计算主动让步次数。 */
|
|
155
|
+
sliceCount?: number;
|
|
156
|
+
/** 字段缓存命中次数。 */
|
|
157
|
+
fieldCacheHitCount?: number;
|
|
158
|
+
/** 字段缓存未命中次数。 */
|
|
159
|
+
fieldCacheMissCount?: number;
|
|
160
|
+
/** 最近一次字段缓存未命中原因。 */
|
|
161
|
+
fieldCacheMissReason?: string;
|
|
162
|
+
/** 查询各阶段耗时,单位毫秒。 */
|
|
163
|
+
stageDurationsMs?: Partial<Record<"filter" | "sort" | "fieldExtraction" | "workerTransfer" | "workerCompute" | "indexMapping" | "materialization" | "resultApply", number>>;
|
|
139
164
|
}
|
|
140
165
|
/**
|
|
141
166
|
* 查询回调扩展参数。
|
|
@@ -748,6 +773,10 @@ interface ListTableNestedTableColumn {
|
|
|
748
773
|
filterValueGetter?: (record: Record<string, unknown>) => unknown;
|
|
749
774
|
filterOptionValueGetter?: (record: Record<string, unknown>) => unknown;
|
|
750
775
|
filterOptions?: Array<string | ListTableFilterOption>;
|
|
776
|
+
/** 子表格汇总行配置。设为 `true` 等效于 `{ type: "sum" }`。 */
|
|
777
|
+
summary?: boolean | ListTableSummaryConfig<Record<string, unknown>>;
|
|
778
|
+
/** 子表格汇总行标题。 */
|
|
779
|
+
summaryTitle?: string;
|
|
751
780
|
}
|
|
752
781
|
/**
|
|
753
782
|
* 单元格内嵌表格片段。
|
|
@@ -862,6 +891,13 @@ interface ListTableColumn<RecordType = Record<string, unknown>> {
|
|
|
862
891
|
headerAlign?: ListTableHorizontalAlign;
|
|
863
892
|
fixed?: "left" | "right";
|
|
864
893
|
hidden?: boolean;
|
|
894
|
+
/**
|
|
895
|
+
* 是否将行展开按钮绘制在当前业务列中。
|
|
896
|
+
*
|
|
897
|
+
* 多列设为 `true` 时使用可见顺序中的第一列;设为 `false` 时,
|
|
898
|
+
* 当前列不会成为未指定目标时的默认内嵌列。
|
|
899
|
+
*/
|
|
900
|
+
showExpandIcon?: boolean;
|
|
865
901
|
/** 列设置中使用的标题,未传时使用 `title`。 */
|
|
866
902
|
settingTitle?: string;
|
|
867
903
|
/** 首次创建表格时是否默认隐藏。显式传入 `hidden` 时以 `hidden` 为准。 */
|
|
@@ -1114,11 +1150,14 @@ interface HeaderContextMenuConfig {
|
|
|
1114
1150
|
onChangeDataFormat?: (dataFormat: ListTableDataFormat) => void;
|
|
1115
1151
|
summaryVisible?: boolean;
|
|
1116
1152
|
summaryColumnKey?: string;
|
|
1153
|
+
summaryTitle?: string;
|
|
1117
1154
|
summaryType?: ListTableSummaryType;
|
|
1118
1155
|
summaryPrecision?: number;
|
|
1119
1156
|
summaryRoundingMode?: ListTableSummaryRoundingMode;
|
|
1120
1157
|
summaryPreserveTrailingZeros?: boolean;
|
|
1121
1158
|
onToggleSummary?: () => void;
|
|
1159
|
+
onChangeSummaryTitle?: (title: string) => void;
|
|
1160
|
+
onClearSummary?: () => void;
|
|
1122
1161
|
onChangeSummaryType?: (type: ListTableSummaryType) => void;
|
|
1123
1162
|
onChangeSummaryPrecision?: (precision: number | undefined) => void;
|
|
1124
1163
|
onChangeSummaryRoundingMode?: (mode: ListTableSummaryRoundingMode) => void;
|
|
@@ -1548,6 +1587,8 @@ type ListTableQueryPagination = false | {
|
|
|
1548
1587
|
* AntD 风格的过滤结果。
|
|
1549
1588
|
*/
|
|
1550
1589
|
type ListTableQueryFilters = Record<string, string[] | null>;
|
|
1590
|
+
/** 服务端返回的汇总结果,键使用列 key,值为最终展示内容。 */
|
|
1591
|
+
type ListTableServerSummaryValues = ReadonlyMap<string, string | number | bigint | null | undefined> | Readonly<Record<string, string | number | bigint | null | undefined>>;
|
|
1551
1592
|
/**
|
|
1552
1593
|
* AntD 风格的排序结果。
|
|
1553
1594
|
*/
|
|
@@ -1619,11 +1660,43 @@ interface ListTableRowSelectionOptions<RecordType> {
|
|
|
1619
1660
|
* AntD 风格的四参数查询回调。
|
|
1620
1661
|
*/
|
|
1621
1662
|
type ListTableQueryChange<RecordType> = (pagination: ListTableQueryPagination, filters: ListTableQueryFilters, sorter: ListTableQuerySorter, extra: ListTableQueryChangeExtra<RecordType>) => void;
|
|
1663
|
+
/** 本地查询失败通知。 */
|
|
1664
|
+
interface ListTableQueryErrorInfo {
|
|
1665
|
+
/** 失败的查询动作。 */
|
|
1666
|
+
action: "sort" | "filter";
|
|
1667
|
+
/** 查询链抛出的原始错误。 */
|
|
1668
|
+
error: unknown;
|
|
1669
|
+
/**
|
|
1670
|
+
* 人工重试本次查询。仅当失败任务仍是最新任务时返回 true 并启动重试;
|
|
1671
|
+
* 查询状态已变化、实例已重置或销毁时返回 false。
|
|
1672
|
+
*/
|
|
1673
|
+
retry: () => boolean;
|
|
1674
|
+
}
|
|
1622
1675
|
interface ListTableQueryOptions<RecordType> {
|
|
1623
1676
|
enabled?: boolean;
|
|
1624
1677
|
mode?: "local" | "remote";
|
|
1625
1678
|
dataSource?: RecordType[];
|
|
1626
1679
|
optionThreshold?: number;
|
|
1680
|
+
/**
|
|
1681
|
+
* 是否允许本地大数据查询使用 Worker。
|
|
1682
|
+
*
|
|
1683
|
+
* - `"auto"` / `undefined`:达到内部阈值时自动启用。
|
|
1684
|
+
* - `true`:不受行数阈值限制,优先尝试 Worker。
|
|
1685
|
+
* - `false`:始终使用可取消的主线程分片路径。
|
|
1686
|
+
*/
|
|
1687
|
+
worker?: boolean | "auto";
|
|
1688
|
+
/** 自动模式下启用 Worker 的最小数据行数,默认 50000。 */
|
|
1689
|
+
workerThreshold?: number;
|
|
1690
|
+
/**
|
|
1691
|
+
* 是否缓存本地查询提取出的字段快照。启用时应同时维护 `dataVersion`,
|
|
1692
|
+
* 原地编辑数据后递增版本以避免复用旧值。
|
|
1693
|
+
* @default false
|
|
1694
|
+
*/
|
|
1695
|
+
fieldCache?: boolean;
|
|
1696
|
+
/** 本地数据内容修订号,用于主动失效字段缓存。 */
|
|
1697
|
+
dataVersion?: string | number;
|
|
1698
|
+
/** 字段缓存容量上限(估算字节数),默认 32 MiB。 */
|
|
1699
|
+
fieldCacheMaxBytes?: number;
|
|
1627
1700
|
/**
|
|
1628
1701
|
* 点击过滤候选项后是否立即应用过滤,并保持过滤面板打开。
|
|
1629
1702
|
*
|
|
@@ -1631,7 +1704,32 @@ interface ListTableQueryOptions<RecordType> {
|
|
|
1631
1704
|
*/
|
|
1632
1705
|
filterOptionImmediateApply?: boolean;
|
|
1633
1706
|
mergeCell?: ListTableMergeCellOptions;
|
|
1707
|
+
/**
|
|
1708
|
+
* 服务端汇总结果。传入后直接用于汇总行,不再对当前 dataSource 本地计算。
|
|
1709
|
+
*
|
|
1710
|
+
* 键应使用列 key;未配置显式 key 时通常与 dataIndex 相同。
|
|
1711
|
+
*/
|
|
1712
|
+
summaryValues?: ListTableServerSummaryValues;
|
|
1634
1713
|
onChange?: ListTableQueryChange<RecordType>;
|
|
1714
|
+
/** 本地排序或过滤最终失败后的统一通知;不会因 Worker 回退自动触发。 */
|
|
1715
|
+
onError?: (info: ListTableQueryErrorInfo) => void;
|
|
1716
|
+
}
|
|
1717
|
+
/** OffscreenCanvas 实验状态。 */
|
|
1718
|
+
interface ListTableOffscreenCanvasStatusInfo {
|
|
1719
|
+
status: "active" | "unsupported" | "fallback" | "destroyed";
|
|
1720
|
+
reason?: string;
|
|
1721
|
+
}
|
|
1722
|
+
/** 尚未默认启用的渲染实验。 */
|
|
1723
|
+
interface ListTableExperimentalOptions {
|
|
1724
|
+
/**
|
|
1725
|
+
* 把最终可视帧交给 OffscreenCanvas Worker 呈现。
|
|
1726
|
+
*
|
|
1727
|
+
* 该开关仅在实例挂载前读取;能力不足或运行失败时自动恢复主线程画布。
|
|
1728
|
+
* @default false
|
|
1729
|
+
*/
|
|
1730
|
+
offscreenCanvas?: boolean;
|
|
1731
|
+
/** OffscreenCanvas 启用、回退和销毁状态通知。 */
|
|
1732
|
+
onOffscreenCanvasStatus?: (info: ListTableOffscreenCanvasStatusInfo) => void;
|
|
1635
1733
|
}
|
|
1636
1734
|
/**
|
|
1637
1735
|
* 可展开行配置。
|
|
@@ -1646,7 +1744,13 @@ interface ListTableExpandableOptions<RecordType = Record<string, unknown>> {
|
|
|
1646
1744
|
expandedRowRender?: (record: RecordType, index: number) => ListTableRenderResult<RecordType> | ListTableRenderResult<RecordType>[];
|
|
1647
1745
|
expandedRowHeight?: number | ((record: RecordType, index: number) => number);
|
|
1648
1746
|
indentSize?: number;
|
|
1649
|
-
|
|
1747
|
+
/**
|
|
1748
|
+
* 是否展示展开按钮。传入回调时可按行控制按钮可见性。
|
|
1749
|
+
*
|
|
1750
|
+
* 隐藏按钮不会改变该行的可展开状态,仍可配合 `expandRowByClick`
|
|
1751
|
+
* 或受控的 `expandedRowKeys` 使用。
|
|
1752
|
+
*/
|
|
1753
|
+
showExpandIcon?: boolean | ((record: RecordType, index: number) => boolean);
|
|
1650
1754
|
showExpandColumn?: boolean;
|
|
1651
1755
|
columnWidth?: number;
|
|
1652
1756
|
fixed?: "left" | "right";
|
|
@@ -1706,6 +1810,13 @@ interface ListTableOptions<RecordType = Record<string, unknown>> {
|
|
|
1706
1810
|
height?: number | string;
|
|
1707
1811
|
columns: ListTableColumn<RecordType>[];
|
|
1708
1812
|
dataSource: RecordType[];
|
|
1813
|
+
/**
|
|
1814
|
+
* 数据是否仍在加载或分批生成。
|
|
1815
|
+
* 加载期间保留汇总行及标题,不统计临时数据或展示旧结果。
|
|
1816
|
+
* 完整数据就绪后设为 false,表格自动计算汇总或展示服务端汇总。
|
|
1817
|
+
* @default false
|
|
1818
|
+
*/
|
|
1819
|
+
loading?: boolean;
|
|
1709
1820
|
/** 顶部分组栏与数据分组配置。 */
|
|
1710
1821
|
/** 数据分组配置;不传时不启用分组功能。 */
|
|
1711
1822
|
grouping?: ListTableGroupingOptions;
|
|
@@ -1744,6 +1855,8 @@ interface ListTableOptions<RecordType = Record<string, unknown>> {
|
|
|
1744
1855
|
summaryRowHeight?: number;
|
|
1745
1856
|
overscanRowCount?: number;
|
|
1746
1857
|
query?: ListTableQueryOptions<RecordType>;
|
|
1858
|
+
/** 实验能力,仅用于验证,不保证默认启用。 */
|
|
1859
|
+
experimental?: ListTableExperimentalOptions;
|
|
1747
1860
|
/**
|
|
1748
1861
|
* 是否展示最左侧的空白行选择器列。
|
|
1749
1862
|
* 传入对象时可配置列宽,默认宽度为 `12px`。
|
|
@@ -1808,17 +1921,43 @@ type ListTableDensity = 26 | 32 | 48 | 56 | "auto";
|
|
|
1808
1921
|
/**
|
|
1809
1922
|
* XLSX 导出参数。
|
|
1810
1923
|
*/
|
|
1811
|
-
interface ListTableExportXlsxOptions {
|
|
1924
|
+
interface ListTableExportXlsxOptions extends XlsxExportOptions {
|
|
1812
1925
|
/** 导出文件名,可省略 `.xlsx` 扩展名。 */
|
|
1813
1926
|
fileName?: string;
|
|
1814
1927
|
/** 是否在数据末尾追加按当前列配置计算的汇总行。 */
|
|
1815
1928
|
includeSummary?: boolean;
|
|
1929
|
+
/** 导出失败通知;已保存的分文件不会撤回,取消不触发此回调。 */
|
|
1930
|
+
onError?: (error: unknown) => void;
|
|
1816
1931
|
}
|
|
1817
1932
|
|
|
1818
1933
|
/**
|
|
1819
1934
|
* ListTable 原生入口。
|
|
1820
1935
|
*/
|
|
1821
1936
|
declare class ListTable<RecordType = Record<string, unknown>> {
|
|
1937
|
+
/** 在 columns 中声明独立展开列位置的占位符。 */
|
|
1938
|
+
static readonly EXPAND_COLUMN: Readonly<{
|
|
1939
|
+
key: "__row_expand__";
|
|
1940
|
+
dataIndex: "__row_expand__";
|
|
1941
|
+
title: "";
|
|
1942
|
+
hideInSetting: true;
|
|
1943
|
+
disableHide: true;
|
|
1944
|
+
}>;
|
|
1945
|
+
/** 在 columns 中声明行选择列位置的占位符。 */
|
|
1946
|
+
static readonly SELECTION_COLUMN: Readonly<{
|
|
1947
|
+
key: "__row_selection__";
|
|
1948
|
+
dataIndex: "__row_selection__";
|
|
1949
|
+
title: "";
|
|
1950
|
+
hideInSetting: true;
|
|
1951
|
+
disableHide: true;
|
|
1952
|
+
}>;
|
|
1953
|
+
/** `SELECTION_COLUMN` 的语义化别名。 */
|
|
1954
|
+
static readonly ROW_SELECTION_COLUMN: Readonly<{
|
|
1955
|
+
key: "__row_selection__";
|
|
1956
|
+
dataIndex: "__row_selection__";
|
|
1957
|
+
title: "";
|
|
1958
|
+
hideInSetting: true;
|
|
1959
|
+
disableHide: true;
|
|
1960
|
+
}>;
|
|
1822
1961
|
private readonly container;
|
|
1823
1962
|
private options;
|
|
1824
1963
|
private core;
|
|
@@ -1867,6 +2006,8 @@ declare class ListTable<RecordType = Record<string, unknown>> {
|
|
|
1867
2006
|
* 重置筛选状态。
|
|
1868
2007
|
*/
|
|
1869
2008
|
resetFilter(): void;
|
|
2009
|
+
/** 人工重试最近一次仍有效的本地查询失败。 */
|
|
2010
|
+
retryQuery(): boolean;
|
|
1870
2011
|
/**
|
|
1871
2012
|
* 设置并持久化内置表格密度。
|
|
1872
2013
|
*/
|
|
@@ -1877,6 +2018,31 @@ declare class ListTable<RecordType = Record<string, unknown>> {
|
|
|
1877
2018
|
destroy(): void;
|
|
1878
2019
|
}
|
|
1879
2020
|
|
|
2021
|
+
/** 在 columns 中声明独立展开列位置的占位符,使用方式与 AntD 一致。 */
|
|
2022
|
+
declare const EXPAND_COLUMN: Readonly<{
|
|
2023
|
+
key: "__row_expand__";
|
|
2024
|
+
dataIndex: "__row_expand__";
|
|
2025
|
+
title: "";
|
|
2026
|
+
hideInSetting: true;
|
|
2027
|
+
disableHide: true;
|
|
2028
|
+
}>;
|
|
2029
|
+
/** 在 columns 中声明行选择列位置的占位符,使用方式与 AntD 一致。 */
|
|
2030
|
+
declare const SELECTION_COLUMN: Readonly<{
|
|
2031
|
+
key: "__row_selection__";
|
|
2032
|
+
dataIndex: "__row_selection__";
|
|
2033
|
+
title: "";
|
|
2034
|
+
hideInSetting: true;
|
|
2035
|
+
disableHide: true;
|
|
2036
|
+
}>;
|
|
2037
|
+
/** `SELECTION_COLUMN` 的语义化别名。 */
|
|
2038
|
+
declare const ROW_SELECTION_COLUMN: Readonly<{
|
|
2039
|
+
key: "__row_selection__";
|
|
2040
|
+
dataIndex: "__row_selection__";
|
|
2041
|
+
title: "";
|
|
2042
|
+
hideInSetting: true;
|
|
2043
|
+
disableHide: true;
|
|
2044
|
+
}>;
|
|
2045
|
+
|
|
1880
2046
|
/**
|
|
1881
2047
|
* 将持久化的列设置恢复为传入列定义中的宽度、显隐和固定状态。
|
|
1882
2048
|
* 排序、过滤、缩放、密度以及其他列展示配置保持不变。
|
|
@@ -1915,4 +2081,4 @@ interface ListTableValidationTarget {
|
|
|
1915
2081
|
columnKey: string;
|
|
1916
2082
|
}
|
|
1917
2083
|
|
|
1918
|
-
export { type CreateCellEditorSessionParams, type DebugHitTestResult, type FilterPanelConfig, type FilterPanelOptionItem, type FilterPanelTexts, type FixedPopupConfig, type HeaderContextMenuColumnItem, type HeaderContextMenuConfig, type HeaderContextMenuDensity, ListTable, type ListTableAutoMergeRule, type ListTableBarcodeCellContent, type ListTableBarcodeFormat, type ListTableButtonCellContent, type ListTableButtonPopconfirmOptions, type ListTableButtonSize, type ListTableButtonType, type ListTableCarouselScrollOptions, type ListTableCellContent, type ListTableCellContentClickContext, type ListTableCellEditorSession, type ListTableCellSpan, type ListTableCellStyle, type ListTableChartCellContent, type ListTableChartSize, type ListTableChartType, type ListTableColorCellContent, type ListTableColumn, type ListTableContextMenuFeature, type ListTableContextMenuOptions, type ListTableCustomChartCellContent, type ListTableDangerConfirmRequest, type ListTableDataFormat, type ListTableDataFormatOptions, type ListTableDataFormatType, type ListTableDebugOptions, type ListTableDebugSnapshot, type ListTableDensity, type ListTableEditAutoCompleteEnter, type ListTableEditFilterOption, type ListTableEditOption, type ListTableEditValueType, type ListTableEditable, type ListTableEditorAutoCompleteEnter, type ListTableEditorConfig, type ListTableEditorFactory, type ListTableEditorFilterOption, type ListTableEditorNavigateDirection, type ListTableEditorOption, type ListTableEditorRect, type ListTableEditorRequest, type ListTableEditorTheme, type ListTableEditorValueType, type ListTableExportXlsxOptions, type ListTableFilterCondition$1 as ListTableFilterCondition, type ListTableFilterConditionOperator, type ListTableFilterConditionRelation, type ListTableFilterMatchMode, type ListTableFilterOption, type ListTableFilterOptionValue, type ListTableFilterPanelAdapter, type ListTableFilterState, type ListTableFilterType, type ListTableFilterValue$1 as ListTableFilterValue, type ListTableFixedPopupAdapter, type ListTableFormItemProps, type ListTableFormItemPropsConfig, type ListTableFormRule, type ListTableFormRules, type ListTableGroupingOptions, type ListTableHeaderContextMenuAdapter, type ListTableHighlightMode, type ListTableHorizontalAlign, type ListTableIconCellContent, type ListTableImageCellContent, type ListTableImageObjectFit, type ListTableImagePreviewRequest, type ListTableLoadingAdapter, type ListTableLoadingRequest, type ListTableMergeCellOptions, type ListTableNestedTableCellContent, type ListTableNestedTableColumn, type ListTableOptions, type ListTablePaginationAdapter, type ListTablePaginationOptions, type ListTablePerformanceMetric, type ListTableProgressCellContent, type ListTableProgressShape, type ListTableProgressSize, type ListTableQrCodeCellContent, type ListTableQrCodeLevel, type ListTableQueryChange, type ListTableQueryChangeExtra, type ListTableQueryFilters, type ListTableQueryOptions, type ListTableQueryPagination, type ListTableQuerySorter, type ListTableRateCellContent, type ListTableRateSize, type ListTableRateSymbolType, type ListTableRowDragMode, type ListTableRowDragOptions, type ListTableRowDragPayload, type ListTableRowDragSourceInfo, type ListTableRowDragZone, type ListTableRowEventProps, type ListTableRowSelectionChangeInfo, type ListTableRowSelectionOptions, type ListTableRowSelectorOptions, type ListTableScrollToOptions, type ListTableScrollbarOptions, type ListTableSearchRequest, type ListTableSelectionState, type ListTableSortItem, type ListTableSortState, type ListTableSparklineChartCellContent, type ListTableSparklineSize, type ListTableSummaryConfig, type ListTableSummaryRoundingMode, type ListTableSummaryType, type ListTableSymbolType, type ListTableTagCellContent, type ListTableTheme, type ListTableTooltipAdapter, type ListTableTooltipRequest, type ListTableUiOptions, type ListTableValidationError, type ListTableValidationErrorField, type ListTableValidationFailure, type ListTableValidationTarget, type PaginationConfig, type RenderCellDescriptor, resetListTableStoredColumnConfig };
|
|
2084
|
+
export { type CreateCellEditorSessionParams, type DebugHitTestResult, EXPAND_COLUMN, type FilterPanelConfig, type FilterPanelOptionItem, type FilterPanelTexts, type FixedPopupConfig, type HeaderContextMenuColumnItem, type HeaderContextMenuConfig, type HeaderContextMenuDensity, ListTable, type ListTableAutoMergeRule, type ListTableBarcodeCellContent, type ListTableBarcodeFormat, type ListTableButtonCellContent, type ListTableButtonPopconfirmOptions, type ListTableButtonSize, type ListTableButtonType, type ListTableCarouselScrollOptions, type ListTableCellContent, type ListTableCellContentClickContext, type ListTableCellEditorSession, type ListTableCellSpan, type ListTableCellStyle, type ListTableChartCellContent, type ListTableChartSize, type ListTableChartType, type ListTableColorCellContent, type ListTableColumn, type ListTableContextMenuFeature, type ListTableContextMenuOptions, type ListTableCustomChartCellContent, type ListTableDangerConfirmRequest, type ListTableDataFormat, type ListTableDataFormatOptions, type ListTableDataFormatType, type ListTableDebugOptions, type ListTableDebugSnapshot, type ListTableDensity, type ListTableEditAutoCompleteEnter, type ListTableEditFilterOption, type ListTableEditOption, type ListTableEditValueType, type ListTableEditable, type ListTableEditorAutoCompleteEnter, type ListTableEditorConfig, type ListTableEditorFactory, type ListTableEditorFilterOption, type ListTableEditorNavigateDirection, type ListTableEditorOption, type ListTableEditorRect, type ListTableEditorRequest, type ListTableEditorTheme, type ListTableEditorValueType, type ListTableExperimentalOptions, type ListTableExportXlsxOptions, type ListTableFilterCondition$1 as ListTableFilterCondition, type ListTableFilterConditionOperator, type ListTableFilterConditionRelation, type ListTableFilterMatchMode, type ListTableFilterOption, type ListTableFilterOptionValue, type ListTableFilterPanelAdapter, type ListTableFilterState, type ListTableFilterType, type ListTableFilterValue$1 as ListTableFilterValue, type ListTableFixedPopupAdapter, type ListTableFormItemProps, type ListTableFormItemPropsConfig, type ListTableFormRule, type ListTableFormRules, type ListTableGroupingOptions, type ListTableHeaderContextMenuAdapter, type ListTableHighlightMode, type ListTableHorizontalAlign, type ListTableIconCellContent, type ListTableImageCellContent, type ListTableImageObjectFit, type ListTableImagePreviewRequest, type ListTableLoadingAdapter, type ListTableLoadingRequest, type ListTableMergeCellOptions, type ListTableNestedTableCellContent, type ListTableNestedTableColumn, type ListTableOffscreenCanvasStatusInfo, type ListTableOptions, type ListTablePaginationAdapter, type ListTablePaginationOptions, type ListTablePerformanceMetric, type ListTableProgressCellContent, type ListTableProgressShape, type ListTableProgressSize, type ListTableQrCodeCellContent, type ListTableQrCodeLevel, type ListTableQueryChange, type ListTableQueryChangeExtra, type ListTableQueryFilters, type ListTableQueryOptions, type ListTableQueryPagination, type ListTableQuerySorter, type ListTableRateCellContent, type ListTableRateSize, type ListTableRateSymbolType, type ListTableRowDragMode, type ListTableRowDragOptions, type ListTableRowDragPayload, type ListTableRowDragSourceInfo, type ListTableRowDragZone, type ListTableRowEventProps, type ListTableRowSelectionChangeInfo, type ListTableRowSelectionOptions, type ListTableRowSelectorOptions, type ListTableScrollToOptions, type ListTableScrollbarOptions, type ListTableSearchRequest, type ListTableSelectionState, type ListTableServerSummaryValues, type ListTableSortItem, type ListTableSortState, type ListTableSparklineChartCellContent, type ListTableSparklineSize, type ListTableSummaryConfig, type ListTableSummaryRoundingMode, type ListTableSummaryType, type ListTableSymbolType, type ListTableTagCellContent, type ListTableTheme, type ListTableTooltipAdapter, type ListTableTooltipRequest, type ListTableUiOptions, type ListTableValidationError, type ListTableValidationErrorField, type ListTableValidationFailure, type ListTableValidationTarget, type PaginationConfig, ROW_SELECTION_COLUMN, type RenderCellDescriptor, SELECTION_COLUMN, resetListTableStoredColumnConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CanvasChartSparklineOption } from '@canvas-components/chart';
|
|
2
|
+
import { XlsxExportOptions } from '@canvas-components/utils';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* 排序状态。
|
|
@@ -125,17 +126,41 @@ interface ListTableDebugOptions {
|
|
|
125
126
|
* 列表表格性能阶段指标。
|
|
126
127
|
*/
|
|
127
128
|
interface ListTablePerformanceMetric {
|
|
128
|
-
phase: "grouping" | "snapshot" | "render";
|
|
129
|
+
phase: "query" | "grouping" | "snapshot" | "render" | "publish" | "offscreen";
|
|
129
130
|
durationMs: number;
|
|
130
131
|
inputRowCount: number;
|
|
131
132
|
outputRowCount: number;
|
|
132
133
|
cacheHit?: boolean;
|
|
134
|
+
/** 快照缓存未命中的首个输入原因。 */
|
|
135
|
+
cacheMissReason?: string;
|
|
133
136
|
groupedRowCount?: number;
|
|
134
137
|
scrollOnly?: boolean;
|
|
138
|
+
/** 本帧由动画扫描与绘制共享的单元格内容缓存命中数。 */
|
|
139
|
+
cellContentCacheHits?: number;
|
|
140
|
+
/** 本帧实际执行单元格内容解析的次数。 */
|
|
141
|
+
cellContentCacheMisses?: number;
|
|
142
|
+
/** 本帧结束时保留的单元格内容缓存项数。 */
|
|
143
|
+
cellContentCacheEntries?: number;
|
|
135
144
|
batchCount?: number;
|
|
136
145
|
indexNodeCount?: number;
|
|
137
146
|
cancelledCount?: number;
|
|
138
147
|
status?: "ready" | "cancelled" | "error";
|
|
148
|
+
/** 查询实际使用的执行器。 */
|
|
149
|
+
executor?: "none" | "worker" | "main" | "mixed";
|
|
150
|
+
/** Worker 回退主线程的原因;多阶段回退时使用逗号分隔。 */
|
|
151
|
+
fallbackReason?: string;
|
|
152
|
+
/** 单次查询发生的执行器回退次数。 */
|
|
153
|
+
fallbackCount?: number;
|
|
154
|
+
/** 主线程协作式计算主动让步次数。 */
|
|
155
|
+
sliceCount?: number;
|
|
156
|
+
/** 字段缓存命中次数。 */
|
|
157
|
+
fieldCacheHitCount?: number;
|
|
158
|
+
/** 字段缓存未命中次数。 */
|
|
159
|
+
fieldCacheMissCount?: number;
|
|
160
|
+
/** 最近一次字段缓存未命中原因。 */
|
|
161
|
+
fieldCacheMissReason?: string;
|
|
162
|
+
/** 查询各阶段耗时,单位毫秒。 */
|
|
163
|
+
stageDurationsMs?: Partial<Record<"filter" | "sort" | "fieldExtraction" | "workerTransfer" | "workerCompute" | "indexMapping" | "materialization" | "resultApply", number>>;
|
|
139
164
|
}
|
|
140
165
|
/**
|
|
141
166
|
* 查询回调扩展参数。
|
|
@@ -748,6 +773,10 @@ interface ListTableNestedTableColumn {
|
|
|
748
773
|
filterValueGetter?: (record: Record<string, unknown>) => unknown;
|
|
749
774
|
filterOptionValueGetter?: (record: Record<string, unknown>) => unknown;
|
|
750
775
|
filterOptions?: Array<string | ListTableFilterOption>;
|
|
776
|
+
/** 子表格汇总行配置。设为 `true` 等效于 `{ type: "sum" }`。 */
|
|
777
|
+
summary?: boolean | ListTableSummaryConfig<Record<string, unknown>>;
|
|
778
|
+
/** 子表格汇总行标题。 */
|
|
779
|
+
summaryTitle?: string;
|
|
751
780
|
}
|
|
752
781
|
/**
|
|
753
782
|
* 单元格内嵌表格片段。
|
|
@@ -862,6 +891,13 @@ interface ListTableColumn<RecordType = Record<string, unknown>> {
|
|
|
862
891
|
headerAlign?: ListTableHorizontalAlign;
|
|
863
892
|
fixed?: "left" | "right";
|
|
864
893
|
hidden?: boolean;
|
|
894
|
+
/**
|
|
895
|
+
* 是否将行展开按钮绘制在当前业务列中。
|
|
896
|
+
*
|
|
897
|
+
* 多列设为 `true` 时使用可见顺序中的第一列;设为 `false` 时,
|
|
898
|
+
* 当前列不会成为未指定目标时的默认内嵌列。
|
|
899
|
+
*/
|
|
900
|
+
showExpandIcon?: boolean;
|
|
865
901
|
/** 列设置中使用的标题,未传时使用 `title`。 */
|
|
866
902
|
settingTitle?: string;
|
|
867
903
|
/** 首次创建表格时是否默认隐藏。显式传入 `hidden` 时以 `hidden` 为准。 */
|
|
@@ -1114,11 +1150,14 @@ interface HeaderContextMenuConfig {
|
|
|
1114
1150
|
onChangeDataFormat?: (dataFormat: ListTableDataFormat) => void;
|
|
1115
1151
|
summaryVisible?: boolean;
|
|
1116
1152
|
summaryColumnKey?: string;
|
|
1153
|
+
summaryTitle?: string;
|
|
1117
1154
|
summaryType?: ListTableSummaryType;
|
|
1118
1155
|
summaryPrecision?: number;
|
|
1119
1156
|
summaryRoundingMode?: ListTableSummaryRoundingMode;
|
|
1120
1157
|
summaryPreserveTrailingZeros?: boolean;
|
|
1121
1158
|
onToggleSummary?: () => void;
|
|
1159
|
+
onChangeSummaryTitle?: (title: string) => void;
|
|
1160
|
+
onClearSummary?: () => void;
|
|
1122
1161
|
onChangeSummaryType?: (type: ListTableSummaryType) => void;
|
|
1123
1162
|
onChangeSummaryPrecision?: (precision: number | undefined) => void;
|
|
1124
1163
|
onChangeSummaryRoundingMode?: (mode: ListTableSummaryRoundingMode) => void;
|
|
@@ -1548,6 +1587,8 @@ type ListTableQueryPagination = false | {
|
|
|
1548
1587
|
* AntD 风格的过滤结果。
|
|
1549
1588
|
*/
|
|
1550
1589
|
type ListTableQueryFilters = Record<string, string[] | null>;
|
|
1590
|
+
/** 服务端返回的汇总结果,键使用列 key,值为最终展示内容。 */
|
|
1591
|
+
type ListTableServerSummaryValues = ReadonlyMap<string, string | number | bigint | null | undefined> | Readonly<Record<string, string | number | bigint | null | undefined>>;
|
|
1551
1592
|
/**
|
|
1552
1593
|
* AntD 风格的排序结果。
|
|
1553
1594
|
*/
|
|
@@ -1619,11 +1660,43 @@ interface ListTableRowSelectionOptions<RecordType> {
|
|
|
1619
1660
|
* AntD 风格的四参数查询回调。
|
|
1620
1661
|
*/
|
|
1621
1662
|
type ListTableQueryChange<RecordType> = (pagination: ListTableQueryPagination, filters: ListTableQueryFilters, sorter: ListTableQuerySorter, extra: ListTableQueryChangeExtra<RecordType>) => void;
|
|
1663
|
+
/** 本地查询失败通知。 */
|
|
1664
|
+
interface ListTableQueryErrorInfo {
|
|
1665
|
+
/** 失败的查询动作。 */
|
|
1666
|
+
action: "sort" | "filter";
|
|
1667
|
+
/** 查询链抛出的原始错误。 */
|
|
1668
|
+
error: unknown;
|
|
1669
|
+
/**
|
|
1670
|
+
* 人工重试本次查询。仅当失败任务仍是最新任务时返回 true 并启动重试;
|
|
1671
|
+
* 查询状态已变化、实例已重置或销毁时返回 false。
|
|
1672
|
+
*/
|
|
1673
|
+
retry: () => boolean;
|
|
1674
|
+
}
|
|
1622
1675
|
interface ListTableQueryOptions<RecordType> {
|
|
1623
1676
|
enabled?: boolean;
|
|
1624
1677
|
mode?: "local" | "remote";
|
|
1625
1678
|
dataSource?: RecordType[];
|
|
1626
1679
|
optionThreshold?: number;
|
|
1680
|
+
/**
|
|
1681
|
+
* 是否允许本地大数据查询使用 Worker。
|
|
1682
|
+
*
|
|
1683
|
+
* - `"auto"` / `undefined`:达到内部阈值时自动启用。
|
|
1684
|
+
* - `true`:不受行数阈值限制,优先尝试 Worker。
|
|
1685
|
+
* - `false`:始终使用可取消的主线程分片路径。
|
|
1686
|
+
*/
|
|
1687
|
+
worker?: boolean | "auto";
|
|
1688
|
+
/** 自动模式下启用 Worker 的最小数据行数,默认 50000。 */
|
|
1689
|
+
workerThreshold?: number;
|
|
1690
|
+
/**
|
|
1691
|
+
* 是否缓存本地查询提取出的字段快照。启用时应同时维护 `dataVersion`,
|
|
1692
|
+
* 原地编辑数据后递增版本以避免复用旧值。
|
|
1693
|
+
* @default false
|
|
1694
|
+
*/
|
|
1695
|
+
fieldCache?: boolean;
|
|
1696
|
+
/** 本地数据内容修订号,用于主动失效字段缓存。 */
|
|
1697
|
+
dataVersion?: string | number;
|
|
1698
|
+
/** 字段缓存容量上限(估算字节数),默认 32 MiB。 */
|
|
1699
|
+
fieldCacheMaxBytes?: number;
|
|
1627
1700
|
/**
|
|
1628
1701
|
* 点击过滤候选项后是否立即应用过滤,并保持过滤面板打开。
|
|
1629
1702
|
*
|
|
@@ -1631,7 +1704,32 @@ interface ListTableQueryOptions<RecordType> {
|
|
|
1631
1704
|
*/
|
|
1632
1705
|
filterOptionImmediateApply?: boolean;
|
|
1633
1706
|
mergeCell?: ListTableMergeCellOptions;
|
|
1707
|
+
/**
|
|
1708
|
+
* 服务端汇总结果。传入后直接用于汇总行,不再对当前 dataSource 本地计算。
|
|
1709
|
+
*
|
|
1710
|
+
* 键应使用列 key;未配置显式 key 时通常与 dataIndex 相同。
|
|
1711
|
+
*/
|
|
1712
|
+
summaryValues?: ListTableServerSummaryValues;
|
|
1634
1713
|
onChange?: ListTableQueryChange<RecordType>;
|
|
1714
|
+
/** 本地排序或过滤最终失败后的统一通知;不会因 Worker 回退自动触发。 */
|
|
1715
|
+
onError?: (info: ListTableQueryErrorInfo) => void;
|
|
1716
|
+
}
|
|
1717
|
+
/** OffscreenCanvas 实验状态。 */
|
|
1718
|
+
interface ListTableOffscreenCanvasStatusInfo {
|
|
1719
|
+
status: "active" | "unsupported" | "fallback" | "destroyed";
|
|
1720
|
+
reason?: string;
|
|
1721
|
+
}
|
|
1722
|
+
/** 尚未默认启用的渲染实验。 */
|
|
1723
|
+
interface ListTableExperimentalOptions {
|
|
1724
|
+
/**
|
|
1725
|
+
* 把最终可视帧交给 OffscreenCanvas Worker 呈现。
|
|
1726
|
+
*
|
|
1727
|
+
* 该开关仅在实例挂载前读取;能力不足或运行失败时自动恢复主线程画布。
|
|
1728
|
+
* @default false
|
|
1729
|
+
*/
|
|
1730
|
+
offscreenCanvas?: boolean;
|
|
1731
|
+
/** OffscreenCanvas 启用、回退和销毁状态通知。 */
|
|
1732
|
+
onOffscreenCanvasStatus?: (info: ListTableOffscreenCanvasStatusInfo) => void;
|
|
1635
1733
|
}
|
|
1636
1734
|
/**
|
|
1637
1735
|
* 可展开行配置。
|
|
@@ -1646,7 +1744,13 @@ interface ListTableExpandableOptions<RecordType = Record<string, unknown>> {
|
|
|
1646
1744
|
expandedRowRender?: (record: RecordType, index: number) => ListTableRenderResult<RecordType> | ListTableRenderResult<RecordType>[];
|
|
1647
1745
|
expandedRowHeight?: number | ((record: RecordType, index: number) => number);
|
|
1648
1746
|
indentSize?: number;
|
|
1649
|
-
|
|
1747
|
+
/**
|
|
1748
|
+
* 是否展示展开按钮。传入回调时可按行控制按钮可见性。
|
|
1749
|
+
*
|
|
1750
|
+
* 隐藏按钮不会改变该行的可展开状态,仍可配合 `expandRowByClick`
|
|
1751
|
+
* 或受控的 `expandedRowKeys` 使用。
|
|
1752
|
+
*/
|
|
1753
|
+
showExpandIcon?: boolean | ((record: RecordType, index: number) => boolean);
|
|
1650
1754
|
showExpandColumn?: boolean;
|
|
1651
1755
|
columnWidth?: number;
|
|
1652
1756
|
fixed?: "left" | "right";
|
|
@@ -1706,6 +1810,13 @@ interface ListTableOptions<RecordType = Record<string, unknown>> {
|
|
|
1706
1810
|
height?: number | string;
|
|
1707
1811
|
columns: ListTableColumn<RecordType>[];
|
|
1708
1812
|
dataSource: RecordType[];
|
|
1813
|
+
/**
|
|
1814
|
+
* 数据是否仍在加载或分批生成。
|
|
1815
|
+
* 加载期间保留汇总行及标题,不统计临时数据或展示旧结果。
|
|
1816
|
+
* 完整数据就绪后设为 false,表格自动计算汇总或展示服务端汇总。
|
|
1817
|
+
* @default false
|
|
1818
|
+
*/
|
|
1819
|
+
loading?: boolean;
|
|
1709
1820
|
/** 顶部分组栏与数据分组配置。 */
|
|
1710
1821
|
/** 数据分组配置;不传时不启用分组功能。 */
|
|
1711
1822
|
grouping?: ListTableGroupingOptions;
|
|
@@ -1744,6 +1855,8 @@ interface ListTableOptions<RecordType = Record<string, unknown>> {
|
|
|
1744
1855
|
summaryRowHeight?: number;
|
|
1745
1856
|
overscanRowCount?: number;
|
|
1746
1857
|
query?: ListTableQueryOptions<RecordType>;
|
|
1858
|
+
/** 实验能力,仅用于验证,不保证默认启用。 */
|
|
1859
|
+
experimental?: ListTableExperimentalOptions;
|
|
1747
1860
|
/**
|
|
1748
1861
|
* 是否展示最左侧的空白行选择器列。
|
|
1749
1862
|
* 传入对象时可配置列宽,默认宽度为 `12px`。
|
|
@@ -1808,17 +1921,43 @@ type ListTableDensity = 26 | 32 | 48 | 56 | "auto";
|
|
|
1808
1921
|
/**
|
|
1809
1922
|
* XLSX 导出参数。
|
|
1810
1923
|
*/
|
|
1811
|
-
interface ListTableExportXlsxOptions {
|
|
1924
|
+
interface ListTableExportXlsxOptions extends XlsxExportOptions {
|
|
1812
1925
|
/** 导出文件名,可省略 `.xlsx` 扩展名。 */
|
|
1813
1926
|
fileName?: string;
|
|
1814
1927
|
/** 是否在数据末尾追加按当前列配置计算的汇总行。 */
|
|
1815
1928
|
includeSummary?: boolean;
|
|
1929
|
+
/** 导出失败通知;已保存的分文件不会撤回,取消不触发此回调。 */
|
|
1930
|
+
onError?: (error: unknown) => void;
|
|
1816
1931
|
}
|
|
1817
1932
|
|
|
1818
1933
|
/**
|
|
1819
1934
|
* ListTable 原生入口。
|
|
1820
1935
|
*/
|
|
1821
1936
|
declare class ListTable<RecordType = Record<string, unknown>> {
|
|
1937
|
+
/** 在 columns 中声明独立展开列位置的占位符。 */
|
|
1938
|
+
static readonly EXPAND_COLUMN: Readonly<{
|
|
1939
|
+
key: "__row_expand__";
|
|
1940
|
+
dataIndex: "__row_expand__";
|
|
1941
|
+
title: "";
|
|
1942
|
+
hideInSetting: true;
|
|
1943
|
+
disableHide: true;
|
|
1944
|
+
}>;
|
|
1945
|
+
/** 在 columns 中声明行选择列位置的占位符。 */
|
|
1946
|
+
static readonly SELECTION_COLUMN: Readonly<{
|
|
1947
|
+
key: "__row_selection__";
|
|
1948
|
+
dataIndex: "__row_selection__";
|
|
1949
|
+
title: "";
|
|
1950
|
+
hideInSetting: true;
|
|
1951
|
+
disableHide: true;
|
|
1952
|
+
}>;
|
|
1953
|
+
/** `SELECTION_COLUMN` 的语义化别名。 */
|
|
1954
|
+
static readonly ROW_SELECTION_COLUMN: Readonly<{
|
|
1955
|
+
key: "__row_selection__";
|
|
1956
|
+
dataIndex: "__row_selection__";
|
|
1957
|
+
title: "";
|
|
1958
|
+
hideInSetting: true;
|
|
1959
|
+
disableHide: true;
|
|
1960
|
+
}>;
|
|
1822
1961
|
private readonly container;
|
|
1823
1962
|
private options;
|
|
1824
1963
|
private core;
|
|
@@ -1867,6 +2006,8 @@ declare class ListTable<RecordType = Record<string, unknown>> {
|
|
|
1867
2006
|
* 重置筛选状态。
|
|
1868
2007
|
*/
|
|
1869
2008
|
resetFilter(): void;
|
|
2009
|
+
/** 人工重试最近一次仍有效的本地查询失败。 */
|
|
2010
|
+
retryQuery(): boolean;
|
|
1870
2011
|
/**
|
|
1871
2012
|
* 设置并持久化内置表格密度。
|
|
1872
2013
|
*/
|
|
@@ -1877,6 +2018,31 @@ declare class ListTable<RecordType = Record<string, unknown>> {
|
|
|
1877
2018
|
destroy(): void;
|
|
1878
2019
|
}
|
|
1879
2020
|
|
|
2021
|
+
/** 在 columns 中声明独立展开列位置的占位符,使用方式与 AntD 一致。 */
|
|
2022
|
+
declare const EXPAND_COLUMN: Readonly<{
|
|
2023
|
+
key: "__row_expand__";
|
|
2024
|
+
dataIndex: "__row_expand__";
|
|
2025
|
+
title: "";
|
|
2026
|
+
hideInSetting: true;
|
|
2027
|
+
disableHide: true;
|
|
2028
|
+
}>;
|
|
2029
|
+
/** 在 columns 中声明行选择列位置的占位符,使用方式与 AntD 一致。 */
|
|
2030
|
+
declare const SELECTION_COLUMN: Readonly<{
|
|
2031
|
+
key: "__row_selection__";
|
|
2032
|
+
dataIndex: "__row_selection__";
|
|
2033
|
+
title: "";
|
|
2034
|
+
hideInSetting: true;
|
|
2035
|
+
disableHide: true;
|
|
2036
|
+
}>;
|
|
2037
|
+
/** `SELECTION_COLUMN` 的语义化别名。 */
|
|
2038
|
+
declare const ROW_SELECTION_COLUMN: Readonly<{
|
|
2039
|
+
key: "__row_selection__";
|
|
2040
|
+
dataIndex: "__row_selection__";
|
|
2041
|
+
title: "";
|
|
2042
|
+
hideInSetting: true;
|
|
2043
|
+
disableHide: true;
|
|
2044
|
+
}>;
|
|
2045
|
+
|
|
1880
2046
|
/**
|
|
1881
2047
|
* 将持久化的列设置恢复为传入列定义中的宽度、显隐和固定状态。
|
|
1882
2048
|
* 排序、过滤、缩放、密度以及其他列展示配置保持不变。
|
|
@@ -1915,4 +2081,4 @@ interface ListTableValidationTarget {
|
|
|
1915
2081
|
columnKey: string;
|
|
1916
2082
|
}
|
|
1917
2083
|
|
|
1918
|
-
export { type CreateCellEditorSessionParams, type DebugHitTestResult, type FilterPanelConfig, type FilterPanelOptionItem, type FilterPanelTexts, type FixedPopupConfig, type HeaderContextMenuColumnItem, type HeaderContextMenuConfig, type HeaderContextMenuDensity, ListTable, type ListTableAutoMergeRule, type ListTableBarcodeCellContent, type ListTableBarcodeFormat, type ListTableButtonCellContent, type ListTableButtonPopconfirmOptions, type ListTableButtonSize, type ListTableButtonType, type ListTableCarouselScrollOptions, type ListTableCellContent, type ListTableCellContentClickContext, type ListTableCellEditorSession, type ListTableCellSpan, type ListTableCellStyle, type ListTableChartCellContent, type ListTableChartSize, type ListTableChartType, type ListTableColorCellContent, type ListTableColumn, type ListTableContextMenuFeature, type ListTableContextMenuOptions, type ListTableCustomChartCellContent, type ListTableDangerConfirmRequest, type ListTableDataFormat, type ListTableDataFormatOptions, type ListTableDataFormatType, type ListTableDebugOptions, type ListTableDebugSnapshot, type ListTableDensity, type ListTableEditAutoCompleteEnter, type ListTableEditFilterOption, type ListTableEditOption, type ListTableEditValueType, type ListTableEditable, type ListTableEditorAutoCompleteEnter, type ListTableEditorConfig, type ListTableEditorFactory, type ListTableEditorFilterOption, type ListTableEditorNavigateDirection, type ListTableEditorOption, type ListTableEditorRect, type ListTableEditorRequest, type ListTableEditorTheme, type ListTableEditorValueType, type ListTableExportXlsxOptions, type ListTableFilterCondition$1 as ListTableFilterCondition, type ListTableFilterConditionOperator, type ListTableFilterConditionRelation, type ListTableFilterMatchMode, type ListTableFilterOption, type ListTableFilterOptionValue, type ListTableFilterPanelAdapter, type ListTableFilterState, type ListTableFilterType, type ListTableFilterValue$1 as ListTableFilterValue, type ListTableFixedPopupAdapter, type ListTableFormItemProps, type ListTableFormItemPropsConfig, type ListTableFormRule, type ListTableFormRules, type ListTableGroupingOptions, type ListTableHeaderContextMenuAdapter, type ListTableHighlightMode, type ListTableHorizontalAlign, type ListTableIconCellContent, type ListTableImageCellContent, type ListTableImageObjectFit, type ListTableImagePreviewRequest, type ListTableLoadingAdapter, type ListTableLoadingRequest, type ListTableMergeCellOptions, type ListTableNestedTableCellContent, type ListTableNestedTableColumn, type ListTableOptions, type ListTablePaginationAdapter, type ListTablePaginationOptions, type ListTablePerformanceMetric, type ListTableProgressCellContent, type ListTableProgressShape, type ListTableProgressSize, type ListTableQrCodeCellContent, type ListTableQrCodeLevel, type ListTableQueryChange, type ListTableQueryChangeExtra, type ListTableQueryFilters, type ListTableQueryOptions, type ListTableQueryPagination, type ListTableQuerySorter, type ListTableRateCellContent, type ListTableRateSize, type ListTableRateSymbolType, type ListTableRowDragMode, type ListTableRowDragOptions, type ListTableRowDragPayload, type ListTableRowDragSourceInfo, type ListTableRowDragZone, type ListTableRowEventProps, type ListTableRowSelectionChangeInfo, type ListTableRowSelectionOptions, type ListTableRowSelectorOptions, type ListTableScrollToOptions, type ListTableScrollbarOptions, type ListTableSearchRequest, type ListTableSelectionState, type ListTableSortItem, type ListTableSortState, type ListTableSparklineChartCellContent, type ListTableSparklineSize, type ListTableSummaryConfig, type ListTableSummaryRoundingMode, type ListTableSummaryType, type ListTableSymbolType, type ListTableTagCellContent, type ListTableTheme, type ListTableTooltipAdapter, type ListTableTooltipRequest, type ListTableUiOptions, type ListTableValidationError, type ListTableValidationErrorField, type ListTableValidationFailure, type ListTableValidationTarget, type PaginationConfig, type RenderCellDescriptor, resetListTableStoredColumnConfig };
|
|
2084
|
+
export { type CreateCellEditorSessionParams, type DebugHitTestResult, EXPAND_COLUMN, type FilterPanelConfig, type FilterPanelOptionItem, type FilterPanelTexts, type FixedPopupConfig, type HeaderContextMenuColumnItem, type HeaderContextMenuConfig, type HeaderContextMenuDensity, ListTable, type ListTableAutoMergeRule, type ListTableBarcodeCellContent, type ListTableBarcodeFormat, type ListTableButtonCellContent, type ListTableButtonPopconfirmOptions, type ListTableButtonSize, type ListTableButtonType, type ListTableCarouselScrollOptions, type ListTableCellContent, type ListTableCellContentClickContext, type ListTableCellEditorSession, type ListTableCellSpan, type ListTableCellStyle, type ListTableChartCellContent, type ListTableChartSize, type ListTableChartType, type ListTableColorCellContent, type ListTableColumn, type ListTableContextMenuFeature, type ListTableContextMenuOptions, type ListTableCustomChartCellContent, type ListTableDangerConfirmRequest, type ListTableDataFormat, type ListTableDataFormatOptions, type ListTableDataFormatType, type ListTableDebugOptions, type ListTableDebugSnapshot, type ListTableDensity, type ListTableEditAutoCompleteEnter, type ListTableEditFilterOption, type ListTableEditOption, type ListTableEditValueType, type ListTableEditable, type ListTableEditorAutoCompleteEnter, type ListTableEditorConfig, type ListTableEditorFactory, type ListTableEditorFilterOption, type ListTableEditorNavigateDirection, type ListTableEditorOption, type ListTableEditorRect, type ListTableEditorRequest, type ListTableEditorTheme, type ListTableEditorValueType, type ListTableExperimentalOptions, type ListTableExportXlsxOptions, type ListTableFilterCondition$1 as ListTableFilterCondition, type ListTableFilterConditionOperator, type ListTableFilterConditionRelation, type ListTableFilterMatchMode, type ListTableFilterOption, type ListTableFilterOptionValue, type ListTableFilterPanelAdapter, type ListTableFilterState, type ListTableFilterType, type ListTableFilterValue$1 as ListTableFilterValue, type ListTableFixedPopupAdapter, type ListTableFormItemProps, type ListTableFormItemPropsConfig, type ListTableFormRule, type ListTableFormRules, type ListTableGroupingOptions, type ListTableHeaderContextMenuAdapter, type ListTableHighlightMode, type ListTableHorizontalAlign, type ListTableIconCellContent, type ListTableImageCellContent, type ListTableImageObjectFit, type ListTableImagePreviewRequest, type ListTableLoadingAdapter, type ListTableLoadingRequest, type ListTableMergeCellOptions, type ListTableNestedTableCellContent, type ListTableNestedTableColumn, type ListTableOffscreenCanvasStatusInfo, type ListTableOptions, type ListTablePaginationAdapter, type ListTablePaginationOptions, type ListTablePerformanceMetric, type ListTableProgressCellContent, type ListTableProgressShape, type ListTableProgressSize, type ListTableQrCodeCellContent, type ListTableQrCodeLevel, type ListTableQueryChange, type ListTableQueryChangeExtra, type ListTableQueryFilters, type ListTableQueryOptions, type ListTableQueryPagination, type ListTableQuerySorter, type ListTableRateCellContent, type ListTableRateSize, type ListTableRateSymbolType, type ListTableRowDragMode, type ListTableRowDragOptions, type ListTableRowDragPayload, type ListTableRowDragSourceInfo, type ListTableRowDragZone, type ListTableRowEventProps, type ListTableRowSelectionChangeInfo, type ListTableRowSelectionOptions, type ListTableRowSelectorOptions, type ListTableScrollToOptions, type ListTableScrollbarOptions, type ListTableSearchRequest, type ListTableSelectionState, type ListTableServerSummaryValues, type ListTableSortItem, type ListTableSortState, type ListTableSparklineChartCellContent, type ListTableSparklineSize, type ListTableSummaryConfig, type ListTableSummaryRoundingMode, type ListTableSummaryType, type ListTableSymbolType, type ListTableTagCellContent, type ListTableTheme, type ListTableTooltipAdapter, type ListTableTooltipRequest, type ListTableUiOptions, type ListTableValidationError, type ListTableValidationErrorField, type ListTableValidationFailure, type ListTableValidationTarget, type PaginationConfig, ROW_SELECTION_COLUMN, type RenderCellDescriptor, SELECTION_COLUMN, resetListTableStoredColumnConfig };
|