@dazhicheng/ui 1.0.3
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 +32 -0
- package/dist/index.esm.d.ts +5777 -0
- package/dist/index.esm.js +30403 -0
- package/dist/style.css +1 -0
- package/package.json +50 -0
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# @dazhicheng/ui
|
|
2
|
+
|
|
3
|
+
TT Monorepo 的核心 UI 组件库,基于 Vue 3 + Element Plus 封装。
|
|
4
|
+
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @dazhicheng/ui
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## 使用
|
|
12
|
+
|
|
13
|
+
在 Vue 项目中引入:
|
|
14
|
+
|
|
15
|
+
```ts
|
|
16
|
+
import { createApp } from 'vue'
|
|
17
|
+
import App from './App.vue'
|
|
18
|
+
import MyUI from '@dazhicheng/ui'
|
|
19
|
+
import '@dazhicheng/ui/dist/style.css' // 如果有样式文件
|
|
20
|
+
|
|
21
|
+
const app = createApp(App)
|
|
22
|
+
app.use(MyUI)
|
|
23
|
+
app.mount('#app')
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## 构建
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
pnpm run build
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
产物为 ESM 格式,位于 `dist/index.esm.js`。
|