@agentscope-ai/design 1.0.14 → 1.0.15-rc.0

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 (75) hide show
  1. package/README.md +237 -178
  2. package/README.zh-CN.md +312 -0
  3. package/lib/antd/styles/alert.style.js +7 -1
  4. package/lib/antd/styles/dropdown.style.js +5 -1
  5. package/lib/antd/styles/select.style.js +9 -1
  6. package/lib/components/commonComponents/Alert/demo/demo2.js +5 -0
  7. package/lib/components/commonComponents/Tabs/index.style.js +7 -1
  8. package/lib/components/commonComponents/Tag/demo/demo1.js +1 -1
  9. package/lib/components/commonComponents/Tag/index.d.ts +5 -1
  10. package/lib/components/commonComponents/Tag/index.js +4 -0
  11. package/lib/components/commonComponents/Tag/index.style.js +65 -1
  12. package/lib/index.js +1 -0
  13. package/llms/all.llms.txt +4953 -0
  14. package/llms/components/commonComponents/Alert/index.zh-CN.llms.txt +32 -0
  15. package/llms/components/commonComponents/AlertDialog/index.zh-CN.llms.txt +171 -0
  16. package/llms/components/commonComponents/Anchor/index.zh-CN.llms.txt +51 -0
  17. package/llms/components/commonComponents/Avatar/index.zh-CN.llms.txt +37 -0
  18. package/llms/components/commonComponents/Breadcrumb/index.zh-CN.llms.txt +117 -0
  19. package/llms/components/commonComponents/Button/index.zh-CN.llms.txt +54 -0
  20. package/llms/components/commonComponents/Card/index.zh-CN.llms.txt +61 -0
  21. package/llms/components/commonComponents/Checkbox/index.zh-CN.llms.txt +69 -0
  22. package/llms/components/commonComponents/CodeBlock/index.zh-CN.llms.txt +13 -0
  23. package/llms/components/commonComponents/Collapse/index.zh-CN.llms.txt +56 -0
  24. package/llms/components/commonComponents/CollapsePanel/index.zh-CN.llms.txt +69 -0
  25. package/llms/components/commonComponents/DatePicker/index.zh-CN.llms.txt +221 -0
  26. package/llms/components/commonComponents/Descriptions/index.zh-CN.llms.txt +37 -0
  27. package/llms/components/commonComponents/Drawer/index.zh-CN.llms.txt +62 -0
  28. package/llms/components/commonComponents/Dropdown/index.zh-CN.llms.txt +149 -0
  29. package/llms/components/commonComponents/Empty/index.zh-CN.llms.txt +40 -0
  30. package/llms/components/commonComponents/FloatButton/index.zh-CN.llms.txt +51 -0
  31. package/llms/components/commonComponents/Form/index.zh-CN.llms.txt +558 -0
  32. package/llms/components/commonComponents/IconButton/index.zh-CN.llms.txt +45 -0
  33. package/llms/components/commonComponents/Image/index.zh-CN.llms.txt +165 -0
  34. package/llms/components/commonComponents/Input/index.zh-CN.llms.txt +133 -0
  35. package/llms/components/commonComponents/InputNumber/index.zh-CN.llms.txt +51 -0
  36. package/llms/components/commonComponents/Message/index.zh-CN.llms.txt +98 -0
  37. package/llms/components/commonComponents/Modal/index.zh-CN.llms.txt +168 -0
  38. package/llms/components/commonComponents/Notification/index.zh-CN.llms.txt +94 -0
  39. package/llms/components/commonComponents/Pagination/index.zh-CN.llms.txt +45 -0
  40. package/llms/components/commonComponents/Popconfirm/index.zh-CN.llms.txt +55 -0
  41. package/llms/components/commonComponents/Popover/index.zh-CN.llms.txt +43 -0
  42. package/llms/components/commonComponents/Progress/index.zh-CN.llms.txt +50 -0
  43. package/llms/components/commonComponents/PromptsEditor/index.zh-CN.llms.txt +15 -0
  44. package/llms/components/commonComponents/Radio/index.zh-CN.llms.txt +66 -0
  45. package/llms/components/commonComponents/RadioButton/index.zh-CN.llms.txt +73 -0
  46. package/llms/components/commonComponents/Result/index.zh-CN.llms.txt +10 -0
  47. package/llms/components/commonComponents/Select/index.zh-CN.llms.txt +96 -0
  48. package/llms/components/commonComponents/Skeleton/index.zh-CN.llms.txt +59 -0
  49. package/llms/components/commonComponents/Slider/index.zh-CN.llms.txt +62 -0
  50. package/llms/components/commonComponents/Spinner/index.zh-CN.llms.txt +15 -0
  51. package/llms/components/commonComponents/Statistic/index.zh-CN.llms.txt +58 -0
  52. package/llms/components/commonComponents/Steps/index.zh-CN.llms.txt +57 -0
  53. package/llms/components/commonComponents/Switch/index.zh-CN.llms.txt +39 -0
  54. package/llms/components/commonComponents/Table/index.zh-CN.llms.txt +254 -0
  55. package/llms/components/commonComponents/Tabs/index.zh-CN.llms.txt +68 -0
  56. package/llms/components/commonComponents/Tag/index.zh-CN.llms.txt +33 -0
  57. package/llms/components/commonComponents/TimePicker/index.zh-CN.llms.txt +111 -0
  58. package/llms/components/commonComponents/Tooltip/index.zh-CN.llms.txt +44 -0
  59. package/llms/components/commonComponents/Upload/index.zh-CN.llms.txt +95 -0
  60. package/llms/components/commonComponents/Video/index.zh-CN.llms.txt +7 -0
  61. package/llms/docs/guide/fromAntd.zh-CN.llms.txt +156 -0
  62. package/llms/docs/guide/fromScratch.zh-CN.llms.txt +83 -0
  63. package/llms/docs/guide/iconfont.zh-CN.llms.txt +69 -0
  64. package/llms/docs/guide/overview.zh-CN.llms.txt +51 -0
  65. package/llms/docs/guide/sparkIcons.zh-CN.llms.txt +25 -0
  66. package/llms/docs/guide/theme.zh-CN.llms.txt +61 -0
  67. package/llms/docs/guide/tokens&variables.zh-CN.llms.txt +425 -0
  68. package/llms/docs/guide/vibe-coding.zh-CN.llms.txt +29 -0
  69. package/llms/index.llms.txt +49 -0
  70. package/package.json +4 -2
  71. package/scripts/mcp-docs-server.js +14079 -0
  72. package/lib/components/commonComponents/AlertDialog/mobile.d.ts +0 -38
  73. package/lib/components/commonComponents/AlertDialog/mobile.js +0 -188
  74. package/lib/components/commonComponents/AlertDialog/pc.d.ts +0 -38
  75. package/lib/components/commonComponents/AlertDialog/pc.js +0 -152
