@gm-mobile/business 3.12.12-beta.0 → 3.12.13
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 +79 -0
- package/package.json +6 -6
package/README.md
ADDED
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# @gm-mobile/business
|
|
2
|
+
|
|
3
|
+
## 简介
|
|
4
|
+
业务组件包 - 提供通用的业务级组件,包括商品选择、签名、优惠券等业务场景组件。
|
|
5
|
+
|
|
6
|
+
## 安装
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
npm install @gm-mobile/business
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
### peerDependencies
|
|
13
|
+
|
|
14
|
+
```json
|
|
15
|
+
{
|
|
16
|
+
"react": "^16.13.1"
|
|
17
|
+
}
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## 使用
|
|
21
|
+
|
|
22
|
+
### 快速开始
|
|
23
|
+
|
|
24
|
+
```jsx
|
|
25
|
+
import { ProductSelection, Signature } from '@gm-mobile/business'
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## API
|
|
29
|
+
|
|
30
|
+
### 导出列表
|
|
31
|
+
|
|
32
|
+
| 导出项 | 类型 | 说明 |
|
|
33
|
+
|--------|------|------|
|
|
34
|
+
| `ProductSelection` | 组件 | 商品选择组件 |
|
|
35
|
+
| `Signature` | 组件 | 手写签名组件 |
|
|
36
|
+
| `Coupon` | 组件 | 优惠券组件(来自 @gm-mobile/c-business) |
|
|
37
|
+
| `ReceivedCoupon` | 组件 | 已领取优惠券组件(来自 @gm-mobile/c-business) |
|
|
38
|
+
| `TabDateSelect` | 组件 | 日期标签选择组件(来自 @gm-mobile/c-business) |
|
|
39
|
+
|
|
40
|
+
## 示例
|
|
41
|
+
|
|
42
|
+
### 商品选择
|
|
43
|
+
|
|
44
|
+
```jsx
|
|
45
|
+
import { ProductSelection } from '@gm-mobile/business'
|
|
46
|
+
|
|
47
|
+
const App = () => {
|
|
48
|
+
return <ProductSelection />
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### 签名
|
|
53
|
+
|
|
54
|
+
```jsx
|
|
55
|
+
import { Signature } from '@gm-mobile/business'
|
|
56
|
+
|
|
57
|
+
const App = () => {
|
|
58
|
+
return <Signature />
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### 优惠券
|
|
63
|
+
|
|
64
|
+
```jsx
|
|
65
|
+
import { Coupon } from '@gm-mobile/business'
|
|
66
|
+
|
|
67
|
+
const App = () => {
|
|
68
|
+
return <Coupon />
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## 注意事项
|
|
73
|
+
- `Coupon`、`ReceivedCoupon`、`TabDateSelect` 从 `@gm-mobile/c-business` 重新导出
|
|
74
|
+
- 该包依赖 `@gm-mobile/c-react` 和 `@gm-mobile/locales`
|
|
75
|
+
|
|
76
|
+
## 相关包
|
|
77
|
+
- [@gm-mobile/c-business](../c-business) - 基础业务组件
|
|
78
|
+
- [@gm-mobile/c-react](../c-react) - 基础 React 组件
|
|
79
|
+
- [@gm-mobile/react](../react) - 主组件库
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gm-mobile/business",
|
|
3
|
-
"version": "3.12.
|
|
3
|
+
"version": "3.12.13",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "liyatang <liyatang@qq.com>",
|
|
6
6
|
"homepage": "https://github.com/gmfe/business#readme",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"url": "https://github.com/gmfe/business/issues"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@gm-mobile/c-business": "^3.12.
|
|
25
|
-
"@gm-mobile/c-react": "^3.12.
|
|
26
|
-
"@gm-mobile/locales": "^3.12.
|
|
27
|
-
"@gm-mobile/react": "^3.12.
|
|
24
|
+
"@gm-mobile/c-business": "^3.12.13",
|
|
25
|
+
"@gm-mobile/c-react": "^3.12.13",
|
|
26
|
+
"@gm-mobile/locales": "^3.12.13",
|
|
27
|
+
"@gm-mobile/react": "^3.12.13"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"react": "^16.13.1"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "f1807b01b33bb8ee331b6c713d52d85fda524bf7"
|
|
33
33
|
}
|