gy-ui-plus 1.0.9 → 1.0.10

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/package.json CHANGED
@@ -1,28 +1,29 @@
1
1
  {
2
2
  "name": "gy-ui-plus",
3
+ "version": "1.0.10",
3
4
  "publishConfig": {
4
5
  "access": "public"
5
6
  },
6
7
  "author": "zyj",
7
8
  "license": "MIT",
8
- "version": "1.0.9",
9
9
  "private": false,
10
10
  "type": "module",
11
- "main": "dist/gy-ui-plus.umd.js",
12
- "module": "dist/gy-ui-plus.es.js",
13
- "types": "dist/index.d.ts",
11
+ "main": "../dist/gy-ui-plus.umd.js",
12
+ "module": "../dist/gy-ui-plus.es.js",
13
+ "types": "../dist/index.d.ts",
14
14
  "exports": {
15
15
  ".": {
16
- "import": "./dist/gy-ui-plus.es.js",
17
- "require": "./dist/gy-ui-plus.umd.js"
16
+ "types": "../dist/index.d.ts",
17
+ "import": "../dist/gy-ui-plus.es.js",
18
+ "require": "../dist/gy-ui-plus.umd.js"
18
19
  },
19
- "./style.css": "./dist/style.css"
20
+ "./style.css": "../dist/style.css"
20
21
  },
21
22
  "files": [
22
- "dist",
23
- "packages",
24
- "README.md",
25
- "LICENSE"
23
+ "../dist",
24
+ "../packages",
25
+ "../README.md",
26
+ "../LICENSE"
26
27
  ],
27
28
  "keywords": [
28
29
  "element-plus",
@@ -35,23 +36,16 @@
35
36
  "engines": {
36
37
  "node": "^20.19.0 || >=22.12.0"
37
38
  },
38
- "scripts": {
39
- "lib": "vite build",
40
- "deploy": "deploy.sh",
41
- "docs:dev": "vitepress dev docs",
42
- "docs:build": "vitepress build docs",
43
- "docs:preview": "vitepress preview docs",
44
- "type-check": "vue-tsc --build",
45
- "lint:oxlint": "oxlint . --fix -D correctness --ignore-path .gitignore",
46
- "lint:eslint": "eslint . --fix --cache",
47
- "lint": "run-s lint:*",
48
- "format": "prettier --write --experimental-cli src/"
49
- },
50
39
  "dependencies": {
51
40
  "axios": "^1.13.2",
52
41
  "element-plus": "^2.13.1",
53
42
  "sortablejs": "1.15.0",
54
- "vue-router": "^4.6.3"
43
+ "vue": "^3.5.27",
44
+ "vue-router": "^4.6.3",
45
+ "@gy-ui-plus/button": "1.0.10",
46
+ "@gy-ui-plus/table": "1.0.10",
47
+ "@gy-ui-plus/core": "1.0.10",
48
+ "@gy-ui-plus/layout-page": "1.0.10"
55
49
  },
56
50
  "devDependencies": {
57
51
  "@prettier/plugin-oxc": "^0.0.5",
@@ -75,8 +69,9 @@
75
69
  "vite-plugin-dts": "^3.0.0",
76
70
  "vite-plugin-vue-devtools": "^8.0.5",
77
71
  "vite-plugin-vue-setup-extend": "^0.4.0",
78
- "vitepress": "^1.6.4",
79
- "vue": "^3.5.27",
80
72
  "vue-tsc": "^3.1.5"
73
+ },
74
+ "scripts": {
75
+ "build": "vite build"
81
76
  }
82
- }
77
+ }
package/README.md DELETED
@@ -1,211 +0,0 @@
1
- # gy-ui-plus
2
-
3
- 一个基于 Vue 3 + Element Plus 二次封装的企业级 UI 组件库,提供高质量的封装组件,帮助开发者快速构建复杂的前端应用。
4
-
5
- ## 特性
6
-
7
- - 基于 Vue 3 + TypeScript 开发,提供完整的类型定义
8
- - 基于 Element Plus 深度封装,保持良好兼容性
9
- - 支持按需引入,减小打包体积
10
- - 提供 LayoutPage、Table、Button 等常用业务组件
11
- - 内置虚拟滚动、列设置、单行编辑等高级功能
12
- - 完善的代码规范和自动化工具链
13
-
14
- ## 安装
15
-
16
- 使用 npm 或 yarn 安装:
17
-
18
- ```bash
19
- npm install gy-ui-plus
20
- # 或
21
- yarn add gy-ui-plus
22
- ```
23
-
24
- ## 快速开始
25
-
26
- ### 完整引入
27
-
28
- 在 main.ts 中引入组件库:
29
-
30
- ```typescript
31
- import { createApp } from 'vue'
32
- import App from './App.vue'
33
- import GyUiPlus from 'gy-ui-plus'
34
- import 'gy-ui-plus/dist/style.css'
35
-
36
- const app = createApp(App)
37
- app.use(GyUiPlus)
38
- app.mount('#app')
39
- ```
40
-
41
- ### 按需引入
42
-
43
- 可以单独引入需要的组件:
44
-
45
- ```typescript
46
- import { createApp } from 'vue'
47
- import App from './App.vue'
48
- import { GyButton, GyTable, GyLayoutPage } from 'gy-ui-plus'
49
- import 'gy-ui-plus/dist/style.css'
50
-
51
- const app = createApp(App)
52
- app.component('GyButton', GyButton)
53
- app.component('GyTable', GyTable)
54
- app.component('GyLayoutPage', GyLayoutPage)
55
- app.mount('#app')
56
- ```
57
-
58
- ## 组件列表
59
-
60
- ### GyLayoutPage
61
-
62
- 布局页面组件,提供标准的页面布局结构。
63
-
64
- ### GyTable
65
-
66
- 增强表格组件,支持:
67
-
68
- - 虚拟滚动(大数据量优化)
69
- - 列设置(显示/隐藏列)
70
- - 单行编辑
71
- - 自定义列渲染
72
- - 操作列配置
73
-
74
- ### GyButton
75
-
76
- 增强按钮组件,提供更多业务场景的按钮样式和功能。
77
-
78
- ## 开发
79
-
80
- ### 环境要求
81
-
82
- - Node.js >= 20.19.0
83
- - npm >= 10.0.0
84
-
85
- ### 安装依赖
86
-
87
- ```bash
88
- npm install
89
- ```
90
-
91
- ### 构建组件库
92
-
93
- ```bash
94
- npm run lib
95
- ```
96
-
97
- ### 代码检查和格式化
98
-
99
- ```bash
100
- # 运行所有检查
101
- npm run lint
102
-
103
- # 仅运行 ESLint
104
- npm run lint:eslint
105
-
106
- # 仅运行 Oxlint
107
- npm run lint:oxlint
108
-
109
- # 格式化代码
110
- npm run format
111
- ```
112
-
113
- ### 类型检查
114
-
115
- ```bash
116
- npm run type-check
117
- ```
118
-
119
- ### 文档开发
120
-
121
- ```bash
122
- # 启动文档开发服务器
123
- npm run docs:dev
124
-
125
- # 构建文档
126
- npm run docs:build
127
-
128
- # 预览构建后的文档
129
- npm run docs:preview
130
- ```
131
-
132
- ## 项目结构
133
-
134
- ```
135
- gy-ui-plus/
136
- ├── packages/ # 组件源码目录
137
- │ ├── index.ts # 组件库入口文件
138
- │ ├── withInstall.ts # 组件安装工具函数
139
- │ ├── button/ # 按钮组件
140
- │ │ ├── src/
141
- │ │ │ ├── index.vue # 组件实现
142
- │ │ │ └── type.ts # 类型定义
143
- │ │ └── index.ts # 组件导出
144
- │ ├── table/ # 增强表格组件
145
- │ │ ├── src/
146
- │ │ │ ├── index.vue # 主组件
147
- │ │ │ ├── ColumnSet.vue # 列设置组件
148
- │ │ │ ├── GyTableColumn.vue # 表格列组件
149
- │ │ │ ├── operator.vue # 操作列组件
150
- │ │ │ ├── renderCol.vue # 列渲染组件
151
- │ │ │ ├── renderHeader.vue # 表头渲染组件
152
- │ │ │ ├── singleEdit.vue # 单行编辑组件
153
- │ │ │ ├── singleEditCell.vue # 单元格编辑组件
154
- │ │ │ ├── tableProps.ts # 表格属性类型定义
155
- │ │ │ ├── useExpose.ts # 组件暴露方法
156
- │ │ │ └── useVirtualized.ts # 虚拟滚动逻辑
157
- │ │ ├── style/
158
- │ │ │ ├── index.ts # 样式导出
159
- │ │ │ └── table.scss # 表格样式
160
- │ │ └── index.ts # 组件导出
161
- │ └── layout-page/ # 布局页面组件
162
- │ ├── src/
163
- │ │ └── index.vue # 组件实现
164
- │ ├── style/
165
- │ │ ├── index.ts # 样式导出
166
- │ │ └── layout-page.scss # 布局样式
167
- │ └── index.ts # 组件导出
168
- ├── typings/ # 全局类型定义
169
- │ ├── env.d.ts # 环境变量类型
170
- │ └── index.d.ts # 主类型定义
171
- ├── public/ # 静态资源目录
172
- ├── .editorconfig # 编辑器配置
173
- ├── .gitattributes # Git 属性配置
174
- ├── .gitignore # Git 忽略文件
175
- ├── .prettierignore # Prettier 忽略文件
176
- ├── .prettierrc.json # Prettier 配置
177
- ├── deploy.yml # 部署配置文件
178
- ├── eslint.config.ts # ESLint 配置
179
- ├── index.html # HTML 入口文件
180
- ├── package.json # 项目配置和依赖
181
- ├── README.md # 项目说明文档
182
- ├── tsconfig.app.json # 应用 TypeScript 配置
183
- ├── tsconfig.json # 主 TypeScript 配置
184
- ├── tsconfig.node.json # Node.js TypeScript 配置
185
- └── vite.config.ts # Vite 构建配置
186
- ```
187
-
188
- ## 技术栈
189
-
190
- - **框架**: Vue 3
191
- - **UI 基础**: Element Plus
192
- - **构建工具**: Vite
193
- - **语言**: TypeScript
194
- - **样式**: SCSS
195
- - **代码规范**: ESLint + Prettier + Oxlint
196
-
197
- ## 许可证
198
-
199
- MIT License
200
-
201
- ## 贡献
202
-
203
- 欢迎提交 Issue 和 Pull Request 来帮助改进这个项目!
204
-
205
- ## 联系方式
206
-
207
- - GitHub Issues: https://github.com/SKYE-iiii/gy-ui-plus/issues
208
-
209
- ---
210
-
211
- 感谢使用 gy-ui-plus!
package/dist/favicon.ico DELETED
Binary file