wtsk-comps 1.3.2 → 1.3.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 +45 -2
- package/package.json +3 -3
- /package/dist/{wtsk-comps.css → index.css} +0 -0
package/README.md
CHANGED
|
@@ -1,3 +1,46 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 一款基于Vue3+Element Plus的后台管理类基础组件库,包含表格、表单、按钮、树组件
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## 注意事项
|
|
4
|
+
- 项目需基于Vue3开发
|
|
5
|
+
- Node.js版本需≥ 20.0.0
|
|
6
|
+
|
|
7
|
+
## 使用方法
|
|
8
|
+
### 第一步:安装项目所需依赖(已有可忽略)
|
|
9
|
+
```bash
|
|
10
|
+
npm install sass -D
|
|
11
|
+
```
|
|
12
|
+
```bash
|
|
13
|
+
npm install element-plus --save
|
|
14
|
+
```
|
|
15
|
+
注意:element-plus版本需 ≥ 2.11.3
|
|
16
|
+
```bash
|
|
17
|
+
npm install @element-plus/icons-vue --save
|
|
18
|
+
```
|
|
19
|
+
```bash
|
|
20
|
+
npm install wtsk-comps --save
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### 第二步:全局引入组件及依赖
|
|
24
|
+
在main.js中引入wtsk-comps组件及相关依赖。
|
|
25
|
+
```javascript
|
|
26
|
+
import { createApp } from 'vue'
|
|
27
|
+
import App from './App.vue'
|
|
28
|
+
import ElementPlus from 'element-plus'
|
|
29
|
+
import 'element-plus/dist/index.css'
|
|
30
|
+
import WtskComps from 'wtsk-comps'
|
|
31
|
+
import 'wtsk-comps/dist/wtsk-comps.css'
|
|
32
|
+
|
|
33
|
+
const app = createApp(App)
|
|
34
|
+
app.use(ElementPlus).use(WtskComps).mount('#app')
|
|
35
|
+
```
|
|
36
|
+
注意:因组件是基于Element Plus已有组件进行的封装,所以使用时需全局引入element-plus。
|
|
37
|
+
|
|
38
|
+
### 第三步:项目中直接使用组件
|
|
39
|
+
在项目中直接使用wtsk-comps组件即可,目前支持(wtsk-btn/form/table/tree),使用方式见组件文档。
|
|
40
|
+
```vue
|
|
41
|
+
<template>
|
|
42
|
+
<div>
|
|
43
|
+
<wtsk-btn>默认按钮</wtsk-btn>
|
|
44
|
+
</div>
|
|
45
|
+
</template>
|
|
46
|
+
```
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wtsk-comps",
|
|
3
|
-
"version": "1.3.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.3.3",
|
|
4
|
+
"description": "一款基于Vue3+Element Plus的基础组件库(wtsk-btn/form/table/tree)",
|
|
5
5
|
"author": "lujh",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"keywords": ["wtsk-comps"],
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"main": "dist/wtsk-comps.cjs.js",
|
|
10
10
|
"module": "dist/wtsk-comps.es.js",
|
|
11
11
|
"unpkg": "dist/wtsk-comps.umd.js",
|
|
12
|
-
"style": "dist/
|
|
12
|
+
"style": "dist/index.css",
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
|
15
15
|
"import": "./dist/wtsk-comps.es.js",
|
|
File without changes
|