@openvort/vort-ui 1.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/LICENSE +21 -0
- package/README.md +173 -0
- package/dist/index-Ddtaz1Yl.js +3484 -0
- package/dist/index.d.ts +7003 -0
- package/dist/style.css +1 -0
- package/dist/vort-ui.es.js +27188 -0
- package/dist/vort-ui.umd.js +166 -0
- package/package.json +81 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Vortmall Team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
# @vortmall/ui
|
|
2
|
+
|
|
3
|
+
融合 Ant Design 5.x 精致视觉与 Element Plus 开发体验的企业级 Vue 3 组件库。
|
|
4
|
+
|
|
5
|
+
## 特性
|
|
6
|
+
|
|
7
|
+
- 🎨 **精致设计**:采用 Ant Design 5.x 设计规范和动效
|
|
8
|
+
- 🚀 **开发友好**:Element Plus 风格的 API 设计
|
|
9
|
+
- 📦 **50+ 组件**:覆盖常见业务场景
|
|
10
|
+
- 🔧 **TypeScript**:完整的类型定义
|
|
11
|
+
- 🎯 **按需导入**:支持自动导入和 Tree Shaking
|
|
12
|
+
- 🌍 **国际化**:内置中英文支持
|
|
13
|
+
- 🎭 **主题定制**:基于 CSS 变量的主题系统
|
|
14
|
+
|
|
15
|
+
## 安装
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
# npm
|
|
19
|
+
npm install @vortmall/ui
|
|
20
|
+
|
|
21
|
+
# pnpm
|
|
22
|
+
pnpm add @vortmall/ui
|
|
23
|
+
|
|
24
|
+
# yarn
|
|
25
|
+
yarn add @vortmall/ui
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## 快速开始
|
|
29
|
+
|
|
30
|
+
### 完整引入
|
|
31
|
+
|
|
32
|
+
```typescript
|
|
33
|
+
// main.ts
|
|
34
|
+
import { createApp } from 'vue'
|
|
35
|
+
import VortUI from '@vortmall/ui'
|
|
36
|
+
import '@vortmall/ui/styles'
|
|
37
|
+
|
|
38
|
+
const app = createApp(App)
|
|
39
|
+
app.use(VortUI)
|
|
40
|
+
app.mount('#app')
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### 按需引入
|
|
44
|
+
|
|
45
|
+
```typescript
|
|
46
|
+
import { Button, Input } from '@vortmall/ui'
|
|
47
|
+
import '@vortmall/ui/styles'
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### 自动导入(推荐)
|
|
51
|
+
|
|
52
|
+
```typescript
|
|
53
|
+
// vite.config.ts
|
|
54
|
+
import Components from 'unplugin-vue-components/vite'
|
|
55
|
+
import { VortResolver } from '@vortmall/ui/resolver'
|
|
56
|
+
|
|
57
|
+
export default defineConfig({
|
|
58
|
+
plugins: [
|
|
59
|
+
Components({
|
|
60
|
+
resolvers: [VortResolver()]
|
|
61
|
+
})
|
|
62
|
+
]
|
|
63
|
+
})
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
然后在模板中直接使用:
|
|
67
|
+
|
|
68
|
+
```vue
|
|
69
|
+
<template>
|
|
70
|
+
<vort-button type="primary">按钮</vort-button>
|
|
71
|
+
<vort-input v-model="value" placeholder="请输入" />
|
|
72
|
+
</template>
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## 组件列表
|
|
76
|
+
|
|
77
|
+
### 通用
|
|
78
|
+
- Button 按钮
|
|
79
|
+
- Dropdown 下拉菜单
|
|
80
|
+
- Menu 导航菜单
|
|
81
|
+
- Divider 分割线
|
|
82
|
+
|
|
83
|
+
### 布局
|
|
84
|
+
- Card 卡片
|
|
85
|
+
- Grid 栅格
|
|
86
|
+
- Scrollbar 滚动条
|
|
87
|
+
- Anchor 锚点
|
|
88
|
+
|
|
89
|
+
### 数据录入
|
|
90
|
+
- Form 表单
|
|
91
|
+
- Input 输入框
|
|
92
|
+
- Select 选择器
|
|
93
|
+
- Checkbox 复选框
|
|
94
|
+
- Radio 单选框
|
|
95
|
+
- DatePicker 日期选择器
|
|
96
|
+
- Upload 上传
|
|
97
|
+
- ... 更多
|
|
98
|
+
|
|
99
|
+
### 数据展示
|
|
100
|
+
- Table 表格
|
|
101
|
+
- Pagination 分页
|
|
102
|
+
- Tabs 标签页
|
|
103
|
+
- Tag 标签
|
|
104
|
+
- ... 更多
|
|
105
|
+
|
|
106
|
+
### 反馈
|
|
107
|
+
- Dialog 对话框
|
|
108
|
+
- Drawer 抽屉
|
|
109
|
+
- Message 消息提示
|
|
110
|
+
- Notification 通知
|
|
111
|
+
- ... 更多
|
|
112
|
+
|
|
113
|
+
## 开发
|
|
114
|
+
|
|
115
|
+
### 同步组件
|
|
116
|
+
|
|
117
|
+
从 Vort-Admin 同步最新组件:
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
pnpm sync:components
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
从 Vort-Admin 同步演示页面:
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
pnpm sync:demo
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
同步所有:
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
pnpm sync:all
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### 本地开发
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
pnpm dev
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### 构建库
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
pnpm build:lib
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### 构建演示站
|
|
148
|
+
|
|
149
|
+
```bash
|
|
150
|
+
pnpm build:demo
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
### 发布到 npm
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
# 准备发布(同步、检查、构建)
|
|
157
|
+
pnpm publish:prepare
|
|
158
|
+
|
|
159
|
+
# 发布
|
|
160
|
+
npm publish --access public
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
## 浏览器支持
|
|
164
|
+
|
|
165
|
+
现代浏览器和 IE11+(需要 polyfills)
|
|
166
|
+
|
|
167
|
+
## 开源协议
|
|
168
|
+
|
|
169
|
+
MIT
|
|
170
|
+
|
|
171
|
+
## 贡献
|
|
172
|
+
|
|
173
|
+
欢迎提交 Issue 和 Pull Request!
|