bi-components-library 1.0.16 → 1.0.18

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 +32 -3
  2. package/package.json +7 -1
package/README.md CHANGED
@@ -5,11 +5,40 @@
5
5
  ## 📦 安装
6
6
 
7
7
  ```bash
8
- npm install @sealseek/bi-components
8
+ npm install bi-components-library
9
9
  # 或
10
- yarn add @sealseek/bi-components
10
+ yarn add bi-components-library
11
11
  # 或
12
- pnpm add @sealseek/bi-components
12
+ pnpm add bi-components-library
13
+ ```
14
+
15
+ ## ⚠️ 重要提示:React 版本一致性
16
+
17
+ **如果使用 pnpm,请确保 `react` 和 `react-dom` 版本完全一致**,否则会出现版本不兼容错误。
18
+
19
+ ### 解决方案
20
+
21
+ 在您的项目 `package.json` 中添加 `pnpm.overrides` 配置:
22
+
23
+ ```json
24
+ {
25
+ "pnpm": {
26
+ "overrides": {
27
+ "react": "19.1.1",
28
+ "react-dom": "19.1.1"
29
+ }
30
+ }
31
+ }
32
+ ```
33
+
34
+ 然后运行:
35
+ ```bash
36
+ pnpm install
37
+ ```
38
+
39
+ 或者直接安装统一版本:
40
+ ```bash
41
+ pnpm add react@19.1.1 react-dom@19.1.1
13
42
  ```
14
43
 
15
44
  ## 🚀 快速开始
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bi-components-library",
3
3
  "private": false,
4
- "version": "1.0.16",
4
+ "version": "1.0.18",
5
5
  "type": "module",
6
6
  "description": "SealSeek BI 组件库 - 基于 Ant Design 的企业级 React 组件",
7
7
  "keywords": [
@@ -65,5 +65,11 @@
65
65
  "i": "^0.3.7",
66
66
  "npm": "^11.6.4",
67
67
  "dayjs": "^1.11.13"
68
+ },
69
+ "pnpm": {
70
+ "overrides": {
71
+ "react": "19.1.1",
72
+ "react-dom": "19.1.1"
73
+ }
68
74
  }
69
75
  }