idp-base-components-lib 1.0.2 → 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 +14 -12
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
#
|
|
1
|
+
# idp-base-components-lib
|
|
2
2
|
|
|
3
3
|
IDP 基础组件库 - 基于 Vue 3 + Element Plus + vxe-table 构建的企业级组件库
|
|
4
4
|
|
|
5
|
-
[](https://www.npmjs.com/package/idp-base-components-lib)
|
|
6
|
+
[](https://github.com/standandcxs/company-component-library/blob/main/LICENSE)
|
|
7
7
|
|
|
8
8
|
## ✨ 特性
|
|
9
9
|
|
|
@@ -21,19 +21,19 @@ IDP 基础组件库 - 基于 Vue 3 + Element Plus + vxe-table 构建的企业级
|
|
|
21
21
|
### npm
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
npm install
|
|
24
|
+
npm install idp-base-components-lib
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
### pnpm
|
|
28
28
|
|
|
29
29
|
```bash
|
|
30
|
-
pnpm add
|
|
30
|
+
pnpm add idp-base-components-lib
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
### yarn
|
|
34
34
|
|
|
35
35
|
```bash
|
|
36
|
-
yarn add
|
|
36
|
+
yarn add idp-base-components-lib
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
## 🔨 使用
|
|
@@ -45,9 +45,11 @@ import { createApp } from "vue";
|
|
|
45
45
|
import App from "./App.vue";
|
|
46
46
|
|
|
47
47
|
// 引入组件库
|
|
48
|
-
import IdpComponents from "
|
|
49
|
-
//
|
|
50
|
-
import "
|
|
48
|
+
import IdpComponents from "idp-base-components-lib";
|
|
49
|
+
// 引入样式(两种方式都可以)
|
|
50
|
+
import "idp-base-components-lib/dist/style.css";
|
|
51
|
+
// 或者
|
|
52
|
+
// import "idp-base-components-lib/dist/idp-base-components.css";
|
|
51
53
|
|
|
52
54
|
const app = createApp(App);
|
|
53
55
|
|
|
@@ -69,8 +71,8 @@ app.mount("#app");
|
|
|
69
71
|
import {
|
|
70
72
|
Button as IdpButton,
|
|
71
73
|
VTable as IdpVTable,
|
|
72
|
-
} from "
|
|
73
|
-
import "
|
|
74
|
+
} from "idp-base-components-lib";
|
|
75
|
+
import "idp-base-components-lib/dist/style.css";
|
|
74
76
|
|
|
75
77
|
const tableConfig = {
|
|
76
78
|
title: "用户列表",
|
|
@@ -145,7 +147,7 @@ const tableData = [
|
|
|
145
147
|
</template>
|
|
146
148
|
|
|
147
149
|
<script setup>
|
|
148
|
-
import { VTable as IdpVTable } from '
|
|
150
|
+
import { VTable as IdpVTable } from 'idp-base-components-lib'
|
|
149
151
|
|
|
150
152
|
const config = {
|
|
151
153
|
title: '文件列表',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "idp-base-components-lib",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "IDP 基础组件库 - 基于 Vue 3 + Element Plus + vxe-table 构建的企业级组件库",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"import": "./dist/index.esm.js",
|
|
13
13
|
"require": "./dist/index.cjs.js"
|
|
14
14
|
},
|
|
15
|
-
"./dist/style.css": "./dist/idp-base-components.css"
|
|
15
|
+
"./dist/style.css": "./dist/idp-base-components.css",
|
|
16
|
+
"./dist/*.css": "./dist/*.css"
|
|
16
17
|
},
|
|
17
18
|
"files": [
|
|
18
19
|
"dist",
|