Skip to content

Commit df00a11

Browse files
陈超涛gitee-org
authored andcommitted
!216 feat:组件库
Merge pull request !216 from chb/kyzx-2025
2 parents 4f51d7e + 1b640f8 commit df00a11

File tree

216 files changed

+44944
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

216 files changed

+44944
-0
lines changed

packages/inula2-ui2/README.en.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# inula2-ui
2+
3+
#### Description
4+
基于openInula2.0的UI组件库
5+
6+
#### Software Architecture
7+
Software architecture description
8+
9+
#### Installation
10+
11+
1. xxxx
12+
2. xxxx
13+
3. xxxx
14+
15+
#### Instructions
16+
17+
1. xxxx
18+
2. xxxx
19+
3. xxxx
20+
21+
#### Contribution
22+
23+
1. Fork the repository
24+
2. Create Feat_xxx branch
25+
3. Commit your code
26+
4. Create Pull Request
27+
28+
29+
#### Gitee Feature
30+
31+
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
32+
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
33+
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
34+
4. The most valuable open source project [GVP](https://gitee.com/gvp)
35+
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
36+
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)

packages/inula2-ui2/README.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# openinula2.0 组件库
2+
3+
[![NPM version](https://img.shields.io/npm/v/inulaUI.svg?style=flat)](https://npmjs.org/package/inulaUI)
4+
[![NPM downloads](http://img.shields.io/npm/dm/inulaUI.svg?style=flat)](https://npmjs.org/package/inulaUI)
5+
6+
## 项目简介
7+
openinula2.0 组件库是基于 [openinula](https://github.com/openinula/openinula) 的现代化 React UI 组件库,包含丰富的基础组件,适用于企业级中后台和移动端应用开发。组件库采用现代化设计风格,支持亮暗主题切换,具备良好的可扩展性和易用性。
8+
9+
## 开发说明
10+
进入library目录
11+
```bash
12+
npm install
13+
npm run dev
14+
```
15+
组件统一小写并放在components目录下,目录结构为(以Button组件为例):
16+
17+
```
18+
button/
19+
├── demos/ # 按钮示例(不同功能的放不同文件)
20+
├── demo.jsx # 按钮示例整体文件
21+
├── index.jsx # 按钮组件
22+
└── index.css # 按钮样式
23+
```
24+
25+
26+
## 目录结构
27+
28+
```
29+
openInula2.0_Library/
30+
├── inulaUI/ # 组件库主包
31+
│ ├── docs/ # 文档与指南
32+
│ ├── src/ # 组件源码
33+
│ │ ├── button/ # 按钮组件
34+
│ │ │ ├── demos/ # 按钮组件演示
35+
│ │ │ ├── index.jsx # 按钮组件实现
36+
│ │ │ ├── index.md # 按钮组件文档
37+
│ │ │ └── index.css # 按钮样式
38+
│ │ ├── index.ts # 入口文件
39+
│ │ └── global.d.ts # 全局类型声明
40+
│ ├── package.json # 组件库包配置
41+
│ └── ...
42+
├── library_code/ # 组件库演示/测试项目
43+
│ ├── src/
44+
│ │ ├── components/
45+
│ │ │ └── button/
46+
│ │ │ ├── demos/ # 按钮演示
47+
│ │ │ ├── demo.jsx
48+
│ │ │ ├── index.jsx
49+
│ │ │ └── index.css
50+
│ │ ├── index.jsx # 入口
51+
│ │ └── index.css
52+
│ ├── index.html
53+
│ └── ...
54+
└── README.md # 项目说明文档
55+
```
56+
57+
## 贡献指南
58+
1. Fork 本仓库并创建分支。
59+
2. 提交代码前请确保通过 lint 检查和单元测试。
60+
3. 提交 PR 时请详细描述变更内容。
61+
4. 欢迎补充文档、修复 bug 或新增组件。
62+
63+
64+
## License
65+
MIT
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
import { defineConfig } from 'dumi';
2+
export default defineConfig({
3+
outputPath: 'docs-dist',
4+
themeConfig: ({
5+
name: 'InulaUI',
6+
nav: [
7+
{
8+
title: '指南',
9+
link: '/guide',
10+
},
11+
{
12+
title: '组件',
13+
link: '/components/button',
14+
},
15+
{
16+
title: '更新日志',
17+
link: '/changelog',
18+
},
19+
{
20+
title: '贡献指南',
21+
link: '/contributing',
22+
},
23+
],
24+
sidebar: {
25+
'/components': [
26+
{
27+
title: '通用',
28+
children: [
29+
{ title: 'Button 按钮', link: '/components/button' },
30+
{ title: 'Icon 图标', link: '/components/icon' },
31+
],
32+
},
33+
{
34+
title: '导航',
35+
children: [
36+
{ title: 'Tabs 标签页', link: '/components/tabs' },
37+
],
38+
},
39+
{
40+
title: '数据录入',
41+
children: [
42+
{ title: 'Checkbox 多选框', link: '/components/checkbox' },
43+
{ title: 'DataPicker 日期选择器', link: '/components/datapicker' },
44+
{ title: 'Form 表单', link: '/components/form' },
45+
{ title: 'Input 输入框', link: '/components/input' },
46+
{ title: 'Radio 单选框', link: '/components/radio' },
47+
{ title: 'Select 选择器', link: '/components/select' },
48+
{ title: 'Switch 开关', link: '/components/switch' },
49+
],
50+
},
51+
{
52+
title: '数据展示',
53+
children: [
54+
{ title: 'Card 卡片', link: '/components/card' },
55+
{ title: 'Tooltip 文字提示', link: '/components/tooltip' },
56+
{ title: 'Tag 标签', link: '/components/tag' },
57+
{ title: 'Tree 树形控件', link: '/components/tree' },
58+
],
59+
},
60+
{
61+
title: '反馈',
62+
children: [
63+
{ title: 'Modal 对话框', link: '/components/dialog' },
64+
{ title: 'Spin 加载中', link: '/components/spin' },
65+
{ title: 'Notification 通知提示框', link: '/components/notification' },
66+
],
67+
},
68+
],
69+
},
70+
}),
71+
});
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
extends: require.resolve('@umijs/lint/dist/config/eslint'),
3+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { defineConfig } from 'father';
2+
3+
export default defineConfig({
4+
// more father config: https://github.com/umijs/father/blob/master/docs/config.md
5+
esm: { output: 'dist' },
6+
});
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
/dist
3+
.dumi/tmp
4+
.dumi/tmp-test
5+
.dumi/tmp-production
6+
.DS_Store
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/dist
2+
*.yaml
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
module.exports = {
2+
pluginSearchDirs: false,
3+
plugins: [
4+
require.resolve('prettier-plugin-organize-imports'),
5+
require.resolve('prettier-plugin-packagejson'),
6+
],
7+
printWidth: 80,
8+
proseWrap: 'never',
9+
singleQuote: true,
10+
trailingComma: 'all',
11+
overrides: [
12+
{
13+
files: '*.md',
14+
options: {
15+
proseWrap: 'preserve',
16+
},
17+
},
18+
],
19+
};
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "@umijs/lint/dist/config/stylelint"
3+
}

0 commit comments

Comments
 (0)