@lm_fe/pages 0.1.201

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 (149) hide show
  1. package/README.md +31 -0
  2. package/dist/a_chunks/.root.js +245 -0
  3. package/dist/a_chunks/.root.js.map +1 -0
  4. package/dist/a_chunks/.root10.js +474 -0
  5. package/dist/a_chunks/.root10.js.map +1 -0
  6. package/dist/a_chunks/.root11.js +170 -0
  7. package/dist/a_chunks/.root11.js.map +1 -0
  8. package/dist/a_chunks/.root12.js +200 -0
  9. package/dist/a_chunks/.root12.js.map +1 -0
  10. package/dist/a_chunks/.root13.js +113 -0
  11. package/dist/a_chunks/.root13.js.map +1 -0
  12. package/dist/a_chunks/.root14.js +735 -0
  13. package/dist/a_chunks/.root14.js.map +1 -0
  14. package/dist/a_chunks/.root15.js +58 -0
  15. package/dist/a_chunks/.root15.js.map +1 -0
  16. package/dist/a_chunks/.root16.js +172 -0
  17. package/dist/a_chunks/.root16.js.map +1 -0
  18. package/dist/a_chunks/.root17.js +258 -0
  19. package/dist/a_chunks/.root17.js.map +1 -0
  20. package/dist/a_chunks/.root18.js +416 -0
  21. package/dist/a_chunks/.root18.js.map +1 -0
  22. package/dist/a_chunks/.root19.js +427 -0
  23. package/dist/a_chunks/.root19.js.map +1 -0
  24. package/dist/a_chunks/.root2.js +76 -0
  25. package/dist/a_chunks/.root2.js.map +1 -0
  26. package/dist/a_chunks/.root20.js +958 -0
  27. package/dist/a_chunks/.root20.js.map +1 -0
  28. package/dist/a_chunks/.root21.js +235 -0
  29. package/dist/a_chunks/.root21.js.map +1 -0
  30. package/dist/a_chunks/.root22.js +158 -0
  31. package/dist/a_chunks/.root22.js.map +1 -0
  32. package/dist/a_chunks/.root23.js +959 -0
  33. package/dist/a_chunks/.root23.js.map +1 -0
  34. package/dist/a_chunks/.root24.js +759 -0
  35. package/dist/a_chunks/.root24.js.map +1 -0
  36. package/dist/a_chunks/.root25.js +281 -0
  37. package/dist/a_chunks/.root25.js.map +1 -0
  38. package/dist/a_chunks/.root3.js +1054 -0
  39. package/dist/a_chunks/.root3.js.map +1 -0
  40. package/dist/a_chunks/.root4.js +629 -0
  41. package/dist/a_chunks/.root4.js.map +1 -0
  42. package/dist/a_chunks/.root5.js +1440 -0
  43. package/dist/a_chunks/.root5.js.map +1 -0
  44. package/dist/a_chunks/.root6.js +164 -0
  45. package/dist/a_chunks/.root6.js.map +1 -0
  46. package/dist/a_chunks/.root7.js +123 -0
  47. package/dist/a_chunks/.root7.js.map +1 -0
  48. package/dist/a_chunks/.root8.js +544 -0
  49. package/dist/a_chunks/.root8.js.map +1 -0
  50. package/dist/a_chunks/.root9.js +69 -0
  51. package/dist/a_chunks/.root9.js.map +1 -0
  52. package/dist/a_chunks/extends.js +11 -0
  53. package/dist/a_chunks/extends.js.map +1 -0
  54. package/dist/a_chunks/index.js +1492 -0
  55. package/dist/a_chunks/index.js.map +1 -0
  56. package/dist/block/index.d.ts +1 -0
  57. package/dist/block//346/243/200/351/252/214/346/243/200/346/237/245/Inner.d.ts +9 -0
  58. package/dist/block//346/243/200/351/252/214/346/243/200/346/237/245/form_config.d.ts +3 -0
  59. package/dist/block//346/243/200/351/252/214/346/243/200/346/237/245/index.d.ts +3 -0
  60. package/dist/components/BF_Form/Wrap.d.ts +9 -0
  61. package/dist/components/BF_Form/index.d.ts +14 -0
  62. package/dist/components/BF_Form/use_table_config copy.d.ts +13 -0
  63. package/dist/components/BF_Form/use_table_config.d.ts +13 -0
  64. package/dist/components/BF_Form/utils.d.ts +2 -0
  65. package/dist/components/Base_List/Helper.d.ts +13 -0
  66. package/dist/components/Base_List/_MyBaseList.d.ts +9 -0
  67. package/dist/components/Base_List/index.d.ts +3 -0
  68. package/dist/components/Base_List/types.d.ts +129 -0
  69. package/dist/components/HighRiskTableEntry/index.d.ts +8 -0
  70. package/dist/components/HighRiskTableEntry/utils.d.ts +23 -0
  71. package/dist/components/IdNOButton/index copy.d.ts +6 -0
  72. package/dist/components/IdNOButton/index.d.ts +12 -0
  73. package/dist/components/Layout_Sider/Inner.d.ts +17 -0
  74. package/dist/components/Layout_Sider/index.d.ts +4 -0
  75. package/dist/components/Layout_Sider/utils.d.ts +1 -0
  76. package/dist/components/Layout_TabButton/Inner.d.ts +11 -0
  77. package/dist/components/Layout_TabButton/index.d.ts +8 -0
  78. package/dist/components/Login/Inner.d.ts +8 -0
  79. package/dist/components/Login/index.d.ts +1 -0
  80. package/dist/components/QuickDocButton/form_config.d.ts +4 -0
  81. package/dist/components/QuickDocButton/index.d.ts +6 -0
  82. package/dist/components/doctor_end/ExemplaryCase/Inner.d.ts +33 -0
  83. package/dist/components/doctor_end/ExemplaryCase/config.d.ts +27 -0
  84. package/dist/components/doctor_end/ExemplaryCase/index.d.ts +3 -0
  85. package/dist/components/doctor_end/ExemplaryCase/request.d.ts +2 -0
  86. package/dist/components/doctor_end/HeaderInfo/Inner.d.ts +3 -0
  87. package/dist/components/doctor_end/HeaderInfo/index.d.ts +4 -0
  88. package/dist/components/doctor_end/HeaderInfo/types.d.ts +10 -0
  89. package/dist/components/doctor_end/HeaderInfo/utils.d.ts +20 -0
  90. package/dist/components/doctor_end/HeaderInfoLayout/index.d.ts +3 -0
  91. package/dist/components/doctor_end/index.d.ts +3 -0
  92. package/dist/components/exception/403.d.ts +4 -0
  93. package/dist/components/exception/404.d.ts +4 -0
  94. package/dist/components/exception/500.d.ts +6 -0
  95. package/dist/components/exception/ErrorBoundary.d.ts +11 -0
  96. package/dist/components/exception/ErrorBoundarySmall.d.ts +16 -0
  97. package/dist/components/exception/SelectTip.d.ts +2 -0
  98. package/dist/components/exception/index.d.ts +1 -0
  99. package/dist/components/index.d.ts +10 -0
  100. package/dist/form_config/config_table.d.ts +2 -0
  101. package/dist/form_config/index.d.ts +1 -0
  102. package/dist/index.d.ts +6 -0
  103. package/dist/index.js +36 -0
  104. package/dist/index.js.map +1 -0
  105. package/dist/modals/entries/BF_Form/index.d.ts +4 -0
  106. package/dist/modals/entries/StupidTemplateModal2/components/TemplateSelect.d.ts +2 -0
  107. package/dist/modals/entries/StupidTemplateModal2/index.d.ts +22 -0
  108. package/dist/modals/entries/StupidTemplateModal2/methods/index.d.ts +16 -0
  109. package/dist/modals/entries/modal_form/index.d.ts +29 -0
  110. package/dist/modals/entries/modal_page/index.d.ts +12 -0
  111. package/dist/modals/entries/print_modal/index.d.ts +3 -0
  112. package/dist/modals/entries/template_modal3/EditModal.d.ts +2 -0
  113. package/dist/modals/entries/template_modal3/common.d.ts +4 -0
  114. package/dist/modals/entries/template_modal3/components/TemplateSelect.d.ts +1 -0
  115. package/dist/modals/entries/template_modal3/index copy 2.d.ts +19 -0
  116. package/dist/modals/entries/template_modal3/index copy.d.ts +22 -0
  117. package/dist/modals/entries/template_modal3/index.d.ts +17 -0
  118. package/dist/modals/entries/template_modal3/methods/index.d.ts +15 -0
  119. package/dist/modals/entries/template_modal3/types.d.ts +27 -0
  120. package/dist/modals/entries/test/index.d.ts +6 -0
  121. package/dist/modals/entries/text_search/index.d.ts +8 -0
  122. package/dist/modals/entries//344/271/231/350/202/235/347/256/241/347/220/206/index.d.ts +8 -0
  123. 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/index.d.ts +9 -0
  124. package/dist/modals/entries//346/242/205/346/257/222/347/256/241/347/220/206/index.d.ts +8 -0
  125. 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 +9 -0
  126. 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/components.d.ts +7 -0
  127. 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 +28 -0
  128. 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/utils.d.ts +9 -0
  129. 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 +8 -0
  130. 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 +3 -0
  131. 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 +5 -0
  132. 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 +7 -0
  133. package/dist/modals/entries//350/257/212/346/226/255/345/216/206/345/217/262/index.d.ts +8 -0
  134. 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 +12 -0
  135. 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/index.d.ts +20 -0
  136. 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/util.d.ts +60 -0
  137. 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 +13 -0
  138. 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 +9 -0
  139. 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" +12 -0
  140. package/dist/modals/entries//351/253/230/345/215/261/345/233/240/347/264/240/347/256/241/347/220/206/index.d.ts +13 -0
  141. package/dist/modals/entries//351/253/230/345/215/261/351/232/217/350/256/277/form_config.d.ts +2 -0
  142. package/dist/modals/entries//351/253/230/345/215/261/351/232/217/350/256/277/index.d.ts +8 -0
  143. package/dist/modals/index.d.ts +22 -0
  144. package/dist/modals/meta.d.ts +21 -0
  145. package/dist/pages/doc_record/Right.d.ts +6 -0
  146. package/dist/pages/doc_record/index.d.ts +7 -0
  147. package/dist/pages/index.d.ts +1 -0
  148. package/dist/utils/index.d.ts +2 -0
  149. package/package.json +46 -0
