cfel-base-components 2.2.4 → 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.4",
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 = {
@@ -49,7 +49,8 @@ body {
49
49
  left: 36px;
50
50
  height: 48px;
51
51
  top: 0;
52
- width: 255px;
52
+ min-width: 255px;
53
+ width: auto;
53
54
  position: absolute;
54
55
  z-index: 1;
55
56
  display: inline-flex;
@@ -3,8 +3,13 @@ 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
- appName?: string;
12
+ appName?: any;
8
13
  productCode: string;
9
14
  children: any;
10
15
  menuList: any;
@@ -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
  {
@@ -113,8 +113,7 @@ export default function Account({
113
113
  </a>
114
114
  <a onClick={() => {
115
115
  Modal.confirm({
116
- title: "确认删除吗?",
117
- content: '',
116
+ title: `确认删除${rowdata?.name}吗?`,
118
117
  onOk: () => {
119
118
  DeleteFunc(rowdata?.id)
120
119
  }
@@ -90,7 +90,7 @@ export default function Role({
90
90
  rowdata.source !== "system" &&
91
91
  <a onClick={() => {
92
92
  Modal.confirm({
93
- title: "确认删除吗?",
93
+ title: `确认删除${rowdata?.roleName}吗?`,
94
94
  content: '',
95
95
  onOk: () => {
96
96
  DeleteFunc(rowdata?.roleCode)