@gx-design-vue/pro-table 0.2.0-beta.9 → 0.2.0-beta.91

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 (40) hide show
  1. package/dist/ProTable.d.ts +195 -793
  2. package/dist/_utils/ant-design-vue/index.d.ts +2 -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/dateFormat.d.ts +20 -0
  10. package/dist/components/Form/index.d.ts +15 -14
  11. package/dist/components/Form/style.d.ts +2 -5
  12. package/dist/components/ListToolBar/index.d.ts +18 -18
  13. package/dist/components/ListToolBar/style.d.ts +2 -5
  14. package/dist/components/ToolBar/FullscreenIcon.d.ts +1 -2
  15. package/dist/components/ToolBar/index.d.ts +18 -18
  16. package/dist/context/TableContext.d.ts +10 -11
  17. package/dist/hooks/useColums.d.ts +88 -7
  18. package/dist/hooks/useFetchData.d.ts +18 -15
  19. package/dist/hooks/useLoading.d.ts +5 -4
  20. package/dist/hooks/usePagination.d.ts +8 -3
  21. package/dist/hooks/useRowSelection.d.ts +10 -7
  22. package/dist/hooks/useTable.d.ts +38 -11
  23. package/dist/hooks/useTableForm.d.ts +8 -8
  24. package/dist/hooks/useTableScroll.d.ts +7 -7
  25. package/dist/hooks/useTableSize.d.ts +1 -1
  26. package/dist/index.d.ts +6 -5
  27. package/dist/pro-table.js +2706 -0
  28. package/dist/pro-table.umd.cjs +1 -0
  29. package/dist/props.d.ts +72 -358
  30. package/dist/style.d.ts +2 -6
  31. package/dist/types/ColumnTypings.d.ts +22 -12
  32. package/dist/types/SlotsTypings.d.ts +42 -8
  33. package/dist/types/TableTypings.d.ts +97 -59
  34. package/dist/typing.d.ts +1 -1
  35. package/dist/utils/utils.d.ts +4 -1
  36. package/package.json +20 -43
  37. package/volar.d.ts +3 -3
  38. package/dist/pro-table.mjs +0 -35090
  39. package/dist/pro-table.umd.js +0 -364
  40. package/dist/utils/config.d.ts +0 -1
@@ -1,6 +1,6 @@
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
- import type { ColumnType } from '../_utils';
3
+ import type { ColumnType, TooltipProps } from '../_utils';
4
4
  /**
5
5
  * @param text 文本框
6
6
  * @param date 日期 YYYY-MM-DD
@@ -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,34 @@ 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);
72
+ tooltip?: false | (TooltipProps & {
73
+ width?: number;
74
+ targetStyle?: Partial<CSSStyleDeclaration>;
75
+ hiddenLine?: number;
76
+ class?: string;
77
+ });
70
78
  /** 不在列表中显示 */
71
79
  show?: boolean;
80
+ key?: keyof DataValue | string | 'action';
81
+ dataIndex?: keyof DataValue | string | 'action';
72
82
  /** 列表顺序值 */
73
83
  order?: number;
74
84
  /** 不在配置工具中显示 */
75
85
  hideInSetting?: boolean;
76
86
  /** 表单搜索配置 */
77
- searchConfig?: ProSearchMap;
87
+ searchConfig?: ProSearchMap<undefined, keyof DataValue | keyof SearchParama>;
78
88
  /** 是否拷贝 */
79
89
  copyable?: boolean;
80
90
  /** 值为空时,默认取值 */
81
91
  columnEmptyText?: string;
82
92
  valueType?: ProColumnsValueType;
83
- };
84
- export type ProColumnsType<RecordType = DefaultRecordType> = (ProColumnType<RecordType>)[];
93
+ }>;
94
+ export type ProColumnsType<DataValue = DefaultRecordType, SearchParama = DefaultRecordType> = ProColumnType<DataValue, SearchParama>[];
85
95
  export type ProColumnsValueType = 'text' | 'link' | 'time' | 'dateMonth' | 'dateTime' | {
86
96
  node?: string;
87
97
  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<T>;
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,30 +27,36 @@ 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;
45
52
  resetText?: string;
46
53
  className?: string;
47
54
  defaultCollapsed?: boolean;
48
- showSearch?: boolean;
49
- showReset?: boolean;
55
+ type?: 'auto' | 'button';
56
+ reetButton?: boolean;
50
57
  collapseRender?: WithFalse<(collapsed?: boolean) => CustomRender>;
51
58
  span?: ColConfig;
59
+ labelWidth?: number;
52
60
  };
