@cniot/android-pda-components 0.2.30 → 0.2.32

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 (112) hide show
  1. package/build/assets/index.51a8714a.css +1 -0
  2. package/build/assets/{index.96f23a3d.js → index.7a87ca33.js} +16 -16
  3. package/build/index.html +2 -2
  4. package/doc/index.jsx +3 -2
  5. package/es/index.cjs.js +1 -1
  6. package/es/index.es.js +11 -5
  7. package/es/style.css +1 -1
  8. package/package.json +1 -1
  9. package/build/assets/index.248cb4f2.css +0 -1
  10. package/packages/AppList/doc.jsx +0 -138
  11. package/packages/AppList/index.jsx +0 -33
  12. package/packages/AppList/index.less +0 -52
  13. package/packages/BaseLayout/BarcodeScan.jsx +0 -88
  14. package/packages/BaseLayout/BaseLayoutContainer.jsx +0 -208
  15. package/packages/BaseLayout/RfidOnce.jsx +0 -106
  16. package/packages/BaseLayout/RfidScan.jsx +0 -118
  17. package/packages/BaseLayout/doc.jsx +0 -177
  18. package/packages/BaseLayout/index.jsx +0 -52
  19. package/packages/BaseLayout/index.less +0 -47
  20. package/packages/Button/doc.jsx +0 -62
  21. package/packages/Button/index.jsx +0 -27
  22. package/packages/Button/index.less +0 -62
  23. package/packages/Confirm/doc.jsx +0 -147
  24. package/packages/Confirm/index.jsx +0 -71
  25. package/packages/Confirm/index.less +0 -55
  26. package/packages/Header/doc.jsx +0 -155
  27. package/packages/Header/index.jsx +0 -184
  28. package/packages/Header/index.less +0 -68
  29. package/packages/InfoCard/doc.jsx +0 -244
  30. package/packages/InfoCard/index.jsx +0 -67
  31. package/packages/InfoCard/index.less +0 -111
  32. package/packages/List/doc.jsx +0 -89
  33. package/packages/List/index.jsx +0 -54
  34. package/packages/List/index.less +0 -43
  35. package/packages/Overlay/doc.jsx +0 -103
  36. package/packages/Overlay/index.jsx +0 -42
  37. package/packages/Overlay/index.less +0 -28
  38. package/packages/PdaActionSheet/doc.jsx +0 -193
  39. package/packages/PdaActionSheet/index.jsx +0 -44
  40. package/packages/PdaActionSheet/index.less +0 -65
  41. package/packages/PdaDistanceCard/doc.jsx +0 -62
  42. package/packages/PdaDistanceCard/index.jsx +0 -35
  43. package/packages/PdaDistanceCard/index.less +0 -42
  44. package/packages/PdaFinishCard/doc.jsx +0 -111
  45. package/packages/PdaFinishCard/index.jsx +0 -62
  46. package/packages/PdaFinishCard/index.less +0 -62
  47. package/packages/PdaInfiniteScroll/doc.jsx +0 -121
  48. package/packages/PdaInfiniteScroll/index.jsx +0 -114
  49. package/packages/PdaInfiniteScroll/index.less +0 -12
  50. package/packages/PdaInfiniteScroll/utils.jsx +0 -25
  51. package/packages/PdaSteps/PdaStep/index.jsx +0 -38
  52. package/packages/PdaSteps/PdaStep/index.less +0 -70
  53. package/packages/PdaSteps/PdaSteps/index.jsx +0 -33
  54. package/packages/PdaSteps/PdaSteps/index.less +0 -0
  55. package/packages/PdaSteps/doc.jsx +0 -131
  56. package/packages/PdaSteps/index.jsx +0 -5
  57. package/packages/PdaTitle/doc.jsx +0 -102
  58. package/packages/PdaTitle/index.jsx +0 -51
  59. package/packages/PdaTitle/index.less +0 -65
  60. package/packages/Presentation/doc.jsx +0 -72
  61. package/packages/Presentation/index.jsx +0 -25
  62. package/packages/Presentation/index.less +0 -31
  63. package/packages/SelectCard/doc.jsx +0 -57
  64. package/packages/SelectCard/index.jsx +0 -13
  65. package/packages/SelectCard/index.less +0 -30
  66. package/packages/SimpleCard/doc.jsx +0 -59
  67. package/packages/SimpleCard/index.jsx +0 -13
  68. package/packages/SimpleCard/index.less +0 -38
  69. package/packages/SimpleCardBlock/doc.jsx +0 -77
  70. package/packages/SimpleCardBlock/index.jsx +0 -43
  71. package/packages/SimpleCardBlock/index.less +0 -26
  72. package/packages/SubCard/doc.jsx +0 -63
  73. package/packages/SubCard/index.jsx +0 -28
  74. package/packages/SubCard/index.less +0 -64
  75. package/packages/Tag/doc.jsx +0 -47
  76. package/packages/Tag/index.jsx +0 -12
  77. package/packages/Tag/index.less +0 -22
  78. package/packages/TaskCard/doc.jsx +0 -151
  79. package/packages/TaskCard/index.jsx +0 -65
  80. package/packages/TaskCard/index.less +0 -101
  81. package/packages/Toast/doc.jsx +0 -112
  82. package/packages/Toast/index.jsx +0 -7
  83. package/packages/Toast/index.less +0 -23
  84. package/packages/Toast/methods.jsx +0 -77
  85. package/packages/Toast/toast.jsx +0 -96
  86. package/packages/WakeKeyborard/doc.jsx +0 -170
  87. package/packages/WakeKeyborard/index.jsx +0 -61
  88. package/packages/WakeKeyborard/index.less +0 -55
  89. package/packages/WakeKeyborard/keyborard.jsx +0 -61
  90. package/packages/doc.jsx +0 -19
  91. package/packages/global.less +0 -7
  92. package/packages/index.jsx +0 -60
  93. package/packages/index.less +0 -3
  94. package/packages/pageflow-system-pages/alert/doc.jsx +0 -70
  95. package/packages/pageflow-system-pages/alert/index.jsx +0 -22
  96. package/packages/pageflow-system-pages/confirm/doc.jsx +0 -118
  97. package/packages/pageflow-system-pages/confirm/index.jsx +0 -31
  98. package/packages/pageflow-system-pages/debug/index.jsx +0 -27
  99. package/packages/pageflow-system-pages/debug/index.less +0 -5
  100. package/packages/pageflow-system-pages/index.jsx +0 -38
  101. package/packages/pageflow-system-pages/loading/index.jsx +0 -37
  102. package/packages/pageflow-system-pages/not-found/index.jsx +0 -12
  103. package/packages/pageflow-system-pages/not-found/index.less +0 -26
  104. package/packages/pageflow-system-pages/prompt/doc.jsx +0 -95
  105. package/packages/pageflow-system-pages/prompt/index.jsx +0 -43
  106. package/packages/pageflow-system-pages/prompt/index.less +0 -44
  107. package/packages/pageflow-system-pages/start/index.jsx +0 -28
  108. package/packages/pageflow-system-pages/start/index.less +0 -12
  109. package/packages/pageflow-system-pages/toast/doc.jsx +0 -76
  110. package/packages/pageflow-system-pages/toast/index.jsx +0 -42
  111. package/packages/utils/index.js +0 -56
  112. package/packages/variable.less +0 -4
