@yeeyoon/library 2.6.4 → 2.6.8
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/lib/components/Header/index.jsx +2 -3
- package/lib/components/Header/index.less +2 -1
- package/lib/components/ModifyPassword/Captcha.jsx +8 -1
- package/lib/components/ModifyPassword/index.jsx +6 -2
- package/lib/components/Notification/index.less +3 -3
- package/package.json +1 -1
- package/src/pages/index.js +2 -0
@@ -63,9 +63,8 @@ const Header = (props) => {
|
|
63
63
|
const [systemUserInfo, setSystemUserInfo] = useState(null);
|
64
64
|
const [tenants, setTenants] = useState([]);
|
65
65
|
const [userId, setUserId] = useState([]);
|
66
|
-
const [productListMenuDrawerShow, setProductListMenuDrawerShow] =
|
67
|
-
false
|
68
|
-
);
|
66
|
+
const [productListMenuDrawerShow, setProductListMenuDrawerShow] =
|
67
|
+
useState(false);
|
69
68
|
const [platformsModalShow, setPlatformsModalShow] = useState(false);
|
70
69
|
const [avatarProps, setAvatarProps] = useState({});
|
71
70
|
const [redirectUrl, setRedirectUrl] = useState('');
|
@@ -1,16 +1,19 @@
|
|
1
1
|
import React from 'react';
|
2
|
+
import PropTypes from 'prop-types';
|
2
3
|
import { notification } from 'antd';
|
3
4
|
import { ProFormText, ProFormCaptcha } from '@ant-design/pro-form';
|
4
5
|
|
5
6
|
import { mobileRule } from './rule.config';
|
6
7
|
import { sendResetCaptcha } from './service';
|
7
8
|
|
8
|
-
const Captcha = () => {
|
9
|
+
const Captcha = (props) => {
|
10
|
+
const { cellphone } = props;
|
9
11
|
return (
|
10
12
|
<>
|
11
13
|
<ProFormText
|
12
14
|
fieldProps={{
|
13
15
|
size: 'large',
|
16
|
+
disabled: cellphone ? true : false,
|
14
17
|
}}
|
15
18
|
name="mobile"
|
16
19
|
placeholder="请输入手机号"
|
@@ -51,4 +54,8 @@ const Captcha = () => {
|
|
51
54
|
);
|
52
55
|
};
|
53
56
|
|
57
|
+
Captcha.propTypes = {
|
58
|
+
cellphone: PropTypes.string,
|
59
|
+
};
|
60
|
+
|
54
61
|
export default Captcha;
|
@@ -10,7 +10,7 @@ import Captcha from './Captcha';
|
|
10
10
|
import styles from './universal.less';
|
11
11
|
|
12
12
|
const Forget = (props) => {
|
13
|
-
const { reqCb, hideTitle = false } = props;
|
13
|
+
const { reqCb, hideTitle = false, cellphone } = props;
|
14
14
|
const [step, setStep] = useState('captcha');
|
15
15
|
const [mobile, setMobile] = useState('');
|
16
16
|
|
@@ -23,6 +23,9 @@ const Forget = (props) => {
|
|
23
23
|
<Card bordered={false} className={styles['universal-login__card']}>
|
24
24
|
<ProForm
|
25
25
|
submitter={false}
|
26
|
+
initialValues={{
|
27
|
+
mobile: cellphone ? cellphone : '',
|
28
|
+
}}
|
26
29
|
onFinish={async (values) => {
|
27
30
|
let response;
|
28
31
|
if (step === 'captcha') {
|
@@ -50,7 +53,7 @@ const Forget = (props) => {
|
|
50
53
|
}
|
51
54
|
}}
|
52
55
|
>
|
53
|
-
{step === 'captcha' && <Captcha />}
|
56
|
+
{step === 'captcha' && <Captcha cellphone={cellphone} />}
|
54
57
|
|
55
58
|
{step === 'password' && (
|
56
59
|
<>
|
@@ -106,6 +109,7 @@ const Forget = (props) => {
|
|
106
109
|
Forget.propTypes = {
|
107
110
|
reqCb: PropTypes.func.required,
|
108
111
|
hideTitle: PropTypes.bool,
|
112
|
+
cellphone: PropTypes.string,
|
109
113
|
};
|
110
114
|
|
111
115
|
export default Forget;
|
@@ -46,9 +46,9 @@
|
|
46
46
|
// .ant-pro-basicLayout-content {
|
47
47
|
// margin: 0 !important;
|
48
48
|
// }
|
49
|
-
.ant-pro-table-list-toolbar-container {
|
50
|
-
|
51
|
-
}
|
49
|
+
// .ant-pro-table-list-toolbar-container {
|
50
|
+
// padding: 0 !important;
|
51
|
+
// }
|
52
52
|
.ant-list-empty-text {
|
53
53
|
background-color: #fff !important;
|
54
54
|
}
|
package/package.json
CHANGED
package/src/pages/index.js
CHANGED
@@ -3,6 +3,7 @@ import Header from '../../lib/components/Header/';
|
|
3
3
|
import TenantSelector from '../../lib/components/TenantSelector/';
|
4
4
|
import CustomDefaultFooter from '../../lib/components/DefaultFooter/';
|
5
5
|
import PageLoading from '../../lib/components/PageLoading/';
|
6
|
+
// import ModifyPassword from '../../lib/components/ModifyPassword/';
|
6
7
|
|
7
8
|
// eslint-disable-next-line react/display-name
|
8
9
|
export default function () {
|
@@ -15,6 +16,7 @@ export default function () {
|
|
15
16
|
/> */}
|
16
17
|
{/* <CustomDefaultFooter /> */}
|
17
18
|
{/* <PageLoading /> */}
|
19
|
+
{/* {<ModifyPassword />} */}
|
18
20
|
</>
|
19
21
|
);
|
20
22
|
}
|