gzkx-package 0.0.2 → 0.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 CHANGED
@@ -19,9 +19,7 @@ pnpm add gzkx-package
19
19
  ```tsx
20
20
  import React from 'react';
21
21
  import { CommonPage } from 'gzkx-package';
22
- import 'gzkx-package/style';
23
-
24
- // 引入样式文件
22
+ // 引入样式文件(推荐使用直接路径)
25
23
  import 'gzkx-package/dist/style.css';
26
24
 
27
25
  function App() {
@@ -236,12 +234,20 @@ function App() {
236
234
 
237
235
  ### 样式引入
238
236
 
239
- 请确保在使用组件前引入样式文件:
237
+ 请确保在使用组件前引入样式文件。有两种方式:
240
238
 
239
+ **方式1(推荐):**
241
240
  ```tsx
242
241
  import 'gzkx-package/dist/style.css';
243
242
  ```
244
243
 
244
+ **方式2:**
245
+ ```tsx
246
+ import 'gzkx-package/style';
247
+ ```
248
+
249
+ **注意:** 如果遇到样式文件找不到的错误,请使用方式1直接引入 `dist/style.css`。
250
+
245
251
  ## 开发
246
252
 
247
253
  ```bash