cfel-base-components 2.1.1 → 2.1.2

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.
@@ -0,0 +1,3 @@
1
+ {
2
+ "typescript.tsdk": "node_modules/typescript/lib"
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cfel-base-components",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "cfel-base-components",
5
5
  "main": "/src/index.tsx",
6
6
  "types": "src/index.d.ts",
@@ -0,0 +1,10 @@
1
+ // @ts-nocheck
2
+ // This file is generated by Umi automatically
3
+ // DO NOT CHANGE IT MANUALLY!
4
+ import React from 'react';
5
+ import { HelmetProvider } from '/Users/wujingang/Desktop/workspace/base-components/node_modules/@umijs/renderer-react';
6
+ import { context } from './helmetContext';
7
+
8
+ export const innerProvider = (container) => {
9
+ return React.createElement(HelmetProvider, { context }, container);
10
+ }
@@ -0,0 +1,4 @@
1
+ // @ts-nocheck
2
+ // This file is generated by Umi automatically
3
+ // DO NOT CHANGE IT MANUALLY!
4
+ export const context = {};
@@ -29,6 +29,10 @@ export interface LiosLayoutlProps {
29
29
  availableAmount: string,
30
30
  currency: string
31
31
  }
32
+ amountInfo?: {
33
+ residueNum: string,
34
+ currencyCode: string
35
+ }
32
36
  myWalletInfoAction?: Function,
33
37
  logoutUrl?: string,
34
38
  switchTenantUrl?: string,
@@ -54,6 +58,7 @@ export default function LiosLayout(props: LiosLayoutlProps) {
54
58
  defaultOpenKeys,
55
59
  productList,
56
60
  myWalletInfo,
61
+ amountInfo,
57
62
  myWalletInfoAction,
58
63
  isHideHeader
59
64
  } = props
@@ -77,6 +82,11 @@ export default function LiosLayout(props: LiosLayoutlProps) {
77
82
  currency
78
83
  } = myWalletInfo || {}
79
84
 
85
+ const {
86
+ residueNum,
87
+ currencyCode
88
+ } = amountInfo || {}
89
+
80
90
  const [openKeys, setOpenKeys] = useState<any>(defaultOpenKeys || []);
81
91
  // const [currentProduct, setCurrentProduct] = useState<any>({});
82
92
 
@@ -154,6 +164,16 @@ export default function LiosLayout(props: LiosLayoutlProps) {
154
164
  {availableAmount || '加载中...'}
155
165
  </div>
156
166
  </div>
167
+ {
168
+ amountInfo &&
169
+ <div className='lios-li'>
170
+ <div className='lios-key'>抵用金余额</div>
171
+ <div className='lios-value'><span>{currencyText(currencyCode)}</span>
172
+ {residueNum || '加载中...'}
173
+ </div>
174
+ </div>
175
+ }
176
+
157
177
  </div>
158
178
  }
159
179
  {