@@ -1,55 +0,0 @@
1
- @import '../variable.less';
2
-
3
- .confirm-wrap{
4
- background:#ffffff;
5
- border-radius:6px 6px 0 0;
6
- // padding:24px 20px;
7
- padding-top: 24px;
8
- width:100%;
9
- .confirm-content {
10
- padding: 0 24px;
11
- }
12
- .confirm-title{
13
- font-size:24 * @change2rem;
14
- font-weight:700;
15
- }
16
-
17
- .confirm-message{
18
- font-size:22 * @change2rem;
19
- margin-bottom:10 * @change2rem;
20
- }
21
- .confirm-sub-message {
22
- font-size:22 * @change2rem;
23
- margin-bottom:10 * @change2rem;
24
- // word-wrap: break-word;
25
- // word-break: break-all;
26
- }
27
- .confirm-sub-block {
28
- display: flex;
29
- flex-direction: row;
30
- .confirm-sub-label {
31
- white-space: nowrap;
32
- }
33
- .confirm-sub-content {
34
- margin-left: 12px;
35
- word-wrap:break-word;
36
- word-break: break-all;
37
- }
38
- }
39
-
40
- .confirm-btns{
41
- &>*:not(:first-child) {
42
- padding-top: 0;
43
- }
44
- }
45
-
46
- &.confirm-warning {
47
- background-color: red;
48
- .pda-button {
49
- background-color: transparent;
50
- color: black;
51
- border: 2px solid black;
52
- border-radius: 40px;
53
- }
54
- }
55
- }
@@ -1,155 +0,0 @@
1
- import React from "react";
2
- import Header from "./index";
3
- export default function () {
4
- return (
5
- <div>
6
- <h1>Header</h1>
7
- <p>头部指引, 在 iData PDA 中 fn 的键值为 0,已做特殊处理,可以直接写fn。</p>
8
- <br/>
9
- <div>
10
- 注意:通过以下代码禁用实体 back 键的默认动作后,Header 组件的 onBack 可以响应实体back键
11
- <code className="code">
12
- {
13
- `
14
- WindVane.call('WindvanePlugin', 'invoke', "{'domain': 'keyboard', 'method': 'disableBackKey', 'params': {}}", function(e) {
15
- console.log('disable back key succeed');
16
- }, function(e) {
17
- console.log('disable back key failed');
18
- });
19
- `
20
- }
21
- </code>
22
- </div>
23
- <h2>示例</h2>
24
- <div className="dark-block">
25
- {/* const { className, goBack = true, icon="scan", title="任务", more=false } = this.props; */}
26
- <Header
27
- title='hello world'
28
- onBack={console.log}
29
- backShortcutKey="a"
30
- />
31
- <Header
32
- icon='read'
33
- title='hello world'
34
- ></Header>
35
- <Header
36
- icon='select'
37
- title='hello world'
38
- menus={[
39
- {
40
- label:"menus1"
41
- },
42
- {
43
- label:"menus2"
44
- },
45
- {
46
- label:"menus3"
47
- }
48
- ]}
49
- onClickMenuItem={console.log}
50
- cancelMenuText="取消"
51
- menuShortcutKey="f1,f2,fn"
52
- ></Header>
53
- </div>
54
- <code className="code">{`
55
- // backShortcutKey 绑定了 a 键快捷触发 onBack
56
- <Header
57
- title='hello world'
58
- onBack={console.log}
59
- backShortcutKey="a"
60
- />
61
- <Header
62
- icon='read'
63
- title='hello world'
64
- ></Header>
65
- <Header
66
- icon='select'
67
- title='hello world'
68
- menus={[
69
- {
70
- label:"menus1"
71
- },
72
- {
73
- label:"menus2"
74
- },
75
- {
76
- label:"menus3"
77
- }
78
- ]}
79
- onClickMenuItem={console.log}
80
- cancelMenuText="取消"
81
- menuShortcutKey="f1,f2,fn"
82
- ></Header>
83
- `}</code>
84
- <h2>参数</h2>
85
- <table className="pure-table pure-table-bordered">
86
- <thead>
87
- <tr>
88
- <th>属性</th>
89
- <th>说明</th>
90
- <th>类型</th>
91
- <th>默认值</th>
92
- </tr>
93
- </thead>
94
- <tbody>
95
- <tr>
96
- <td>onBack</td>
97
- <td>返回按钮点击</td>
98
- <td>Function("back")</td>
99
- <td></td>
100
- </tr>
101
- <tr>
102
- <td>onClickMenuItem</td>
103
- <td>menu item 点击</td>
104
- <td>function(item)</td>
105
- <td></td>
106
- </tr>
107
-
108
- <tr>
109
- <td>icon</td>
110
- <td>title 图标</td>
111
- <td>string: scan | select | read</td>
112
- <td>scan</td>
113
- </tr>
114
- <tr>
115
- <td>title</td>
116
- <td>标题</td>
117
- <td>string</td>
118
- <td></td>
119
- </tr>
120
- <tr>
121
- <td>onScanBarcode</td>
122
- <td>{`(barcode)=> `}</td>
123
- <td>Function</td>
124
- <td>-</td>
125
- </tr>
126
-
127
- <tr>
128
- <td>menus</td>
129
- <td>弹出菜单列表,menus item 的所有参数会直接给 Button</td>
130
- <td>Array-Object</td>
131
- <td></td>
132
- </tr>
133
- <tr>
134
- <td>cancelMenuText</td>
135
- <td>取消弹出菜单的按钮文案,没有的话不显示取消弹出菜单</td>
136
- <td>String</td>
137
- <td></td>
138
- </tr>
139
- <tr>
140
- <td>menuShortcutKey</td>
141
- <td>自己定义绑定 menu 菜单的快捷键弹出,比如 `f1`, `f1,f2` (支持,号分割绑定多个键)</td>
142
- <td>String</td>
143
- <td></td>
144
- </tr>
145
- <tr>
146
- <td>backShortcutKey</td>
147
- <td>返回,绑定快捷键, 必须声明过 onBack 参数才有效</td>
148
- <td>String</td>
149
- <td></td>
150
- </tr>
151
- </tbody>
152
- </table>
153
- </div>
154
- );
155
- }
@@ -1,184 +0,0 @@
1
- import React from "react";
2
- import keycode from "keycode";
3
- import Button from "../Button";
4
- import Overlay from "../Overlay";
5
- import "./index.less";
6
-
7
-
8
- // 在 android pda 里,fn 被触发为 0, 这里做特殊处理
9
- const SPECIAL_KEY_MAP = ['fn'];
10
-
11
- const empty = () => {};
12
- /*
13
- title,
14
- onBack,
15
- icon: ["scan"],
16
- menus: [
17
- {
18
- label:"",
19
- value:""
20
- }
21
- ],
22
- onClickMenuItem: Empty
23
- */
24
- export default function (props) {
25
- const {
26
- onBack,
27
- icon,
28
- title,
29
- menus = [],
30
- onClickMenuItem = empty,
31
- onScanBarcode,
32
- cancelMenuText,
33
- menuShortcutKey,
34
- backShortcutKey,
35
- } = props;
36
- const [showMenus, setShowMenus] = React.useState(false);
37
-
38
- // menu弹出快捷键绑定
39
- React.useEffect(
40
- function () {
41
- if (menuShortcutKey) {
42
- return bindShortcutKey(
43
- getShortcutKeyCodes(menuShortcutKey),
44
- function () {
45
- setShowMenus(true);
46
- }
47
- );
48
- }
49
- },
50
- [menuShortcutKey]
51
- );
52
-
53
- // back 快捷键绑定
54
- React.useEffect(
55
- function () {
56
- if (backShortcutKey && onBack) {
57
- return bindShortcutKey(
58
- getShortcutKeyCodes(backShortcutKey),
59
- function () {
60
- onBack("back");
61
- }
62
- );
63
- }
64
- },
65
- [backShortcutKey, onBack]
66
- );
67
-
68
- //监听实体back键
69
- React.useEffect(() => {
70
- return onKeyBoradBack(function(){
71
- onBack && onBack("back");
72
- })
73
- }, []);
74
-
75
- // onScanBarcode
76
- React.useEffect(() => {
77
- return addEventListener(document, "BarcodeScan", function(e){
78
- onScanBarcode && onScanBarcode(e.param.scanData)
79
- })
80
- }, [onScanBarcode])
81
-
82
-
83
- return (
84
- <div className="pda-header">
85
- <div className="header-click-area">
86
- {onBack ? (
87
- <div className="pda-goback" onClick={() => onBack("back")}></div>
88
- ) : null}
89
- {icon && (
90
- <div className={`pda-header-icon pda-header-icon-${icon}`}></div>
91
- )}
92
- </div>
93
- <div className="pda-title-text">{title}</div>
94
- {menus && menus.length ? (
95
- <div className="pda-header-more" onClick={() => setShowMenus(true)} />
96
- ) : null}
97
- <Overlay
98
- visible={showMenus}
99
- verticalPosition="bottom"
100
- closable={false}
101
- onClosed={() => setShowMenus(false)}
102
- >
103
- <div className="pda-menus">
104
- {menus.map((item, index) => {
105
- return (
106
- <Button
107
- onClick={() => {
108
- setShowMenus(false);
109
- onClickMenuItem(item);
110
- }}
111
- key={item.key || index}
112
- >
113
- {item.label}
114
- </Button>
115
- );
116
- })}
117
- {cancelMenuText ? (
118
- <div style={{ marginTop: 20 }}>
119
- <Button onClick={() => setShowMenus(false)}>
120
- {cancelMenuText}
121
- </Button>
122
- </div>
123
- ) : null}
124
- </div>
125
- </Overlay>
126
- </div>
127
- );
128
- }
129
-
130
- // 获取快捷键列表值,支持 , 号分割
131
- // "F5,a" ===> [116, 56]
132
- function getShortcutKeyCodes(shortcutKey) {
133
- const shortcutKeys = shortcutKey.indexOf(",") > -1 ? shortcutKey.split(",") : [shortcutKey];
134
- return shortcutKeys
135
- .map((k) => {
136
- if(SPECIAL_KEY_MAP.indexOf(k.toLowerCase()) > -1){
137
- return k.toLowerCase();
138
- }
139
- const kc = keycode(k);
140
- if (kc === undefined) {
141
- console.warn("OPButton.shortcutKey error key value by:", k);
142
- }
143
- return kc;
144
- })
145
- .filter((k) => k !== undefined);
146
- }
147
-
148
- // 创建快捷键绑定
149
- function bindShortcutKey(keys, callback) {
150
- function keyUpCallback(event) {
151
- // 处理特殊键
152
- const key = event.key.toLowerCase();
153
- const keyCode = SPECIAL_KEY_MAP.indexOf(key) > -1 ? key : event.keyCode;
154
- if (keys.indexOf(keyCode) > -1) {
155
- callback && callback(event);
156
- }
157
- }
158
- document.addEventListener("keyup", keyUpCallback);
159
- return function () {
160
- document.removeEventListener("keyup", keyUpCallback);
161
- };
162
- }
163
-
164
-
165
- function onKeyBoradBack(fn){
166
- function keyPressed(data){
167
- if ('back' == data.param.originValue) {
168
- fn && fn()
169
- }
170
- }
171
- document.addEventListener('keyPressed', keyPressed, false);
172
- return function(){
173
- document.removeEventListener('keyPressed', keyPressed);
174
- }
175
- }
176
-
177
-
178
- // -addEventListener
179
- function addEventListener(node, eventName, fn){
180
- node.addEventListener(eventName, fn, false);
181
- return function(){
182
- node.removeEventListener(eventName, fn);
183
- }
184
- }
@@ -1,68 +0,0 @@
1
- .pda-header {
2
- background-color:#000000;
3
- display: flex;
4
- flex-direction: row;
5
- // justify-content: center;
6
- align-items: center;
7
- color: white;
8
- height: 84px;
9
- .header-click-area {
10
- height: 100%;
11
- display: flex;
12
- align-items: center;
13
- flex-direction: row;
14
- }
15
- .pda-goback {
16
- background-image: url(https://img.alicdn.com/imgextra/i4/O1CN01O46CYm1Gc4yvZtk7A_!!6000000000642-2-tps-36-64.png);
17
- width: 18px;
18
- height: 32px;
19
- background-size: 100%;
20
- margin-left: 28px;
21
- margin-right: 8px;
22
- }
23
- .pda-header-icon {
24
- height: 36px;
25
- width: 36px;
26
- margin-left: 16px;
27
- background-size: 100%;
28
- background-repeat: no-repeat;
29
- // background-position: center;
30
- }
31
- .pda-header-icon-scan {
32
- background-image: url(https://img.alicdn.com/imgextra/i4/O1CN017UD9RM1vCKxsjxsrE_!!6000000006136-2-tps-68-68.png);
33
- }
34
- .pda-header-icon-select {
35
- background-image: url(https://img.alicdn.com/imgextra/i2/O1CN0170QXc91udWriUp19S_!!6000000006060-2-tps-74-72.png);
36
- }
37
- .pda-header-icon-read {
38
- background-image: url(https://img.alicdn.com/imgextra/i2/O1CN01EMphgH1ylYGXImCZn_!!6000000006619-2-tps-70-70.png);
39
- }
40
- .pda-title-text {
41
- margin-left: 16px;
42
- font-size: 40px;
43
- flex:1;
44
- }
45
-
46
- .pda-header-more {
47
- height: 36px;
48
- width: 36px;
49
- margin-left: 16px;
50
- background-image: url(https://img.alicdn.com/imgextra/i4/O1CN01dTdXds1p9gz4wKAve_!!6000000005318-2-tps-70-26.png);
51
- background-size: 100%;
52
- background-repeat: no-repeat;
53
- background-position: center;
54
- margin-right:15px;
55
- }
56
-
57
- .pda-menus {
58
- background-color: white;
59
- border-radius: 8px 8px 0 0;
60
- width: 100%;
61
- padding: 24px;
62
- display: flex;
63
- flex-direction: column;
64
- &>* {
65
- margin-bottom: 12px;
66
- }
67
- }
68
- }
@@ -1,244 +0,0 @@
1
- import React from "react";
2
- import InfoCard from "./index";
3
- export default function () {
4
- return (
5
- <div>
6
- <h1>InfoCard</h1>
7
- <p>InfoCard</p>
8
- <h2>示例</h2>
9
- {/* const { className, title, highlightInfo, highlightInfoCN, highlightSubInfo, highlightSubInfoCN, boldInfo, infoList = [], style={}, theme='light' } = this.props; */}
10
- <div className="light-block" style={{width:480, display:"block"}} >
11
- <InfoCard
12
- title="待拣件数"
13
- highlightInfo="800"
14
- highlightInfoCN = "件"
15
- highlightSubInfo="/800"
16
- highlightSubInfoCN="件"
17
- percentage={0.64}
18
- boldInfo="加粗显示:512/五厂综包一楼,这是加粗显示的货品名称可能有多行"
19
- infoList={
20
- [
21
- {label: '商品条码', content: '623126388798'},
22
- {label: '截止日期', content: '2022-07-25'},
23
- {label: '产品名称', content: '商品的名称'},
24
- {label: '品号', content: '12398765423'},
25
- ]
26
- }
27
- />
28
- <InfoCard
29
- title="待拣件数"
30
- highlightInfo="800"
31
- highlightInfoCN = "件"
32
- highlightSubInfo="/800"
33
- highlightSubInfoCN="件"
34
- percentage={0.64}
35
- boldInfo="加粗显示:512/五厂综包一楼,这是加粗显示的货品名称可能有多行"
36
- theme='dark'
37
- infoList={
38
- [
39
- {label: '商品条码', content: '623126388798'},
40
- {label: '截止日期', content: '2022-07-25'},
41
- {label: '产品名称', content: '商品的名称'},
42
- {label: '品号', content: '12398765423'},
43
- ]
44
- }
45
- />
46
- </div>
47
- <code className="code">{`
48
- <InfoCard
49
- title="待拣件数"
50
- highlightInfo="800"
51
- highlightInfoCN = "件"
52
- highlightSubInfo="/800"
53
- highlightSubInfoCN="件"
54
- percentage={0.64}
55
- boldInfo="加粗显示:512/五厂综包一楼,这是加粗显示的货品名称可能有多行"
56
- infoList={
57
- [
58
- {label: '商品条码', content: '623126388798'},
59
- {label: '截止日期', content: '2022-07-25'},
60
- {label: '产品名称', content: '商品的名称'},
61
- {label: '品号', content: '12398765423'},
62
- ]
63
- }
64
- />`}
65
- </code>
66
-
67
- <div className="light-block" style={{width:480, display:"block"}}>
68
- <InfoCard
69
- title="待拣件数"
70
- highlightInfo="800"
71
- highlightInfoCN = "件"
72
- highlightSubInfo="/800"
73
- highlightSubInfoCN="件"
74
- tagText="少货2"
75
- boldInfo="加粗显示:512/五厂综包一楼,这是加粗显示的货品名称可能有多行"
76
- theme='dark'
77
- infoList={
78
- [
79
- {label: '商品条码', content: '623126388798'},
80
- {label: '截止日期', content: '2022-07-25'},
81
- {label: '产品名称', content: '商品的名称'},
82
- {label: '品号', content: '12398765423'},
83
- ]
84
- }
85
- />
86
- </div>
87
- <code className="code">{`
88
- <InfoCard
89
- title="待拣件数"
90
- highlightInfo="800"
91
- highlightInfoCN = "件"
92
- highlightSubInfo="/800"
93
- highlightSubInfoCN="件"
94
- tagText="少货2"
95
- boldInfo="加粗显示:512/五厂综包一楼,这是加粗显示的货品名称可能有多行"
96
- theme='dark'
97
- infoList={
98
- [
99
- {label: '商品条码', content: '623126388798'},
100
- {label: '截止日期', content: '2022-07-25'},
101
- {label: '产品名称', content: '商品的名称'},
102
- {label: '品号', content: '12398765423'},
103
- ]
104
- }
105
- />`}
106
- </code>
107
- <div className="light-block" style={{width:480, display:"block"}}>
108
- <InfoCard
109
- title="漏扫箱数/识别总箱数"
110
- highlightInfo="0"
111
- highlightSubInfo="/40"
112
- infoImage={InfoCard.IMAGE_1}
113
- />
114
- </div>
115
- <code className="code">{`
116
- <InfoCard
117
- title="漏扫箱数/识别总箱数"
118
- highlightInfo="0"
119
- highlightSubInfo="/40"
120
- infoImage={InfoCard.IMAGE_1}
121
- />`}
122
- </code>
123
- <div className="light-block" style={{width:480, display:"block"}}>
124
- <InfoCard
125
- title="识别箱数(CS)"
126
- highlightInfo="0"
127
- highlightSubInfo="/50"
128
- subTitle="识别个数(EA)"
129
- subHighlightInfo="40"
130
- subHighlightSubInfo="/50"
131
- infoImage={InfoCard.IMAGE_1}
132
- />
133
- </div>
134
- <code className="code">{`
135
- <InfoCard
136
- title="识别箱数(CS)"
137
- highlightInfo="0"
138
- highlightSubInfo="/50"
139
- subTitle="识别个数(EA)"
140
- subHighlightInfo="40"
141
- subHighlightSubInfo="/50"
142
- infoImage={InfoCard.IMAGE_1}
143
- />`}
144
- </code>
145
- <h2>参数</h2>
146
- <table className="pure-table pure-table-bordered">
147
- <thead>
148
- <tr>
149
- <th>属性</th>
150
- <th>说明</th>
151
- <th>类型</th>
152
- <th>默认值</th>
153
- </tr>
154
- </thead>
155
- <tbody>
156
- <tr>
157
- <td>title</td>
158
- <td>标题</td>
159
- <td>string</td>
160
- <td></td>
161
- </tr>
162
- <tr>
163
- <td>highlightInfo</td>
164
- <td>高亮文本</td>
165
- <td>string</td>
166
- <td></td>
167
- </tr>
168
- <tr>
169
- <td>highlightInfoCN</td>
170
- <td>高亮文本(中文)</td>
171
- <td>string</td>
172
- <td></td>
173
- </tr>
174
- <tr>
175
- <td>highlightSubInfo</td>
176
- <td>高亮副文本</td>
177
- <td>string</td>
178
- <td></td>
179
- </tr>
180
- <tr>
181
- <td>highlightSubInfoCN</td>
182
- <td>高亮副文本(中文)</td>
183
- <td>string</td>
184
- <td></td>
185
- </tr>
186
- <tr>
187
- <td>subTitle</td>
188
- <td>副标题</td>
189
- <td>string</td>
190
- <td></td>
191
- </tr>
192
- <tr>
193
- <td>subHighlightInfo</td>
194
- <td>副高亮文本</td>
195
- <td>string</td>
196
- <td></td>
197
- </tr>
198
- <tr>
199
- <td>subHighlightSubInfo</td>
200
- <td>副高亮副文本</td>
201
- <td>string</td>
202
- <td></td>
203
- </tr>
204
- <tr>
205
- <td>boldInfo</td>
206
- <td>加粗文本</td>
207
- <td>string</td>
208
- <td></td>
209
- </tr>
210
- <tr>
211
- <td>theme</td>
212
- <td>主题</td>
213
- <td>string: light | dark</td>
214
- <td>light</td>
215
- </tr>
216
- <tr>
217
- <td>infoList</td>
218
- <td>更多信息</td>
219
- <td>object[]</td>
220
- <td></td>
221
- </tr>
222
- <tr>
223
- <td>percentage</td>
224
- <td>进度条百分比,传值时显示进度条</td>
225
- <td>number</td>
226
- <td></td>
227
- </tr>
228
- <tr>
229
- <td>tagText</td>
230
- <td> 右上角 tag 文本,传值时显示 tag</td>
231
- <td>string</td>
232
- <td></td>
233
- </tr>
234
- <tr>
235
- <td>infoImage</td>
236
- <td>左侧图片地址</td>
237
- <td>string</td>
238
- <td>可以使用 InfoCard.IMAGE_1 1张内置图片</td>
239
- </tr>
240
- </tbody>
241
- </table>
242
- </div>
243
- );
244
- }