@fbkworks/adapter-core 0.5.0 → 0.7.0

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.mts CHANGED
@@ -353,6 +353,14 @@ interface DrawerProps {
353
353
  showClose?: boolean;
354
354
  }
355
355
  interface PaginationProps {
356
+ /**
357
+ * 分页形态。默认值由各适配器自己决定,但**必须与它的
358
+ * `capabilities.pagination.mode` 一致** —— 能力位说 infinite、原语默认却是页码时,
359
+ * 「只通过 primitives.* 使用」的业务方会拿到与能力声明相反的东西。
360
+ *
361
+ * 移动端适配器(vant)默认 `'infinite'`,桌面端默认 `'pages'`。
362
+ */
363
+ mode?: 'pages' | 'infinite';
356
364
  page: number;
357
365
  pageSize: number;
358
366
  total: number;
@@ -444,7 +452,6 @@ interface DataGridProps<T = any> {
444
452
  data: T[];
445
453
  rowKey?: string | ((row: T) => string | number);
446
454
  loading?: boolean;
447
- presentation?: DataGridPresentation;
448
455
  selectionEnabled?: boolean;
449
456
  selectedKeys?: Array<string | number>;
450
457
  /**
@@ -453,7 +460,6 @@ interface DataGridProps<T = any> {
453
460
  * 现在由 ProTable 的 `selection.columnWidth` 传下来。
454
461
  */
455
462
  selectionWidth?: number;
456
- sort?: SortState | null;
457
463
  emptyText?: string;
458
464
  rowClickable?: boolean;
459
465
  /** 移动端无限滚动 */
package/dist/index.d.ts CHANGED
@@ -353,6 +353,14 @@ interface DrawerProps {
353
353
  showClose?: boolean;
354
354
  }
355
355
  interface PaginationProps {
356
+ /**
357
+ * 分页形态。默认值由各适配器自己决定,但**必须与它的
358
+ * `capabilities.pagination.mode` 一致** —— 能力位说 infinite、原语默认却是页码时,
359
+ * 「只通过 primitives.* 使用」的业务方会拿到与能力声明相反的东西。
360
+ *
361
+ * 移动端适配器(vant)默认 `'infinite'`,桌面端默认 `'pages'`。
362
+ */
363
+ mode?: 'pages' | 'infinite';
356
364
  page: number;
357
365
  pageSize: number;
358
366
  total: number;
@@ -444,7 +452,6 @@ interface DataGridProps<T = any> {
444
452
  data: T[];
445
453
  rowKey?: string | ((row: T) => string | number);
446
454
  loading?: boolean;
447
- presentation?: DataGridPresentation;
448
455
  selectionEnabled?: boolean;
449
456
  selectedKeys?: Array<string | number>;
450
457
  /**
@@ -453,7 +460,6 @@ interface DataGridProps<T = any> {
453
460
  * 现在由 ProTable 的 `selection.columnWidth` 传下来。
454
461
  */
455
462
  selectionWidth?: number;
456
- sort?: SortState | null;
457
463
  emptyText?: string;
458
464
  rowClickable?: boolean;
459
465
  /** 移动端无限滚动 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fbkworks/adapter-core",
3
- "version": "0.5.0",
3
+ "version": "0.7.0",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "files": [