@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
package/README.md
CHANGED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# @kordar/easyui-tpl
|
|
2
|
+
|
|
3
|
+
基于 rc-easyui 和 @kordar 系列库的后台模板工程。内置布局、菜单/标签联动、权限与国际化示例,可作为业务项目的起步模板。
|
|
4
|
+
|
|
5
|
+
## 特性
|
|
6
|
+
- 布局:BaseLayout(头部工具区 + 侧边栏 + 标签页 + 内容区)
|
|
7
|
+
- 列表与表单:useLocalTable/useRemoteTable、PaginationPanel、通用表单工具
|
|
8
|
+
- 权限:基于 @kordar-lib/base 的权限校验与按钮显隐
|
|
9
|
+
- 国际化:@kordar-lib/i18n 集成 + 示例语言包(en/zh_CN)
|
|
10
|
+
- 示例路由:用户/角色/权限/字典/路由/设置等页面
|
|
11
|
+
|
|
12
|
+
## 安装
|
|
13
|
+
```bash
|
|
14
|
+
npm install
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## 开发
|
|
18
|
+
```bash
|
|
19
|
+
npm run -w @kordar/easyui-tpl dev
|
|
20
|
+
```
|
|
21
|
+
默认入口:/examples/main.tsx(Vite)
|
|
22
|
+
|
|
23
|
+
## 构建
|
|
24
|
+
```bash
|
|
25
|
+
npm run -w @kordar/easyui-tpl build
|
|
26
|
+
```
|
|
27
|
+
产物输出到 dist(包含 ESM、CJS 与 index.min.css)。
|
|
28
|
+
|
|
29
|
+
## 关键依赖(外部)
|
|
30
|
+
- React 生态:react、react-dom、react-router、react-router-dom、react-i18next
|
|
31
|
+
- UI:rc-easyui、rc-drawer、@kordar/easyui、@kordar/react-screen
|
|
32
|
+
- 工具:axios、lodash-es
|
|
33
|
+
- Kordar 库:@kordar-lib/base、common、crud、i18n、menus、reducers、request
|
|
34
|
+
|
|
35
|
+
## 样式
|
|
36
|
+
示例样式在 examples/example.scss 中已引入:
|
|
37
|
+
```scss
|
|
38
|
+
@import '@kordar-lib/iconfont/dist/index.min.css';
|
|
39
|
+
@import '@kordar/easyui/dist/index.min.css';
|
|
40
|
+
@import '@kordar/react-screen/dist/index.min.css';
|
|
41
|
+
```
|
|
42
|
+
index.html 会按本地持久化主题加载 rc-easyui 主题与 react.css。
|
|
43
|
+
|
|
44
|
+
## 初始化(示例)
|
|
45
|
+
examples/init.ts 展示了语言包与请求初始化的方式。你可以按需接入实际后端接口,完善登录、菜单、权限等配置。
|
|
46
|
+
|
|
47
|
+
## 目录
|
|
48
|
+
- src/components:基础组件(布局、工具条、提示等)
|
|
49
|
+
- src/composable:通用 Hook(启动器、表格、标签页联动等)
|
|
50
|
+
- src/service:Admin/Rbac/Resource 等服务封装
|
|
51
|
+
- src/views:页面示例(含搜索、表格、表单/对话框)
|
|
52
|
+
- examples:演示应用(路由、Store、入口)
|
|
53
|
+
|
|
54
|
+
## 许可证
|
|
55
|
+
MIT
|
|
56
|
+
|