@@ -0,0 +1,170 @@
1
+ import 'antd/es/modal/style';
2
+ import _Modal from 'antd/es/modal';
3
+ import { _ as _extends } from './extends.js';
4
+ import 'antd/es/form/style';
5
+ import _Form from 'antd/es/form';
6
+ import { d as __rest, f as BF_Wrap2, b as __assign, _ as __awaiter, a as __generator, E as ErrorBoundarySmall } from './index.js';
7
+ import React, { useState, useEffect } from 'react';
8
+ import { mchcDriver, mchcEvent } from '@lm_fe/env';
9
+ import { FormSection } from '@lm_fe/components_m';
10
+ import { safe_async_call } from '@lm_fe/utils';
11
+ import 'antd/es/row/style';
12
+ import 'antd/es/row';
13
+ import 'antd/es/col/style';
14
+ import 'antd/es/col';
15
+ import '@lm_fe/components';
16
+ import 'antd/es/result/style';
17
+ import 'antd/es/result';
18
+ import 'lodash/keys';
19
+ import 'lodash/get';
20
+ import '@ant-design/icons';
21
+ import '@lm_fe/service';
22
+ import 'antd/es/list/style';
23
+ import 'antd/es/list';
24
+ import 'antd/es/tooltip/style';
25
+ import 'antd/es/tooltip';
26
+ import 'classnames';
27
+ import 'antd/es/button/style';
28
+ import 'antd/es/button';
29
+ import 'antd/es/spin/style';
30
+ import 'antd/es/spin';
31
+ import 'antd/es/menu/style';
32
+ import 'antd/es/menu';
33
+ import 'antd/es/message/style';
34
+ import 'antd/es/message';
35
+ import 'antd/es/space/style';
36
+ import 'antd/es/space';
37
+ import 'antd/es/divider/style';
38
+ import 'antd/es/divider';
39
+ function MyModalForm(_a) {
40
+ var _this = this;
41
+ var _b;
42
+ var modal_data = _a.modal_data,
43
+ _onOk = _a.onOk,
44
+ _c = _a.bodyStyle,
45
+ bodyStyle = _c === void 0 ? {} : _c,
46
+ width = _a.width,
47
+ others = __rest(_a, ["modal_data", "onOk", "bodyStyle", "width"]);
48
+ var _d = modal_data.title,
49
+ title = _d === void 0 ? "" : _d,
50
+ bf_title = modal_data.bf_title,
51
+ _e = modal_data.formDescriptions,
52
+ formDescriptions = _e === void 0 ? [] : _e,
53
+ _f = modal_data.targetLabelCol,
54
+ targetLabelCol = _f === void 0 ? 4 : _f,
55
+ defaultFormItemLayout = modal_data.defaultFormItemLayout,
56
+ _onFieldsChange = modal_data.onFieldsChange,
57
+ _onValuesChange = modal_data.onValuesChange,
58
+ onSubmit = modal_data.onSubmit,
59
+ getInitialData = modal_data.getInitialData,
60
+ disableAll = modal_data.disableAll,
61
+ _g = modal_data.modalFormSize,
62
+ modalFormSize = _g === void 0 ? 'middle' : _g;
63
+ var _form = _Form.useForm()[0];
64
+ var form = (_b = modal_data.form) !== null && _b !== void 0 ? _b : _form;
65
+ var _h = useState({}),
66
+ data = _h[0],
67
+ setData = _h[1];
68
+ var _j = BF_Wrap2({
69
+ default_conf: {
70
+ title: bf_title,
71
+ tableColumns: formDescriptions
72
+ }
73
+ }),
74
+ Wrap = _j.Wrap,
75
+ config = _j.config;
76
+ useEffect(function () {
77
+ var _a, _b;
78
+ (_b = (_a = safe_async_call(function () {
79
+ return getInitialData === null || getInitialData === void 0 ? void 0 : getInitialData();
80
+ })).then) === null || _b === void 0 ? void 0 : _b.call(_a, function (v) {
81
+ setData(v);
82
+ form.setFieldsValue(v);
83
+ });
84
+ return function () {};
85
+ }, []);
86
+ useEffect(function () {
87
+ return mchcDriver.on_rm('data', function (e) {
88
+ if (e.type === 'ReadCard') {
89
+ var res = e.data;
90
+ form.setFieldsValue({
91
+ idNO: res.idNO,
92
+ name: res.name
93
+ });
94
+ }
95
+ });
96
+ }, []);
97
+ function renderEditContent() {
98
+ if (bf_title) return /*#__PURE__*/React.createElement(Wrap, null, /*#__PURE__*/React.createElement(FormSection, {
99
+ formDescriptions: config === null || config === void 0 ? void 0 : config.tableColumns,
100
+ disableAll: disableAll,
101
+ defaultFormItemLayout: defaultFormItemLayout,
102
+ targetLabelCol: targetLabelCol,
103
+ form: form
104
+ }), ";");
105
+ return /*#__PURE__*/React.createElement(FormSection, {
106
+ formDescriptions: formDescriptions,
107
+ disableAll: disableAll,
108
+ defaultFormItemLayout: defaultFormItemLayout,
109
+ targetLabelCol: targetLabelCol,
110
+ form: form
111
+ });
112
+ }
113
+ return /*#__PURE__*/React.createElement(_Modal, _extends({
114
+ title: (data === null || data === void 0 ? void 0 : data.id) ? "\u4FEE\u6539".concat(title) : "\u6DFB\u52A0".concat(title),
115
+ centered: true,
116
+ destroyOnClose: true,
117
+ width: width !== null && width !== void 0 ? width : "60vw",
118
+ bodyStyle: __assign({
119
+ padding: '12px 20px',
120
+ height: '70vh',
121
+ overflowY: 'scroll'
122
+ }, bodyStyle),
123
+ onOk: function onOk(e) {
124
+ form.validateFields().then(function () {
125
+ return __awaiter(_this, void 0, void 0, function () {
126
+ var formData, a;
127
+ return __generator(this, function (_a) {
128
+ switch (_a.label) {
129
+ case 0:
130
+ formData = form.getFieldsValue();
131
+ return [4, safe_async_call(onSubmit, __assign(__assign({}, data), formData))];
132
+ case 1:
133
+ a = _a.sent();
134
+ if (!a) return [2];
135
+ _onOk === null || _onOk === void 0 ? void 0 : _onOk(e);
136
+ return [2];
137
+ }
138
+ });
139
+ });
140
+ })["catch"](function (error) {
141
+ console.error('modal_form 发生错误', error);
142
+ });
143
+ }
144
+ }, others), /*#__PURE__*/React.createElement(ErrorBoundarySmall, null, /*#__PURE__*/React.createElement(_Form, {
145
+ size: modalFormSize,
146
+ onFieldsChange: function onFieldsChange(a, b) {
147
+ _onFieldsChange === null || _onFieldsChange === void 0 ? void 0 : _onFieldsChange(a, b, form);
148
+ },
149
+ onValuesChange: function onValuesChange(changedValues, b) {
150
+ var k = Object.keys(changedValues)[0];
151
+ var v = changedValues[k];
152
+ _onValuesChange === null || _onValuesChange === void 0 ? void 0 : _onValuesChange(changedValues, b, form);
153
+ mchcEvent.emit('my_form', {
154
+ type: 'onChange',
155
+ name: k,
156
+ value: v,
157
+ values: b,
158
+ form: form,
159
+ setValue: function setValue(name, value) {
160
+ var _a;
161
+ form.setFieldsValue((_a = {}, _a[name] = value, _a));
162
+ }
163
+ });
164
+ },
165
+ autoComplete: "off",
166
+ form: form
167
+ }, renderEditContent())));
168
+ }
169
+ export { MyModalForm as default };
170
+ //# sourceMappingURL=.root11.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":".root11.js","sources":["../../src/modals/entries/modal_form/index.tsx"],"sourcesContent":["import { __assign, __awaiter, __generator, __rest } from \"tslib\";\nimport { Form, Modal } from 'antd';\nimport { useEffect, useState } from 'react';\nimport React from 'react';\nimport { mchcDriver, mchcEvent } from '@lm_fe/env';\nimport { FormSection } from '@lm_fe/components_m';\nimport { safe_async_call } from '@lm_fe/utils';\nimport { BF_Wrap2 } from 'src/components';\nimport { ErrorBoundarySmall } from 'src/components/exception/ErrorBoundarySmall';\nexport default function MyModalForm(_a) {\n var _this = this;\n var _b;\n var modal_data = _a.modal_data, onOk = _a.onOk, _c = _a.bodyStyle, bodyStyle = _c === void 0 ? {} : _c, width = _a.width, others = __rest(_a, [\"modal_data\", \"onOk\", \"bodyStyle\", \"width\"]);\n var _d = modal_data.title, title = _d === void 0 ? \"\" : _d, bf_title = modal_data.bf_title, _e = modal_data.formDescriptions, formDescriptions = _e === void 0 ? [] : _e, _f = modal_data.targetLabelCol, targetLabelCol = _f === void 0 ? 4 : _f, defaultFormItemLayout = modal_data.defaultFormItemLayout, onFieldsChange = modal_data.onFieldsChange, onValuesChange = modal_data.onValuesChange, onSubmit = modal_data.onSubmit, getInitialData = modal_data.getInitialData, disableAll = modal_data.disableAll, _g = modal_data.modalFormSize, modalFormSize = _g === void 0 ? 'middle' : _g;\n var _form = Form.useForm()[0];\n var form = (_b = modal_data.form) !== null && _b !== void 0 ? _b : _form;\n var _h = useState({}), data = _h[0], setData = _h[1];\n var _j = BF_Wrap2({ default_conf: { title: bf_title, tableColumns: formDescriptions } }), Wrap = _j.Wrap, config = _j.config;\n useEffect(function () {\n var _a, _b;\n (_b = (_a = safe_async_call(function () { return getInitialData === null || getInitialData === void 0 ? void 0 : getInitialData(); })).then) === null || _b === void 0 ? void 0 : _b.call(_a, function (v) {\n setData(v);\n form.setFieldsValue(v);\n });\n return function () {\n };\n }, []);\n useEffect(function () {\n return mchcDriver.on_rm('data', function (e) {\n if (e.type === 'ReadCard') {\n var res = e.data;\n form.setFieldsValue({ idNO: res.idNO, name: res.name });\n }\n });\n }, []);\n function renderEditContent() {\n if (bf_title)\n return <Wrap>\n <FormSection formDescriptions={config === null || config === void 0 ? void 0 : config.tableColumns} disableAll={disableAll} defaultFormItemLayout={defaultFormItemLayout} targetLabelCol={targetLabelCol} form={form}/>;\n </Wrap>;\n return <FormSection formDescriptions={formDescriptions} disableAll={disableAll} defaultFormItemLayout={defaultFormItemLayout} targetLabelCol={targetLabelCol} form={form}/>;\n }\n return (<Modal title={(data === null || data === void 0 ? void 0 : data.id) ? \"\\u4FEE\\u6539\".concat(title) : \"\\u6DFB\\u52A0\".concat(title)} centered destroyOnClose width={width !== null && width !== void 0 ? width : \"60vw\"} bodyStyle={__assign({ padding: '12px 20px', height: '70vh', overflowY: 'scroll' }, bodyStyle)} onOk={function (e) {\n form\n .validateFields()\n .then(function () { return __awaiter(_this, void 0, void 0, function () {\n var formData, a;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n formData = form.getFieldsValue();\n return [4, safe_async_call(onSubmit, __assign(__assign({}, data), formData))];\n case 1:\n a = _a.sent();\n if (!a)\n return [2];\n onOk === null || onOk === void 0 ? void 0 : onOk(e);\n return [2];\n }\n });\n }); })\n .catch(function (error) {\n console.error('modal_form 发生错误', error);\n });\n }} {...others}>\n <ErrorBoundarySmall>\n\n <Form size={modalFormSize} onFieldsChange={function (a, b) {\n onFieldsChange === null || onFieldsChange === void 0 ? void 0 : onFieldsChange(a, b, form);\n }} onValuesChange={function (changedValues, b) {\n var k = Object.keys(changedValues)[0];\n var v = changedValues[k];\n onValuesChange === null || onValuesChange === void 0 ? void 0 : onValuesChange(changedValues, b, form);\n mchcEvent.emit('my_form', {\n type: 'onChange', name: k, value: v, values: b,\n form: form,\n setValue: function (name, value) {\n var _a;\n form.setFieldsValue((_a = {}, _a[name] = value, _a));\n },\n });\n }} autoComplete=\"off\" form={form}>\n {renderEditContent()}\n </Form>\n </ErrorBoundarySmall>\n\n </Modal>);\n}\n;\n"],"names":["MyModalForm","_a","_this","_b","modal_data","onOk","_c","bodyStyle","width","others","__rest","_d","title","bf_title","_e","formDescriptions","_f","targetLabelCol","defaultFormItemLayout","onFieldsChange","onValuesChange","onSubmit","getInitialData","disableAll","_g","modalFormSize","_form","_Form","useForm","form","_h","useState","data","setData","_j","BF_Wrap2","default_conf","tableColumns","Wrap","config","useEffect","safe_async_call","then","call","v","setFieldsValue","mchcDriver","on_rm","e","type","res","idNO","name","renderEditContent","React","createElement","FormSection","_Modal","_extends","id","concat","centered","destroyOnClose","__assign","padding","height","overflowY","validateFields","__awaiter","formData","a","__generator","label","getFieldsValue","sent","error","console","ErrorBoundarySmall","size","b","changedValues","k","Object","keys","mchcEvent","emit","value","values","setValue","autoComplete"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASe,SAASA,WAAWA,CAACC,EAAE,EAAE;EACpC,IAAIC,KAAK,GAAG,IAAI;EAChB,IAAIC,EAAE;EACN,IAAIC,UAAU,GAAGH,EAAE,CAACG,UAAU;IAAEC,KAAI,GAAGJ,EAAE,CAACI,IAAI;IAAEC,EAAE,GAAGL,EAAE,CAACM,SAAS;IAAEA,SAAS,GAAGD,EAAE,KAAK,KAAK,CAAC,GAAG,CAAE,CAAA,GAAGA,EAAE;IAAEE,KAAK,GAAGP,EAAE,CAACO,KAAK;IAAEC,MAAM,GAAGC,MAAM,CAACT,EAAE,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;EAC3L,IAAIU,EAAE,GAAGP,UAAU,CAACQ,KAAK;IAAEA,KAAK,GAAGD,EAAE,KAAK,KAAK,CAAC,GAAG,EAAE,GAAGA,EAAE;IAAEE,QAAQ,GAAGT,UAAU,CAACS,QAAQ;IAAEC,EAAE,GAAGV,UAAU,CAACW,gBAAgB;IAAEA,gBAAgB,GAAGD,EAAE,KAAK,KAAK,CAAC,GAAG,EAAE,GAAGA,EAAE;IAAEE,EAAE,GAAGZ,UAAU,CA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2C,MAAM,EAAER,CAAC;QAC9ClD,IAAI,EAAEA,IAAI;QACV2D,QAAQ,EAAE,SAAVA,QAAQA,CAAYpC,IAAI,EAAEkC,KAAK,EAAE;UAC7B,IAAIrF,EAAE;UACN4B,IAAI,CAACgB,cAAc,EAAE5C,EAAE,GAAG,CAAE,CAAA,EAAEA,EAAE,CAACmD,IAAI,CAAC,GAAGkC,KAAK,EAAErF,EAAE,EAAE;QACxD;MACJ,CAAC,CAAC;IACJ,CAAA;IAACwF,YAAY,EAAC,KAAK;IAAC5D,IAAI,EAAEA;EAAK,CAAA,EAC9BwB,iBAAiB,CAAA,CACd,CACY,CAEf,CAAC;AACZ;"}
@@ -0,0 +1,200 @@
1
+ import 'antd/es/modal/style';
2
+ import _Modal from 'antd/es/modal';
3
+ import 'antd/es/button/style';
4
+ import _Button from 'antd/es/button';
5
+ import { _ as _extends } from './extends.js';
6
+ import 'antd/es/message/style';
7
+ import _message from 'antd/es/message';
8
+ import { s as styleInject, d as __rest, _ as __awaiter, a as __generator } from './index.js';
9
+ import { FullscreenOutlined, CloseOutlined, ExportOutlined } from '@ant-design/icons';
10
+ import { MyLazyComponent } from '@lm_fe/components_m';
11
+ import { mchcLogger, mchcEnv, mchcRouterContainer__ } from '@lm_fe/env';
12
+ import { getHappyConfig, sleep } from '@lm_fe/utils';
13
+ import React, { useState, useRef, useEffect } from 'react';
14
+ import 'antd/es/row/style';
15
+ import 'antd/es/row';
16
+ import 'antd/es/col/style';
17
+ import 'antd/es/col';
18
+ import 'antd/es/list/style';
19
+ import 'antd/es/list';
20
+ import 'antd/es/tooltip/style';
21
+ import 'antd/es/tooltip';
22
+ import 'lodash/get';
23
+ import 'classnames';
24
+ import 'antd/es/spin/style';
25
+ import 'antd/es/spin';
26
+ import '@lm_fe/components';
27
+ import 'antd/es/form/style';
28
+ import 'antd/es/form';
29
+ import 'antd/es/result/style';
30
+ import 'antd/es/result';
31
+ import 'antd/es/menu/style';
32
+ import 'antd/es/menu';
33
+ import '@lm_fe/service';
34
+ import 'antd/es/space/style';
35
+ import 'antd/es/space';
36
+ import 'lodash/keys';
37
+ import 'antd/es/divider/style';
38
+ import 'antd/es/divider';
39
+ var css_248z = ".index-module_modal-page__qXgnT .ant-modal-header {\n display: none;\n}\n.index-module_modal-page__qXgnT .ant-modal-close {\n display: none;\n transition: all 0.6s;\n right: -40px;\n top: -40px;\n color: #fff;\n background: rgba(128, 128, 128, 0.8);\n border-radius: 50%;\n}\n.index-module_modal-page__qXgnT .ant-modal-close:hover {\n background: rgba(1, 1, 1, 0.9);\n}\n.index-module_modal-page__qXgnT .ant-modal-close-x {\n width: 36px;\n height: 36px;\n line-height: 36px;\n}\n.index-module_modal-page__qXgnT .index-module_btn-containner__ITl7O {\n position: fixed;\n right: 20px;\n top: 20px;\n}\n";
40
+ var styles = {
41
+ "modal-page": "index-module_modal-page__qXgnT",
42
+ "btn-containner": "index-module_btn-containner__ITl7O"
43
+ };
44
+ styleInject(css_248z);
45
+ function Modal_Page(_a) {
46
+ var _this = this;
47
+ var modal_data = _a.modal_data,
48
+ close = _a.close,
49
+ others = __rest(_a, ["modal_data", "close"]);
50
+ var content = modal_data.content,
51
+ iframe_url = modal_data.iframe_url,
52
+ route_conf = modal_data.route_conf;
53
+ var _b = useState(false);
54
+ _b[0];
55
+ var setVisible = _b[1];
56
+ var el = useRef(null);
57
+ useEffect(function () {
58
+ (function () {
59
+ return __awaiter(_this, void 0, void 0, function () {
60
+ return __generator(this, function (_a) {
61
+ switch (_a.label) {
62
+ case 0:
63
+ return [4, sleep(.8)];
64
+ case 1:
65
+ _a.sent();
66
+ setVisible(true);
67
+ return [2];
68
+ }
69
+ });
70
+ });
71
+ })();
72
+ return function () {};
73
+ }, []);
74
+ useEffect(function () {
75
+ mchcLogger.log('moda_page', modal_data);
76
+ if (route_conf === null || route_conf === void 0 ? void 0 : route_conf.url) {
77
+ var happy_conf = getHappyConfig(route_conf.url);
78
+ mchcEnv.push_global_cache('happy_conf', happy_conf || {
79
+ usr1: 'unset'
80
+ });
81
+ }
82
+ return function () {
83
+ if (route_conf === null || route_conf === void 0 ? void 0 : route_conf.url) {
84
+ mchcEnv.pop_global_cache('happy_conf');
85
+ }
86
+ };
87
+ }, []);
88
+ function fullscreen() {
89
+ return __awaiter(this, void 0, void 0, function () {
90
+ var _a, _b;
91
+ return __generator(this, function (_c) {
92
+ switch (_c.label) {
93
+ case 0:
94
+ _message.info('按 Esc 退出全屏');
95
+ return [4, sleep(.6)];
96
+ case 1:
97
+ _c.sent();
98
+ (_b = (_a = el.current) === null || _a === void 0 ? void 0 : _a.requestFullscreen) === null || _b === void 0 ? void 0 : _b.call(_a);
99
+ return [2];
100
+ }
101
+ });
102
+ });
103
+ }
104
+ function render_content() {
105
+ if (content) return content;
106
+ if (route_conf) {
107
+ var params = route_conf.params || {};
108
+ var C = mchcRouterContainer__.get_addon_component(route_conf.url);
109
+ if (!C) return /*#__PURE__*/React.createElement("div", {
110
+ style: {
111
+ textAlign: 'center',
112
+ lineHeight: '48px',
113
+ height: 48
114
+ }
115
+ }, route_conf.url, " \u8BE5\u9875\u9762\u4E0D\u652F\u6301\u5F39\u7A97\u8BBF\u95EE\uFF0C\u8BF7\u8FD4\u56DE\uFF01 ");
116
+ return /*#__PURE__*/React.createElement(C, _extends({}, params, {
117
+ is_modal: true
118
+ }));
119
+ }
120
+ if (iframe_url) {
121
+ return /*#__PURE__*/React.createElement("div", {
122
+ style: {
123
+ width: '100%',
124
+ height: '100%',
125
+ position: 'relative'
126
+ }
127
+ }, /*#__PURE__*/React.createElement("iframe", {
128
+ width: "100%",
129
+ height: "100%",
130
+ style: {
131
+ border: 'none',
132
+ padding: 0,
133
+ margin: 0
134
+ },
135
+ src: iframe_url
136
+ }), /*#__PURE__*/React.createElement(_Button, {
137
+ style: {
138
+ position: 'absolute',
139
+ right: 24,
140
+ bottom: 24,
141
+ boxShadow: '#444 4px 4px 12px 2px'
142
+ },
143
+ size: "large",
144
+ type: "primary",
145
+ shape: "circle",
146
+ icon: /*#__PURE__*/React.createElement(ExportOutlined, null),
147
+ onClick: function onClick() {
148
+ return mchcEnv.open(iframe_url);
149
+ }
150
+ }));
151
+ }
152
+ return /*#__PURE__*/React.createElement("div", {
153
+ style: {
154
+ textAlign: 'center',
155
+ lineHeight: '48px',
156
+ height: 48
157
+ }
158
+ }, "\u8BF7\u8BBE\u7F6E content\u3001route_conf \u6216\u8005 iframe_url");
159
+ }
160
+ var node = render_content();
161
+ return /*#__PURE__*/React.createElement(_Modal, _extends({
162
+ wrapClassName: styles['modal-page'],
163
+ title: "\u9875\u97621",
164
+ width: '90vw',
165
+ footer: null,
166
+ style: {
167
+ top: '4px'
168
+ },
169
+ destroyOnClose: true,
170
+ bodyStyle: {
171
+ height: '88vh',
172
+ background: '#fff',
173
+ padding: 0
174
+ }
175
+ }, others, {
176
+ maskClosable: true
177
+ }), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(_Button.Group, {
178
+ size: "large",
179
+ className: styles['btn-containner']
180
+ }, /*#__PURE__*/React.createElement(_Button, {
181
+ title: "\u5168\u5C4F",
182
+ icon: /*#__PURE__*/React.createElement(FullscreenOutlined, null),
183
+ onClick: fullscreen
184
+ }), /*#__PURE__*/React.createElement(_Button, {
185
+ title: "\u5173\u95ED",
186
+ icon: /*#__PURE__*/React.createElement(CloseOutlined, null),
187
+ onClick: function onClick(e) {
188
+ return close === null || close === void 0 ? void 0 : close(true);
189
+ }
190
+ })), /*#__PURE__*/React.createElement(MyLazyComponent, null, /*#__PURE__*/React.createElement("div", {
191
+ ref: el,
192
+ style: {
193
+ background: '#fff',
194
+ height: '100%',
195
+ padding: 8
196
+ }
197
+ }, node))));
198
+ }
199
+ export { Modal_Page as default };
200
+ //# sourceMappingURL=.root12.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":".root12.js","sources":["../../src/modals/entries/modal_page/index.tsx"],"sourcesContent":["import { __awaiter, __generator, __rest } from \"tslib\";\nimport { CloseOutlined, ExportOutlined, FullscreenOutlined } from '@ant-design/icons';\nimport { MyLazyComponent } from '@lm_fe/components_m';\nimport { mchcEnv, mchcLogger, mchcRouterContainer__ } from '@lm_fe/env';\nimport { getHappyConfig, sleep } from '@lm_fe/utils';\nimport { Button, message, Modal } from 'antd';\nimport React, { useEffect, useRef, useState, } from 'react';\nimport styles from './index.module.less';\nexport default function Modal_Page(_a) {\n var _this = this;\n var modal_data = _a.modal_data, close = _a.close, others = __rest(_a, [\"modal_data\", \"close\"]);\n var content = modal_data.content, iframe_url = modal_data.iframe_url, route_conf = modal_data.route_conf;\n var _b = useState(false), visible = _b[0], setVisible = _b[1];\n var el = useRef(null);\n useEffect(function () {\n (function () { return __awaiter(_this, void 0, void 0, function () {\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4, sleep(.8)];\n case 1:\n _a.sent();\n setVisible(true);\n return [2];\n }\n });\n }); })();\n return function () {\n };\n }, []);\n useEffect(function () {\n mchcLogger.log('moda_page', modal_data);\n if (route_conf === null || route_conf === void 0 ? void 0 : route_conf.url) {\n var happy_conf = getHappyConfig(route_conf.url);\n mchcEnv.push_global_cache('happy_conf', happy_conf || { usr1: 'unset' });\n }\n return function () {\n if (route_conf === null || route_conf === void 0 ? void 0 : route_conf.url) {\n mchcEnv.pop_global_cache('happy_conf');\n }\n };\n }, []);\n function fullscreen() {\n return __awaiter(this, void 0, void 0, function () {\n var _a, _b;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0:\n message.info('按 Esc 退出全屏');\n return [4, sleep(.6)];\n case 1:\n _c.sent();\n (_b = (_a = el.current) === null || _a === void 0 ? void 0 : _a.requestFullscreen) === null || _b === void 0 ? void 0 : _b.call(_a);\n return [2];\n }\n });\n });\n }\n function render_content() {\n if (content)\n return content;\n if (route_conf) {\n var params = route_conf.params || {};\n var C = mchcRouterContainer__.get_addon_component(route_conf.url);\n if (!C)\n return <div style={{ textAlign: 'center', lineHeight: '48px', height: 48 }}>{route_conf.url} 该页面不支持弹窗访问,请返回! </div>;\n return <C {...params} is_modal/>;\n }\n if (iframe_url) {\n return <div style={{ width: '100%', height: '100%', position: 'relative' }}>\n <iframe width=\"100%\" height=\"100%\" style={{ border: 'none', padding: 0, margin: 0 }} src={iframe_url}/>\n <Button style={{ position: 'absolute', right: 24, bottom: 24, boxShadow: '#444 4px 4px 12px 2px' }} size='large' type=\"primary\" shape='circle' icon={<ExportOutlined />} onClick={function () { return mchcEnv.open(iframe_url); }}/>\n </div>;\n }\n return <div style={{ textAlign: 'center', lineHeight: '48px', height: 48 }}>请设置 content、route_conf 或者 iframe_url</div>;\n }\n var node = render_content();\n return (<Modal wrapClassName={styles['modal-page']} title=\"页面1\" width={'90vw'} footer={null} style={{ top: '4px' }} destroyOnClose bodyStyle={{ height: '88vh', background: '#fff', padding: 0 }} {...others} maskClosable>\n <>\n <Button.Group size='large' className={styles['btn-containner']}>\n <Button title='全屏' icon={<FullscreenOutlined />} onClick={fullscreen}/>\n <Button title='关闭' icon={<CloseOutlined />} onClick={function (e) { return close === null || close === void 0 ? void 0 : close(true); }}/>\n </Button.Group>\n <MyLazyComponent>\n <div ref={el} style={{ background: '#fff', height: '100%', padding: 8 }}>\n {node}\n </div>\n </MyLazyComponent>\n </>\n\n </Modal>);\n}\n;\n"],"names":["Modal_Page","_a","_this","modal_data","close","others","__rest","content","iframe_url","route_conf","_b","useState","setVisible","el","useRef","useEffect","__awaiter","__generator","label","sleep","sent","mchcLogger","log","url","happy_conf","getHappyConfig","mchcEnv","push_global_cache","usr1","pop_global_cache","fullscreen","_c","_message","info","current","requestFullscreen","call","render_content","params","C","mchcRouterContainer__","get_addon_component","React","createElement","style","textAlign","lineHeight","height","_extends","is_modal","width","position","border","padding","margin","src","_Button","right","bottom","boxShadow","size","type","shape","icon","ExportOutlined","onClick","open","node","_Modal","wrapClassName","styles","title","footer","top","destroyOnClose","bodyStyle","background","maskClosable","Fragment","Group","className","FullscreenOutlined","CloseOutlined","e","MyLazyComponent","ref"],"mappings":";;;;;;;;;;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AAkB,MAAE,CAAE;IAAChB,OAAO,EAAEnC;EAAW,CAAC,CAAC,EACvEY,aAAAA,KAAA,CAAAC,aAAA,CAAAa,OAAA,EAAA;IAAQe,KAAK,EAAC,cAAI;IAACR,IAAI,eAAErB,KAAA,CAAAC,aAAA,CAACuC,aAAa,MAAE,CAAE;IAACjB,OAAO,EAAE,SAATA,OAAOA,CAAYkB,CAAC,EAAE;MAAE,OAAO/E,KAAK,KAAK,IAAI,IAAIA,KAAK,KAAK,KAAK,CAAC,GAAG,KAAK,CAAC,GAAGA,KAAK,CAAC,IAAI,CAAC;IAAE;GAAG,CAC/H,CAAC,EAAA,aACfsC,KAAA,CAAAC,aAAA,CAACyC,eAAe,EAAA,IAAA,eACZ1C,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;IAAK0C,GAAG,EAAExE,EAAG;IAAC+B,KAAK,EAAE;MAAEgC,UAAU,EAAE,MAAM;MAAE7B,MAAM,EAAE,MAAM;MAAEM,OAAO,EAAE;IAAE;EAAE,CAAA,EACnEc,IACA,CACQ,CACnB,CAEC,CAAC;AAChB;"}
@@ -0,0 +1,113 @@
1
+ import 'antd/es/modal/style';
2
+ import _Modal from 'antd/es/modal';
3
+ import { _ as _extends } from './extends.js';
4
+ import 'antd/es/space/style';
5
+ import _Space from 'antd/es/space';
6
+ import { s as styleInject, d as __rest, b as __assign } from './index.js';
7
+ import { get_PdfFrameView_version, PdfFrameView, LazyAntd } from '@lm_fe/components';
8
+ import { lm_pdfjs_info } from '@lm_fe/static';
9
+ import React, { useState } from 'react';
10
+ import store from 'store';
11
+ import 'antd/es/row/style';
12
+ import 'antd/es/row';
13
+ import 'antd/es/col/style';
14
+ import 'antd/es/col';
15
+ import 'antd/es/list/style';
16
+ import 'antd/es/list';
17
+ import 'antd/es/tooltip/style';
18
+ import 'antd/es/tooltip';
19
+ import 'lodash/get';
20
+ import '@ant-design/icons';
21
+ import 'classnames';
22
+ import 'antd/es/button/style';
23
+ import 'antd/es/button';
24
+ import 'antd/es/spin/style';
25
+ import 'antd/es/spin';
26
+ import '@lm_fe/components_m';
27
+ import '@lm_fe/utils';
28
+ import 'antd/es/form/style';
29
+ import 'antd/es/form';
30
+ import 'antd/es/result/style';
31
+ import 'antd/es/result';
32
+ import 'antd/es/menu/style';
33
+ import 'antd/es/menu';
34
+ import '@lm_fe/service';
35
+ import 'antd/es/message/style';
36
+ import 'antd/es/message';
37
+ import '@lm_fe/env';
38
+ import 'lodash/keys';
39
+ import 'antd/es/divider/style';
40
+ import 'antd/es/divider';
41
+ var css_248z = ".index-module_print-modal__XcdX6 .ant-modal-header {\n padding: 12px;\n}\n";
42
+ var styles = {
43
+ "print-modal": "index-module_print-modal__XcdX6"
44
+ };
45
+ styleInject(css_248z);
46
+ LazyAntd.Tree;
47
+ LazyAntd.TreeSelect;
48
+ var Select = LazyAntd.Select;
49
+ LazyAntd.Table;
50
+ LazyAntd.Dropdown;
51
+ LazyAntd.Pagination;
52
+ var LAST_SELECT_VERSION_KEY = 'LAST_SELECT_VERSION_KEY';
53
+ function Print_Modal(_a) {
54
+ var modal_data = _a.modal_data,
55
+ width = _a.width;
56
+ _a.close;
57
+ _a.onClose;
58
+ var _b = _a.bodyStyle,
59
+ bodyStyle = _b === void 0 ? {} : _b,
60
+ others = __rest(_a, ["modal_data", "width", "close", "onClose", "bodyStyle"]);
61
+ var version = modal_data.version;
62
+ var initVersion = version || store.get(LAST_SELECT_VERSION_KEY) || get_PdfFrameView_version();
63
+ var _c = useState(initVersion),
64
+ __version = _c[0],
65
+ set__version = _c[1];
66
+ var w = width !== null && width !== void 0 ? width : "60vw";
67
+ return /*#__PURE__*/React.createElement(_Modal, _extends({
68
+ className: styles['print-modal'],
69
+ title: /*#__PURE__*/React.createElement("div", {
70
+ style: {
71
+ display: 'flex',
72
+ justifyContent: 'space-between',
73
+ alignItems: 'center',
74
+ marginRight: 36
75
+ }
76
+ }, /*#__PURE__*/React.createElement("span", {
77
+ onClick: function onClick() {}
78
+ }, "\u6253\u5370\u9884\u89C8"), /*#__PURE__*/React.createElement(_Space, null, version ? null : /*#__PURE__*/React.createElement(Select, {
79
+ size: "small",
80
+ style: {
81
+ width: 200
82
+ },
83
+ value: __version,
84
+ onChange: function onChange(v) {
85
+ set__version(v);
86
+ store.set(LAST_SELECT_VERSION_KEY, v);
87
+ },
88
+ options: Object.keys(lm_pdfjs_info.dirs).map(function (value) {
89
+ return {
90
+ value: value,
91
+ label: value
92
+ };
93
+ })
94
+ }))),
95
+ width: w,
96
+ footer: null,
97
+ centered: true,
98
+ destroyOnClose: true,
99
+ style: {
100
+ padding: 0
101
+ }
102
+ }, others, {
103
+ bodyStyle: __assign(__assign({
104
+ height: '88vh'
105
+ }, bodyStyle), {
106
+ padding: 0
107
+ })
108
+ }), /*#__PURE__*/React.createElement(PdfFrameView, _extends({}, modal_data, {
109
+ version: __version
110
+ })));
111
+ }
112
+ export { Print_Modal as default };
113
+ //# sourceMappingURL=.root13.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":".root13.js","sources":["../../src/modals/entries/print_modal/index.tsx"],"sourcesContent":["import { __assign, __rest } from \"tslib\";\nimport { LazyAntd, PdfFrameView, get_PdfFrameView_version } from '@lm_fe/components';\nimport { lm_pdfjs_info } from '@lm_fe/static';\nimport { Modal, Space } from 'antd';\nimport React, { useState } from 'react';\nimport store from 'store';\nimport styles from './index.module.less';\nvar Tree = LazyAntd.Tree, TreeSelect = LazyAntd.TreeSelect, Select = LazyAntd.Select, Table = LazyAntd.Table, Dropdown = LazyAntd.Dropdown, Pagination = LazyAntd.Pagination;\nvar LAST_SELECT_VERSION_KEY = 'LAST_SELECT_VERSION_KEY';\nexport default function Print_Modal(_a) {\n var modal_data = _a.modal_data, width = _a.width, close = _a.close, onClose = _a.onClose, _b = _a.bodyStyle, bodyStyle = _b === void 0 ? {} : _b, others = __rest(_a, [\"modal_data\", \"width\", \"close\", \"onClose\", \"bodyStyle\"]);\n var version = modal_data.version;\n var initVersion = version || store.get(LAST_SELECT_VERSION_KEY) || get_PdfFrameView_version();\n var _c = useState(initVersion), __version = _c[0], set__version = _c[1];\n var w = width !== null && width !== void 0 ? width : \"60vw\";\n return (<Modal className={styles['print-modal']} title={<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginRight: 36 }}>\n <span onClick={function () { }}>打印预览</span>\n <Space>\n {version\n ? null\n : <Select size='small' style={{ width: 200 }} value={__version} onChange={function (v) {\n set__version(v);\n store.set(LAST_SELECT_VERSION_KEY, v);\n }} options={Object.keys(lm_pdfjs_info.dirs).map(function (value) { return ({ value: value, label: value }); })}/>}\n </Space>\n </div>} width={w} footer={null} centered destroyOnClose style={{ padding: 0 }} {...others} bodyStyle={__assign(__assign({ height: '88vh' }, bodyStyle), { padding: 0 })}>\n\n\n\n\n\n\n <PdfFrameView {...modal_data} version={__version}/>\n\n\n </Modal>);\n}\n;\n"],"names":["LazyAntd","Tree","TreeSelect","Select","Table","Dropdown","Pagination","LAST_SELECT_VERSION_KEY","Print_Modal","_a","modal_data","width","close","onClose","_b","bodyStyle","others","__rest","version","initVersion","store","get","get_PdfFrameView_version","_c","useState","__version","set__version","w","React","createElement","_Modal","_extends","className","styles","title","style","display","justifyContent","alignItems","marginRight","onClick","_Space","size","value","onChange","v","set","options","Object","keys","lm_pdfjs_info","dirs","map","label","footer","centered","destroyOnClose","padding","__assign","height","PdfFrameView"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOWA,QAAQ,CAACC,IAAI;AAAeD,QAAQ,CAACE,UAAU;IAAEC,MAAM,GAAGH,QAAQ,CAACG,MAAM;AAAUH,QAAQ,CAACI,KAAK;AAAaJ,QAAQ,CAACK,QAAQ;AAAeL,QAAQ,CAACM,UAAU;AAC5K,IAAIC,uBAAuB,GAAG,yBAAyB;AACxC,SAASC,WAAWA,CAACC,EAAE,EAAE;EACpC,IAAIC,UAAU,GAAGD,EAAE,CAACC,UAAU;IAAEC,KAAK,GAAGF,EAAE,CAACE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