@baishuyun/ui-business 2.0.1 → 2.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.
package/README.md CHANGED
@@ -1,10 +1,13 @@
1
1
  # @baishuyun/ui-business
2
2
 
3
- BSY React 业务组件库 - 提供常用的业务场景组件
3
+ ## 说明
4
4
 
5
- ## 简介
5
+ `@baishuyun/ui-business` 是业务组件库,相比基础组件库, 其组件设计可以更符合业务场景的需求,同时也依赖了基础组件库实现业务功能。
6
6
 
7
- `@baishuyun/ui-business` 是 BSY UI 组件库的业务组件包,包含了常见业务场景下的复合组件,如表单、表格、图表等高级组件。
7
+ 业务组件库的组件设计原则:
8
+
9
+ - 组件库可能会和接口请求进行耦合,为了快速创建业务功能
10
+ - 组件库的组件设计不考虑组件的通用型,而是考虑组件的业务场景,组件的业务场景局限某个特定的业务场景,而不是通用型的组件。
8
11
 
9
12
  ## 安装
10
13
 
@@ -15,12 +18,12 @@ pnpm add @baishuyun/ui-business
15
18
  ## 使用
16
19
 
17
20
  ```tsx
18
- import { SomeBusinessComponent } from '@baishuyun/ui-business';
21
+ import { DeptsMemberSelector } from '@baishuyun/ui-business';
19
22
 
20
23
  function App() {
21
24
  return (
22
25
  <div>
23
- <SomeBusinessComponent />
26
+ <DeptsMemberSelector />
24
27
  </div>
25
28
  );
26
29
  }