@gx-design-vue/pro-table 0.2.0-beta.8 → 0.2.0-beta.81

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.
Files changed (39) hide show
  1. package/dist/ProTable.d.ts +193 -791
  2. package/dist/_utils/ant-design-vue/index.d.ts +1 -0
  3. package/dist/_utils/ant-design-vue/input/typings.d.ts +1 -0
  4. package/dist/_utils/ant-design-vue/table/props.d.ts +33 -2
  5. package/dist/_utils/ant-design-vue/table/typings.d.ts +6 -5
  6. package/dist/_utils/ant-design-vue/tooltip/typings.d.ts +1 -0
  7. package/dist/components/ColumnSetting/index.d.ts +14 -14
  8. package/dist/components/ColumnSetting/style.d.ts +2 -5
  9. package/dist/components/Form/index.d.ts +15 -14
  10. package/dist/components/Form/style.d.ts +2 -5
  11. package/dist/components/ListToolBar/index.d.ts +18 -18
  12. package/dist/components/ListToolBar/style.d.ts +2 -5
  13. package/dist/components/ToolBar/FullscreenIcon.d.ts +1 -2
  14. package/dist/components/ToolBar/index.d.ts +18 -18
  15. package/dist/context/TableContext.d.ts +10 -11
  16. package/dist/hooks/useColums.d.ts +21 -7
  17. package/dist/hooks/useFetchData.d.ts +17 -15
  18. package/dist/hooks/useLoading.d.ts +5 -4
  19. package/dist/hooks/usePagination.d.ts +8 -3
  20. package/dist/hooks/useRowSelection.d.ts +10 -7
  21. package/dist/hooks/useTable.d.ts +38 -11
  22. package/dist/hooks/useTableForm.d.ts +8 -7
  23. package/dist/hooks/useTableScroll.d.ts +7 -7
  24. package/dist/hooks/useTableSize.d.ts +1 -1
  25. package/dist/index.d.ts +6 -5
  26. package/dist/pro-table.js +2662 -0
  27. package/dist/pro-table.umd.cjs +1 -0
  28. package/dist/props.d.ts +71 -357
  29. package/dist/style.d.ts +2 -6
  30. package/dist/types/ColumnTypings.d.ts +15 -11
  31. package/dist/types/SlotsTypings.d.ts +42 -8
  32. package/dist/types/TableTypings.d.ts +93 -57
  33. package/dist/typing.d.ts +1 -1
  34. package/dist/utils/utils.d.ts +4 -1
  35. package/package.json +20 -43
  36. package/volar.d.ts +3 -3
  37. package/dist/pro-table.mjs +0 -35090
  38. package/dist/pro-table.umd.js +0 -364
  39. package/dist/utils/config.d.ts +0 -1
@@ -1,4 +1,4 @@
1
- import type { RecordType, VueNode } from '@gx-design-vue/pro-utils';
1
+ import type { ProColumn, VueNode } from '@gx-design-vue/pro-utils';
2
2
  import type { DefaultRecordType } from '../typing';
3
3
  import type { ColumnType } from '../_utils';
4
4
  /**
@@ -28,8 +28,8 @@ export type ProSchemaValueEnumType = {
28
28
  disabled?: boolean;
29
29
  };
30
30
  type ProSchemaValueType<ValueType> = (ValueType | ProFieldValueType);
31
- export type ProSearchMap<ValueType = 'text'> = {
32
- name?: string;
31
+ export type ProSearchMap<ValueType = 'text', ParamsKey = string> = {
32
+ name?: ParamsKey;
33
33
  /** 选择如何渲染相应的模式 */
34
34
  valueType?: ProSchemaValueType<ValueType>;
35
35
  /** valueType为date|dateMonth|dateRange|time生效 */
@@ -50,13 +50,13 @@ export type ProSearchMap<ValueType = 'text'> = {
50
50
  /** valueType为select生效 */
51
51
  loading?: boolean;
52
52
  /** valueType为date、dateRange生效 */
53
- showTime?: RecordType | boolean;
53
+ showTime?: DefaultRecordType | boolean;
54
54
  /** 搜索表单的默认值 */
55
55
  initialValue?: any;
56
56
  /** 针对select、treeselect取值的key */
57
57
  valueKey?: string;
58
- /** 表单的属性值(ant-design)*/
59
- field?: RecordType;
58
+ /** 表单的属性值(ant-design) */
59
+ field?: DefaultRecordType;
60
60
  /**
61
61
  * 支持 object 和Map,Map 是支持其他基础类型作为 key
62
62
  *
@@ -64,24 +64,28 @@ export type ProSearchMap<ValueType = 'text'> = {
64
64
  */
65
65
  valueEnum?: ProSchemaValueEnumType[];
66
66
  };
