@kordar/easyui-tpl 1.0.19 → 2.0.1
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/README.md +56 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -0
- package/dist/index.min.css +1 -1
- package/dist/index.umd.cjs +2 -1
- package/dist/index.umd.cjs.map +1 -0
- package/dist/types/components/LayoutContext.d.ts +1 -1
- package/dist/types/components/tips/Tooltip.d.ts +13 -6
- package/dist/types/composable/useMenuAndTabData.d.ts +2 -2
- package/dist/types/hoc/withDocHoc.d.ts +1 -2
- package/dist/types/util/tables.d.ts +3 -4
- package/dist/types/views/admin/index.d.ts +1 -2
- package/dist/types/views/dict/index.d.ts +1 -2
- package/dist/types/views/dict-item/index.d.ts +1 -2
- package/dist/types/views/login/index.d.ts +1 -2
- package/dist/types/views/permissions/index.d.ts +1 -2
- package/dist/types/views/roles/index.d.ts +1 -2
- package/dist/types/views/router/index.d.ts +1 -2
- package/dist/types/views/setting/index.d.ts +1 -2
- package/package.json +45 -76
- package/dist/public/en.json +0 -5
- package/dist/public/zh_CN.json +0 -280
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { AppDispatch, RootState } from "@kordar-lib/reducers";
|
|
3
3
|
import { TypedUseSelectorHook } from "react-redux";
|
|
4
|
-
import { Location } from "
|
|
4
|
+
import { Location } from "react-router-dom";
|
|
5
5
|
export interface AppLayoutContextDefine {
|
|
6
6
|
dispatch?: AppDispatch;
|
|
7
7
|
useAppSelector?: TypedUseSelectorHook<RootState>;
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
import { FC } from "react";
|
|
2
|
-
|
|
3
|
-
type
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { FC, ReactNode } from "react";
|
|
2
|
+
type Position = "top" | "bottom" | "left" | "right";
|
|
3
|
+
type Theme = "dark" | "light";
|
|
4
|
+
type Trigger = "hover" | "click" | "focus";
|
|
5
|
+
interface EasyUITooltipProps {
|
|
6
|
+
text: ReactNode;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
position?: Position;
|
|
9
|
+
trigger?: Trigger;
|
|
10
|
+
delay?: number;
|
|
7
11
|
maxWidth?: number;
|
|
12
|
+
theme?: Theme;
|
|
13
|
+
followMouse?: boolean;
|
|
14
|
+
autoFlip?: boolean;
|
|
8
15
|
}
|
|
9
16
|
export declare const EasyUITooltip: FC<EasyUITooltipProps>;
|
|
10
17
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SideBarItem, TabMenuService } from "@kordar-lib/menus";
|
|
2
2
|
export default function (menuservice: TabMenuService<number>): {
|
|
3
|
-
collapsed:
|
|
3
|
+
collapsed: boolean;
|
|
4
4
|
menuList: SideBarItem<number>[] | {
|
|
5
5
|
id: number;
|
|
6
6
|
text: string;
|
|
@@ -11,7 +11,7 @@ export default function (menuservice: TabMenuService<number>): {
|
|
|
11
11
|
onMenuSelection: (selection: any) => void;
|
|
12
12
|
menuArea: any;
|
|
13
13
|
setMenuAreaId: import("react").Dispatch<import("react").SetStateAction<number | undefined>>;
|
|
14
|
-
choiceId:
|
|
14
|
+
choiceId: string | number;
|
|
15
15
|
menuTabList: any[];
|
|
16
16
|
onTabClosed: (removeE: any) => void;
|
|
17
17
|
onTabSelected: (selection: any) => void;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { DocHocProps } from "../util/interface";
|
|
3
|
-
declare const _default: (p: DocHocProps) => (WrappedComponent: any) => (props: any) =>
|
|
2
|
+
declare const _default: (p: DocHocProps) => (WrappedComponent: any) => (props: any) => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export default _default;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const renderType: () => React.JSX.Element;
|
|
1
|
+
export declare const renderTooltip: ({ value }: any) => import("react/jsx-runtime").JSX.Element | "";
|
|
2
|
+
export declare const renderType: () => import("react/jsx-runtime").JSX.Element;
|
|
4
3
|
export declare const renderDateTime02: ({ value }: any) => any;
|
|
5
|
-
export declare const renderText: (text: string, icon?: string) =>
|
|
4
|
+
export declare const renderText: (text: string, icon?: string) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
export declare const renderFetchConfigValue: (fetchConfig: any, key: string, value: any, defaultValue?: any) => any;
|
package/package.json
CHANGED
|
@@ -1,76 +1,45 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@kordar/easyui-tpl",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"@kordar-
|
|
16
|
-
"@kordar-lib/
|
|
17
|
-
"@kordar-
|
|
18
|
-
"@
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"react
|
|
38
|
-
"react
|
|
39
|
-
"react-
|
|
40
|
-
"react
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"@babel/core": "^7.26.0",
|
|
47
|
-
"@babel/preset-env": "^7.26.0",
|
|
48
|
-
"@babel/preset-react": "^7.16.7",
|
|
49
|
-
"@babel/preset-typescript": "^7.26.0",
|
|
50
|
-
"@rollup/plugin-babel": "^6.0.4",
|
|
51
|
-
"@rollup/plugin-commonjs": "^28.0.2",
|
|
52
|
-
"@rollup/plugin-image": "^3.0.3",
|
|
53
|
-
"@rollup/plugin-json": "^6.1.0",
|
|
54
|
-
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
55
|
-
"@rollup/plugin-typescript": "^12.1.2",
|
|
56
|
-
"@types/react": "^19.0.2",
|
|
57
|
-
"@types/react-dom": "^19.0.2",
|
|
58
|
-
"@vitejs/plugin-react": "^4.0.0-beta.0",
|
|
59
|
-
"postcss-url": "^10.1.3",
|
|
60
|
-
"rollup": "^4.29.1",
|
|
61
|
-
"rollup-plugin-clear": "^2.0.7",
|
|
62
|
-
"rollup-plugin-copy": "^3.5.0",
|
|
63
|
-
"rollup-plugin-postcss": "^4.0.2",
|
|
64
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
65
|
-
"rollup-plugin-url": "^3.0.1",
|
|
66
|
-
"rollup-plugin-visualizer": "^5.13.1",
|
|
67
|
-
"sass": "^1.83.0",
|
|
68
|
-
"styled-jsx": "^5.1.6",
|
|
69
|
-
"tslib": "^2.8.1",
|
|
70
|
-
"typescript": "^5.1.6",
|
|
71
|
-
"vite": "^6.0.6"
|
|
72
|
-
},
|
|
73
|
-
"files": [
|
|
74
|
-
"dist"
|
|
75
|
-
]
|
|
76
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@kordar/easyui-tpl",
|
|
3
|
+
"version": "2.0.1",
|
|
4
|
+
"main": "dist/index.umd.cjs",
|
|
5
|
+
"module": "dist/index.js",
|
|
6
|
+
"types": "dist/types/index.d.ts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "rollup -c",
|
|
10
|
+
"dev": "vite",
|
|
11
|
+
"test": "jest"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@kordar/easyui": "^2.0.0",
|
|
15
|
+
"@kordar-lib/i18n": "^2.0.1",
|
|
16
|
+
"@kordar-lib/reducers": "^2.0.1",
|
|
17
|
+
"@kordar/easyui-datepicker": "^2.0.0",
|
|
18
|
+
"@reduxjs/toolkit": "^2.5.0",
|
|
19
|
+
"axios": "^1.8.3",
|
|
20
|
+
"flatpickr": "^4.6.13",
|
|
21
|
+
"i18next": "^23.2.3",
|
|
22
|
+
"lodash-es": "^4.17.21",
|
|
23
|
+
"moment": "^2.30.1",
|
|
24
|
+
"rc-drawer": "^6.1.5",
|
|
25
|
+
"rc-easyui": "^1.2.9",
|
|
26
|
+
"react": "^18.2.0",
|
|
27
|
+
"react-dnd": "^16.0.1",
|
|
28
|
+
"react-dnd-html5-backend": "^16.0.1",
|
|
29
|
+
"react-dom": "^18.2.0",
|
|
30
|
+
"react-i18next": "^13",
|
|
31
|
+
"react-router": "^7.3.0",
|
|
32
|
+
"react-redux": "^9.2.0",
|
|
33
|
+
"react-router-dom": "^7.3.0",
|
|
34
|
+
"redux-persist": "^6.0.0"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@babel/preset-react": "^7.28.5",
|
|
38
|
+
"@types/react": "^19.2.14",
|
|
39
|
+
"@types/react-dom": "^19.2.3",
|
|
40
|
+
"@vitejs/plugin-react": "^4.7.0"
|
|
41
|
+
},
|
|
42
|
+
"files": [
|
|
43
|
+
"dist"
|
|
44
|
+
]
|
|
45
|
+
}
|
package/dist/public/en.json
DELETED
package/dist/public/zh_CN.json
DELETED
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Page": {
|
|
3
|
-
"Dict": {
|
|
4
|
-
"title": "字典管理",
|
|
5
|
-
"params": {
|
|
6
|
-
"add": {
|
|
7
|
-
"text": "新增字典"
|
|
8
|
-
},
|
|
9
|
-
"update": {
|
|
10
|
-
"text": "更新字典【{#name}】"
|
|
11
|
-
},
|
|
12
|
-
"item_list": {
|
|
13
|
-
"text": "字典项",
|
|
14
|
-
"title": "字典项列表【{#name}】"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"fields": {
|
|
18
|
-
"name": {
|
|
19
|
-
"placeholder": "",
|
|
20
|
-
"label": "字典名称"
|
|
21
|
-
},
|
|
22
|
-
"sign": {
|
|
23
|
-
"placeholder": "",
|
|
24
|
-
"label": "字典标识符"
|
|
25
|
-
},
|
|
26
|
-
"remark": {
|
|
27
|
-
"placeholder": "",
|
|
28
|
-
"label": "备注"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"DictItem": {
|
|
33
|
-
"params": {},
|
|
34
|
-
"fields": {
|
|
35
|
-
"label": {
|
|
36
|
-
"placeholder": "",
|
|
37
|
-
"label": "字典项"
|
|
38
|
-
},
|
|
39
|
-
"value": {
|
|
40
|
-
"placeholder": "",
|
|
41
|
-
"label": "值"
|
|
42
|
-
},
|
|
43
|
-
"data": {
|
|
44
|
-
"placeholder": "",
|
|
45
|
-
"label": "数据"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"Login": {
|
|
50
|
-
"title": "后台管理系统",
|
|
51
|
-
"params": {
|
|
52
|
-
"submit": {
|
|
53
|
-
"text": "登录"
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
"fields": {
|
|
57
|
-
"username": {
|
|
58
|
-
"placeholder": "请输入用户名",
|
|
59
|
-
"icon": "icon-username2"
|
|
60
|
-
},
|
|
61
|
-
"password": {
|
|
62
|
-
"placeholder": "请输入密码"
|
|
63
|
-
},
|
|
64
|
-
"code": {
|
|
65
|
-
"placeholder": "验证码"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
"Admin": {
|
|
70
|
-
"fields": {
|
|
71
|
-
"id": {
|
|
72
|
-
"label": "用户ID"
|
|
73
|
-
},
|
|
74
|
-
"username": {
|
|
75
|
-
"label": "账号"
|
|
76
|
-
},
|
|
77
|
-
"name": {
|
|
78
|
-
"label": "用户名"
|
|
79
|
-
},
|
|
80
|
-
"phone": {
|
|
81
|
-
"label": "手机号"
|
|
82
|
-
},
|
|
83
|
-
"status": {
|
|
84
|
-
"label": "状态"
|
|
85
|
-
},
|
|
86
|
-
"type": {
|
|
87
|
-
"label": "类型"
|
|
88
|
-
},
|
|
89
|
-
"version": {
|
|
90
|
-
"label": "版本"
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
"params": {
|
|
94
|
-
"update": {
|
|
95
|
-
"text": "更新用户【{#name}】"
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
"Setting": {
|
|
100
|
-
"fields": {
|
|
101
|
-
"title": {
|
|
102
|
-
"label": "标题",
|
|
103
|
-
"placeholder": "请填写项目名称"
|
|
104
|
-
},
|
|
105
|
-
"icon": {
|
|
106
|
-
"label": "图标",
|
|
107
|
-
"placeholder": "请选择图标"
|
|
108
|
-
},
|
|
109
|
-
"active": {
|
|
110
|
-
"label": "状态"
|
|
111
|
-
},
|
|
112
|
-
"type": {
|
|
113
|
-
"label": "类型"
|
|
114
|
-
},
|
|
115
|
-
"position": {
|
|
116
|
-
"label": "位置"
|
|
117
|
-
},
|
|
118
|
-
"router_name": {
|
|
119
|
-
"label": "路由",
|
|
120
|
-
"placeholder": "请选择路由"
|
|
121
|
-
},
|
|
122
|
-
"url": {
|
|
123
|
-
"label": "URL",
|
|
124
|
-
"placeholder": ""
|
|
125
|
-
},
|
|
126
|
-
"pid": {
|
|
127
|
-
"label": "上级栏目"
|
|
128
|
-
},
|
|
129
|
-
"sort": {
|
|
130
|
-
"label": "排序"
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
"params": {
|
|
134
|
-
"none_parent": "无",
|
|
135
|
-
"router_title": "路由列表"
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
"Router": {
|
|
139
|
-
"fields": {
|
|
140
|
-
"name": {
|
|
141
|
-
"label": "路由名称",
|
|
142
|
-
"placeholder": "请填写路由名称"
|
|
143
|
-
},
|
|
144
|
-
"url": {
|
|
145
|
-
"label": "URL",
|
|
146
|
-
"placeholder": "请输入/选择URL"
|
|
147
|
-
},
|
|
148
|
-
"type": {
|
|
149
|
-
"label": "路由类型"
|
|
150
|
-
},
|
|
151
|
-
"data": {
|
|
152
|
-
"label": "扩展数据"
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
"params": {
|
|
156
|
-
"update": {
|
|
157
|
-
"text": "更新路由: {#name}"
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
},
|
|
161
|
-
"Roles": {
|
|
162
|
-
"fields": {
|
|
163
|
-
"name": {
|
|
164
|
-
"label": "角色名称",
|
|
165
|
-
"placeholder": "请填写角色名称"
|
|
166
|
-
},
|
|
167
|
-
"type": {
|
|
168
|
-
"label": "类型"
|
|
169
|
-
},
|
|
170
|
-
"rule_name": {
|
|
171
|
-
"label": "规则"
|
|
172
|
-
},
|
|
173
|
-
"description": {
|
|
174
|
-
"label": "描述",
|
|
175
|
-
"placeholder": "请输入描述信息"
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
"params": {
|
|
179
|
-
"assign_role_list": {
|
|
180
|
-
"text": "分配所属角色"
|
|
181
|
-
},
|
|
182
|
-
"assign_permission": {
|
|
183
|
-
"text": "权限划分【{#name}】"
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
},
|
|
187
|
-
"Permissions": {
|
|
188
|
-
"fields": {
|
|
189
|
-
"name": {
|
|
190
|
-
"label": "权限名称",
|
|
191
|
-
"placeholder": "请填写权限名称"
|
|
192
|
-
},
|
|
193
|
-
"type": {
|
|
194
|
-
"label": "类型"
|
|
195
|
-
},
|
|
196
|
-
"rule_name": {
|
|
197
|
-
"label": "规则"
|
|
198
|
-
},
|
|
199
|
-
"description": {
|
|
200
|
-
"label": "描述",
|
|
201
|
-
"placeholder": "请输入描述信息"
|
|
202
|
-
},
|
|
203
|
-
"fast_add_resource": {
|
|
204
|
-
"label": "资源标识符",
|
|
205
|
-
"placeholder": "资源标识符"
|
|
206
|
-
},
|
|
207
|
-
"fast_add_name": {
|
|
208
|
-
"label": "资源描述",
|
|
209
|
-
"placeholder": "资源描述名称"
|
|
210
|
-
}
|
|
211
|
-
},
|
|
212
|
-
"params": {
|
|
213
|
-
"fast_add": {
|
|
214
|
-
"text": "快速生成权限"
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
"Common": {
|
|
219
|
-
"fields": {
|
|
220
|
-
"_serial": {
|
|
221
|
-
"label": "序号"
|
|
222
|
-
},
|
|
223
|
-
"create_time": {
|
|
224
|
-
"label": "创建时间"
|
|
225
|
-
},
|
|
226
|
-
"update_time": {
|
|
227
|
-
"label": "更新时间"
|
|
228
|
-
},
|
|
229
|
-
"sort": {
|
|
230
|
-
"label": "排序"
|
|
231
|
-
}
|
|
232
|
-
},
|
|
233
|
-
"params": {
|
|
234
|
-
"submit": {
|
|
235
|
-
"text": "提交"
|
|
236
|
-
},
|
|
237
|
-
"cancel": {
|
|
238
|
-
"text": "取消"
|
|
239
|
-
},
|
|
240
|
-
"save": {
|
|
241
|
-
"text": "保存"
|
|
242
|
-
},
|
|
243
|
-
"close": {
|
|
244
|
-
"text": "关闭"
|
|
245
|
-
},
|
|
246
|
-
"refresh": {
|
|
247
|
-
"text": "刷新"
|
|
248
|
-
},
|
|
249
|
-
"add": {
|
|
250
|
-
"text": "新增"
|
|
251
|
-
},
|
|
252
|
-
"update": {
|
|
253
|
-
"text": "更新"
|
|
254
|
-
},
|
|
255
|
-
"search": {
|
|
256
|
-
"text": "查询"
|
|
257
|
-
},
|
|
258
|
-
"batch_remove": {
|
|
259
|
-
"text": "批量删除"
|
|
260
|
-
},
|
|
261
|
-
"reset": {
|
|
262
|
-
"text": "重置"
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
},
|
|
267
|
-
"Message": {
|
|
268
|
-
"confirm_del_title": "警告",
|
|
269
|
-
"confirm_del_msg": "确定删除该记录?",
|
|
270
|
-
"checkbox_no_empty": "待操作的数据不能为空",
|
|
271
|
-
"save_success": "保存成功",
|
|
272
|
-
"edit_success": "编辑成功",
|
|
273
|
-
"del_success": "删除成功",
|
|
274
|
-
"update_success": "更新成功",
|
|
275
|
-
"confirm_logout": "确定退出该系统?"
|
|
276
|
-
},
|
|
277
|
-
"App": {
|
|
278
|
-
"title": "后台管理系统"
|
|
279
|
-
}
|
|
280
|
-
}
|