@kordar/easyui-tpl 1.0.18 → 2.0.0
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/form_dlg.d.ts +1 -1
- 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 +43 -76
- package/dist/public/en.json +0 -5
- package/dist/public/zh_CN.json +0 -138
|
@@ -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,43 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@kordar/easyui-tpl",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"@kordar-
|
|
16
|
-
"@
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"react": "^
|
|
36
|
-
"react
|
|
37
|
-
"react-
|
|
38
|
-
"react
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
},
|
|
45
|
-
"devDependencies": {
|
|
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.0",
|
|
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/easyui-datepicker": "^2.0.0",
|
|
16
|
+
"@reduxjs/toolkit": "^2.5.0",
|
|
17
|
+
"axios": "^1.8.3",
|
|
18
|
+
"flatpickr": "^4.6.13",
|
|
19
|
+
"i18next": "^23.2.3",
|
|
20
|
+
"lodash-es": "^4.17.21",
|
|
21
|
+
"moment": "^2.30.1",
|
|
22
|
+
"rc-drawer": "^6.1.5",
|
|
23
|
+
"rc-easyui": "^1.2.9",
|
|
24
|
+
"react": "^18.2.0",
|
|
25
|
+
"react-dnd": "^16.0.1",
|
|
26
|
+
"react-dnd-html5-backend": "^16.0.1",
|
|
27
|
+
"react-dom": "^18.2.0",
|
|
28
|
+
"react-i18next": "^15.4.0",
|
|
29
|
+
"react-router": "^7.3.0",
|
|
30
|
+
"react-redux": "^9.2.0",
|
|
31
|
+
"react-router-dom": "^7.3.0",
|
|
32
|
+
"redux-persist": "^6.0.0"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@babel/preset-react": "^7.28.5",
|
|
36
|
+
"@types/react": "^19.2.14",
|
|
37
|
+
"@types/react-dom": "^19.2.3",
|
|
38
|
+
"@vitejs/plugin-react": "^4.7.0"
|
|
39
|
+
},
|
|
40
|
+
"files": [
|
|
41
|
+
"dist"
|
|
42
|
+
]
|
|
43
|
+
}
|
package/dist/public/en.json
DELETED
package/dist/public/zh_CN.json
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"Page": {
|
|
3
|
-
"Dict": {
|
|
4
|
-
"title": "字典管理",
|
|
5
|
-
"params": {
|
|
6
|
-
"add": {"text": "新增字典"},
|
|
7
|
-
"update": {"text": "更新字典【{#name}】"},
|
|
8
|
-
"item_list": {"text": "字典项", "title": "字典项列表【{#name}】"}
|
|
9
|
-
},
|
|
10
|
-
"fields": {
|
|
11
|
-
"name": {"placeholder": "", "label": "字典名称"},
|
|
12
|
-
"sign": {"placeholder": "", "label": "字典标识符"},
|
|
13
|
-
"remark": {"placeholder": "", "label": "备注"}
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"DictItem": {
|
|
17
|
-
"params": {
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
"fields": {
|
|
21
|
-
"label": {"placeholder": "", "label": "字典项"},
|
|
22
|
-
"value": {"placeholder": "", "label": "值"},
|
|
23
|
-
"data": {"placeholder": "", "label": "数据"}
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"Login": {
|
|
27
|
-
"title": "后台管理系统",
|
|
28
|
-
"params": {
|
|
29
|
-
"submit": {"text": "登录"}
|
|
30
|
-
},
|
|
31
|
-
"fields": {
|
|
32
|
-
"username": {"placeholder": "请输入用户名", "icon": "icon-username2"},
|
|
33
|
-
"password": {"placeholder": "请输入密码"},
|
|
34
|
-
"code": {"placeholder": "验证码"}
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"Admin": {
|
|
38
|
-
"fields": {
|
|
39
|
-
"id": {"label": "用户ID"},
|
|
40
|
-
"username": {"label": "用户名"},
|
|
41
|
-
"phone": {"label": "手机号"},
|
|
42
|
-
"status": {"label": "状态"},
|
|
43
|
-
"type": {"label": "类型"},
|
|
44
|
-
"version": {"label": "版本"}
|
|
45
|
-
},
|
|
46
|
-
"params": {
|
|
47
|
-
"update": {"text": "更新用户【{#name}】"}
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
"Setting": {
|
|
51
|
-
"fields": {
|
|
52
|
-
"title": {"label": "标题", "placeholder": "请填写项目名称"},
|
|
53
|
-
"icon": {"label": "图标", "placeholder": "请选择图标"},
|
|
54
|
-
"active": {"label": "状态"},
|
|
55
|
-
"type": {"label": "类型"},
|
|
56
|
-
"position": {"label": "位置"},
|
|
57
|
-
"router_name": {"label": "路由", "placeholder": "请选择路由"},
|
|
58
|
-
"url": {"label": "URL", "placeholder": ""},
|
|
59
|
-
"pid": {"label": "上级栏目"},
|
|
60
|
-
"sort": {"label": "排序"}
|
|
61
|
-
},
|
|
62
|
-
"params": {
|
|
63
|
-
"none_parent": "无",
|
|
64
|
-
"router_title": "路由列表"
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
"Router": {
|
|
68
|
-
"fields": {
|
|
69
|
-
"name": {"label": "路由名称", "placeholder": "请填写路由名称"},
|
|
70
|
-
"url": {"label": "URL", "placeholder": "请输入/选择URL"},
|
|
71
|
-
"type": {"label": "路由类型"},
|
|
72
|
-
"data": {"label": "扩展数据"}
|
|
73
|
-
},
|
|
74
|
-
"params": {
|
|
75
|
-
"update": {"text": "更新路由: {#name}"}
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"Roles": {
|
|
79
|
-
"fields": {
|
|
80
|
-
"name": {"label": "角色名称", "placeholder": "请填写角色名称"},
|
|
81
|
-
"type": {"label": "类型"},
|
|
82
|
-
"rule_name": {"label": "规则"},
|
|
83
|
-
"description": {"label": "描述", "placeholder": "请输入描述信息"}
|
|
84
|
-
},
|
|
85
|
-
"params": {
|
|
86
|
-
"assign_role_list": {"text": "分配所属角色"},
|
|
87
|
-
"assign_permission": {"text": "权限划分【{#name}】"}
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
"Permissions": {
|
|
91
|
-
"fields": {
|
|
92
|
-
"name": {"label": "权限名称", "placeholder": "请填写权限名称"},
|
|
93
|
-
"type": {"label": "类型"},
|
|
94
|
-
"rule_name": {"label": "规则"},
|
|
95
|
-
"description": {"label": "描述", "placeholder": "请输入描述信息"},
|
|
96
|
-
"fast_add_resource": {"label": "资源标识符", "placeholder": "资源标识符"},
|
|
97
|
-
"fast_add_name": {"label": "资源描述", "placeholder": "资源描述名称"}
|
|
98
|
-
},
|
|
99
|
-
"params": {
|
|
100
|
-
"fast_add": {"text": "快速生成权限"}
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
"Common": {
|
|
104
|
-
"fields": {
|
|
105
|
-
"_serial": {"label": "序号"},
|
|
106
|
-
"create_time": {"label": "创建时间"},
|
|
107
|
-
"update_time": {"label": "更新时间"}
|
|
108
|
-
},
|
|
109
|
-
"params": {
|
|
110
|
-
"submit": {"text": "提交"},
|
|
111
|
-
"cancel": {"text": "取消"},
|
|
112
|
-
"save": {"text": "保存"},
|
|
113
|
-
"close": {"text": "关闭"},
|
|
114
|
-
"refresh": {"text": "刷新"},
|
|
115
|
-
"add": {"text": "新增"},
|
|
116
|
-
"update": {"text": "更新"},
|
|
117
|
-
"search": {"text": "查询"},
|
|
118
|
-
"batch_remove": { "text": "批量删除"},
|
|
119
|
-
"reset": {"text": "重置"}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
|
|
124
|
-
"Message": {
|
|
125
|
-
"confirm_del_title": "警告",
|
|
126
|
-
"confirm_del_msg": "确定删除该记录?",
|
|
127
|
-
"checkbox_no_empty": "待操作的数据不能为空",
|
|
128
|
-
"save_success": "保存成功",
|
|
129
|
-
"edit_success": "编辑成功",
|
|
130
|
-
"del_success": "删除成功",
|
|
131
|
-
"update_success": "更新成功",
|
|
132
|
-
"confirm_logout": "确定退出该系统?"
|
|
133
|
-
},
|
|
134
|
-
|
|
135
|
-
"App": {
|
|
136
|
-
"title": "后台管理系统"
|
|
137
|
-
}
|
|
138
|
-
}
|