@aimerthyr/virtual-table 1.3.2 → 1.3.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.
- package/CHANGELOG.md +14 -1
- package/README.en.md +92 -0
- package/README.md +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +1 -1
- package/dist/virtual-table.css +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -184,6 +184,7 @@ export declare const vTableDefaultProps: {
|
|
|
184
184
|
themeConfig?: ((props: VTableProps<any>) => VTableThemeConfig) | undefined;
|
|
185
185
|
defaultCheckboxColumnWidth?: number | ((props: VTableProps<any>) => number) | undefined;
|
|
186
186
|
defaultExpandColumnWidth?: number | ((props: VTableProps<any>) => number) | undefined;
|
|
187
|
+
layoutMode?: "fixed" | "contentFit" | ((props: VTableProps<any>) => "fixed" | "contentFit") | undefined;
|
|
187
188
|
customRowAttributes?: ((row: any, rowIndex: number) => HTMLAttributes) | ((props: VTableProps<any>) => (row: any, rowIndex: number) => HTMLAttributes) | undefined;
|
|
188
189
|
customHeaderCellAttributes?: ((column: VTableColumn, colIndex: number) => ThHTMLAttributes) | ((props: VTableProps<any>) => (column: VTableColumn, colIndex: number) => ThHTMLAttributes) | undefined;
|
|
189
190
|
customCellAttributes?: ((row: any, column: VTableColumn, rowIndex: number, colIndex: number) => TdHTMLAttributes | null) | ((props: VTableProps<any>) => (row: any, column: VTableColumn, rowIndex: number, colIndex: number) => TdHTMLAttributes | null) | undefined;
|
|
@@ -273,7 +274,7 @@ export declare interface VTablePaginationProps {
|
|
|
273
274
|
pageIndex: number;
|
|
274
275
|
/** 总条数 */
|
|
275
276
|
total: number;
|
|
276
|
-
/**
|
|
277
|
+
/** 页码/每页条数变化回调 */
|
|
277
278
|
onPageChange: (pageIndex: number, pageSize: number) => void;
|
|
278
279
|
}
|
|
279
280
|
|
|
@@ -338,6 +339,8 @@ export declare interface VTableProps<TData = any> {
|
|
|
338
339
|
defaultCheckboxColumnWidth?: number;
|
|
339
340
|
/** 默认展开列的列宽 */
|
|
340
341
|
defaultExpandColumnWidth?: number;
|
|
342
|
+
/** 表格布局模式 (固定宽度 / 内容自适应) */
|
|
343
|
+
layoutMode?: 'fixed' | 'contentFit';
|
|
341
344
|
/** 自定义数据行属性 */
|
|
342
345
|
customRowAttributes?: (row: TData, rowIndex: number) => HTMLAttributes;
|
|
343
346
|
/** 自定义表头单元格属性 */
|