cfel-base-components 2.2.5 → 2.3.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cfel-base-components",
3
- "version": "2.2.5",
3
+ "version": "2.3.0",
4
4
  "description": "cfel-base-components",
5
5
  "main": "/src/index.tsx",
6
6
  "types": "src/index.d.ts",
@@ -9,7 +9,6 @@ instance.interceptors.request.use(
9
9
  (config: any) => {
10
10
  config.headers = {
11
11
  ...config.headers,
12
- "cfel-token": (window as any)?.g_config?.token
13
12
  } as AxiosRequestHeaders;
14
13
 
15
14
  config.params = {
@@ -3,6 +3,11 @@ import { Layout, Menu, MenuProps, Popover } from 'antd';
3
3
  import { SwapOutlined, FormOutlined } from '@ant-design/icons';
4
4
  import "./index.scss"
5
5
 
6
+ const currencyList = [
7
+ { value: 'JPY', label: '日元', icon: '¥' },
8
+ { value: 'USD', label: '美元', icon: "$" },
9
+ { value: 'CNY', label: '人民币', icon: '¥' }
10
+ ]
6
11
  export interface LiosLayoutlProps {
7
12
  appName?: any;
8
13
  productCode: string;
@@ -94,11 +99,6 @@ export default function LiosLayout(props: LiosLayoutlProps) {
94
99
 
95
100
  const [collapsed, setCollapsed] = useState(false);
96
101
 
97
- const [currencyList, setCurrencyList] = useState([
98
- { value: 'JPY', label: '日元', icon: '¥' },
99
- { value: 'USD', label: '美元', icon: "$" },
100
- { value: 'CNY', label: '人民币', icon: '¥' }
101
- ])
102
102
 
103
103
  // useEffect(() => {
104
104
  // if (!productList) return
@@ -165,7 +165,7 @@ export default function LiosLayout(props: LiosLayoutlProps) {
165
165
  </div>
166
166
  </div>
167
167
  {
168
- amountInfo &&
168
+ amountInfo &&
169
169
  <div className='lios-li'>
170
170
  <div className='lios-key'>抵用金余额</div>
171
171
  <div className='lios-value'><span>{currencyText(currencyCode)}</span>
@@ -173,7 +173,7 @@ export default function LiosLayout(props: LiosLayoutlProps) {
173
173
  </div>
174
174
  </div>
175
175
  }
176
-
176
+
177
177
  </div>
178
178
  }
179
179
  {
@@ -239,6 +239,7 @@ export default function LiosLayout(props: LiosLayoutlProps) {
239
239
  const MenuStyle = {
240
240
  width: collapsed ? 80 : 240
241
241
  }
242
+
242
243
  return (
243
244
  <Layout className="layout-warp">
244
245
  {
@@ -1,3 +0,0 @@
1
- {
2
- "typescript.tsdk": "node_modules/typescript/lib"
3
- }
@@ -1,10 +0,0 @@
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
- }
@@ -1,4 +0,0 @@
1
- // @ts-nocheck
2
- // This file is generated by Umi automatically
3
- // DO NOT CHANGE IT MANUALLY!
4
- export const context = {};