@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.
Files changed (173) hide show
  1. package/README.md +0 -0
  2. package/dist/a_chunks/.root.js +1610 -222
  3. package/dist/a_chunks/.root10.js +494 -462
  4. package/dist/a_chunks/.root11.js +231 -159
  5. package/dist/a_chunks/.root12.js +245 -186
  6. package/dist/a_chunks/.root13.js +1898 -104
  7. package/dist/a_chunks/.root14.js +147 -716
  8. package/dist/a_chunks/.root15.js +27 -44
  9. package/dist/a_chunks/.root16.js +18 -168
  10. package/dist/a_chunks/.root17.js +20 -255
  11. package/dist/a_chunks/.root18.js +168 -385
  12. package/dist/a_chunks/.root19.js +119 -403
  13. package/dist/a_chunks/.root2.js +101 -73
  14. package/dist/a_chunks/.root20.js +74 -945
  15. package/dist/a_chunks/.root21.js +168 -202
  16. package/dist/a_chunks/.root22.js +677 -144
  17. package/dist/a_chunks/.root23.js +27 -956
  18. package/dist/a_chunks/.root24.js +126 -742
  19. package/dist/a_chunks/.root25.js +214 -265
  20. package/dist/a_chunks/.root26.js +391 -0
  21. package/dist/a_chunks/.root27.js +395 -0
  22. package/dist/a_chunks/.root28.js +948 -0
  23. package/dist/a_chunks/.root29.js +214 -0
  24. package/dist/a_chunks/.root3.js +56 -1044
  25. package/dist/a_chunks/.root30.js +130 -0
  26. package/dist/a_chunks/.root31.js +914 -0
  27. package/dist/a_chunks/.root32.js +860 -0
  28. package/dist/a_chunks/.root33.js +102 -0
  29. package/dist/a_chunks/.root34.js +157 -0
  30. package/dist/a_chunks/.root4.js +1004 -581
  31. package/dist/a_chunks/.root5.js +610 -1414
  32. package/dist/a_chunks/.root6.js +1399 -155
  33. package/dist/a_chunks/.root7.js +151 -123
  34. package/dist/a_chunks/.root8.js +82 -504
  35. package/dist/a_chunks/.root9.js +97 -60
  36. package/dist/a_chunks/data.js +572 -0
  37. package/dist/a_chunks/func.js +86 -0
  38. package/dist/a_chunks/index.js +942 -265
  39. package/dist/a_chunks/use_fetus.js +138 -0
  40. package/dist/a_chunks/utils.js +100 -0
  41. package/dist/a_chunks/utils2.js +36 -0
  42. package/dist/block//346/243/200/351/252/214/346/243/200/346/237/245/Inner.d.ts +1 -0
  43. package/dist/components/BF_Form/Wrap.d.ts +2 -2
  44. package/dist/components/BF_Form/index.d.ts +4 -2
  45. package/dist/components/BF_Form/types.d.ts +7 -0
  46. package/dist/components/BF_Form/use_table_config.d.ts +1 -5
  47. package/dist/components/Base_List/Helper.d.ts +0 -5
  48. package/dist/components/Base_List/_MyBaseList.d.ts +1 -0
  49. package/dist/components/Base_List/index.d.ts +2 -1
  50. package/dist/components/Base_List/types.d.ts +6 -3
  51. package/dist/components/Base_List/use_MyBaseList.d.ts +10 -0
  52. package/dist/components/Base_List/utils.d.ts +11 -0
  53. package/dist/components/IdNOButton/index copy.d.ts +1 -1
  54. package/dist/components/Layout_Sider/Inner.d.ts +2 -4
  55. package/dist/components/Layout_Sider/index.d.ts +2 -2
  56. package/dist/components/Layout_Sider/utils.d.ts +13 -0
  57. package/dist/components/Layout_TabButton/Inner.d.ts +2 -10
  58. package/dist/components/Layout_TabButton/index.d.ts +3 -8
  59. package/dist/components/Layout_TabButton/types.d.ts +8 -0
  60. package/dist/components/Login/Inner.d.ts +0 -1
  61. package/dist/components/Login/index.d.ts +2 -1
  62. package/dist/components/MenuSearch/Inner.d.ts +6 -0
  63. package/dist/components/MenuSearch/index.d.ts +2 -0
  64. package/dist/components/QuickDocButton/index.d.ts +5 -1
  65. package/dist/components/doctor_end/HeaderInfo/FuckTag.d.ts +6 -0
  66. package/dist/components/doctor_end/HeaderInfo/index.d.ts +1 -0
  67. package/dist/components/doctor_end/HeaderInfo/types.d.ts +1 -3
  68. package/dist/components/doctor_end/HeaderInfo/use_headinfo_color.d.ts +8 -0
  69. package/dist/components/exception/index.d.ts +1 -0
  70. package/dist/components/index.d.ts +1 -0
  71. package/dist/curve/components/BmiCanvas/index.d.ts +11 -0
  72. package/dist/curve/components/FetusCanvas/FetuGrowsEdit.d.ts +7 -0
  73. package/dist/curve/components/FetusCanvas/config.d.ts +3 -0
  74. package/dist/curve/components/FetusCanvas/index.d.ts +4 -0
  75. package/dist/curve/components/FetusCanvas/requestMethods.d.ts +7 -0
  76. package/dist/curve/components/FetusCanvasNICHD/config.d.ts +3 -0
  77. package/dist/curve/components/FetusCanvasNICHD/data.d.ts +84 -0
  78. package/dist/curve/components/FetusCanvasNICHD/index.d.ts +4 -0
  79. package/dist/curve/components/Pregnogram/index.d.ts +11 -0
  80. package/dist/curve/components/api.d.ts +17 -0
  81. package/dist/curve/components-new/FetusCanvas/config.d.ts +2 -0
  82. package/dist/curve/components-new/FetusCanvas/requestMethods.d.ts +7 -0
  83. package/dist/curve/components-new/FetusCanvasNICHD/config.d.ts +2 -0
  84. package/dist/curve/components-new/FetusCanvasNICHD/data.d.ts +84 -0
  85. package/dist/curve/data.d.ts +125 -0
  86. package/dist/curve/func.d.ts +12 -0
  87. package/dist/curve/func.test.d.ts +1 -0
  88. package/dist/curve/index.d.ts +7 -0
  89. package/dist/curve/intro-steps.d.ts +7 -0
  90. package/dist/curve/utils.d.ts +8 -0
  91. package/dist/form_config/conceiveMode.d.ts +2 -0
  92. package/dist/form_config/index.d.ts +4 -0
  93. package/dist/form_config/mlUltrasounds.d.ts +2 -0
  94. package/dist/form_config/not_yes_input.d.ts +4 -0
  95. package/dist/form_config/pressure.d.ts +4 -0
  96. package/dist/hooks/index.d.ts +1 -0
  97. package/dist/index.d.ts +2 -0
  98. package/dist/index.js +8 -33
  99. package/dist/modals/entries/StupidTemplateModal2/index copy.d.ts +22 -0
  100. package/dist/modals/entries/StupidTemplateModal2/index.d.ts +1 -2
  101. package/dist/modals/entries/box/index.d.ts +6 -0
  102. package/dist/modals/entries/modal_form/index.d.ts +1 -1
  103. package/dist/modals/entries/result_template/index.d.ts +24 -0
  104. package/dist/modals/entries/template_modal3/components/TemplateSelect.d.ts +2 -1
  105. package/dist/modals/entries/template_modal3/index copy 2.d.ts +1 -1
  106. package/dist/modals/entries/template_modal3/index.d.ts +5 -3
  107. package/dist/modals/entries/text_search/index.d.ts +1 -1
  108. package/dist/modals/entries//344/271/231/350/202/235/347/256/241/347/220/206/index.d.ts +1 -1
  109. 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
  110. 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
  111. 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
  112. 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
  113. 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
  114. 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
  115. 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
  116. 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
  117. 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
  118. 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
  119. 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
  120. package/dist/modals/entries//351/253/230/345/215/261/351/232/217/350/256/277/form_config.d.ts +4 -2
  121. package/dist/modals/index.d.ts +2 -0
  122. package/dist/modals/meta.d.ts +2 -0
  123. package/dist/pages/doc_record/index.d.ts +1 -1
  124. package/dist/pages/index.d.ts +1 -0
  125. package/dist/pages/questionnaire/Inner.d.ts +4 -0
  126. package/dist/pages/questionnaire/Qn.d.ts +3 -0
  127. package/dist/pages/questionnaire/SelectButton.d.ts +4 -0
  128. package/dist/pages/questionnaire/create/Step2Right.d.ts +11 -0
  129. package/dist/pages/questionnaire/create/common.d.ts +46 -0
  130. package/dist/pages/questionnaire/create/fakeData.d.ts +6 -0
  131. package/dist/pages/questionnaire/create/question-item.d.ts +14 -0
  132. package/dist/pages/questionnaire/create/step1.d.ts +12 -0
  133. package/dist/pages/questionnaire/create/step2.d.ts +10 -0
  134. package/dist/pages/questionnaire/create/step3.d.ts +8 -0
  135. package/dist/pages/questionnaire/create/step4.d.ts +8 -0
  136. package/dist/pages/questionnaire/index.d.ts +3 -0
  137. package/dist/pages/questionnaire/types.d.ts +10 -0
  138. package/dist/utils/helper.d.ts +5 -0
  139. package/dist/utils/index.d.ts +2 -1
  140. package/package.json +34 -16
  141. package/dist/a_chunks/.root.js.map +0 -1
  142. package/dist/a_chunks/.root10.js.map +0 -1
  143. package/dist/a_chunks/.root11.js.map +0 -1
  144. package/dist/a_chunks/.root12.js.map +0 -1
  145. package/dist/a_chunks/.root13.js.map +0 -1
  146. package/dist/a_chunks/.root14.js.map +0 -1
  147. package/dist/a_chunks/.root15.js.map +0 -1
  148. package/dist/a_chunks/.root16.js.map +0 -1
  149. package/dist/a_chunks/.root17.js.map +0 -1
  150. package/dist/a_chunks/.root18.js.map +0 -1
  151. package/dist/a_chunks/.root19.js.map +0 -1
  152. package/dist/a_chunks/.root2.js.map +0 -1
  153. package/dist/a_chunks/.root20.js.map +0 -1
  154. package/dist/a_chunks/.root21.js.map +0 -1
  155. package/dist/a_chunks/.root22.js.map +0 -1
  156. package/dist/a_chunks/.root23.js.map +0 -1
  157. package/dist/a_chunks/.root24.js.map +0 -1
  158. package/dist/a_chunks/.root25.js.map +0 -1
  159. package/dist/a_chunks/.root3.js.map +0 -1
  160. package/dist/a_chunks/.root4.js.map +0 -1
  161. package/dist/a_chunks/.root5.js.map +0 -1
  162. package/dist/a_chunks/.root6.js.map +0 -1
  163. package/dist/a_chunks/.root7.js.map +0 -1
  164. package/dist/a_chunks/.root8.js.map +0 -1
  165. package/dist/a_chunks/.root9.js.map +0 -1
  166. package/dist/a_chunks/extends.js +0 -11
  167. package/dist/a_chunks/extends.js.map +0 -1
  168. package/dist/a_chunks/index.js.map +0 -1
  169. package/dist/components/BF_Form/use_table_config copy.d.ts +0 -13
  170. package/dist/index.js.map +0 -1
  171. package/dist/modals/entries/StupidTemplateModal2/methods/index.d.ts +0 -16
  172. 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
  173. 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
