@gm-mobile/c-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 +58 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# @gm-mobile/c-business
|
|
2
|
+
|
|
3
|
+
## 简介
|
|
4
|
+
基础业务组件包 - 提供通用的基础业务组件,包括优惠券和日期标签选择等。
|
|
5
|
+
|
|
6
|
+
## 安装
|
|
7
|
+
|
|
8
|
+
```bash
|
|
9
|
+
npm install @gm-mobile/c-business
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## 使用
|
|
13
|
+
|
|
14
|
+
### 快速开始
|
|
15
|
+
|
|
16
|
+
```jsx
|
|
17
|
+
import { Coupon, ReceivedCoupon, TabDateSelect } from '@gm-mobile/c-business'
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## API
|
|
21
|
+
|
|
22
|
+
### 导出列表
|
|
23
|
+
|
|
24
|
+
| 导出项 | 类型 | 说明 |
|
|
25
|
+
|--------|------|------|
|
|
26
|
+
| `Coupon` | 组件 | 优惠券组件 |
|
|
27
|
+
| `ReceivedCoupon` | 组件 | 已领取优惠券组件 |
|
|
28
|
+
| `TabDateSelect` | 组件 | 日期标签选择组件 |
|
|
29
|
+
|
|
30
|
+
## 示例
|
|
31
|
+
|
|
32
|
+
### 优惠券
|
|
33
|
+
|
|
34
|
+
```jsx
|
|
35
|
+
import { Coupon } from '@gm-mobile/c-business'
|
|
36
|
+
|
|
37
|
+
const App = () => {
|
|
38
|
+
return <Coupon data={couponData} />
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### 日期标签选择
|
|
43
|
+
|
|
44
|
+
```jsx
|
|
45
|
+
import { TabDateSelect } from '@gm-mobile/c-business'
|
|
46
|
+
|
|
47
|
+
const App = () => {
|
|
48
|
+
return <TabDateSelect />
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## 注意事项
|
|
53
|
+
- 本包被 `@gm-mobile/business` 和 `@gm-mobile/mp-business` 重新导出
|
|
54
|
+
- 同时兼容 Web 端和小程序端
|
|
55
|
+
|
|
56
|
+
## 相关包
|
|
57
|
+
- [@gm-mobile/business](../business) - Web 端业务组件(重新导出本包)
|
|
58
|
+
- [@gm-mobile/mp-business](../mp-business) - 小程序业务组件(重新导出本包)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gm-mobile/c-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/gm-mobile#readme",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"url": "https://github.com/gmfe/gm-mobile/issues"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@gm-mobile/c-react": "^3.12.
|
|
25
|
-
"@gm-mobile/locales": "^3.12.
|
|
24
|
+
"@gm-mobile/c-react": "^3.12.13",
|
|
25
|
+
"@gm-mobile/locales": "^3.12.13",
|
|
26
26
|
"dayjs": "^1.11.6"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"prop-types": "^15.7.2",
|
|
33
33
|
"react": "^16.13.1"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "f1807b01b33bb8ee331b6c713d52d85fda524bf7"
|
|
36
36
|
}
|