67
- export type ProColumnType<RecordType = DefaultRecordType> = ColumnType<RecordType> & {
68
- children?: ProColumnsType<RecordType>;
67
+ export type ProColumnType<DataValue = DefaultRecordType, SearchParama = DefaultRecordType> = ProColumn<Omit<ColumnType<DataValue>, 'key' | 'dataIndex' | 'width'> & {
68
+ children?: ProColumnsType<DataValue, SearchParama>;
69
69
  uuid?: string | number;
70
+ index?: number;
71
+ copyText?: string | ((record: ProColumnType) => string);
70
72
  /** 不在列表中显示 */
71
73
  show?: boolean;
74
+ key?: keyof DataValue | string | 'action';
75
+ dataIndex?: keyof DataValue | string | 'action';
72
76
  /** 列表顺序值 */
73
77
  order?: number;
74
78
  /** 不在配置工具中显示 */
75
79
  hideInSetting?: boolean;
76
80
  /** 表单搜索配置 */
77
- searchConfig?: ProSearchMap;
81
+ searchConfig?: ProSearchMap<undefined, keyof DataValue | keyof SearchParama>;
78
82
  /** 是否拷贝 */
79
83
  copyable?: boolean;
80
84
  /** 值为空时,默认取值 */
81
85
  columnEmptyText?: string;
82
86
  valueType?: ProColumnsValueType;
83
- };
84
- export type ProColumnsType<RecordType = DefaultRecordType> = (ProColumnType<RecordType>)[];
87
+ }>;
88
+ export type ProColumnsType<DataValue = DefaultRecordType, SearchParama = DefaultRecordType> = ProColumnType<DataValue, SearchParama>[];
85
89
  export type ProColumnsValueType = 'text' | 'link' | 'time' | 'dateMonth' | 'dateTime' | {
86
90
  node?: string;
87
91
  class?: string;
@@ -1,12 +1,46 @@
1
1
  import type { CustomRender, WithFalse } from '@gx-design-vue/pro-utils';
2
- export type HeaderTitleRender = WithFalse<CustomRender>;
3
- export type TitleTipRender = WithFalse<CustomRender>;
4
- export type ToolBarBtnRender = WithFalse<CustomRender>;
5
- export type OptionsExtraRender = WithFalse<CustomRender>;
6
- export type SettingExtraRender = WithFalse<CustomRender>;
7
- export type PageItemRender = WithFalse<(opt: {
2
+ import type { DefaultRecordType } from '../typing';
3
+ import type { ProColumnType } from '../types/ColumnTypings';
4
+ import type { ColumnType, RenderExpandIconProps } from '../_utils';
5
+ export type ProTableBodyCellProps<T = DefaultRecordType> = {
6
+ text: any;
7
+ value: any;
8
+ record: T;
9
+ index: number;
10
+ column: ProColumnType;
11
+ };
12
+ export type AntTabelSlotsType = {
13
+ emptyText?: any;
14
+ expandIcon?: RenderExpandIconProps<any>;
15
+ title?: any;
16
+ footer?: any;
17
+ summary?: any;
18
+ expandedRowRender?: any;
19
+ expandColumnTitle?: any;
20
+ bodyCell?: (props: ProTableBodyCellProps<any>) => void;
21
+ headerCell?: (props: {
22
+ title: any;
23
+ column: ColumnType;
24
+ }) => void;
25
+ customFilterIcon?: any;
26
+ customFilterDropdown?: any;
27
+ default: any;
28
+ };
29
+ export type ProTableSlotsKey = 'search' | 'headerTitle' | 'toolBarBtn' | 'titleTip' | 'settingExtra' | 'optionsExtra' | 'pageItemRender' | 'customRender';
30
+ export declare const proTableSlotsKey: ProTableSlotsKey[];
31
+ export type Slots = Readonly<Omit<Record<ProTableSlotsKey, () => void>, 'customRender'> & {
32
+ customRender: (params: CustomRenderResult) => void;
33
+ }>;
34
+ export type CustomRenderResult<T = DefaultRecordType> = {
35
+ currentData: T[];
36
+ dataSource: T[];
37
+ };
38
+ export type PageItemFn = (opt: {
8
39
  page: number;
9
40
  type: 'page' | 'prev' | 'next' | 'jump-prev' | 'jump-next';
10
41
  originalElement: any;
11
- }) => CustomRender>;
12
- export type CustomizeRender = WithFalse<(dataSource: any[]) => CustomRender>;
42
+ }) => CustomRender;
43
+ export type CustomDataFn<T = DefaultRecordType> = (params: CustomRenderResult<T>) => CustomRender;
44
+ export type DefaultRender = WithFalse<CustomRender>;
45
+ export type PageItemRender = WithFalse<PageItemFn>;
46
+ export type CustomDataRender<T = DefaultRecordType> = WithFalse<CustomDataFn<T>>;
@@ -1,19 +1,21 @@
1
- import type { CSSProperties } from 'vue';
2
- import type { RecordType, WithFalse, CustomRender, VueNode, SizeType, Breakpoint } from '@gx-design-vue/pro-utils';
3
- import type { ProSearchMap, ProColumnType, ProColumnsType } from './ColumnTypings';
1
+ import type { CSSProperties, ComputedRef, Ref } from 'vue';
2
+ import type { Breakpoint, CustomRender, SizeType, VueNode, WithFalse } from '@gx-design-vue/pro-utils';
3
+ import type { ProColumnType, ProColumnsType, ProSearchMap } from './ColumnTypings';
4
+ import type { CustomDataRender, DefaultRender, PageItemRender } from './SlotsTypings';
5
+ import type { FilterValue, SelectionSelectFn, SorterResult, TableCurrentDataSource, TablePaginationConfig, TableProps, TableRowSelection } from '../_utils';
4
6
  import type { DefaultRecordType } from '../typing';
5
- import type { HeaderTitleRender, ToolBarBtnRender, CustomizeRender, TitleTipRender, OptionsExtraRender, SettingExtraRender, PageItemRender } from './SlotsTypings';
6
- import type { TableRowSelection, TablePaginationConfig, SpinProps, TableFilters, TableSorter, TableProps } from '../_utils';
7
7
  import type { ColumnSettingProps } from '../components/ColumnSetting';
8
8
  import type { ColumnsState, ColumnsStateType } from '../hooks/useColumnSetting';
9
- export type ProTabelFeachParams = {
10
- params?: any;
11
- filters?: TableFilters;
12
- sorter?: TableSorter;
9
+ export type ProTabelFeachParams<R = DefaultRecordType> = {
10
+ params?: R;
11
+ filters?: Record<string, FilterValue | null>;
12
+ sorter?: SorterResult | SorterResult[];
13
13
  pagination?: ProTablePagination;
14
14
  removeKeys?: (string | number)[];
15
15
  immediate?: boolean;
16
16
  isPolling?: boolean;
17
+ showLoading?: boolean;
18
+ extra?: TableCurrentDataSource;
17
19
  };
18
20
  export type TablePaginationPosition = 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
19
21
  export type ProFieldEmptyText = string | false;
@@ -25,20 +27,25 @@ export interface ProTablePaginationConfig extends Omit<TablePaginationConfig, 'p
25
27
  position?: TablePaginationPosition[];
26
28
  }
27
29
  export type ProTablePagination = ProTablePaginationConfig | false;
30
+ export type PageState = {
31
+ pageSize: number;
32
+ pageNum: number;
33
+ };
28
34
  export type RequestData<T = any> = {
29
35
  data: T[] | undefined;
30
36
  success: boolean;
31
37
  total: number;
32
- } & RecordType;
33
- export type RequsetConfig = {
34
- params: {
35
- pageSize?: number;
36
- pageNum?: number;
37
- };
38
- sort: TableSorter;
39
- filter: TableFilters;
40
38
  };
41
- export type RequsetFunction<T = any> = (params: RequsetConfig['params'], sort: RequsetConfig['sort'], filter: RequsetConfig['filter']) => Promise<Partial<RequestData<T>>>;
39
+ export type RequsetConfig<T> = {
40
+ params: T extends undefined ? PageState : {
41
+ pageSize: number;
42
+ pageNum: number;
43
+ } & Partial<T>;
44
+ sorter: SorterResult | SorterResult[];
45
+ filter: Record<string, FilterValue | null>;
46
+ extra: TableCurrentDataSource;
47
+ };
48
+ export type RequsetFunction<T = any, D = undefined> = (params: RequsetConfig<D>['params'], sort: RequsetConfig<D>['sorter'], filter: RequsetConfig<D>['filter']) => Promise<Partial<RequestData<T>> | undefined>;
42
49
  export type ColConfig = Partial<Record<Breakpoint, number>>;
43
50
  export type SearchConfig = {
44
51
  searchText?: string;
@@ -57,45 +64,73 @@ export interface OptionConfig {
57
64
  fullScreen?: (() => VueNode | JSX.Element) | boolean | (() => Promise<void>);
58
65
  }
59
66
  /** action表格实例 */
60
- export interface ProCoreActionType {
61
- pageParams?: RecordType | boolean;
62
- getLoadingStatus?: boolean | SpinProps | undefined;
67
+ export interface ProCoreActionType<T = DefaultRecordType, R = DefaultRecordType> {
68
+ /** @name loadingStatus */
69
+ loading: Ref<boolean>;
70
+ dataSource: ComputedRef<T[]>;
71
+ getLoadingStatus: () => boolean;
72
+ pagination: R | boolean;
73
+ pageState: PageState;
74
+ selectedKey: ComputedRef<(string | number)[]>;
75
+ selectedItem: ComputedRef<T[]>;
76
+ rowsSelection?: {
77
+ clear: () => void;
78
+ sync: (data: T[]) => void;
79
+ remove: (keys: (string | number)[]) => void;
80
+ select: SelectionSelectFn<T>;
81
+ selectAll: TableRowSelection<T>['onSelectAll'];
82
+ };
63
83
  /** @name 刷新 */
64
- reload?: (info?: ProTabelFeachParams) => void;
84
+ reload: (info?: ProTabelFeachParams<R>) => void;
65
85
  /** @name 刷新并清空表单,重置为第一页 */
66
- reloadAndRest?: (callBack?: () => void) => void;
67
- /** @name 设置翻页、排序、筛选*/
68
- changePageInfo?: (pagination: ProTablePaginationConfig, filters: any, sorter: any) => void;
86
+ reloadAndReset: (options?: {
87
+ callBack?: () => void;
88
+ wait?: boolean;
89
+ }) => void;
90
+ /** @name 设置翻页 */
91
+ setPagination: (pagination: ProTablePaginationConfig) => void;
92
+ /** @name 设置翻页、排序、筛选、并且reload */
93
+ setPageAndReload: (pagination: ProTablePaginationConfig, filters?: Record<string, FilterValue | null>, sorter?: SorterResult | SorterResult[], extra?: TableCurrentDataSource) => void;
69
94
  /** @name 更新TableData属性值 */
70
- reSetDataList?: (data: RecordType[]) => void;
95
+ reSetDataList: (data: T[]) => void;
71
96
  /** @name 更新TableData属性值 */
72
- changeDataValue?: ({ key, params }: {
73
- key?: string;
74
- params: RecordType;
97
+ setData: ({ key, record, type }: {
98
+ key?: keyof T;
99
+ record: Partial<T>;
100
+ type: 'update' | 'push' | 'delete' | 'unshift';
75
101
  }) => void;
76
102
  /** @name 改变loading状态 */
77
- loadingOperation?: (loading: boolean) => void;
103
+ setLoading: (loading: boolean) => void;
78
104
  }
79
105
  /** form查询表单实例 */
80
- export interface ProCoreFormType {
106
+ export interface ProCoreFormType<R = DefaultRecordType> {
81
107
  /** @name 获取表格-表单请求参数 */
82
- formParams?: RecordType;
108
+ getFormState?: () => R;
83
109
  /** @name 获取表格-内部表单参数 */
84
- getFormState?: () => RecordType;
110
+ getFormInnerState?: () => R;
85
111
  /** @name 重置内部表单组件参数 */
86
- restForm?: (callBack?: () => void) => void;
112
+ restFormState?: (callBack?: () => void) => void;
87
113
  }
88
- export interface ProTableRef {
89
- formRef: () => ProCoreFormType;
90
- actionRef: () => ProCoreActionType;
114
+ export interface ProTableRef<T = DefaultRecordType, R = DefaultRecordType> {
115
+ formRef: () => ProCoreFormType<R>;
116
+ actionRef: () => ProCoreActionType<T, R>;
91
117
  }
92
- export type ProTableProps<RecordType extends DefaultRecordType = DefaultRecordType> = Omit<TableProps<RecordType>, 'columns'> & Partial<{
93
- tableClassName: string;
94
- tableStyle: CSSProperties;
95
- rowKey: string;
118
+ export type ProTableProps<DataRecord extends object = DefaultRecordType, ParamsType extends object = DefaultRecordType> = Omit<TableProps, 'columns' | 'dataSource'> & Partial<{
119
+ dataSource: DataRecord[];
120
+ tableProps: {
121
+ class?: string;
122
+ style?: CSSProperties;
123
+ };
124
+ rowKey: keyof DataRecord;
96
125
  titleTipText: string;
97
126
  autoScroll: boolean;
127
+ emptyTextProps: {
128
+ class?: string;
129
+ style?: CSSProperties;
130
+ extraProps?: DefaultRecordType;
131
+ };
98
132
  columnEmptyText: ProFieldEmptyText;
133
+ showLoading: boolean;
99
134
  neverScroll: boolean;
100
135
  modalScroll: boolean;
101
136
  scrollBreakpoint: Breakpoint | number;
@@ -107,30 +142,31 @@ export type ProTableProps<RecordType extends DefaultRecordType = DefaultRecordTy
107
142
  align: ProColumnType['align'];
108
143
  options: OptionConfig | boolean;
109
144
  rowSelection: ProTableRowSelection;
110
- columns: ProColumnsType<RecordType>;
145
+ columns: ProColumnsType<DataRecord, ParamsType>;
111
146
  columnsState: ColumnsStateType;
112
147
  waitRequest: boolean;
113
148
  polling: number;
114
149
  debounceTime: number;
115
- request: RequsetFunction<RecordType>;
116
- params: Record<string, unknown>;
117
- postData: (data: any[]) => any;
150
+ request: RequsetFunction<DataRecord, ParamsType>;
151
+ params: ParamsType;
152
+ postData: (data: DataRecord[]) => DataRecord[];
118
153
  pagination: ProTablePagination;
119
- search: SearchConfig;
120
- searchMap: ProSearchMap[];
121
- onReset: (params?: Partial<Record<string, any>>) => any;
122
- onReload: (params?: Partial<Record<string, any>>) => any;
123
- onSubmit: (params?: Partial<Record<string, any>>) => any;
154
+ search: SearchConfig | boolean;
155
+ searchMap: ProSearchMap<undefined, keyof ParamsType | keyof DataRecord>[];
156
+ onReset: (params?: Partial<ParamsType>) => void;
157
+ onReload: (params?: Partial<ParamsType>) => void;
158
+ onSubmit: (params?: Partial<ParamsType>) => void;
124
159
  onSizeChange: (size: string) => any;
125
160
  onLoadingChange: (loading: boolean) => any;
126
161
  onRequestError: (e: Error) => void;
127
- onBeforeSearchSubmit: RequsetFunction<RecordType>;
162
+ onBeforeSearchSubmit: RequsetFunction<DataRecord, ParamsType>;
128
163
  onColumnsStateChange: (data: ColumnsState[]) => void;
129
- titleTip: TitleTipRender;
130
- headerTitle: HeaderTitleRender;
131
- toolBarBtn: ToolBarBtnRender;
132
- customRender: CustomizeRender;
133
- optionsExtra: OptionsExtraRender;
134
- settingExtra: SettingExtraRender;
164
+ titleTip: DefaultRender;
165
+ emptyText: DefaultRender;
166
+ headerTitle: DefaultRender;
167
+ toolBarBtn: DefaultRender;
168
+ customRender: CustomDataRender;
169
+ optionsExtra: DefaultRender;
170
+ settingExtra: DefaultRender;
135
171
  pageItemRender: PageItemRender;
136
172
  }>;
package/dist/typing.d.ts CHANGED
@@ -1 +1 @@
1
- export declare type DefaultRecordType = Record<string, unknown>;
1
+ export declare type DefaultRecordType = Record<string, any>;
@@ -1,2 +1,5 @@
1
1
  import type { ProColumnsValueType } from '../types/ColumnTypings';
2
- export declare function valueFormat(value: any, format: ProColumnsValueType | undefined, className: string): any;
2
+ import type { ProTablePagination } from '../types/TableTypings';
3
+ export declare function valueFormat(value: any, format: ProColumnsValueType | undefined, className: string, hashId: string): any;
4
+ export declare function getCuurentData(data: any[], pageInfo: ProTablePagination): any[];
5
+ export declare function handleCopy(codeStr: string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gx-design-vue/pro-table",
3
- "version": "0.2.0-beta.8",
3
+ "version": "0.2.0-beta.81",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "vite build",
@@ -14,58 +14,35 @@
14
14
  "dist",
15
15
  "volar.d.ts"
16
16
  ],
17
+ "type": "module",
17
18
  "types": "./dist",
18
- "main": "./dist/pro-table.umd.js",
19
- "module": "./dist/pro-table.mjs",
19
+ "main": "./dist/pro-table.umd.cjs",
20
+ "module": "./dist/pro-table.js",
20
21
  "exports": {
21
22
  ".": {
22
- "import": "./dist/pro-table.mjs",
23
- "require": "./dist/pro-table.umd.js"
23
+ "import": "./dist/pro-table.js",
24
+ "require": "./dist/pro-table.umd.cjs"
24
25
  }
25
26
  },
26
27
  "dependencies": {
27
28
  "@vueuse/core": "^9.10.0",
28
- "@gx-design-vue/pro-app": "^0.0.4",
29
- "@gx-design-vue/pro-utils": "^0.2.0-beta.6",
30
- "@gx-design-vue/pro-hooks": "^0.2.0-beta.6",
31
- "@gx-design-vue/pro-provider": "^0.1.0-beta.14",
32
- "ant-design-vue": "^4.0.0",
29
+ "@gx-design-vue/pro-utils": "^0.2.0-beta.47",
30
+ "@gx-design-vue/pro-hooks": "^0.2.0-beta.32",
31
+ "@gx-design-vue/pro-provider": "^0.1.0-beta.94",
32
+ "@gx-design-vue/pro-app": "^0.1.0-beta.22",
33
33
  "dayjs": "^1.11.0",
34
- "lodash-es": "^4.17.21",
35
- "vue": "^3.2.45",
36
- "vue-types": "^4.1.1"
34
+ "lodash-es": "^4.17.21"
37
35
  },
38
36
  "devDependencies": {
39
- "@rollup/plugin-typescript": "^8.3.0",
40
- "@rushstack/eslint-patch": "^1.1.0",
41
37
  "@types/lodash-es": "^4.17.6",
42
- "@types/jsdom": "^16.2.14",
43
- "@types/node": "^16.11.26",
44
- "@vitejs/plugin-vue": "^4.2.3",
45
- "@vitejs/plugin-vue-jsx": "^3.0.1",
46
- "@vue/eslint-config-prettier": "^7.0.0",
47
- "@vue/eslint-config-typescript": "^10.0.0",
48
- "@vue/tsconfig": "^0.1.3",
49
- "eslint": "^8.13.0",
50
- "eslint-plugin-prettier": "^4.0.0",
51
- "eslint-plugin-vue": "^8.6.0",
52
- "jsdom": "^19.0.0",
53
- "less": "^4.1.2",
54
- "postcss": "^8.4.12",
55
- "postcss-html": "^1.4.1",
56
- "postcss-less": "^6.0.0",
57
- "prettier": "^2.6.2",
58
- "rollup": "^2.70.2",
59
- "stylelint": "^14.7.1",
60
- "stylelint-config-prettier": "^9.0.3",
61
- "stylelint-config-recommended": "^7.0.0",
62
- "stylelint-config-recommended-vue": "^1.4.0",
63
- "stylelint-config-standard": "^25.0.0",
64
- "stylelint-order": "^5.0.0",
65
- "typescript": "^4.6.4",
66
- "vite": "^4.3.8",
67
- "vue-eslint-parser": "^9.0.3",
68
- "vue-tsc": "^1.0.24"
38
+ "typescript": "^5.3.3"
69
39
  },
70
- "description": "Gx Design"
40
+ "peerDependencies": {
41
+ "vue": ">=3.0.0",
42
+ "ant-design-vue": "^4.1.2"
43
+ },
44
+ "description": "Gx Design Pro Table",
45
+ "authors": [
46
+ "gx12358 <gx12358@gmail.com> (https://github.com/gx12358)"
47
+ ]
71
48
  }
package/volar.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  // Auto generated component declarations
2
- declare module "vue" {
2
+ declare module 'vue' {
3
3
  export interface GlobalComponents {
4
- GProTable: typeof import("@gx-design-vue/pro-table")["GProTable"];
4
+ GProTable: typeof import('@gx-design-vue/pro-table')['GProTable'];
5
5
  }
6
6
  }
7
7
 
8
- export {};
8
+ export {}