gy-ui-plus 1.0.2 → 1.0.4
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 +115 -0
- package/dist/gy-ui-plus.css +1 -1
- package/dist/gy-ui-plus.es.js +140 -140
- package/dist/gy-ui-plus.umd.js +2 -2
- package/package.json +14 -2
- package/packages/{j-button → gy-button}/index.ts +2 -2
- package/packages/{j-table → gy-table}/index.ts +2 -2
- package/packages/index.ts +5 -5
- /package/packages/{j-button → gy-button}/src/index.vue +0 -0
- /package/packages/{j-table → gy-table}/src/ColumnSet.vue +0 -0
- /package/packages/{j-table → gy-table}/src/TTableColumn.vue +0 -0
- /package/packages/{j-table → gy-table}/src/index.vue +0 -0
- /package/packages/{j-table → gy-table}/src/operator.vue +0 -0
- /package/packages/{j-table → gy-table}/src/renderCol.vue +0 -0
- /package/packages/{j-table → gy-table}/src/renderHeader.vue +0 -0
- /package/packages/{j-table → gy-table}/src/singleEdit.vue +0 -0
- /package/packages/{j-table → gy-table}/src/singleEditCell.vue +0 -0
- /package/packages/{j-table → gy-table}/src/tableProps.ts +0 -0
- /package/packages/{j-table → gy-table}/src/useExpose.ts +0 -0
- /package/packages/{j-table → gy-table}/src/useVirtualized.ts +0 -0
- /package/packages/{j-table → gy-table}/style/table.scss +0 -0
package/README.md
CHANGED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
# gy-ui-plus
|
|
2
|
+
|
|
3
|
+
一个基于 Vue 3 开发的企业级 UI 组件库,提供丰富的组件和功能,帮助开发者快速构建高质量的前端应用。
|
|
4
|
+
|
|
5
|
+
## 特性
|
|
6
|
+
|
|
7
|
+
- 基于 Vue 3 + TypeScript 开发,提供完整的类型定义
|
|
8
|
+
- 组件设计遵循现代 UI/UX 设计理念
|
|
9
|
+
- 支持按需引入,减小打包体积
|
|
10
|
+
- 丰富的组件功能和配置选项
|
|
11
|
+
- 基于 Element Plus 扩展,保持良好的兼容性
|
|
12
|
+
|
|
13
|
+
## 安装
|
|
14
|
+
|
|
15
|
+
使用 npm 或 yarn 安装:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install gy-ui-plus
|
|
19
|
+
# 或
|
|
20
|
+
yarn add gy-ui-plus
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## 快速开始
|
|
24
|
+
|
|
25
|
+
### 完整引入
|
|
26
|
+
|
|
27
|
+
在 main.ts 中引入组件库及样式:
|
|
28
|
+
|
|
29
|
+
```typescript
|
|
30
|
+
import { createApp } from 'vue'
|
|
31
|
+
import App from './App.vue'
|
|
32
|
+
import GyUiPlus from 'gy-ui-plus'
|
|
33
|
+
import 'gy-ui-plus/dist/gy-ui-plus.css'
|
|
34
|
+
|
|
35
|
+
const app = createApp(App)
|
|
36
|
+
app.use(GyUiPlus)
|
|
37
|
+
app.mount('#app')
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### 按需引入
|
|
41
|
+
|
|
42
|
+
可以单独引入需要的组件:
|
|
43
|
+
|
|
44
|
+
```typescript
|
|
45
|
+
import { createApp } from 'vue'
|
|
46
|
+
import App from './App.vue'
|
|
47
|
+
import { JButton, JTable } from 'gy-ui-plus'
|
|
48
|
+
import 'gy-ui-plus/dist/gy-ui-plus.css'
|
|
49
|
+
|
|
50
|
+
const app = createApp(App)
|
|
51
|
+
app.component('JButton', JButton)
|
|
52
|
+
app.component('JTable', JTable)
|
|
53
|
+
app.mount('#app')
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## 组件文档
|
|
57
|
+
|
|
58
|
+
## 开发
|
|
59
|
+
|
|
60
|
+
### 环境要求
|
|
61
|
+
|
|
62
|
+
- Node.js >= 20.19.0
|
|
63
|
+
- npm >= 10.0.0
|
|
64
|
+
|
|
65
|
+
### 安装依赖
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
npm install
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### 启动开发服务器
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
npm run dev
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### 构建组件库
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
npm run lib
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## 项目结构
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
gy-ui-plus/
|
|
87
|
+
├── packages/ # 组件源码目录
|
|
88
|
+
│ ├── index.ts # 组件库入口
|
|
89
|
+
│ ├── withInstall.ts # 组件安装工具
|
|
90
|
+
│ ├── j-button/ # 按钮组件
|
|
91
|
+
│ └── j-table/ # 表格组件
|
|
92
|
+
├── dist/ # 构建输出目录
|
|
93
|
+
├── vite.config.ts # Vite 配置
|
|
94
|
+
├── tsconfig.json # TypeScript 配置
|
|
95
|
+
└── package.json # 项目配置
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## 许可证
|
|
99
|
+
|
|
100
|
+
MIT License
|
|
101
|
+
|
|
102
|
+
## 贡献
|
|
103
|
+
|
|
104
|
+
欢迎提交 Issue 和 Pull Request 来帮助改进这个项目!
|
|
105
|
+
|
|
106
|
+
## 联系方式
|
|
107
|
+
|
|
108
|
+
如有问题或建议,欢迎通过以下方式联系:
|
|
109
|
+
|
|
110
|
+
- GitHub Issues:
|
|
111
|
+
- Email: your.email@example.com
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
感谢使用 gy-ui-plus!
|
package/dist/gy-ui-plus.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.t-table[data-v-
|
|
1
|
+
@charset "UTF-8";.t-table[data-v-09defa6b]{z-index:0;background-color:var(--el-bg-color);margin-top:8px;flex:1 1 auto;min-height:0;overflow:hidden;box-sizing:border-box}.t-table .el-table__header-wrapper[data-v-09defa6b]{height:auto}.t-table .el-table__header-wrapper .el-table__header[data-v-09defa6b]{margin:0}.t-table .el-table__body-wrapper[data-v-09defa6b]{overflow:auto}.t-table .el-table__body-wrapper .el-table__body[data-v-09defa6b]{margin:0}.t-table .el-table[data-v-09defa6b]{height:100%}.t-table .el-table__inner-wrapper[data-v-09defa6b]{height:100%;display:flex;flex-direction:column;min-height:0}.t-table .el-table__header-wrapper[data-v-09defa6b]{flex:0 0 auto}.t-table .el-table__body-wrapper[data-v-09defa6b]{flex:1 1 auto;min-height:0;overflow:auto}.t-table .pagination_wrap[data-v-09defa6b]{width:100%;height:40px;background-color:#fff}.t-table .el-pagination[data-v-09defa6b]{display:flex;justify-content:flex-end;align-items:center;margin-top:10px}.t-table .el-table .el-tooltip div[data-v-09defa6b]{-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all}.t-table .el-table .el-tooltip .single_edit_cell[data-v-09defa6b]{overflow:visible;margin-bottom:0}.t-table .el-table .single_edit_cell[data-v-09defa6b]{cursor:pointer}.t-table .el-table .single_edit_cell .slot_edit_name[data-v-09defa6b]{width:100%}.t-table .multile_head_column .el-table__row .el-tooltip div[data-v-09defa6b],.t-table .el-table .cell div[data-v-09defa6b]{-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;word-break:break-all}.t-table .el-table .cell .single_edit_cell[data-v-09defa6b]{overflow:visible;margin-bottom:0}.t-table .el-table .cell .t_edit_cell_form_rules .single_edit_cell[data-v-09defa6b]{margin-bottom:15px}.t-table .el-table .cell .click_edit[data-v-09defa6b]{display:flex;align-items:center;line-height:1}.t-table .el-table .cell .click_edit .el-icon[data-v-09defa6b]{margin-left:2px}.t-table .el-table--border th:first-child .cell[data-v-09defa6b],.t-table .el-table--border td:first-child .cell[data-v-09defa6b]{padding-left:5px}.t-table .header_wrap[data-v-09defa6b]{display:flex;align-items:center}.t-table .header_wrap .toolbar_top[data-v-09defa6b]{flex:1;display:flex;align-items:center;justify-content:flex-end}.t-table .header_wrap .toolbar_top .toolbar[data-v-09defa6b]{display:flex;justify-content:flex-end;width:100%}.t-table .header_wrap .toolbar_top .el-button--small[data-v-09defa6b]{height:32px}.t-table .header_wrap .toolbar_top .el-button--success[data-v-09defa6b]{background-color:#355db4;border:1px solid #355db4}.t-table .header_wrap .header_title[data-v-09defa6b]{display:flex;align-items:center;flex:1;font-size:16px;font-weight:700;line-height:35px;margin-left:10px;color:var(--el-text-color-primary)}.t-table .title-tip[data-v-09defa6b]{display:flex;align-items:center;padding-left:10px;font-size:14px}.t-table .marginBttom[data-v-09defa6b]{margin-bottom:-8px}.t-table .radioStyle .el-radio .el-radio__label[data-v-09defa6b]{display:none}.t-table .radioStyle .el-radio:focus:not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner[data-v-09defa6b]{box-shadow:none}.t-table .radioStyle tbody .el-table__row[data-v-09defa6b],.t-table .cursor tbody .el-table__row[data-v-09defa6b]{cursor:pointer}.t-table .row_sort tbody .el-table__row[data-v-09defa6b]{cursor:move}.t-table .row_sort_none tbody .el-table__row[data-v-09defa6b]{cursor:default}.t-table .row_sort_none tbody .row_drag[data-v-09defa6b]{cursor:move}.t-table .tree_style .el-table__body-wrapper .el-table__body .cell[data-v-09defa6b]{display:flex;align-items:center}.t-table .tree_style .el-table__body-wrapper .el-table__body .cell .el-table__expand-icon[data-v-09defa6b]{display:flex;align-items:center;justify-content:center}.t-table .highlightCurrentRow .current-row[data-v-09defa6b]{cursor:pointer}.t-table .highlightCurrentRow .current-row>td.el-table__cell[data-v-09defa6b]{background-color:var(--el-table-current-row-bg-color)}.t-table .el-table--scrollable-y .el-table__body-wrapper[data-v-09defa6b]{overflow-x:auto}.t-table .handle_wrap[data-v-09defa6b]{position:sticky;z-index:10;right:0;bottom:-8px;margin:0 -8px -8px;padding:12px 16px;background-color:var(--el-bg-color);border-top:1px solid var(--el-table-border)}.t-table .handle_wrap .el-btn[data-v-09defa6b],.t-table .operator .operator_btn .oper_more_dropdown[data-v-09defa6b]{margin-left:8px}.column_set .title[data-v-09defa6b]{font-weight:700;font-size:14px;display:flex;justify-content:center;align-items:center;padding:10px 10px 0;color:var(--el-text-color-primary)}.column_set .el-dropdown-menu[data-v-09defa6b]{padding:0;font-size:14px}.column_set .el-dropdown-menu .el-dropdown-menu__item[data-v-09defa6b]{display:flex;flex-direction:column;align-items:flex-start;padding:0}.column_set .el-dropdown-menu .el-dropdown-menu__item .t_table_column_setting_dropdown[data-v-09defa6b]{display:flex;flex-direction:column;max-height:400px;overflow-y:auto;width:100%;padding:0 10px 0 12px;gap:10px}.column_set .el-dropdown-menu .el-dropdown-menu__item .t_table_column_setting_dropdown[data-v-09defa6b]:hover{background-color:transparent}.column_set .el-dropdown-menu .el-dropdown-menu__item .t_table_column_setting_dropdown .el-tree-node .el-tree-node__content[data-v-09defa6b]{padding:10px;cursor:default}.column_set .el-dropdown-menu .el-dropdown-menu__item .t_table_column_setting_dropdown .el-tree-node .el-tree-node__content[data-v-09defa6b]:hover{color:var(--el-color-primary)}.column_set .el-dropdown-menu .el-dropdown-menu__item .t_table_column_setting_dropdown .el-tree-node .el-tree-node__content .el-tree-node__expand-icon[data-v-09defa6b]{display:none}.column_set .el-dropdown-menu .el-dropdown-menu__item .t_table_column_setting_dropdown .el-tree-node .el-tree-node__content .el-tree-node__label[data-v-09defa6b]{display:inline-block;cursor:move;width:100%}.column_set .el-dropdown-menu .el-dropdown-menu__item[data-v-09defa6b]:not(.is-disabled):hover{background-color:transparent}.oper_more_dropdown_menu .el-dropdown-menu__item[data-v-09defa6b]{padding:5px 16px}
|