wtsk-comps 1.3.1 → 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 CHANGED
@@ -1,3 +1,46 @@
1
- # Vue 3 + Element Plus
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,19 +1,15 @@
1
1
  {
2
2
  "name": "wtsk-comps",
3
- "version": "1.3.1",
4
- "description": "Vue3+Element Plus基础组件库(wtsk-btn/form/table/tree)",
3
+ "version": "1.3.3",
4
+ "description": "一款基于Vue3+Element Plus的基础组件库(wtsk-btn/form/table/tree)",
5
5
  "author": "lujh",
6
6
  "license": "MIT",
7
- "keywords": [
8
- "vue3",
9
- "element-plus",
10
- "wtsk-comps"
11
- ],
7
+ "keywords": ["wtsk-comps"],
12
8
  "type": "module",
13
9
  "main": "dist/wtsk-comps.cjs.js",
14
10
  "module": "dist/wtsk-comps.es.js",
15
11
  "unpkg": "dist/wtsk-comps.umd.js",
16
- "style": "dist/wtsk-comps.css",
12
+ "style": "dist/index.css",
17
13
  "exports": {
18
14
  ".": {
19
15
  "import": "./dist/wtsk-comps.es.js",
File without changes