cfel-base-components 2.5.31 → 2.5.33

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.5.31",
3
+ "version": "2.5.33",
4
4
  "description": "cfel-base-components",
5
5
  "main": "/src/index.tsx",
6
6
  "types": "src/index.d.ts",
@@ -32,7 +32,6 @@
32
32
  "less-loader": "^11.1.3",
33
33
  "lodash": "^4.17.21",
34
34
  "mini-css-extract-plugin": "^2.7.6",
35
- "node-sass": "^9.0.0",
36
35
  "postcss": "^8.4.24",
37
36
  "postcss-loader": "^7.3.3",
38
37
  "postcss-preset-env": "^8.5.1",
@@ -49,11 +48,12 @@
49
48
  "peerDependencies": {
50
49
  "@ant-design/icons": "^5.1.4",
51
50
  "@ant-design/pro-components": "^2.6.12",
52
- "antd": "^5.5.2"
51
+ "antd": "^5.16.1"
53
52
  },
54
53
  "dependencies": {
55
54
  "dayjs": "^1.11.9",
56
55
  "html2canvas": "^1.4.1",
57
- "qrcode.react": "^3.1.0"
56
+ "qrcode.react": "^3.1.0",
57
+ "sass": "^1.77.6"
58
58
  }
59
59
  }
@@ -1,4 +1,6 @@
1
1
  .pagination {
2
+ display: flex;
3
+ justify-content: flex-end;
2
4
  text-align: right;
3
5
  padding-right: 24px;
4
- }
6
+ }
@@ -1,22 +1,20 @@
1
- import React from 'react';
2
- import { Pagination, PaginationProps } from 'antd';
3
- import classnames from 'classnames/bind';
4
- import styles from "./index.module.less"
5
- const cx = classnames.bind(styles);
1
+ import React from 'react'
2
+ import { Pagination, PaginationProps } from 'antd'
3
+ import classnames from 'classnames/bind'
4
+ import styles from './index.module.less'
5
+ const cx = classnames.bind(styles)
6
6
 
7
- export default function PaginationComponent({
8
- className,
9
- ...restFileds
10
- }: PaginationProps | any) {
11
- return (<Pagination
12
- className={cx({
13
- pagination: true,
14
- [className]: true
15
- })}
16
- showQuickJumper
17
- showSizeChanger
18
- showTotal={(total) => `共 ${total} 条`}
19
- {...restFileds}
20
- />
7
+ export default function PaginationComponent({ className, ...restFileds }: PaginationProps | any) {
8
+ return (
9
+ <Pagination
10
+ className={cx({
11
+ pagination: true,
12
+ [className]: true,
13
+ })}
14
+ showQuickJumper
15
+ showSizeChanger
16
+ showTotal={(total) => `共 ${total} 条`}
17
+ {...restFileds}
18
+ />
21
19
  )
22
- }
20
+ }
@@ -136,7 +136,7 @@ export default function UserCard({
136
136
  <div className='lios-valueMare'>
137
137
  <a
138
138
  onClick={() => {
139
- location.href = '/web/capital-wallet'
139
+ window.open('/web/capital-wallet')
140
140
  }}
141
141
  >
142
142
  跳转
@@ -236,7 +236,7 @@ export default function Index({
236
236
  value.password = generateRandomString()
237
237
  }
238
238
  delete value.passwordType
239
- actionFunc(value, 'add').then(() => setLoading(false))
239
+ actionFunc(value, 'add').finally(() => setLoading(false))
240
240
  })
241
241
  }
242
242
  return (