@aimerthyr/virtual-table 1.3.1 → 1.3.3

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/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
  /** 自定义表头单元格属性 */
@@ -440,7 +443,7 @@ export declare interface VTableSlots<TData = any> {
440
443
  customFooter?: () => VNode_2[];
441
444
  /** 自定义展开图标 */
442
445
  customExpandIcon?: (props: VTableExpandIconProps) => VNode_2[];
443
- /** 自定义组件图标 */
446
+ /** 自定义排序图标 */
444
447
  customSorterIcon?: (props: VTableSorterIconProps) => VNode_2[];
445
448
  [key: string]: ((...args: any[]) => VNode_2[]) | undefined;
446
449
  }