@gx-design-vue/pro-table 0.2.0-beta.1 → 0.2.0-beta.100
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/ProTable.d.ts +218 -648
- package/dist/_utils/ant-design-vue/index.d.ts +4 -1
- package/dist/_utils/ant-design-vue/input/typings.d.ts +1 -0
- package/dist/_utils/ant-design-vue/spin/typings.d.ts +1 -0
- package/dist/_utils/ant-design-vue/table/props.d.ts +33 -2
- package/dist/_utils/ant-design-vue/table/typings.d.ts +6 -5
- package/dist/_utils/ant-design-vue/tooltip/typings.d.ts +1 -0
- package/dist/_utils/index.d.ts +1 -2
- package/dist/components/ColumnSetting/index.d.ts +31 -7
- package/dist/components/ColumnSetting/style.d.ts +3 -0
- package/dist/components/Form/dateFormat.d.ts +20 -0
- package/dist/components/Form/index.d.ts +39 -22
- package/dist/components/Form/style.d.ts +3 -0
- package/dist/components/ListToolBar/index.d.ts +21 -22
- package/dist/components/ListToolBar/style.d.ts +3 -0
- package/dist/components/ToolBar/FullscreenIcon.d.ts +1 -2
- package/dist/components/ToolBar/index.d.ts +20 -21
- package/dist/context/TableContext.d.ts +16 -14
- package/dist/hooks/tryOnActivated.d.ts +2 -0
- package/dist/hooks/useColumnSetting.d.ts +6 -6
- package/dist/hooks/useColums.d.ts +92 -11
- package/dist/hooks/useDebounceFn.d.ts +2 -2
- package/dist/hooks/useFetchData.d.ts +19 -16
- package/dist/hooks/useLoading.d.ts +5 -12
- package/dist/hooks/usePagination.d.ts +8 -3
- package/dist/hooks/useRowSelection.d.ts +11 -8
- package/dist/hooks/useTable.d.ts +38 -11
- package/dist/hooks/useTableForm.d.ts +6 -6
- package/dist/hooks/useTableScroll.d.ts +11 -11
- package/dist/hooks/useTableSize.d.ts +2 -2
- package/dist/index.d.ts +6 -11
- package/dist/pro-table.js +2836 -0
- package/dist/pro-table.umd.cjs +1 -0
- package/dist/props.d.ts +88 -296
- package/dist/style.d.ts +3 -0
- package/dist/types/ColumnTypings.d.ts +34 -16
- package/dist/types/SlotsTypings.d.ts +42 -9
- package/dist/types/TableTypings.d.ts +117 -70
- package/dist/utils/utils.d.ts +4 -1
- package/package.json +21 -46
- package/volar.d.ts +3 -3
- package/dist/_utils/typings.d.ts +0 -9
- package/dist/components/ColumnSetting/style.less +0 -93
- package/dist/components/Form/style.less +0 -35
- package/dist/components/ListToolBar/style.less +0 -63
- package/dist/components/ToolBar/style.less +0 -16
- package/dist/design/ant-design-theme.less +0 -3
- package/dist/design/ant-design-vue.less +0 -19
- package/dist/design/config.less +0 -2
- package/dist/pro-table.mjs +0 -22942
- package/dist/pro-table.umd.js +0 -97
- package/dist/proTable.less +0 -5
- package/dist/style/index.less +0 -186
- package/dist/style/table.less +0 -34
- package/dist/style.css +0 -1
- package/dist/style.less +0 -3
- package/dist/typing.d.ts +0 -1
- package/dist/utils/config.d.ts +0 -1
|
@@ -1,12 +1,45 @@
|
|
|
1
|
-
import type { CustomRender, WithFalse } from '@gx-design-vue/pro-utils';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import type { CustomRender, RecordType, WithFalse } from '@gx-design-vue/pro-utils';
|
|
2
|
+
import type { ColumnType, RenderExpandIconProps } from '../_utils';
|
|
3
|
+
import type { ProColumnType } from '../types/ColumnTypings';
|
|
4
|
+
export interface ProTableBodyCellProps<T = RecordType> {
|
|
5
|
+
text: any;
|
|
6
|
+
value: any;
|
|
7
|
+
record: T;
|
|
8
|
+
index: number;
|
|
9
|
+
column: ProColumnType<T>;
|
|
10
|
+
}
|
|
11
|
+
export interface AntTabelSlotsType {
|
|
12
|
+
emptyText?: any;
|
|
13
|
+
expandIcon?: RenderExpandIconProps<any>;
|
|
14
|
+
title?: any;
|
|
15
|
+
footer?: any;
|
|
16
|
+
summary?: any;
|
|
17
|
+
expandedRowRender?: any;
|
|
18
|
+
expandColumnTitle?: any;
|
|
19
|
+
bodyCell?: (props: ProTableBodyCellProps<any>) => void;
|
|
20
|
+
headerCell?: (props: {
|
|
21
|
+
title: any;
|
|
22
|
+
column: ColumnType;
|
|
23
|
+
}) => void;
|
|
24
|
+
customFilterIcon?: any;
|
|
25
|
+
customFilterDropdown?: any;
|
|
26
|
+
default: any;
|
|
27
|
+
}
|
|
28
|
+
export type ProTableSlotsKey = 'search' | 'headerTitle' | 'toolBarBtn' | 'titleTip' | 'settingExtra' | 'optionsExtra' | 'pageItemRender' | 'customRender';
|
|
29
|
+
export declare const proTableSlotsKey: ProTableSlotsKey[];
|
|
30
|
+
export type Slots = Readonly<Omit<Record<ProTableSlotsKey, () => void>, 'customRender'> & {
|
|
31
|
+
customRender: (params: CustomRenderResult) => void;
|
|
32
|
+
}>;
|
|
33
|
+
export interface CustomRenderResult<T = RecordType> {
|
|
34
|
+
currentData: T[];
|
|
35
|
+
dataSource: T[];
|
|
36
|
+
}
|
|
37
|
+
export type PageItemFn = (opt: {
|
|
8
38
|
page: number;
|
|
9
39
|
type: 'page' | 'prev' | 'next' | 'jump-prev' | 'jump-next';
|
|
10
40
|
originalElement: any;
|
|
11
|
-
}) => CustomRender
|
|
12
|
-
export type
|
|
41
|
+
}) => CustomRender;
|
|
42
|
+
export type CustomDataFn<T = RecordType> = (params: CustomRenderResult<T>) => CustomRender;
|
|
43
|
+
export type DefaultRender = WithFalse<CustomRender>;
|
|
44
|
+
export type PageItemRender = WithFalse<PageItemFn>;
|
|
45
|
+
export type CustomDataRender<T = RecordType> = WithFalse<CustomDataFn<T>>;
|
|
@@ -1,56 +1,71 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
4
|
-
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';
|
|
1
|
+
import type { Breakpoint, CustomRender, RecordType, SizeType, VueNode, WithFalse } from '@gx-design-vue/pro-utils';
|
|
2
|
+
import type { ComputedRef, CSSProperties, Ref } from 'vue';
|
|
3
|
+
import type { FilterValue, SelectionSelectFn, SorterResult, TableCurrentDataSource, TablePaginationConfig, TableProps, TableRowSelection } from '../_utils';
|
|
7
4
|
import type { ColumnSettingProps } from '../components/ColumnSetting';
|
|
8
5
|
import type { ColumnsState, ColumnsStateType } from '../hooks/useColumnSetting';
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
import type { ProColumnsType, ProColumnType, ProSearchMap } from './ColumnTypings';
|
|
7
|
+
import type { CustomDataRender, DefaultRender, PageItemRender } from './SlotsTypings';
|
|
8
|
+
export interface ProTabelFeachParams<R = RecordType> {
|
|
9
|
+
params?: R;
|
|
10
|
+
filters?: Record<string, FilterValue | null>;
|
|
11
|
+
sorter?: SorterResult | SorterResult[];
|
|
13
12
|
pagination?: ProTablePagination;
|
|
14
13
|
removeKeys?: (string | number)[];
|
|
15
14
|
immediate?: boolean;
|
|
16
15
|
isPolling?: boolean;
|
|
17
|
-
|
|
16
|
+
showLoading?: boolean;
|
|
17
|
+
extra?: TableCurrentDataSource;
|
|
18
|
+
}
|
|
18
19
|
export type TablePaginationPosition = 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
|
|
19
20
|
export type ProFieldEmptyText = string | false;
|
|
20
|
-
export type ProTableRowSelection<T = any> = TableRowSelection<T> & {
|
|
21
|
-
|
|
22
|
-
defaultSelectRows: T[];
|
|
21
|
+
export type ProTableRowSelection<T = any> = Omit<TableRowSelection<T>, 'selectedRowKeys'> & {
|
|
22
|
+
selectedRowKeys?: (string | number)[];
|
|
23
23
|
};
|
|
24
24
|
export interface ProTablePaginationConfig extends Omit<TablePaginationConfig, 'position'> {
|
|
25
25
|
total?: number;
|
|
26
26
|
position?: TablePaginationPosition[];
|
|
27
27
|
}
|
|
28
28
|
export type ProTablePagination = ProTablePaginationConfig | false;
|
|
29
|
-
export
|
|
29
|
+
export interface PageState {
|
|
30
|
+
pageSize: number;
|
|
31
|
+
pageNum: number;
|
|
32
|
+
}
|
|
33
|
+
export interface RequestData<T = any> {
|
|
30
34
|
data: T[] | undefined;
|
|
31
35
|
success: boolean;
|
|
32
36
|
total: number;
|
|
33
|
-
}
|
|
34
|
-
export
|
|
35
|
-
params: {
|
|
36
|
-
pageSize
|
|
37
|
-
pageNum
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
filter:
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
}
|
|
38
|
+
export interface RequsetConfig<T> {
|
|
39
|
+
params: T extends undefined ? PageState : {
|
|
40
|
+
pageSize: number;
|
|
41
|
+
pageNum: number;
|
|
42
|
+
} & Partial<T>;
|
|
43
|
+
sorter: SorterResult | SorterResult[];
|
|
44
|
+
filter: Record<string, FilterValue | null>;
|
|
45
|
+
extra: TableCurrentDataSource;
|
|
46
|
+
}
|
|
47
|
+
export type RequsetFunction<T = any, D = undefined> = (params: RequsetConfig<D>['params'], sort: RequsetConfig<D>['sorter'], filter: RequsetConfig<D>['filter']) => Promise<Partial<RequestData<T>> | undefined>;
|
|
43
48
|
export type ColConfig = Partial<Record<Breakpoint, number>>;
|
|
44
|
-
export
|
|
45
|
-
searchText?: string;
|
|
46
|
-
resetText?: string;
|
|
49
|
+
export interface SearchConfig {
|
|
47
50
|
className?: string;
|
|
51
|
+
actions?: {
|
|
52
|
+
reload?: boolean;
|
|
53
|
+
reset?: boolean;
|
|
54
|
+
searchText?: string;
|
|
55
|
+
resetText?: string;
|
|
56
|
+
};
|
|
48
57
|
defaultCollapsed?: boolean;
|
|
49
|
-
|
|
50
|
-
|
|
58
|
+
type?: 'auto' | 'button';
|
|
59
|
+
reetButton?: boolean;
|
|
51
60
|
collapseRender?: WithFalse<(collapsed?: boolean) => CustomRender>;
|
|
52
61
|
span?: ColConfig;
|
|
53
|
-
|
|
62
|
+
label?: {
|
|
63
|
+
gap?: number;
|
|
64
|
+
colon?: boolean;
|
|
65
|
+
width?: number;
|
|
66
|
+
align?: 'center' | 'left' | 'right';
|
|
67
|
+
};
|
|
68
|
+
}
|
|
54
69
|
export interface OptionConfig {
|
|
55
70
|
reload?: (() => VueNode | JSX.Element) | boolean;
|
|
56
71
|
density?: boolean;
|
|
@@ -58,80 +73,112 @@ export interface OptionConfig {
|
|
|
58
73
|
fullScreen?: (() => VueNode | JSX.Element) | boolean | (() => Promise<void>);
|
|
59
74
|
}
|
|
60
75
|
/** action表格实例 */
|
|
61
|
-
export interface ProCoreActionType {
|
|
62
|
-
|
|
63
|
-
|
|
76
|
+
export interface ProCoreActionType<T = RecordType, R = RecordType> {
|
|
77
|
+
/** @name loadingStatus */
|
|
78
|
+
loading: Ref<boolean>;
|
|
79
|
+
dataSource: ComputedRef<T[]>;
|
|
80
|
+
getLoadingStatus: () => boolean;
|
|
81
|
+
pagination: R | boolean;
|
|
82
|
+
pageState: PageState;
|
|
83
|
+
selectedKeys: ComputedRef<(string | number)[]>;
|
|
84
|
+
selectedItems: ComputedRef<T[]>;
|
|
85
|
+
rowsSelection?: {
|
|
86
|
+
clear: () => void;
|
|
87
|
+
sync: (data: T[]) => void;
|
|
88
|
+
remove: (keys: (string | number)[]) => void;
|
|
89
|
+
select: SelectionSelectFn<T>;
|
|
90
|
+
selectAll: TableRowSelection<T>['onSelectAll'];
|
|
91
|
+
};
|
|
64
92
|
/** @name 刷新 */
|
|
65
|
-
reload
|
|
93
|
+
reload: (info?: ProTabelFeachParams<R>) => void;
|
|
66
94
|
/** @name 刷新并清空表单,重置为第一页 */
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
95
|
+
reloadAndReset: (options?: {
|
|
96
|
+
callBack?: () => void;
|
|
97
|
+
wait?: boolean;
|
|
98
|
+
}) => void;
|
|
99
|
+
/** @name 设置翻页 */
|
|
100
|
+
setPagination: (pagination: ProTablePaginationConfig) => void;
|
|
101
|
+
/** @name 设置翻页、排序、筛选、并且reload */
|
|
102
|
+
setPageAndReload: (pagination: ProTablePaginationConfig, filters?: Record<string, FilterValue | null>, sorter?: SorterResult | SorterResult[], extra?: TableCurrentDataSource) => void;
|
|
70
103
|
/** @name 更新TableData属性值 */
|
|
71
|
-
reSetDataList
|
|
104
|
+
reSetDataList: (data: T[]) => void;
|
|
72
105
|
/** @name 更新TableData属性值 */
|
|
73
|
-
|
|
74
|
-
key?:
|
|
75
|
-
|
|
106
|
+
setData: ({ key, record, type }: {
|
|
107
|
+
key?: keyof T;
|
|
108
|
+
record: Partial<T>;
|
|
109
|
+
type: 'update' | 'push' | 'delete' | 'unshift';
|
|
76
110
|
}) => void;
|
|
77
111
|
/** @name 改变loading状态 */
|
|
78
|
-
|
|
112
|
+
setLoading: (loading: boolean) => void;
|
|
79
113
|
}
|
|
80
114
|
/** form查询表单实例 */
|
|
81
|
-
export interface ProCoreFormType {
|
|
115
|
+
export interface ProCoreFormType<R = RecordType> {
|
|
82
116
|
/** @name 获取表格-表单请求参数 */
|
|
83
|
-
|
|
117
|
+
getFormState?: () => R;
|
|
84
118
|
/** @name 获取表格-内部表单参数 */
|
|
85
|
-
|
|
119
|
+
getFormInnerState?: () => R;
|
|
86
120
|
/** @name 重置内部表单组件参数 */
|
|
87
|
-
|
|
121
|
+
restFormState?: (callBack?: () => void) => void;
|
|
88
122
|
}
|
|
89
|
-
export interface ProTableRef {
|
|
90
|
-
formRef: () => ProCoreFormType
|
|
91
|
-
actionRef: () => ProCoreActionType
|
|
123
|
+
export interface ProTableRef<T = RecordType, R = RecordType> {
|
|
124
|
+
formRef: () => ProCoreFormType<R>;
|
|
125
|
+
actionRef: () => ProCoreActionType<T, R>;
|
|
92
126
|
}
|
|
93
|
-
export type ProTableProps<RecordType extends
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
127
|
+
export type ProTableProps<DataRecord extends object = RecordType, ParamsType extends object = RecordType> = Omit<TableProps, 'columns' | 'dataSource'> & Partial<{
|
|
128
|
+
dataSource: DataRecord[];
|
|
129
|
+
tableProps: {
|
|
130
|
+
class?: string;
|
|
131
|
+
style?: CSSProperties;
|
|
132
|
+
};
|
|
133
|
+
rowKey: keyof DataRecord;
|
|
97
134
|
titleTipText: string;
|
|
98
135
|
autoScroll: boolean;
|
|
136
|
+
showSearch: boolean;
|
|
137
|
+
keepAliveReload: boolean;
|
|
138
|
+
emptyTextProps: {
|
|
139
|
+
class?: string;
|
|
140
|
+
style?: CSSProperties;
|
|
141
|
+
extraProps?: RecordType;
|
|
142
|
+
};
|
|
99
143
|
columnEmptyText: ProFieldEmptyText;
|
|
144
|
+
showLoading: boolean;
|
|
100
145
|
neverScroll: boolean;
|
|
101
146
|
modalScroll: boolean;
|
|
102
147
|
scrollBreakpoint: Breakpoint | number;
|
|
103
148
|
draggabled: boolean;
|
|
104
149
|
bordered: boolean;
|
|
105
150
|
showIndex: boolean;
|
|
151
|
+
cardBordered: boolean;
|
|
106
152
|
virtualScroll: boolean;
|
|
107
153
|
size: SizeType;
|
|
108
154
|
align: ProColumnType['align'];
|
|
109
155
|
options: OptionConfig | boolean;
|
|
110
156
|
rowSelection: ProTableRowSelection;
|
|
111
|
-
columns: ProColumnsType<
|
|
157
|
+
columns: ProColumnsType<DataRecord, ParamsType>;
|
|
112
158
|
columnsState: ColumnsStateType;
|
|
113
159
|
waitRequest: boolean;
|
|
114
160
|
polling: number;
|
|
115
161
|
debounceTime: number;
|
|
116
|
-
request: RequsetFunction<
|
|
117
|
-
params:
|
|
118
|
-
postData: (data:
|
|
162
|
+
request: RequsetFunction<DataRecord, ParamsType>;
|
|
163
|
+
params: ParamsType;
|
|
164
|
+
postData: (data: DataRecord[]) => DataRecord[];
|
|
119
165
|
pagination: ProTablePagination;
|
|
120
|
-
search: SearchConfig;
|
|
121
|
-
searchMap: ProSearchMap[];
|
|
122
|
-
onReset: (params?: Partial<
|
|
123
|
-
onReload: (params?: Partial<
|
|
124
|
-
onSubmit: (params?: Partial<
|
|
166
|
+
search: SearchConfig | false;
|
|
167
|
+
searchMap: ProSearchMap<undefined, keyof ParamsType | keyof DataRecord>[];
|
|
168
|
+
onReset: (params?: Partial<ParamsType>) => void;
|
|
169
|
+
onReload: (params?: Partial<ParamsType>) => void;
|
|
170
|
+
onSubmit: (params?: Partial<ParamsType>) => void;
|
|
125
171
|
onSizeChange: (size: string) => any;
|
|
126
172
|
onLoadingChange: (loading: boolean) => any;
|
|
127
173
|
onRequestError: (e: Error) => void;
|
|
128
|
-
onBeforeSearchSubmit: RequsetFunction<
|
|
174
|
+
onBeforeSearchSubmit: RequsetFunction<DataRecord, ParamsType>;
|
|
129
175
|
onColumnsStateChange: (data: ColumnsState[]) => void;
|
|
130
|
-
titleTip:
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
176
|
+
titleTip: DefaultRender;
|
|
177
|
+
emptyText: DefaultRender;
|
|
178
|
+
headerTitle: DefaultRender;
|
|
179
|
+
toolBarBtn: DefaultRender;
|
|
180
|
+
customRender: CustomDataRender;
|
|
181
|
+
optionsExtra: DefaultRender;
|
|
182
|
+
settingExtra: DefaultRender;
|
|
136
183
|
pageItemRender: PageItemRender;
|
|
137
184
|
}>;
|
package/dist/utils/utils.d.ts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
import type { ProColumnsValueType } from '../types/ColumnTypings';
|
|
2
|
-
|
|
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.
|
|
3
|
+
"version": "0.2.0-beta.100",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"dev": "vite",
|
|
6
6
|
"build": "vite build",
|
|
@@ -14,60 +14,35 @@
|
|
|
14
14
|
"dist",
|
|
15
15
|
"volar.d.ts"
|
|
16
16
|
],
|
|
17
|
+
"type": "module",
|
|
17
18
|
"types": "./dist",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"module": "./dist/pro-table.mjs",
|
|
19
|
+
"main": "./dist/pro-table.umd.cjs",
|
|
20
|
+
"module": "./dist/pro-table.js",
|
|
21
21
|
"exports": {
|
|
22
22
|
".": {
|
|
23
|
-
"import": "./dist/pro-table.
|
|
24
|
-
"require": "./dist/pro-table.umd.
|
|
25
|
-
}
|
|
26
|
-
"./dist/style.css": "./dist/style.css",
|
|
27
|
-
"./dist/style.less": "./dist/style.less"
|
|
23
|
+
"import": "./dist/pro-table.js",
|
|
24
|
+
"require": "./dist/pro-table.umd.cjs"
|
|
25
|
+
}
|
|
28
26
|
},
|
|
29
27
|
"dependencies": {
|
|
30
28
|
"@vueuse/core": "^9.10.0",
|
|
31
|
-
"@gx-design-vue/pro-utils": "^0.2.0-beta.
|
|
32
|
-
"@gx-design-vue/pro-hooks": "^0.
|
|
33
|
-
"
|
|
29
|
+
"@gx-design-vue/pro-utils": "^0.2.0-beta.57",
|
|
30
|
+
"@gx-design-vue/pro-hooks": "^0.2.0-beta.41",
|
|
31
|
+
"@gx-design-vue/pro-provider": "^0.1.0-beta.99",
|
|
32
|
+
"@gx-design-vue/pro-app": "^0.1.0-beta.23",
|
|
34
33
|
"dayjs": "^1.11.0",
|
|
35
|
-
"lodash-es": "^4.17.21"
|
|
36
|
-
"vue": "^3.2.45",
|
|
37
|
-
"vue-types": "^4.1.1"
|
|
34
|
+
"lodash-es": "^4.17.21"
|
|
38
35
|
},
|
|
39
36
|
"devDependencies": {
|
|
40
|
-
"@shared/vite-plugin-less-copy": "workspace:^0.0.0",
|
|
41
|
-
"@rollup/plugin-typescript": "^8.3.0",
|
|
42
|
-
"@rushstack/eslint-patch": "^1.1.0",
|
|
43
37
|
"@types/lodash-es": "^4.17.6",
|
|
44
|
-
"
|
|
45
|
-
"@types/node": "^16.11.26",
|
|
46
|
-
"@vitejs/plugin-vue": "^4.2.3",
|
|
47
|
-
"@vitejs/plugin-vue-jsx": "^3.0.1",
|
|
48
|
-
"@vue/eslint-config-prettier": "^7.0.0",
|
|
49
|
-
"@vue/eslint-config-typescript": "^10.0.0",
|
|
50
|
-
"@vue/tsconfig": "^0.1.3",
|
|
51
|
-
"eslint": "^8.13.0",
|
|
52
|
-
"eslint-plugin-prettier": "^4.0.0",
|
|
53
|
-
"eslint-plugin-vue": "^8.6.0",
|
|
54
|
-
"jsdom": "^19.0.0",
|
|
55
|
-
"less": "^4.1.2",
|
|
56
|
-
"postcss": "^8.4.12",
|
|
57
|
-
"postcss-html": "^1.4.1",
|
|
58
|
-
"postcss-less": "^6.0.0",
|
|
59
|
-
"prettier": "^2.6.2",
|
|
60
|
-
"rollup": "^2.70.2",
|
|
61
|
-
"stylelint": "^14.7.1",
|
|
62
|
-
"stylelint-config-prettier": "^9.0.3",
|
|
63
|
-
"stylelint-config-recommended": "^7.0.0",
|
|
64
|
-
"stylelint-config-recommended-vue": "^1.4.0",
|
|
65
|
-
"stylelint-config-standard": "^25.0.0",
|
|
66
|
-
"stylelint-order": "^5.0.0",
|
|
67
|
-
"typescript": "^4.6.4",
|
|
68
|
-
"vite": "^4.3.8",
|
|
69
|
-
"vue-eslint-parser": "^9.0.3",
|
|
70
|
-
"vue-tsc": "^1.0.24"
|
|
38
|
+
"typescript": "^5.3.3"
|
|
71
39
|
},
|
|
72
|
-
"
|
|
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
|
+
]
|
|
73
48
|
}
|
package/volar.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Auto generated component declarations
|
|
2
|
-
declare module
|
|
2
|
+
declare module 'vue' {
|
|
3
3
|
export interface GlobalComponents {
|
|
4
|
-
GProTable: typeof import(
|
|
4
|
+
GProTable: typeof import('@gx-design-vue/pro-table')['GProTable'];
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
export {}
|
|
8
|
+
export {}
|
package/dist/_utils/typings.d.ts
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
@import '../../design/config.less';
|
|
2
|
-
@import '../../design/ant-design-theme.less';
|
|
3
|
-
|
|
4
|
-
@root-entry-name: 'default';
|
|
5
|
-
|
|
6
|
-
@pro-column-setting-prefix-cls: ~'@{gx-prefix-pro}-table-column-setting';
|
|
7
|
-
|
|
8
|
-
.@{pro-column-setting-prefix-cls} {
|
|
9
|
-
width: auto;
|
|
10
|
-
&-title {
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
justify-content: space-between;
|
|
14
|
-
height: 32px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&-overlay {
|
|
18
|
-
.@{ant-prefix}-popover-inner-content {
|
|
19
|
-
width: 200px;
|
|
20
|
-
padding: 0px;
|
|
21
|
-
padding-bottom: 8px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.ant-tree {
|
|
25
|
-
.@{ant-prefix}-tree-node-content-wrapper:hover {
|
|
26
|
-
background-color: transparent;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.@{ant-prefix}-tree-draggable-icon {
|
|
30
|
-
cursor: grab;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.@{ant-prefix}-tree-treenode {
|
|
34
|
-
align-items: center;
|
|
35
|
-
|
|
36
|
-
&:hover {
|
|
37
|
-
background-color: @item-active-bg;
|
|
38
|
-
.@{pro-column-setting-prefix-cls}-list-item-option {
|
|
39
|
-
display: block;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.@{ant-prefix}-tree-checkbox {
|
|
44
|
-
top: 0;
|
|
45
|
-
margin: 0;
|
|
46
|
-
margin-right: 4px;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.@{pro-column-setting-prefix-cls}-list {
|
|
54
|
-
display: flex;
|
|
55
|
-
flex-direction: column;
|
|
56
|
-
width: 100%;
|
|
57
|
-
padding-top: 8px;
|
|
58
|
-
|
|
59
|
-
&.@{pro-column-setting-prefix-cls}-list-group {
|
|
60
|
-
padding-top: 0;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&-title {
|
|
64
|
-
padding-left: 24px;
|
|
65
|
-
margin-top: 6px;
|
|
66
|
-
margin-bottom: 6px;
|
|
67
|
-
font-size: 12px;
|
|
68
|
-
color: @text-color-secondary;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&-item {
|
|
72
|
-
display: flex;
|
|
73
|
-
align-items: center;
|
|
74
|
-
|
|
75
|
-
&-title {
|
|
76
|
-
flex: 1;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
&-option {
|
|
80
|
-
display: none;
|
|
81
|
-
float: right;
|
|
82
|
-
cursor: pointer;
|
|
83
|
-
> span {
|
|
84
|
-
> span.anticon {
|
|
85
|
-
color: var(--ant-primary-color);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
> span + span {
|
|
89
|
-
margin-left: 8px;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
@import '../../design/config.less';
|
|
2
|
-
@import '../../design/ant-design-theme.less';
|
|
3
|
-
|
|
4
|
-
@pro-table-form-prefix-cls: ~'@{gx-prefix-pro}-table-form';
|
|
5
|
-
|
|
6
|
-
.@{pro-table-form-prefix-cls} {
|
|
7
|
-
.@{pro-table-form-prefix-cls}-container {
|
|
8
|
-
position: relative;
|
|
9
|
-
display: flex;
|
|
10
|
-
flex-wrap: wrap;
|
|
11
|
-
align-items: center;
|
|
12
|
-
|
|
13
|
-
.ant-form-item {
|
|
14
|
-
margin-bottom: 16px;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&-collapse-button {
|
|
19
|
-
box-sizing: border-box;
|
|
20
|
-
display: flex;
|
|
21
|
-
align-items: center;
|
|
22
|
-
height: 32px;
|
|
23
|
-
padding: 0;
|
|
24
|
-
margin: 0;
|
|
25
|
-
margin-bottom: 16px;
|
|
26
|
-
font-size: 14px;
|
|
27
|
-
line-height: 1.5;
|
|
28
|
-
vertical-align: top;
|
|
29
|
-
list-style: none;
|
|
30
|
-
|
|
31
|
-
.anticon {
|
|
32
|
-
margin-left: 2px;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
@import '../../design/config.less';
|
|
2
|
-
@import '../../design/ant-design-theme.less';
|
|
3
|
-
|
|
4
|
-
@root-entry-name: 'default';
|
|
5
|
-
@pro-list-toolbar: ~'@{gx-prefix-pro}-table-list-toolbar';
|
|
6
|
-
|
|
7
|
-
.@{pro-list-toolbar} {
|
|
8
|
-
line-height: 1;
|
|
9
|
-
|
|
10
|
-
&-container {
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
justify-content: space-between;
|
|
14
|
-
padding-bottom: @padding-md;
|
|
15
|
-
|
|
16
|
-
&-mobile {
|
|
17
|
-
flex-direction: column;
|
|
18
|
-
flex-wrap: wrap;
|
|
19
|
-
align-items: flex-start;
|
|
20
|
-
|
|
21
|
-
.@{pro-list-toolbar}-left {
|
|
22
|
-
flex-wrap: wrap;
|
|
23
|
-
width: 100%;
|
|
24
|
-
margin-bottom: 16px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.@{pro-list-toolbar}-right {
|
|
28
|
-
width: 100%;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&-title {
|
|
34
|
-
gap: 8px;
|
|
35
|
-
font-size: @font-size-lg;
|
|
36
|
-
font-weight: 500;
|
|
37
|
-
color: @heading-color;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&-setting-item {
|
|
41
|
-
margin: 0 4px;
|
|
42
|
-
font-size: @font-size-lg;
|
|
43
|
-
color: @icon-color-hover;
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
|
|
46
|
-
&:hover {
|
|
47
|
-
.anticon {
|
|
48
|
-
color: var(--ant-primary-color);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&-left {
|
|
54
|
-
display: flex;
|
|
55
|
-
align-items: center;
|
|
56
|
-
justify-content: flex-start;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
&-right {
|
|
60
|
-
display: flex;
|
|
61
|
-
justify-content: flex-end;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
@import '../../design/config.less';
|
|
2
|
-
@import '../../design/ant-design-theme.less';
|
|
3
|
-
|
|
4
|
-
.@{gx-prefix-pro}-table-list-toolbar {
|
|
5
|
-
&-title {
|
|
6
|
-
display: flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
gap: 8px;
|
|
9
|
-
flex: 1;
|
|
10
|
-
font-size: @font-size-lg;
|
|
11
|
-
font-weight: 500;
|
|
12
|
-
line-height: 24px;
|
|
13
|
-
color: @label-color;
|
|
14
|
-
opacity: 0.85;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
@import 'ant-design-vue/es/empty/style/index.less';
|
|
2
|
-
@import 'ant-design-vue/es/tree/style/index.less';
|
|
3
|
-
@import 'ant-design-vue/es/checkbox/style/index.less';
|
|
4
|
-
@import 'ant-design-vue/es/grid/style/index.less';
|
|
5
|
-
@import 'ant-design-vue/es/pagination/style/index.less';
|
|
6
|
-
@import 'ant-design-vue/es/spin/style/index.less';
|
|
7
|
-
@import 'ant-design-vue/es/space/style/index.less';
|
|
8
|
-
@import 'ant-design-vue/es/table/style/index.less';
|
|
9
|
-
@import 'ant-design-vue/es/tree-select/style/index.less';
|
|
10
|
-
@import 'ant-design-vue/es/button/style/index.less';
|
|
11
|
-
@import 'ant-design-vue/es/form/style/index.less';
|
|
12
|
-
@import 'ant-design-vue/es/select/style/index.less';
|
|
13
|
-
@import 'ant-design-vue/es/time-picker/style/index.less';
|
|
14
|
-
@import 'ant-design-vue/es/date-picker/style/index.less';
|
|
15
|
-
@import 'ant-design-vue/es/input/style/index.less';
|
|
16
|
-
@import 'ant-design-vue/es/menu/style/index.less';
|
|
17
|
-
@import 'ant-design-vue/es/popover/style/index.less';
|
|
18
|
-
@import 'ant-design-vue/es/dropdown/style/index.less';
|
|
19
|
-
@import 'ant-design-vue/es/tooltip/style/index.less';
|
package/dist/design/config.less
DELETED