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.
Files changed (2) hide show
  1. package/README.md +14 -12
  2. package/package.json +3 -2
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
- # @idp/idp-base-components
1
+ # idp-base-components-lib
2
2
 
3
3
  IDP 基础组件库 - 基于 Vue 3 + Element Plus + vxe-table 构建的企业级组件库
4
4
 
5
- [![npm version](https://img.shields.io/npm/v/@idp/idp-base-components.svg)](https://www.npmjs.com/package/@idp/idp-base-components)
6
- [![license](https://img.shields.io/npm/l/@idp/idp-base-components.svg)](https://github.com/standandcxs/company-component-library/blob/main/LICENSE)
5
+ [![npm version](https://img.shields.io/npm/v/idp-base-components-lib.svg)](https://www.npmjs.com/package/idp-base-components-lib)
6
+ [![license](https://img.shields.io/npm/l/idp-base-components-lib.svg)](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 @idp/idp-base-components
24
+ npm install idp-base-components-lib
25
25
  ```
26
26
 
27
27
  ### pnpm
28
28
 
29
29
  ```bash
30
- pnpm add @idp/idp-base-components
30
+ pnpm add idp-base-components-lib
31
31
  ```
32
32
 
33
33
  ### yarn
34
34
 
35
35
  ```bash
36
- yarn add @idp/idp-base-components
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 "@idp/idp-base-components";
49
- // 引入样式
50
- import "@idp/idp-base-components/dist/style.css";
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 "@idp/idp-base-components";
73
- import "@idp/idp-base-components/dist/style.css";
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 '@idp/idp-base-components'
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.2",
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",