package/README.md CHANGED
@@ -1,185 +1,247 @@
1
- # @ali/agentscope-ai-design
2
-
3
- [![NPM version](https://img.shields.io/npm/v/@ali/agentscope-ai-design.svg?style=flat)](https://npmjs.org/package/@ali/agentscope-ai-design)
4
- [![NPM downloads](http://img.shields.io/npm/dm/@ali/agentscope-ai-design.svg?style=flat)](https://npmjs.org/package/@ali/agentscope-ai-design)
5
-
6
- 百炼ui库
7
- ## 目录结构
8
- ```md
9
- .
10
- ├── README.md # 说明文件
11
- ├── .dumi
12
- ├── theme # dumi自定义主题配置,用于组件库站点的功能/样式定制
13
- ├── .dumirc.ts # The project config
14
- ├── package.json
15
- ├── src
16
- │ ├── antd # antd相关逻辑&主题配置
17
- │ │ ├── ConfigProvider # 替换antd原有的ConfigProvider
18
- │ │ ├── styles # less组件的局部样式,暴露给用户
19
- │ │ ├── token.ts # 设计导出的antd TOKEN
20
- │ │ ├── bailianCssVariables.ts # 设计导出的css变量
21
- │ ├── ├── xconsoleCssVariables.ts # XConsole主题的css变量配置
22
- │ ├── hooks # 对外输出的公共hooks
23
- │ ├── libs # 工具函数,按需导出
24
- │ ├── components # 组件目录
25
- | │ ├── atomComponents # 原子组件
26
- | | │ ├── BLCompatibleComponents # 兼容antd的组件
27
- | | │ │ ├── BLButton # 具体的组件
28
- | | | │ │ ├── index.tsx # 组件入口文件
29
- | | | │ │ ├── index.md # 文档入口文件
30
- | | | │ │ ├── demo # demo示例代码
31
- | | | | │ │ ├── demo1.tsx
32
- | | | | │ │ ├── demo2.tsx
33
- | | │ ├── BLInCompatibleComponents # 不兼容antd的组件
34
- | │ ├── proComponents # 高级组件(原子组件基础上封装程度较高的组件)
35
- | │ ├── bizComponents # 业务组件
36
- | | │ ├── bailian # 百炼控制台业务组件(只放有复用场景的)
37
- | | │ ├── quanmiao # 全妙业务组件(只放有复用场景的)
38
- │ ├── demos # 【deprecated】临时存放Demo UI层的相关文件,后续会迁移到theme中
39
- │ ├── i18n # 国际化相关
40
- │ ├── config.ts # 配置项
41
- │ ├── index.less # 【deprecated】组件库全局样式(历史包袱,后续考虑删掉)
42
- │   ├── index.ts # 入口文件,所有组件、hooks、工具函数都从这里用export导出
43
- │   └── typings.d.ts # 类型文件
44
- ├── docs
45
- │   ├── guide # 指南页
46
- │   ├── index.md # 首页
47
- └── tsconfig.json
1
+ # @agentscope-ai/design
2
+
3
+ [![NPM version](https://img.shields.io/npm/v/@agentscope-ai/design.svg?style=flat)](https://npmjs.org/package/@agentscope-ai/design)
4
+ [![NPM downloads](http://img.shields.io/npm/dm/@agentscope-ai/design.svg?style=flat)](https://npmjs.org/package/@agentscope-ai/design)
5
+
6
+ AgentScope Spark Design - UI Component Library for Alibaba Cloud Apsara Lab
7
+
8
+ [中文文档](./README.zh-CN.md)
9
+
10
+ ## Features
11
+
12
+ - 🎨 Custom theme system based on Ant Design 5
13
+ - 🔧 50+ enhanced UI components
14
+ - 📱 Mobile component support
15
+ - 🎯 Custom icon system (@agentscope-ai/icons)
16
+ - 🌐 Internationalization support (Chinese/English)
17
+ - 📝 Full TypeScript type support
18
+ - 🎨 CSS-in-JS styling solution (antd-style)
19
+
20
+ ## 📦 Installation
21
+
22
+ ```bash
23
+ # Using npm
24
+ npm install @agentscope-ai/design antd --save
25
+
26
+ # Using pnpm
27
+ pnpm add @agentscope-ai/design antd
28
+
29
+ # Using yarn
30
+ yarn add @agentscope-ai/design antd
48
31
  ```
49
- ## Usage
50
-
51
- 映射关系:
52
- bailian-web:
53
- NewIconFont -> BLIconFont
54
- CutButton -> BLButton
55
- BizAlert -> BLAlert
56
- BizBreadcrumb -> BLBreadcrumb
57
- BizDragList -> -
58
- BizDrawer -> BLDrawer
59
- BizDropMenu -> BLDropMenu
60
- BizEmpty -> BLEmpty
61
- BizForm -> Form
62
- BizIdIcon -> BLIDIcon
63
- BizLoadingIcon -> BLLoadingIcon
64
- BizModal -> Modal
65
- BizPopConfirm -> Popconfirm
66
- BizPopover -> BLPopover
67
- BizSearch -> Search
68
- BizSelect -> Select
69
- BizSliderSelector -> SliderSelector
70
- BizTabs -> Tabs
71
- BizTag -> Tag
72
- BizTourGuide -> TourGuide
73
- BizTriggerModal -> TriggerModal
74
- BizUpload -> Upload
75
-
76
- 为了让所有 antd 组件使用 Spark Design 的自定义图标,需要在项目的 `package.json` 中添加 overrides 配置:
32
+
33
+ ## 🚀 Quick Start
34
+
35
+ ### 1. Configure Icon Overrides
36
+
37
+ To make all antd components use Spark Design's custom icons, add the overrides configuration to your project's `package.json`:
77
38
 
78
39
  ```json
79
40
  {
80
- "name": "your-project",
81
41
  "dependencies": {
82
- "@ali/agentscope-ai-design": "^4.4.0",
83
- "antd": "^5.21.0"
42
+ "@agentscope-ai/design": "^1.0.0",
43
+ "antd": "^5.18.0"
84
44
  },
85
45
  "pnpm": {
86
46
  "overrides": {
87
47
  "@ant-design/icons": "@agentscope-ai/icons-override-antd"
88
48
  }
49
+ },
50
+ "overrides": {
51
+ "@ant-design/icons": "@agentscope-ai/icons-override-antd"
89
52
  }
90
53
  }
91
54
  ```
92
55
 
93
- 配置完成后,**删除现有依赖并重新安装**:
56
+ After configuration, **delete existing dependencies and reinstall**:
94
57
 
95
58
  ```bash
96
- # 清理现有依赖
97
59
  rm -rf node_modules
98
60
  rm -f package-lock.json pnpm-lock.yaml yarn.lock
99
-
100
- # 重新安装
101
- npm install # 或 pnpm install
61
+ npm install # or pnpm install
102
62
  ```
103
63
 
104
- ### 3. 使用组件
105
-
106
- 配置完成后,所有 antd 组件都会自动使用自定义图标:
64
+ ### 2. Use Components
107
65
 
108
- ```jsx
109
- import { Select, Input, Button } from 'antd';
110
- import { BLSelect, BLButton, BLModal } from '@ali/agentscope-ai-design';
66
+ ```tsx
67
+ import { ConfigProvider, Button, Modal, carbonTheme } from '@agentscope-ai/design';
111
68
 
112
69
  function App() {
113
70
  return (
114
- <div>
115
- {/* 原生 antd 组件,使用自定义图标 */}
116
- <Select
117
- placeholder="选择器"
118
- options={[
119
- { value: 'option1', label: 'Option 1' },
120
- { value: 'option2', label: 'Option 2' },
121
- ]}
122
- />
123
- <Input.Password placeholder="密码输入" />
124
-
125
- {/* Spark Design 封装组件,内置更多功能 */}
126
- <BLSelect placeholder="封装选择器" />
127
- <BLButton type="primary">封装按钮</BLButton>
128
- </div>
71
+ <ConfigProvider {...carbonTheme}>
72
+ <Button type="primary">Button</Button>
73
+ <Modal title="Title" open={false}>
74
+ Content
75
+ </Modal>
76
+ </ConfigProvider>
129
77
  );
130
78
  }
131
79
  ```
132
80
 
133
- ## 📦 组件分类
134
-
135
- ### 🎨 原生 antd 组件
136
- 从 antd 直接导出,通过 overrides 配置使用自定义图标:
137
- - `Alert`, `Badge`, `Button`, `Checkbox`, `Input`, `Modal`, `Select` 等
138
-
139
- ### 🔧 Spark 封装组件
140
- 基于 antd 封装,提供额外功能和样式:
141
- - `BLSelect`, `BLButton`, `BLModal`, `BLForm`, `BLTable` 等
81
+ ## 📂 Directory Structure
142
82
 
143
- ### 🎯 工具函数和 Hooks
144
- - `message`, `notification`
145
- - `useGlobalStyle`, `generateCssVars`
146
- - 各种工具函数
83
+ ```
84
+ spark-design/
85
+ ├── src/
86
+ │ ├── antd/ # antd related configurations
87
+ │ │ ├── styles/ # Component style overrides
88
+ │ │ └── themes/ # Theme configurations
89
+ │ │ ├── bailianTheme.json # Bailian theme (light)
90
+ │ │ ├── bailianDarkTheme.json # Bailian theme (dark)
91
+ │ │ ├── carbonTheme.json # Carbon theme (light)
92
+ │ │ └── carbonDarkTheme.json # Carbon theme (dark)
93
+ │ ├── components/
94
+ │ │ ├── commonComponents/ # Common components (50+)
95
+ │ │ │ ├── Alert/
96
+ │ │ │ ├── Button/
97
+ │ │ │ ├── Modal/
98
+ │ │ │ └── ...
99
+ │ │ └── mobileComponents/ # Mobile components
100
+ │ │ ├── MobileModal/
101
+ │ │ ├── MobileDrawer/
102
+ │ │ └── MobileAlertDialog/
103
+ │ ├── hooks/ # Public Hooks
104
+ │ │ └── useGlobalStyle/
105
+ │ ├── libs/ # Utility library
106
+ │ │ ├── requestPop/ # POP request wrapper
107
+ │ │ ├── requestSse/ # SSE request wrapper
108
+ │ │ └── ...
109
+ │ ├── i18n/ # Internationalization
110
+ │ └── index.ts # Entry file
111
+ ├── docs/ # Documentation
112
+ └── package.json
113
+ ```
147
114
 
148
- ## 🛠 配置说明
115
+ ## 🎨 Theme System
149
116
 
150
- ### 为什么需要配置 overrides?
117
+ ### Preset Themes
151
118
 
152
- Spark Design 使用自定义的图标包 `@agentscope-ai/icons-override-antd` 来替换 antd 默认的图标。通过 overrides 配置,可以让整个项目(包括 antd 内部)都使用我们的自定义图标。
119
+ ```tsx
120
+ import {
121
+ ConfigProvider,
122
+ carbonTheme, // Carbon light theme
123
+ carbonDarkTheme, // Carbon dark theme
124
+ bailianTheme, // Bailian light theme
125
+ bailianDarkTheme, // Bailian dark theme
126
+ } from '@agentscope-ai/design';
153
127
 
154
- ### 包管理器兼容性
128
+ // Use Carbon theme
129
+ <ConfigProvider {...carbonTheme}>
130
+ <App />
131
+ </ConfigProvider>
155
132
 
156
- - **npm**: 使用 `overrides` 字段
157
- ```json
158
- {
159
- "overrides": {
160
- "@ant-design/icons": "@agentscope-ai/icons-override-antd"
161
- }
162
- }
133
+ // Use Bailian dark theme
134
+ <ConfigProvider {...bailianDarkTheme}>
135
+ <App />
136
+ </ConfigProvider>
163
137
  ```
164
138
 
165
- - **pnpm**: 使用 `pnpm.overrides` 字段
166
- ```json
167
- {
168
- "pnpm": {
169
- "overrides": {
170
- "@ant-design/icons": "@agentscope-ai/icons-override-antd"
171
- }
172
- }
173
- }
174
- ```
175
-
176
- - ✅ **yarn**: 使用 `overrides` 字段
139
+ ### Custom Theme
177
140
 
178
- 建议同时配置 `overrides` 和 `pnpm.overrides`,确保在不同包管理器下都能正常工作。
141
+ ```tsx
142
+ import { generateThemeByToken } from '@agentscope-ai/design';
179
143
 
180
- ### TypeScript 支持
144
+ const customTheme = generateThemeByToken({
145
+ colorPrimary: '#1890ff',
146
+ borderRadius: 6,
147
+ // ... more tokens
148
+ });
149
+ ```
181
150
 
182
- 如果使用 TypeScript 且遇到类型错误,可以在 `tsconfig.json` 中添加路径映射:
151
+ ## 📦 Component List
152
+
153
+ ### Common Components
154
+
155
+ | Component | Description |
156
+ | --- | --- |
157
+ | `Button` | Button |
158
+ | `Modal` | Modal dialog |
159
+ | `Drawer` | Drawer panel |
160
+ | `Input` | Input field |
161
+ | `Select` | Select dropdown |
162
+ | `Form` | Form |
163
+ | `Table` | Table |
164
+ | `Tabs` | Tabs |
165
+ | `Tag` | Tag |
166
+ | `Tooltip` | Tooltip |
167
+ | `Popover` | Popover card |
168
+ | `Popconfirm` | Popconfirm |
169
+ | `message` | Global message |
170
+ | `notification` | Notification |
171
+ | `Empty` | Empty state |
172
+ | `Spinner` | Loading spinner |
173
+ | `Progress` | Progress bar |
174
+ | `Steps` | Steps |
175
+ | `Pagination` | Pagination |
176
+ | `Breadcrumb` | Breadcrumb |
177
+ | `Dropdown` | Dropdown menu |
178
+ | `Checkbox` | Checkbox |
179
+ | `Radio` | Radio |
180
+ | `RadioButton` | Radio button group |
181
+ | `Switch` | Switch toggle |
182
+ | `Slider` | Slider |
183
+ | `DatePicker` | Date picker |
184
+ | `TimePicker` | Time picker |
185
+ | `Upload` | Upload |
186
+ | `Avatar` | Avatar |
187
+ | `Badge` | Badge |
188
+ | `Card` | Card |
189
+ | `Collapse` | Collapse panel |
190
+ | `Descriptions` | Description list |
191
+ | `Result` | Result page |
192
+ | `Statistic` | Statistic |
193
+ | `Alert` | Alert |
194
+ | `AlertDialog` | Alert dialog |
195
+ | `CodeBlock` | Code block |
196
+ | `IconButton` | Icon button |
197
+ | `EllipsisTip` | Text ellipsis tip |
198
+ | `HelpIcon` | Help icon |
199
+ | `FileIcon` | File icon |
200
+ | `Video` | Video player |
201
+
202
+ ### Mobile Components
203
+
204
+ | Component | Description |
205
+ | --- | --- |
206
+ | `MobileModal` | Mobile modal dialog |
207
+ | `MobileDrawer` | Mobile drawer |
208
+ | `MobileAlertDialog` | Mobile alert dialog |
209
+
210
+ ### Hooks
211
+
212
+ | Hook | Description |
213
+ | --- | --- |
214
+ | `useGlobalStyle` | Global style hook |
215
+
216
+ ### Utility Functions
217
+
218
+ | Function | Description |
219
+ | --- | --- |
220
+ | `requestPop` | Alibaba Cloud POP request wrapper |
221
+ | `requestPopSse` | POP SSE request wrapper |
222
+ | `requestSse` | SSE request wrapper |
223
+ | `delay` | Delay function |
224
+ | `copy` | Copy to clipboard |
225
+ | `waitForDom` | Wait for DOM element |
226
+ | `waitForFunc` | Wait for function execution |
227
+ | `safeHtml` | Safe HTML processing |
228
+ | `base64Encoder` | Base64 encoder |
229
+ | `base64Decoder` | Base64 decoder |
230
+ | `parseJsonSafely` | Safe JSON parser |
231
+
232
+ ## 🛠 Configuration
233
+
234
+ ### Package Manager Compatibility
235
+
236
+ - ✅ **npm**: Use `overrides` field
237
+ - ✅ **pnpm**: Use `pnpm.overrides` field
238
+ - ✅ **yarn**: Use `resolutions` field
239
+
240
+ It's recommended to configure both `overrides` and `pnpm.overrides` to ensure compatibility across different package managers.
241
+
242
+ ### TypeScript Support
243
+
244
+ If you encounter type errors, add path mapping in `tsconfig.json`:
183
245
 
184
246
  ```json
185
247
  {
@@ -191,63 +253,60 @@ Spark Design 使用自定义的图标包 `@agentscope-ai/icons-override-antd`
191
253
  }
192
254
  ```
193
255
 
194
- ### Lightning 支持
195
-
196
- 使用 Lightning 工具时,需要在 lightning.config.mts 文件中配置:
256
+ ### Vite Configuration
197
257
 
198
258
  ```javascript
199
- {
200
- "build": {
201
- "resolve": {
202
- "alias": {
203
- '@ant-design/icons': path.resolve(
204
- __dirname,
205
- './node_modules/@agentscope-ai/icons-override-antd',
206
- )
207
- }
259
+ // vite.config.js
260
+ export default {
261
+ resolve: {
262
+ alias: {
263
+ '@ant-design/icons': '@agentscope-ai/icons-override-antd'
208
264
  }
209
265
  }
210
266
  }
211
267
  ```
212
268
 
213
- ### Vite 项目额外配置
214
-
215
- 某些 Vite 版本可能需要额外的 alias 配置:
269
+ ### Lightning Configuration
216
270
 
217
271
  ```javascript
218
- // vite.config.js
219
- export default {
220
- resolve: {
221
- alias: {
222
- '@ant-design/icons': '@agentscope-ai/icons-override-antd'
272
+ // lightning.config.mts
273
+ {
274
+ build: {
275
+ resolve: {
276
+ alias: {
277
+ '@ant-design/icons': path.resolve(
278
+ __dirname,
279
+ './node_modules/@agentscope-ai/icons-override-antd',
280
+ )
281
+ }
223
282
  }
224
283
  }
225
284
  }
226
285
  ```
227
286
 
228
- ## 🔧 故障排除
287
+ ## 🔧 Troubleshooting
229
288
 
230
- ### 图标未正确显示?
289
+ ### Icons not displaying correctly?
231
290
 
232
- 1. **确认配置**:检查 `package.json` 中的 overrides 配置是否正确
233
- 2. **清理依赖**:删除 `node_modules` 和锁文件后重新安装
234
- 3. **检查版本**:确保使用兼容的 antd 版本 (^5.18.0)
235
- 4. **构建工具**:检查是否需要额外的 alias 配置
291
+ 1. **Check configuration**: Verify the overrides configuration in `package.json`
292
+ 2. **Clean dependencies**: Delete `node_modules` and lock files, then reinstall
293
+ 3. **Check version**: Ensure you're using a compatible antd version (^5.18.0)
294
+ 4. **Build tools**: Check if additional alias configuration is needed
236
295
 
237
- ### 开发环境和生产环境表现不一致?
296
+ ### Inconsistent behavior between development and production?
238
297
 
239
- 这通常是缓存问题,尝试:
240
- - 清理构建缓存
241
- - 添加构建工具的 alias 配置
242
- - 确保 overrides 配置在所有环境中都生效
298
+ This is usually a caching issue. Try:
299
+ - Clearing build cache
300
+ - Adding alias configuration for your build tool
301
+ - Ensuring overrides configuration works in all environments
243
302
 
244
- ## 📖 更新日志
303
+ ## 📖 Changelog
245
304
 
246
- 查看 [CHANGELOG.md](./CHANGELOG.md) 了解版本更新信息。
305
+ See [CHANGELOG.md](./CHANGELOG.md) for version updates.
247
306
 
248
- ## 🤝 贡献
307
+ ## 🤝 Contributing
249
308
 
250
- 欢迎提交 Issue Pull Request!
309
+ Issues and Pull Requests are welcome!
251
310
 
252
311
  ## 📄 License
253
312