@@ -1,123 +1,151 @@
1
- import { rt_ctx } from '@lm_fe/env';
2
- import { defineFormConfig } from '@lm_fe/service';
3
- var ctx = rt_ctx;
4
- var form_config = defineFormConfig([{
5
- label: '证件类型',
6
- name: 'idType',
7
- required: function required() {
8
- return ctx.required;
9
- },
10
- inputType: 'MS',
11
- inputProps: {
12
- optionKey: '证件类型',
13
- marshal: 0
14
- },
15
- layout: '1/3'
16
- }, {
17
- label: '证件号码',
18
- name: 'idNO',
19
- required: function required() {
20
- return ctx.required;
21
- },
22
- inputType: 'Input',
23
- inputProps: {},
24
- layout: '1/3'
25
- }, {
26
- label: '就诊卡号',
27
- name: 'outpatientNO',
28
- required: function required() {
29
- return ctx.required;
30
- },
31
- inputType: 'Input',
32
- inputProps: {},
33
- layout: '1/3'
34
- }, {
35
- label: '姓名',
36
- name: 'name',
37
- required: function required() {
38
- return ctx.required;
39
- },
40
- inputType: 'Input',
41
- inputProps: {},
42
- layout: '1/3'
43
- }, {
44
- label: '手机号码',
45
- name: 'telephone',
46
- required: function required() {
47
- return ctx.required;
48
- },
49
- inputType: 'Input',
50
- inputProps: {},
51
- layout: '1/3'
52
- }, {
53
- label: '末次月经',
54
- name: 'lmp',
55
- required: function required() {
56
- return ctx.required;
57
- },
58
- inputType: 'DatePicker',
59
- inputProps: {},
60
- layout: '1/3'
61
- }, {
62
- label: '预产期-日期',
63
- name: 'edd',
64
- required: function required() {
65
- return ctx.required;
66
- },
67
- inputType: 'DatePicker',
68
- inputProps: {},
69
- layout: '1/3'
70
- }, {
71
- label: '预产期-B超',
72
- name: 'sureEdd',
73
- required: function required() {
74
- return ctx.required;
75
- },
76
- inputType: 'DatePicker',
77
- inputProps: {},
78
- layout: '1/3'
79
- }, {
80
- label: '孕周',
81
- name: 'gestationalWeek',
82
- required: function required() {
83
- return ctx.required;
84
- },
85
- inputType: 'Input',
86
- inputProps: {},
87
- layout: '1/3'
88
- }, {
89
- label: '分娩日期',
90
- name: 'deliveryDate',
91
- inputType: 'DatePicker',
92
- inputProps: {},
93
- layout: '1/3'
94
- }, {
95
- label: 'appId',
96
- name: 'appId',
97
- inputType: 'Input',
98
- inputProps: {
99
- disabled: true
100
- },
101
- layout: '1/3',
102
- form_hidden: true
103
- }, {
104
- label: 'empId',
105
- name: 'empId',
106
- inputType: 'Input',
107
- inputProps: {
108
- disabled: true
109
- },
110
- layout: '1/3',
111
- form_hidden: true
112
- }, {
113
- label: 'patId',
114
- name: 'patId',
115
- inputType: 'Input',
116
- inputProps: {
117
- disabled: true
118
- },
119
- layout: '1/3',
120
- form_hidden: true
121
- }]);
122
- export { form_config as default };
123
- //# sourceMappingURL=.root7.js.map
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 };