@lm_fe/pages 0.1.201 → 0.2.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.
- package/README.md +0 -0
- package/dist/a_chunks/.root.js +1610 -222
- package/dist/a_chunks/.root10.js +494 -462
- package/dist/a_chunks/.root11.js +231 -159
- package/dist/a_chunks/.root12.js +245 -186
- package/dist/a_chunks/.root13.js +1898 -104
- package/dist/a_chunks/.root14.js +147 -716
- package/dist/a_chunks/.root15.js +27 -44
- package/dist/a_chunks/.root16.js +18 -168
- package/dist/a_chunks/.root17.js +20 -255
- package/dist/a_chunks/.root18.js +168 -385
- package/dist/a_chunks/.root19.js +119 -403
- package/dist/a_chunks/.root2.js +101 -73
- package/dist/a_chunks/.root20.js +74 -945
- package/dist/a_chunks/.root21.js +168 -202
- package/dist/a_chunks/.root22.js +677 -144
- package/dist/a_chunks/.root23.js +27 -956
- package/dist/a_chunks/.root24.js +126 -742
- package/dist/a_chunks/.root25.js +214 -265
- package/dist/a_chunks/.root26.js +391 -0
- package/dist/a_chunks/.root27.js +395 -0
- package/dist/a_chunks/.root28.js +948 -0
- package/dist/a_chunks/.root29.js +214 -0
- package/dist/a_chunks/.root3.js +56 -1044
- package/dist/a_chunks/.root30.js +130 -0
- package/dist/a_chunks/.root31.js +914 -0
- package/dist/a_chunks/.root32.js +860 -0
- package/dist/a_chunks/.root33.js +102 -0
- package/dist/a_chunks/.root34.js +157 -0
- package/dist/a_chunks/.root4.js +1004 -581
- package/dist/a_chunks/.root5.js +610 -1414
- package/dist/a_chunks/.root6.js +1399 -155
- package/dist/a_chunks/.root7.js +151 -123
- package/dist/a_chunks/.root8.js +82 -504
- package/dist/a_chunks/.root9.js +97 -60
- package/dist/a_chunks/data.js +572 -0
- package/dist/a_chunks/func.js +86 -0
- package/dist/a_chunks/index.js +942 -265
- package/dist/a_chunks/use_fetus.js +138 -0
- package/dist/a_chunks/utils.js +100 -0
- package/dist/a_chunks/utils2.js +36 -0
- package/dist/block//346/243/200/351/252/214/346/243/200/346/237/245/Inner.d.ts +1 -0
- package/dist/components/BF_Form/Wrap.d.ts +2 -2
- package/dist/components/BF_Form/index.d.ts +4 -2
- package/dist/components/BF_Form/types.d.ts +7 -0
- package/dist/components/BF_Form/use_table_config.d.ts +1 -5
- package/dist/components/Base_List/Helper.d.ts +0 -5
- package/dist/components/Base_List/_MyBaseList.d.ts +1 -0
- package/dist/components/Base_List/index.d.ts +2 -1
- package/dist/components/Base_List/types.d.ts +6 -3
- package/dist/components/Base_List/use_MyBaseList.d.ts +10 -0
- package/dist/components/Base_List/utils.d.ts +11 -0
- package/dist/components/IdNOButton/index copy.d.ts +1 -1
- package/dist/components/Layout_Sider/Inner.d.ts +2 -4
- package/dist/components/Layout_Sider/index.d.ts +2 -2
- package/dist/components/Layout_Sider/utils.d.ts +13 -0
- package/dist/components/Layout_TabButton/Inner.d.ts +2 -10
- package/dist/components/Layout_TabButton/index.d.ts +3 -8
- package/dist/components/Layout_TabButton/types.d.ts +8 -0
- package/dist/components/Login/Inner.d.ts +0 -1
- package/dist/components/Login/index.d.ts +2 -1
- package/dist/components/MenuSearch/Inner.d.ts +6 -0
- package/dist/components/MenuSearch/index.d.ts +2 -0
- package/dist/components/QuickDocButton/index.d.ts +5 -1
- package/dist/components/doctor_end/HeaderInfo/FuckTag.d.ts +6 -0
- package/dist/components/doctor_end/HeaderInfo/index.d.ts +1 -0
- package/dist/components/doctor_end/HeaderInfo/types.d.ts +1 -3
- package/dist/components/doctor_end/HeaderInfo/use_headinfo_color.d.ts +8 -0
- package/dist/components/exception/index.d.ts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/curve/components/BmiCanvas/index.d.ts +11 -0
- package/dist/curve/components/FetusCanvas/FetuGrowsEdit.d.ts +7 -0
- package/dist/curve/components/FetusCanvas/config.d.ts +3 -0
- package/dist/curve/components/FetusCanvas/index.d.ts +4 -0
- package/dist/curve/components/FetusCanvas/requestMethods.d.ts +7 -0
- package/dist/curve/components/FetusCanvasNICHD/config.d.ts +3 -0
- package/dist/curve/components/FetusCanvasNICHD/data.d.ts +84 -0
- package/dist/curve/components/FetusCanvasNICHD/index.d.ts +4 -0
- package/dist/curve/components/Pregnogram/index.d.ts +11 -0
- package/dist/curve/components/api.d.ts +17 -0
- package/dist/curve/components-new/FetusCanvas/config.d.ts +2 -0
- package/dist/curve/components-new/FetusCanvas/requestMethods.d.ts +7 -0
- package/dist/curve/components-new/FetusCanvasNICHD/config.d.ts +2 -0
- package/dist/curve/components-new/FetusCanvasNICHD/data.d.ts +84 -0
- package/dist/curve/data.d.ts +125 -0
- package/dist/curve/func.d.ts +12 -0
- package/dist/curve/func.test.d.ts +1 -0
- package/dist/curve/index.d.ts +7 -0
- package/dist/curve/intro-steps.d.ts +7 -0
- package/dist/curve/utils.d.ts +8 -0
- package/dist/form_config/conceiveMode.d.ts +2 -0
- package/dist/form_config/index.d.ts +4 -0
- package/dist/form_config/mlUltrasounds.d.ts +2 -0
- package/dist/form_config/not_yes_input.d.ts +4 -0
- package/dist/form_config/pressure.d.ts +4 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +8 -33
- package/dist/modals/entries/StupidTemplateModal2/index copy.d.ts +22 -0
- package/dist/modals/entries/StupidTemplateModal2/index.d.ts +1 -2
- package/dist/modals/entries/box/index.d.ts +6 -0
- package/dist/modals/entries/modal_form/index.d.ts +1 -1
- package/dist/modals/entries/result_template/index.d.ts +24 -0
- package/dist/modals/entries/template_modal3/components/TemplateSelect.d.ts +2 -1
- package/dist/modals/entries/template_modal3/index copy 2.d.ts +1 -1
- package/dist/modals/entries/template_modal3/index.d.ts +5 -3
- package/dist/modals/entries/text_search/index.d.ts +1 -1
- package/dist/modals/entries//344/271/231/350/202/235/347/256/241/347/220/206/index.d.ts +1 -1
- package/dist/modals/entries//345/255/220/347/227/253/345/211/215/346/234/237/351/243/216/351/231/251/350/257/204/344/274/260/350/241/250/utils.d.ts +5 -0
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/ThrombusGysy.d.ts +2 -7
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/2015RCOG/351/231/215/344/275/216/345/246/212/345/250/240/345/217/212/344/272/247/350/244/245/346/234/237/351/235/231/350/204/211/350/241/200/346/240/223/346/240/223/345/241/236/347/232/204/351/243/216/351/231/251_/345/271/277/344/270/211/config.d.ts +2 -1
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/Default/ThrombusDefault.d.ts +2 -7
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/index.d.ts +2 -2
- package/dist/modals/entries//346/267/261/351/235/231/350/204/211/350/241/200/346/240/223/351/253/230/345/215/261/345/233/240/347/264/240/345/255/225/346/234/237/347/224/250/350/215/257/347/255/233/346/237/245/350/241/250/types.d.ts +3 -3
- package/dist/modals/entries//347/230/242/347/227/225/345/255/220/345/256/253/351/230/264/351/201/223/350/257/225/344/272/247/350/241/250/index.d.ts +2 -2
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/HighriskSign.d.ts +4 -5
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/HighriskTimeline.d.ts +1 -1
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/Tag.d.ts +12 -0
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/utils.d.ts +8 -0
- package/dist/modals/entries//351/253/230/345/215/261/351/232/217/350/256/277/form_config.d.ts +4 -2
- package/dist/modals/index.d.ts +2 -0
- package/dist/modals/meta.d.ts +2 -0
- package/dist/pages/doc_record/index.d.ts +1 -1
- package/dist/pages/index.d.ts +1 -0
- package/dist/pages/questionnaire/Inner.d.ts +4 -0
- package/dist/pages/questionnaire/Qn.d.ts +3 -0
- package/dist/pages/questionnaire/SelectButton.d.ts +4 -0
- package/dist/pages/questionnaire/create/Step2Right.d.ts +11 -0
- package/dist/pages/questionnaire/create/common.d.ts +46 -0
- package/dist/pages/questionnaire/create/fakeData.d.ts +6 -0
- package/dist/pages/questionnaire/create/question-item.d.ts +14 -0
- package/dist/pages/questionnaire/create/step1.d.ts +12 -0
- package/dist/pages/questionnaire/create/step2.d.ts +10 -0
- package/dist/pages/questionnaire/create/step3.d.ts +8 -0
- package/dist/pages/questionnaire/create/step4.d.ts +8 -0
- package/dist/pages/questionnaire/index.d.ts +3 -0
- package/dist/pages/questionnaire/types.d.ts +10 -0
- package/dist/utils/helper.d.ts +5 -0
- package/dist/utils/index.d.ts +2 -1
- package/package.json +34 -16
- package/dist/a_chunks/.root.js.map +0 -1
- package/dist/a_chunks/.root10.js.map +0 -1
- package/dist/a_chunks/.root11.js.map +0 -1
- package/dist/a_chunks/.root12.js.map +0 -1
- package/dist/a_chunks/.root13.js.map +0 -1
- package/dist/a_chunks/.root14.js.map +0 -1
- package/dist/a_chunks/.root15.js.map +0 -1
- package/dist/a_chunks/.root16.js.map +0 -1
- package/dist/a_chunks/.root17.js.map +0 -1
- package/dist/a_chunks/.root18.js.map +0 -1
- package/dist/a_chunks/.root19.js.map +0 -1
- package/dist/a_chunks/.root2.js.map +0 -1
- package/dist/a_chunks/.root20.js.map +0 -1
- package/dist/a_chunks/.root21.js.map +0 -1
- package/dist/a_chunks/.root22.js.map +0 -1
- package/dist/a_chunks/.root23.js.map +0 -1
- package/dist/a_chunks/.root24.js.map +0 -1
- package/dist/a_chunks/.root25.js.map +0 -1
- package/dist/a_chunks/.root3.js.map +0 -1
- package/dist/a_chunks/.root4.js.map +0 -1
- package/dist/a_chunks/.root5.js.map +0 -1
- package/dist/a_chunks/.root6.js.map +0 -1
- package/dist/a_chunks/.root7.js.map +0 -1
- package/dist/a_chunks/.root8.js.map +0 -1
- package/dist/a_chunks/.root9.js.map +0 -1
- package/dist/a_chunks/extends.js +0 -11
- package/dist/a_chunks/extends.js.map +0 -1
- package/dist/a_chunks/index.js.map +0 -1
- package/dist/components/BF_Form/use_table_config copy.d.ts +0 -13
- package/dist/index.js.map +0 -1
- package/dist/modals/entries/StupidTemplateModal2/methods/index.d.ts +0 -16
- package/dist/modals/entries//351/242/204/350/255/246/346/217/220/351/206/222_/351/253/230/345/215/261/345/277/253/350/256/257/add-diagnoses/add-diagnoses.d.ts +0 -12
- package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/index copy.d.ts" +0 -12
package/dist/a_chunks/.root7.js
CHANGED
|
@@ -1,123 +1,151 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}, {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}, {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
},
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
},
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}]
|
|
122
|
-
|
|
123
|
-
|
|
1
|
+
import { MyIcon } from '@lm_fe/components';
|
|
2
|
+
import { mchcEnv } from '@lm_fe/env';
|
|
3
|
+
import { use_provoke } from '@lm_fe/provoke';
|
|
4
|
+
import { Card, Button, Form, Input, Checkbox } from 'antd';
|
|
5
|
+
import classnames from 'classnames';
|
|
6
|
+
import React, { useEffect, useState } from 'react';
|
|
7
|
+
import { s as styleInject } from './index.js';
|
|
8
|
+
import '@lm_fe/utils';
|
|
9
|
+
import 'lodash';
|
|
10
|
+
import '@lm_fe/components_m';
|
|
11
|
+
import '@lm_fe/service';
|
|
12
|
+
var css_248z = ".index-module_container__1EUKg {\n display: flex;\n height: 100vh;\n margin: 0;\n}\n.index-module_left-panel__mfu8l {\n flex: 1;\n}\n.index-module_right-panel__OpwE7 {\n flex: 1;\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-direction: column;\n}\n.index-module_login-form__HKinZ {\n width: 440px;\n padding: 40px;\n border-radius: 4px;\n box-shadow: 10px 10px 20px rgba(1, 36, 73, 0.4);\n transform: translateY(-100%);\n opacity: 0;\n}\n.index-module_login-form__HKinZ .anticon {\n color: #888;\n}\n.index-module_decorations__jWpju {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n pointer-events: none;\n overflow: hidden;\n}\n.index-module_dot__u7Mwf {\n position: absolute;\n background: rgba(255, 255, 255, 0.4);\n border-radius: 50%;\n opacity: 0;\n}\n.index-module_dot-1__8i7U7 {\n width: 120px;\n height: 120px;\n top: 20%;\n left: 10%;\n animation: index-module_slide-in__HvqeU 0.8s ease-out forwards;\n animation-delay: 0.2s;\n}\n.index-module_dot-2__wt9fy {\n width: 80px;\n height: 80px;\n bottom: 15%;\n left: 5%;\n animation: index-module_slide-in__HvqeU 0.8s ease-out forwards;\n animation-delay: 0.4s;\n}\n.index-module_dot-3__Yy4mm {\n width: 60px;\n height: 60px;\n top: 40%;\n left: 30%;\n animation: index-module_slide-in__HvqeU 0.8s ease-out forwards;\n animation-delay: 0.6s;\n}\n.index-module_login-form__HKinZ {\n position: relative;\n z-index: 1;\n}\n@keyframes index-module_slide-in__HvqeU {\n 0% {\n transform: translateY(-100%);\n opacity: 0;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n}\n.index-module_animate-in__yVlC0 {\n animation: index-module_slide-in__HvqeU 0.5s ease-out forwards;\n}\n.index-module_footer__dtz-2 {\n text-align: center;\n padding-bottom: 24px;\n color: #999;\n font-size: 12px;\n}\n";
|
|
13
|
+
var styles = {
|
|
14
|
+
"container": "index-module_container__1EUKg",
|
|
15
|
+
"left-panel": "index-module_left-panel__mfu8l",
|
|
16
|
+
"right-panel": "index-module_right-panel__OpwE7",
|
|
17
|
+
"login-form": "index-module_login-form__HKinZ",
|
|
18
|
+
"decorations": "index-module_decorations__jWpju",
|
|
19
|
+
"dot": "index-module_dot__u7Mwf",
|
|
20
|
+
"dot-1": "index-module_dot-1__8i7U7",
|
|
21
|
+
"slide-in": "index-module_slide-in__HvqeU",
|
|
22
|
+
"dot-2": "index-module_dot-2__wt9fy",
|
|
23
|
+
"dot-3": "index-module_dot-3__Yy4mm",
|
|
24
|
+
"animate-in": "index-module_animate-in__yVlC0",
|
|
25
|
+
"footer": "index-module_footer__dtz-2"
|
|
26
|
+
};
|
|
27
|
+
styleInject(css_248z);
|
|
28
|
+
function LoginInner(props) {
|
|
29
|
+
var logo = props.logo,
|
|
30
|
+
onFinish = props.onFinish;
|
|
31
|
+
var _a = use_provoke('config', 'sys_theme'),
|
|
32
|
+
config = _a.config,
|
|
33
|
+
sys_theme = _a.sys_theme;
|
|
34
|
+
useEffect(function () {
|
|
35
|
+
return function () {};
|
|
36
|
+
}, []);
|
|
37
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
38
|
+
className: classnames(styles["container"])
|
|
39
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
40
|
+
style: {
|
|
41
|
+
background: sys_theme.colorPrimary
|
|
42
|
+
},
|
|
43
|
+
className: classnames(styles["left-panel"])
|
|
44
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
45
|
+
className: classnames(styles["decorations "])
|
|
46
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
47
|
+
className: classnames(styles["dot"], styles["dot-1"])
|
|
48
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
49
|
+
className: classnames(styles["dot"], styles["dot-2"])
|
|
50
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
51
|
+
className: classnames(styles["dot"], styles["dot-3"])
|
|
52
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
53
|
+
className: classnames(styles["right-panel"]),
|
|
54
|
+
style: {
|
|
55
|
+
background: sys_theme.darkTheme ? '#222' : '#fff'
|
|
56
|
+
}
|
|
57
|
+
}, /*#__PURE__*/React.createElement("div", null), /*#__PURE__*/React.createElement(Card, {
|
|
58
|
+
className: classnames(styles["login-form"], styles["animate-in"])
|
|
59
|
+
}, /*#__PURE__*/React.createElement("h2", {
|
|
60
|
+
style: {
|
|
61
|
+
display: 'flex',
|
|
62
|
+
justifyContent: 'center',
|
|
63
|
+
alignItems: 'center',
|
|
64
|
+
fontSize: 24,
|
|
65
|
+
color: sys_theme.colorPrimary
|
|
66
|
+
}
|
|
67
|
+
}, logo ? /*#__PURE__*/React.createElement("img", {
|
|
68
|
+
alt: "logo",
|
|
69
|
+
src: logo
|
|
70
|
+
}) : null, config === null || config === void 0 ? void 0 : config.systemName), /*#__PURE__*/React.createElement(LoginForm, {
|
|
71
|
+
onFinish: onFinish
|
|
72
|
+
})), /*#__PURE__*/React.createElement("footer", {
|
|
73
|
+
className: classnames(styles["footer"])
|
|
74
|
+
}, /*#__PURE__*/React.createElement("div", null, "\u5907\u6848\u53F7\uFF1A", /*#__PURE__*/React.createElement(Button, {
|
|
75
|
+
type: 'link',
|
|
76
|
+
href: "https://beian.miit.gov.cn"
|
|
77
|
+
}, "\u7CA4ICP\u590717048892\u53F7-1")), "Copyright \xA9 2020", ' ', /*#__PURE__*/React.createElement(Button, {
|
|
78
|
+
size: 'small',
|
|
79
|
+
type: 'link',
|
|
80
|
+
href: "http://www.lian-med.com/"
|
|
81
|
+
}, "\u5E7F\u5DDE\u83B2\u5370\u533B\u7597\u79D1\u6280\u6709\u9650\u516C\u53F8"), ", \u7248\u6743\u6240\u6709")));
|
|
82
|
+
}
|
|
83
|
+
function LoginForm(props) {
|
|
84
|
+
var _onFinish = props.onFinish;
|
|
85
|
+
var _a = useState(false),
|
|
86
|
+
loading = _a[0],
|
|
87
|
+
setLoading = _a[1];
|
|
88
|
+
return /*#__PURE__*/React.createElement(Form, {
|
|
89
|
+
initialValues: mchcEnv.loginRemember,
|
|
90
|
+
className: "login-main-center-form",
|
|
91
|
+
onFinish: function onFinish(values) {
|
|
92
|
+
if (values.remember) {
|
|
93
|
+
mchcEnv.loginRemember = values;
|
|
94
|
+
}
|
|
95
|
+
setLoading(true);
|
|
96
|
+
_onFinish(values)["finally"](function () {
|
|
97
|
+
return setLoading(false);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
101
|
+
name: "username",
|
|
102
|
+
rules: [{
|
|
103
|
+
required: true,
|
|
104
|
+
message: '请输入用户名!'
|
|
105
|
+
}]
|
|
106
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
107
|
+
autoFocus: true,
|
|
108
|
+
allowClear: true,
|
|
109
|
+
size: "large",
|
|
110
|
+
prefix: /*#__PURE__*/React.createElement(MyIcon, {
|
|
111
|
+
value: 'UserOutlined'
|
|
112
|
+
}),
|
|
113
|
+
placeholder: "\u8BF7\u8F93\u5165\u7528\u6237\u540D"
|
|
114
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
115
|
+
name: "password",
|
|
116
|
+
rules: [{
|
|
117
|
+
required: true,
|
|
118
|
+
message: '请输入密码!'
|
|
119
|
+
}, {
|
|
120
|
+
type: 'string'
|
|
121
|
+
}]
|
|
122
|
+
}, /*#__PURE__*/React.createElement(Input.Password, {
|
|
123
|
+
visibilityToggle: false,
|
|
124
|
+
allowClear: true,
|
|
125
|
+
size: "large",
|
|
126
|
+
prefix: /*#__PURE__*/React.createElement(MyIcon, {
|
|
127
|
+
value: 'SafetyOutlined'
|
|
128
|
+
}),
|
|
129
|
+
placeholder: "\u8BF7\u8F93\u5165\u5BC6\u7801"
|
|
130
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
131
|
+
hidden: !__LOCAL__,
|
|
132
|
+
valuePropName: "checked",
|
|
133
|
+
name: "remember",
|
|
134
|
+
label: "\u8BB0\u4F4F\u5BC6\u7801\uFF08".concat(__LOCAL__, "\uFF09")
|
|
135
|
+
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
136
|
+
onChange: function onChange(e) {
|
|
137
|
+
var checked = e.target.checked;
|
|
138
|
+
if (!checked) {
|
|
139
|
+
mchcEnv.loginRemember = undefined;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
})), /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement(Button, {
|
|
143
|
+
block: true,
|
|
144
|
+
size: "large",
|
|
145
|
+
className: "login-main-center-button",
|
|
146
|
+
type: "primary",
|
|
147
|
+
loading: loading,
|
|
148
|
+
htmlType: "submit"
|
|
149
|
+
}, "\u767B \u5F55")));
|
|
150
|
+
}
|
|
151
|
+
export { LoginInner as default };
|