@gx-design-vue/pro-table 0.2.0-beta.4 → 0.2.0-beta.6

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/props.d.ts CHANGED
@@ -1,11 +1,8 @@
1
1
  import type { PropType } from 'vue';
2
- import type { SearchConfig } from './types/TableTypings';
2
+ import type { SearchConfig, ProTableRowSelection } from './types/TableTypings';
3
3
  export declare const proTableProps: {
4
4
  rowSelection: {
5
- type: PropType<(import("ant-design-vue/es/table/interface").TableRowSelection<import("./typing").DefaultRecordType> & import("ant-design-vue/es/table/interface").TableRowSelection<any> & {
6
- defaultSelectKeys: (string | number)[];
7
- defaultSelectRows: any[];
8
- }) | undefined>;
5
+ type: PropType<ProTableRowSelection<any>>;
9
6
  default: undefined;
10
7
  };
11
8
  columns: {
@@ -321,11 +318,21 @@ export declare const proTableProps: {
321
318
  onExpand: {
322
319
  type: PropType<(expanded: boolean, record: any) => void>;
323
320
  default: (expanded: boolean, record: any) => void;
324
- };
321
+ }; /**
322
+ * @Author gx12358
323
+ * @DateTime 2022/2/8
324
+ * @lastTime 2022/2/8
325
+ * @description 是否展示外边框和列边框
326
+ */
325
327
  onExpandedRowsChange: {
326
328
  type: PropType<(expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void>;
327
329
  default: (expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void;
328
- };
330
+ }; /**
331
+ * @Author gx12358
332
+ * @DateTime 2022/2/8
333
+ * @lastTime 2022/2/8
334
+ * @description 是否列拖动
335
+ */
329
336
  'onUpdate:expandedRowKeys': {
330
337
  type: PropType<(expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void>;
331
338
  default: (expandedKeys: import("ant-design-vue/es/vc-table/interface").Key[]) => void;
@@ -17,9 +17,8 @@ export type ProTabelFeachParams = {
17
17
  };
18
18
  export type TablePaginationPosition = 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
19
19
  export type ProFieldEmptyText = string | false;
20
- export type ProTableRowSelection<T = any> = TableRowSelection<T> & {
21
- defaultSelectKeys: (string | number)[];
22
- defaultSelectRows: T[];
20
+ export type ProTableRowSelection<T = any> = Omit<TableRowSelection<T>, 'selectedRowKeys'> & {
21
+ selectedRowKeys?: (string | number)[];
23
22
  };
24
23
  export interface ProTablePaginationConfig extends Omit<TablePaginationConfig, 'position'> {
25
24
  total?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gx-design-vue/pro-table",
3
- "version": "0.2.0-beta.4",
3
+ "version": "0.2.0-beta.6",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "vite build",
@@ -25,9 +25,9 @@
25
25
  },
26
26
  "dependencies": {
27
27
  "@vueuse/core": "^9.10.0",
28
- "@gx-design-vue/pro-utils": "^0.2.0-beta.5",
29
- "@gx-design-vue/pro-hooks": "^0.2.0-beta.3",
30
- "@gx-design-vue/pro-provider": "^0.1.0-beta.12",
28
+ "@gx-design-vue/pro-utils": "^0.2.0-beta.6",
29
+ "@gx-design-vue/pro-hooks": "^0.2.0-beta.6",
30
+ "@gx-design-vue/pro-provider": "^0.1.0-beta.13",
31
31
  "ant-design-vue": "^4.0.0",
32
32
  "dayjs": "^1.11.0",
33
33
  "lodash-es": "^4.17.21",