qlqz-frame 0.2.20 → 0.2.21
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.es.js +10265 -0
- package/dist/index.umd.js +53 -53
- package/dist/types/data-lake.ts +8 -0
- package/dist/types/index.ts +11 -0
- package/dist/types/request.ts +77 -0
- package/package.json +32 -32
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export enum EColumnType {
|
|
2
|
+
file = 'file',
|
|
3
|
+
int = 'int',
|
|
4
|
+
number = 'number',
|
|
5
|
+
longitude = 'longitude',
|
|
6
|
+
latitude = 'latitude',
|
|
7
|
+
word = 'word',
|
|
8
|
+
string = 'string',
|
|
9
|
+
text = 'text',
|
|
10
|
+
timestamp = 'timestamp',
|
|
11
|
+
jsonb = 'jsonb',
|
|
12
|
+
date = 'date',
|
|
13
|
+
time = 'time',
|
|
14
|
+
geoJsonString = 'geoJsonString',
|
|
15
|
+
singleDict = 'singleDict',
|
|
16
|
+
multiDict = 'multiDict',
|
|
17
|
+
photo = 'photo',
|
|
18
|
+
boolean = 'boolean',
|
|
19
|
+
switch = 'switch',
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface IColumnMeta {
|
|
23
|
+
character_maximum_length?: number;
|
|
24
|
+
ordinal_position: number;
|
|
25
|
+
is_nullable: string;
|
|
26
|
+
table_schema: string;
|
|
27
|
+
column_name: string;
|
|
28
|
+
data_type: string;
|
|
29
|
+
numeric_precision?: number;
|
|
30
|
+
description: string;
|
|
31
|
+
numeric_scale?: number;
|
|
32
|
+
table_name: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface IColumn {
|
|
36
|
+
is_nullable: boolean;
|
|
37
|
+
table_schema: string;
|
|
38
|
+
column_name: string;
|
|
39
|
+
data_type: string;
|
|
40
|
+
description: string;
|
|
41
|
+
show: boolean;
|
|
42
|
+
columnType?: EColumnType;
|
|
43
|
+
editable?: boolean;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface IResponse<IResponseData> {
|
|
47
|
+
success?: string;
|
|
48
|
+
code?: number;
|
|
49
|
+
msg?: string;
|
|
50
|
+
respCode: number;
|
|
51
|
+
data: IResponseData;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface IListData<T> {
|
|
55
|
+
total: number;
|
|
56
|
+
list: T[];
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface IListResponseData<T> {
|
|
60
|
+
current: number;
|
|
61
|
+
size: number;
|
|
62
|
+
pages: number;
|
|
63
|
+
total: number;
|
|
64
|
+
respCode: number;
|
|
65
|
+
records: T[];
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface IListResponseSystem<T> {
|
|
69
|
+
data: {
|
|
70
|
+
total: number;
|
|
71
|
+
list: T[];
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface IParam extends Object {
|
|
76
|
+
[key: string]: any;
|
|
77
|
+
}
|
package/package.json
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "qlqz-frame",
|
|
3
|
-
"private": false,
|
|
4
|
-
"version": "0.2.
|
|
5
|
-
"author": "leecheck qlqz-studio",
|
|
6
|
-
"main": "dist/index.umd.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"description": "Framework Lib",
|
|
9
|
-
"files": [
|
|
10
|
-
"dist/
|
|
11
|
-
"dist/index.d.ts",
|
|
12
|
-
"dist/index.
|
|
13
|
-
"dist/index.umd.js"
|
|
14
|
-
],
|
|
15
|
-
"scripts": {
|
|
16
|
-
"dev": "vite",
|
|
17
|
-
"build": "vite build",
|
|
18
|
-
"preview": "vite preview"
|
|
19
|
-
},
|
|
20
|
-
"dependencies": {
|
|
21
|
-
"axios": "^1.6.2",
|
|
22
|
-
"react": "^18.2.0",
|
|
23
|
-
"react-dom": "^18.2.0"
|
|
24
|
-
},
|
|
25
|
-
"devDependencies": {
|
|
26
|
-
"@types/react": "^18.2.37",
|
|
27
|
-
"@types/react-dom": "^18.2.15",
|
|
28
|
-
"@vitejs/plugin-react": "^4.2.0",
|
|
29
|
-
"rollup-plugin-copy": "3.5.0",
|
|
30
|
-
"typescript": "^5.2.2",
|
|
31
|
-
"vite": "^5.0.0"
|
|
32
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "qlqz-frame",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.2.21",
|
|
5
|
+
"author": "leecheck qlqz-studio",
|
|
6
|
+
"main": "dist/index.umd.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"description": "Framework Lib",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist/types/*",
|
|
11
|
+
"dist/index.d.ts",
|
|
12
|
+
"dist/index.es.js",
|
|
13
|
+
"dist/index.umd.js"
|
|
14
|
+
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"dev": "vite",
|
|
17
|
+
"build": "vite build",
|
|
18
|
+
"preview": "vite preview"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"axios": "^1.6.2",
|
|
22
|
+
"react": "^18.2.0",
|
|
23
|
+
"react-dom": "^18.2.0"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@types/react": "^18.2.37",
|
|
27
|
+
"@types/react-dom": "^18.2.15",
|
|
28
|
+
"@vitejs/plugin-react": "^4.2.0",
|
|
29
|
+
"rollup-plugin-copy": "3.5.0",
|
|
30
|
+
"typescript": "^5.2.2",
|
|
31
|
+
"vite": "^5.0.0"
|
|
32
|
+
}
|
|
33
33
|
}
|