53
61
  export interface OptionConfig {
54
62
  reload?: (() => VueNode | JSX.Element) | boolean;
@@ -57,45 +65,74 @@ export interface OptionConfig {
57
65
  fullScreen?: (() => VueNode | JSX.Element) | boolean | (() => Promise<void>);
58
66
  }
59
67
  /** action表格实例 */
60
- export interface ProCoreActionType {
61
- pageParams?: RecordType | boolean;
62
- getLoadingStatus?: boolean | SpinProps | undefined;
68
+ export interface ProCoreActionType<T = DefaultRecordType, R = DefaultRecordType> {
69
+ /** @name loadingStatus */
70
+ loading: Ref<boolean>;
71
+ dataSource: ComputedRef<T[]>;
72
+ getLoadingStatus: () => boolean;
73
+ pagination: R | boolean;
74
+ pageState: PageState;
75
+ selectedKeys: ComputedRef<(string | number)[]>;
76
+ selectedItems: ComputedRef<T[]>;
77
+ rowsSelection?: {
78
+ clear: () => void;
79
+ sync: (data: T[]) => void;
80
+ remove: (keys: (string | number)[]) => void;
81
+ select: SelectionSelectFn<T>;
82
+ selectAll: TableRowSelection<T>['onSelectAll'];
83
+ };
63
84
  /** @name 刷新 */
64
- reload?: (info?: ProTabelFeachParams) => void;
85
+ reload: (info?: ProTabelFeachParams<R>) => void;
65
86
  /** @name 刷新并清空表单,重置为第一页 */
66
- reloadAndRest?: (callBack?: () => void) => void;
67
- /** @name 设置翻页、排序、筛选*/
68
- changePageInfo?: (pagination: ProTablePaginationConfig, filters: any, sorter: any) => void;
87
+ reloadAndReset: (options?: {
88
+ callBack?: () => void;
89
+ wait?: boolean;
90
+ }) => void;
91
+ /** @name 设置翻页 */
92
+ setPagination: (pagination: ProTablePaginationConfig) => void;
93
+ /** @name 设置翻页、排序、筛选、并且reload */
94
+ setPageAndReload: (pagination: ProTablePaginationConfig, filters?: Record<string, FilterValue | null>, sorter?: SorterResult | SorterResult[], extra?: TableCurrentDataSource) => void;
69
95
  /** @name 更新TableData属性值 */
70
- reSetDataList?: (data: RecordType[]) => void;
96
+ reSetDataList: (data: T[]) => void;
71
97
  /** @name 更新TableData属性值 */
72
- changeDataValue?: ({ key, params }: {
73
- key?: string;
74
- params: RecordType;
98
+ setData: ({ key, record, type }: {
99
+ key?: keyof T;
100
+ record: Partial<T>;
101
+ type: 'update' | 'push' | 'delete' | 'unshift';
75
102
  }) => void;
76
103
  /** @name 改变loading状态 */
77
- loadingOperation?: (loading: boolean) => void;
104
+ setLoading: (loading: boolean) => void;
78
105
  }
79
106
  /** form查询表单实例 */
80
- export interface ProCoreFormType {
107
+ export interface ProCoreFormType<R = DefaultRecordType> {
81
108
  /** @name 获取表格-表单请求参数 */
82
- formParams?: RecordType;
109
+ getFormState?: () => R;
83
110
  /** @name 获取表格-内部表单参数 */
84
- getFormState?: () => RecordType;
111
+ getFormInnerState?: () => R;
85
112
  /** @name 重置内部表单组件参数 */
86
- restForm?: (callBack?: () => void) => void;
113
+ restFormState?: (callBack?: () => void) => void;
87
114
  }
88
- export interface ProTableRef {
89
- formRef: () => ProCoreFormType;
90
- actionRef: () => ProCoreActionType;
115
+ export interface ProTableRef<T = DefaultRecordType, R = DefaultRecordType> {
116
+ formRef: () => ProCoreFormType<R>;
117
+ actionRef: () => ProCoreActionType<T, R>;
91
118
  }
92
- export type ProTableProps<RecordType extends DefaultRecordType = DefaultRecordType> = Omit<TableProps<RecordType>, 'columns'> & Partial<{
93
- tableClassName: string;
94
- tableStyle: CSSProperties;
95
- rowKey: string;
119
+ export type ProTableProps<DataRecord extends object = DefaultRecordType, ParamsType extends object = DefaultRecordType> = Omit<TableProps, 'columns' | 'dataSource'> & Partial<{
120
+ dataSource: DataRecord[];
121
+ tableProps: {
122
+ class?: string;
123
+ style?: CSSProperties;
124
+ };
125
+ rowKey: keyof DataRecord;
96
126
  titleTipText: string;
97
127
  autoScroll: boolean;
128
+ showSearch: boolean;
129
+ emptyTextProps: {
130
+ class?: string;
131
+ style?: CSSProperties;
132
+ extraProps?: DefaultRecordType;
133
+ };
98
134
  columnEmptyText: ProFieldEmptyText;
135
+ showLoading: boolean;
99
136
  neverScroll: boolean;
100
137
  modalScroll: boolean;
101
138
  scrollBreakpoint: Breakpoint | number;
@@ -107,30 +144,31 @@ export type ProTableProps<RecordType extends DefaultRecordType = DefaultRecordTy
107
144
  align: ProColumnType['align'];
108
145
  options: OptionConfig | boolean;
109
146
  rowSelection: ProTableRowSelection;
110
- columns: ProColumnsType<RecordType>;
147
+ columns: ProColumnsType<DataRecord, ParamsType>;
111
148
  columnsState: ColumnsStateType;
112
149
  waitRequest: boolean;
113
150
  polling: number;
114
151
  debounceTime: number;
115
- request: RequsetFunction<RecordType>;
116
- params: Record<string, unknown>;
117
- postData: (data: any[]) => any;
152
+ request: RequsetFunction<DataRecord, ParamsType>;
153
+ params: ParamsType;
154
+ postData: (data: DataRecord[]) => DataRecord[];
118
155
  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;
156
+ search: SearchConfig | boolean;
157
+ searchMap: ProSearchMap<undefined, keyof ParamsType | keyof DataRecord>[];
158
+ onReset: (params?: Partial<ParamsType>) => void;
159
+ onReload: (params?: Partial<ParamsType>) => void;
160
+ onSubmit: (params?: Partial<ParamsType>) => void;
124
161
  onSizeChange: (size: string) => any;
125
162
  onLoadingChange: (loading: boolean) => any;
126
163
  onRequestError: (e: Error) => void;
127
- onBeforeSearchSubmit: RequsetFunction<RecordType>;
164
+ onBeforeSearchSubmit: RequsetFunction<DataRecord, ParamsType>;
128
165
  onColumnsStateChange: (data: ColumnsState[]) => void;
129
- titleTip: TitleTipRender;
130
- headerTitle: HeaderTitleRender;
131
- toolBarBtn: ToolBarBtnRender;
132
- customRender: CustomizeRender;
133
- optionsExtra: OptionsExtraRender;
134
- settingExtra: SettingExtraRender;
166
+ titleTip: DefaultRender;
167
+ emptyText: DefaultRender;
168
+ headerTitle: DefaultRender;
169
+ toolBarBtn: DefaultRender;
170
+ customRender: CustomDataRender;
171
+ optionsExtra: DefaultRender;
172
+ settingExtra: DefaultRender;
135
173
  pageItemRender: PageItemRender;
136
174
  }>;
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.9",
3
+ "version": "0.2.0-beta.91",
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.48",
30
+ "@gx-design-vue/pro-hooks": "^0.2.0-beta.33",
31
+ "@gx-design-vue/pro-provider": "^0.1.0-beta.95",
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 {}