idp-base-components-lib 1.0.2 → 1.0.4

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 +12 -12
  2. package/package.json +4 -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,9 @@ 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/style.css";
51
51
 
52
52
  const app = createApp(App);
53
53
 
@@ -69,8 +69,8 @@ app.mount("#app");
69
69
  import {
70
70
  Button as IdpButton,
71
71
  VTable as IdpVTable,
72
- } from "@idp/idp-base-components";
73
- import "@idp/idp-base-components/dist/style.css";
72
+ } from "idp-base-components-lib";
73
+ import "idp-base-components-lib/style.css";
74
74
 
75
75
  const tableConfig = {
76
76
  title: "用户列表",
@@ -145,7 +145,7 @@ const tableData = [
145
145
  </template>
146
146
 
147
147
  <script setup>
148
- import { VTable as IdpVTable } from '@idp/idp-base-components'
148
+ import { VTable as IdpVTable } from 'idp-base-components-lib'
149
149
 
150
150
  const config = {
151
151
  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.4",
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,9 @@
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/idp-base-components.css": "./dist/idp-base-components.css",
17
+ "./style.css": "./dist/idp-base-components.css"
16
18
  },
17
19
  "files": [
18
20
  "dist",