cloud-b2b 1.1.59 → 1.1.61

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 (314) hide show
  1. package/es/Area/Area.js +141 -0
  2. package/es/Card/Card.js +19 -0
  3. package/es/CodeInput/CodeInput.js +123 -0
  4. package/es/Control/Control.js +444 -0
  5. package/es/Control/event.js +43 -0
  6. package/es/Enhance/Dialogs.js +52 -0
  7. package/es/Enhance/Loading.js +131 -0
  8. package/{src → es}/Enhance/index.js +6 -8
  9. package/es/Header/Header.js +162 -0
  10. package/es/Header/Vertical.js +106 -0
  11. package/es/ImageView/ImageView.js +100 -0
  12. package/es/Indent/Indent.js +19 -0
  13. package/es/InpurCascader/InputCascader.js +117 -0
  14. package/es/InputEditor/InputEditor.js +173 -0
  15. package/es/InputSearch/InputSearch.js +266 -0
  16. package/es/InputSelect/InputSelect.js +160 -0
  17. package/es/InputTreeSelect/InputTreeSelect.js +121 -0
  18. package/es/InputWriting/InputWriting.js +85 -0
  19. package/es/Layout/Layout.js +201 -0
  20. package/es/LayoutLink/LayoutLink.js +73 -0
  21. package/es/Link/Link.js +85 -0
  22. package/es/Loading/Loading.js +13 -0
  23. package/es/Loading2/Loading2.js +9 -0
  24. package/es/ModalWithDrag/ModalWithDrag.js +29 -0
  25. package/{src → es}/ModalWithDrag/drag.js +116 -128
  26. package/es/NumberInput/NumberInput.js +200 -0
  27. package/es/Search/Search.js +497 -0
  28. package/es/Search2/Search.js +597 -0
  29. package/{src → es}/Search2/Search.less +0 -1
  30. package/es/Sidebar/Sidebar.js +144 -0
  31. package/es/Sidebar2/Sidebar.js +165 -0
  32. package/es/SuperForm/SuperForm.js +598 -0
  33. package/es/SuperForm2/SuperForm.js +687 -0
  34. package/es/SuperIcon/SuperIcon.js +27 -0
  35. package/es/SuperPagination/SuperPagination.js +109 -0
  36. package/es/SuperTab/SuperTab.js +107 -0
  37. package/es/SuperTab2/SuperTab2.js +145 -0
  38. package/es/SuperTable/DragSortRow.js +97 -0
  39. package/es/SuperTable/FilterDropDown.js +164 -0
  40. package/es/SuperTable/SuperTable.js +808 -0
  41. package/es/SuperTable/fixed.js +34 -0
  42. package/es/SuperTable2/SuperTable2.js +926 -0
  43. package/{src → es}/SuperTable2/SuperTable2.less +2 -1
  44. package/es/SuperTable2/SuperTableCell.js +234 -0
  45. package/es/SuperTable3/FilterDropDown.js +164 -0
  46. package/es/SuperTable3/SuperTable.js +665 -0
  47. package/es/SuperTable3/fixed.js +34 -0
  48. package/es/SuperToolbar/SuperToolbar.js +195 -0
  49. package/es/SuperUpload/SuperUpload.js +356 -0
  50. package/es/Title/Title.js +33 -0
  51. package/es/Viewer/ImageViews.js +258 -0
  52. package/es/Viewer/Viewer.js +122 -0
  53. package/es/WingBlank/WingBlank.js +16 -0
  54. package/es/helper.js +240 -0
  55. package/{src → es}/history.js +6 -6
  56. package/es/index.js +38 -0
  57. package/{src → es}/style.less +2 -1
  58. package/es/variables.js +6 -0
  59. package/lib/Area/Area.js +149 -0
  60. package/lib/Area/package.json +6 -0
  61. package/lib/Card/Card.js +27 -0
  62. package/lib/Card/package.json +6 -0
  63. package/lib/CodeInput/CodeInput.js +131 -0
  64. package/lib/CodeInput/package.json +6 -0
  65. package/lib/Control/Control.js +450 -0
  66. package/lib/Control/event.js +51 -0
  67. package/lib/Control/package.json +6 -0
  68. package/lib/Enhance/Dialogs.js +60 -0
  69. package/lib/Enhance/Loading.js +138 -0
  70. package/lib/Enhance/index.js +25 -0
  71. package/lib/Enhance/package.json +6 -0
  72. package/lib/Header/Header.js +169 -0
  73. package/lib/Header/Header.less +95 -0
  74. package/lib/Header/Vertical.js +114 -0
  75. package/lib/Header/Vertical.less +60 -0
  76. package/lib/Header/package.json +6 -0
  77. package/lib/ImageView/ImageView.js +108 -0
  78. package/lib/ImageView/ImageView.less +14 -0
  79. package/lib/ImageView/package.json +6 -0
  80. package/lib/Indent/Indent.js +27 -0
  81. package/lib/Indent/package.json +6 -0
  82. package/lib/InpurCascader/InputCascader.js +124 -0
  83. package/lib/InpurCascader/package.json +6 -0
  84. package/lib/InputEditor/InputEditor.js +181 -0
  85. package/lib/InputEditor/inputEditor.less +8 -0
  86. package/lib/InputEditor/package.json +6 -0
  87. package/lib/InputSearch/InputSearch.js +274 -0
  88. package/lib/InputSearch/package.json +6 -0
  89. package/lib/InputSelect/InputSelect.js +168 -0
  90. package/lib/InputSelect/package.json +6 -0
  91. package/lib/InputTreeSelect/InputTreeSelect.js +128 -0
  92. package/lib/InputTreeSelect/package.json +6 -0
  93. package/lib/InputWriting/InputWriting.js +93 -0
  94. package/lib/InputWriting/package.json +6 -0
  95. package/lib/Layout/Layout.js +209 -0
  96. package/lib/Layout/Layout.less +28 -0
  97. package/lib/Layout/package.json +6 -0
  98. package/lib/LayoutLink/LayoutLink.js +86 -0
  99. package/lib/LayoutLink/LayoutLink.less +53 -0
  100. package/lib/LayoutLink/package.json +6 -0
  101. package/lib/Link/Link.js +93 -0
  102. package/lib/Link/package.json +6 -0
  103. package/lib/Loading/Loading.js +21 -0
  104. package/lib/Loading/Loading.less +13 -0
  105. package/lib/Loading/package.json +6 -0
  106. package/lib/Loading2/Loading2.js +17 -0
  107. package/lib/Loading2/Loading2.less +19 -0
  108. package/lib/Loading2/package.json +6 -0
  109. package/lib/ModalWithDrag/ModalWithDrag.js +37 -0
  110. package/lib/ModalWithDrag/ModalWithDrag.less +6 -0
  111. package/lib/ModalWithDrag/drag.js +124 -0
  112. package/lib/ModalWithDrag/package.json +6 -0
  113. package/lib/NumberInput/NumberInput.js +208 -0
  114. package/lib/NumberInput/package.json +6 -0
  115. package/lib/Search/Search.js +510 -0
  116. package/lib/Search/Search.less +63 -0
  117. package/lib/Search/package.json +6 -0
  118. package/lib/Search2/Search.js +609 -0
  119. package/lib/Search2/Search.less +64 -0
  120. package/lib/Search2/package.json +6 -0
  121. package/lib/Sidebar/Sidebar.js +152 -0
  122. package/lib/Sidebar/Sidebar.less +78 -0
  123. package/lib/Sidebar/package.json +6 -0
  124. package/lib/Sidebar2/Sidebar.js +173 -0
  125. package/lib/Sidebar2/Sidebar.less +153 -0
  126. package/lib/Sidebar2/package.json +6 -0
  127. package/lib/SuperForm/SuperForm.js +610 -0
  128. package/lib/SuperForm/SuperForm.less +52 -0
  129. package/lib/SuperForm/package.json +6 -0
  130. package/lib/SuperForm2/SuperForm.js +699 -0
  131. package/lib/SuperForm2/SuperForm.less +52 -0
  132. package/lib/SuperForm2/package.json +6 -0
  133. package/lib/SuperIcon/SuperIcon.js +35 -0
  134. package/lib/SuperIcon/package.json +6 -0
  135. package/lib/SuperPagination/SuperPagination.js +117 -0
  136. package/lib/SuperPagination/package.json +6 -0
  137. package/lib/SuperTab/SuperTab.js +115 -0
  138. package/lib/SuperTab/SuperTab.less +43 -0
  139. package/lib/SuperTab/package.json +6 -0
  140. package/lib/SuperTab2/SuperTab2.js +153 -0
  141. package/lib/SuperTab2/SuperTab2.less +18 -0
  142. package/lib/SuperTab2/package.json +6 -0
  143. package/lib/SuperTable/DragSortRow.js +105 -0
  144. package/lib/SuperTable/DragSortRow.less +17 -0
  145. package/lib/SuperTable/FilterDropDown.js +172 -0
  146. package/lib/SuperTable/FilterDropDown.less +30 -0
  147. package/lib/SuperTable/SuperTable.js +816 -0
  148. package/lib/SuperTable/SuperTable.less +132 -0
  149. package/lib/SuperTable/fixed.js +42 -0
  150. package/lib/SuperTable/package.json +6 -0
  151. package/lib/SuperTable2/SuperTable2.js +939 -0
  152. package/lib/SuperTable2/SuperTable2.less +119 -0
  153. package/lib/SuperTable2/SuperTableCell.js +239 -0
  154. package/lib/SuperTable2/package.json +6 -0
  155. package/lib/SuperTable3/FilterDropDown.js +172 -0
  156. package/lib/SuperTable3/FilterDropDown.less +29 -0
  157. package/lib/SuperTable3/SuperTable.js +673 -0
  158. package/lib/SuperTable3/SuperTable.less +99 -0
  159. package/lib/SuperTable3/fixed.js +42 -0
  160. package/lib/SuperTable3/package.json +6 -0
  161. package/lib/SuperToolbar/SuperToolbar.js +203 -0
  162. package/lib/SuperToolbar/SuperToolbar.less +17 -0
  163. package/lib/SuperToolbar/package.json +6 -0
  164. package/lib/SuperUpload/SuperUpload.js +368 -0
  165. package/lib/SuperUpload/SuperUpload.less +28 -0
  166. package/lib/SuperUpload/package.json +6 -0
  167. package/lib/Title/Title.js +41 -0
  168. package/lib/Title/Title.less +35 -0
  169. package/lib/Title/package.json +6 -0
  170. package/lib/Viewer/ImageViews.js +266 -0
  171. package/lib/Viewer/Viewer.js +130 -0
  172. package/lib/Viewer/Viewer.less +67 -0
  173. package/lib/Viewer/imgView.less +59 -0
  174. package/lib/Viewer/package.json +7 -0
  175. package/lib/WingBlank/WingBlank.js +24 -0
  176. package/lib/WingBlank/WingBlank.less +12 -0
  177. package/lib/WingBlank/package.json +6 -0
  178. package/lib/adjust.less +89 -0
  179. package/lib/helper.js +246 -0
  180. package/lib/history.js +12 -0
  181. package/lib/index.js +278 -0
  182. package/lib/index.less +32 -0
  183. package/lib/style.less +31 -0
  184. package/lib/variables.js +14 -0
  185. package/lib/variables.less +73 -0
  186. package/package.json +22 -44
  187. package/src/Area/Area.js +0 -94
  188. package/src/Card/Card.js +0 -16
  189. package/src/CodeInput/CodeInput.js +0 -76
  190. package/src/Control/Control.js +0 -338
  191. package/src/Control/event.js +0 -45
  192. package/src/Enhance/Dialogs.js +0 -24
  193. package/src/Enhance/Loading.js +0 -83
  194. package/src/Header/Header.js +0 -149
  195. package/src/Header/Vertical.js +0 -74
  196. package/src/ImageView/ImageView.js +0 -62
  197. package/src/Indent/Indent.js +0 -12
  198. package/src/InpurCascader/InputCascader.js +0 -83
  199. package/src/InputEditor/InputEditor.js +0 -93
  200. package/src/InputSearch/InputSearch.js +0 -186
  201. package/src/InputSelect/InputSelect.js +0 -103
  202. package/src/InputTreeSelect/InputTreeSelect.js +0 -87
  203. package/src/InputWriting/InputWriting.js +0 -65
  204. package/src/Layout/Layout.js +0 -121
  205. package/src/LayoutLink/LayoutLink.js +0 -59
  206. package/src/Link/Link.js +0 -57
  207. package/src/Loading/Loading.js +0 -15
  208. package/src/Loading2/Loading2.js +0 -15
  209. package/src/ModalWithDrag/ModalWithDrag.js +0 -17
  210. package/src/NumberInput/NumberInput.js +0 -137
  211. package/src/Search/Search.js +0 -368
  212. package/src/Search2/Search.js +0 -436
  213. package/src/Sidebar/Sidebar.js +0 -111
  214. package/src/Sidebar2/Sidebar.js +0 -143
  215. package/src/SuperForm/SuperForm.js +0 -519
  216. package/src/SuperForm2/SuperForm.js +0 -588
  217. package/src/SuperIcon/SuperIcon.js +0 -14
  218. package/src/SuperPagination/SuperPagination.js +0 -65
  219. package/src/SuperTab/SuperTab.js +0 -84
  220. package/src/SuperTab2/SuperTab2.js +0 -94
  221. package/src/SuperTable/DragSortRow.js +0 -62
  222. package/src/SuperTable/FilterDropDown.js +0 -111
  223. package/src/SuperTable/SuperTable.js +0 -590
  224. package/src/SuperTable/fixed.js +0 -34
  225. package/src/SuperTable2/SuperTable2.js +0 -624
  226. package/src/SuperTable2/SuperTableCell.js +0 -175
  227. package/src/SuperTable3/FilterDropDown.js +0 -111
  228. package/src/SuperTable3/SuperTable.js +0 -498
  229. package/src/SuperTable3/fixed.js +0 -34
  230. package/src/SuperToolbar/SuperToolbar.js +0 -128
  231. package/src/SuperUpload/SuperUpload.js +0 -137
  232. package/src/Title/Title.js +0 -18
  233. package/src/Viewer/ImageViews.js +0 -220
  234. package/src/Viewer/Viewer.js +0 -97
  235. package/src/WingBlank/WingBlank.js +0 -14
  236. package/src/helper.js +0 -185
  237. package/src/index.js +0 -39
  238. package/src/variables.js +0 -5
  239. package/test/index.html +0 -10
  240. package/test/test.js +0 -16
  241. package/test/test.less +0 -12
  242. package/test/webpack.config.js +0 -71
  243. package/tools/babel.config.js +0 -14
  244. package/tools/build.js +0 -70
  245. package/tools/publish.js +0 -9
  246. package/tools/util.js +0 -53
  247. /package/{src → es}/Area/package.json +0 -0
  248. /package/{src → es}/Card/package.json +0 -0
  249. /package/{src → es}/CodeInput/package.json +0 -0
  250. /package/{src → es}/Control/package.json +0 -0
  251. /package/{src → es}/Enhance/package.json +0 -0
  252. /package/{src → es}/Header/Header.less +0 -0
  253. /package/{src → es}/Header/Vertical.less +0 -0
  254. /package/{src → es}/Header/package.json +0 -0
  255. /package/{src → es}/ImageView/ImageView.less +0 -0
  256. /package/{src → es}/ImageView/package.json +0 -0
  257. /package/{src → es}/Indent/package.json +0 -0
  258. /package/{src → es}/InpurCascader/package.json +0 -0
  259. /package/{src → es}/InputEditor/inputEditor.less +0 -0
  260. /package/{src → es}/InputEditor/package.json +0 -0
  261. /package/{src → es}/InputSearch/package.json +0 -0
  262. /package/{src → es}/InputSelect/package.json +0 -0
  263. /package/{src → es}/InputTreeSelect/package.json +0 -0
  264. /package/{src → es}/InputWriting/package.json +0 -0
  265. /package/{src → es}/Layout/Layout.less +0 -0
  266. /package/{src → es}/Layout/package.json +0 -0
  267. /package/{src → es}/LayoutLink/LayoutLink.less +0 -0
  268. /package/{src → es}/LayoutLink/package.json +0 -0
  269. /package/{src → es}/Link/package.json +0 -0
  270. /package/{src → es}/Loading/Loading.less +0 -0
  271. /package/{src → es}/Loading/package.json +0 -0
  272. /package/{src → es}/Loading2/Loading2.less +0 -0
  273. /package/{src → es}/Loading2/package.json +0 -0
  274. /package/{src → es}/ModalWithDrag/ModalWithDrag.less +0 -0
  275. /package/{src → es}/ModalWithDrag/package.json +0 -0
  276. /package/{src → es}/NumberInput/package.json +0 -0
  277. /package/{src → es}/Search/Search.less +0 -0
  278. /package/{src → es}/Search/package.json +0 -0
  279. /package/{src → es}/Search2/package.json +0 -0
  280. /package/{src → es}/Sidebar/Sidebar.less +0 -0
  281. /package/{src → es}/Sidebar/package.json +0 -0
  282. /package/{src → es}/Sidebar2/Sidebar.less +0 -0
  283. /package/{src → es}/Sidebar2/package.json +0 -0
  284. /package/{src → es}/SuperForm/SuperForm.less +0 -0
  285. /package/{src → es}/SuperForm/package.json +0 -0
  286. /package/{src → es}/SuperForm2/SuperForm.less +0 -0
  287. /package/{src → es}/SuperForm2/package.json +0 -0
  288. /package/{src → es}/SuperIcon/package.json +0 -0
  289. /package/{src → es}/SuperPagination/package.json +0 -0
  290. /package/{src → es}/SuperTab/SuperTab.less +0 -0
  291. /package/{src → es}/SuperTab/package.json +0 -0
  292. /package/{src → es}/SuperTab2/SuperTab2.less +0 -0
  293. /package/{src → es}/SuperTab2/package.json +0 -0
  294. /package/{src → es}/SuperTable/DragSortRow.less +0 -0
  295. /package/{src → es}/SuperTable/FilterDropDown.less +0 -0
  296. /package/{src → es}/SuperTable/SuperTable.less +0 -0
  297. /package/{src → es}/SuperTable/package.json +0 -0
  298. /package/{src → es}/SuperTable2/package.json +0 -0
  299. /package/{src → es}/SuperTable3/FilterDropDown.less +0 -0
  300. /package/{src → es}/SuperTable3/SuperTable.less +0 -0
  301. /package/{src → es}/SuperTable3/package.json +0 -0
  302. /package/{src → es}/SuperToolbar/SuperToolbar.less +0 -0
  303. /package/{src → es}/SuperToolbar/package.json +0 -0
  304. /package/{src → es}/SuperUpload/SuperUpload.less +0 -0
  305. /package/{src → es}/SuperUpload/package.json +0 -0
  306. /package/{src → es}/Title/Title.less +0 -0
  307. /package/{src → es}/Title/package.json +0 -0
  308. /package/{src → es}/Viewer/Viewer.less +0 -0
  309. /package/{src → es}/Viewer/imgView.less +0 -0
  310. /package/{src → es}/Viewer/package.json +0 -0
  311. /package/{src → es}/WingBlank/WingBlank.less +0 -0
  312. /package/{src → es}/WingBlank/package.json +0 -0
  313. /package/{src → es}/adjust.less +0 -0
  314. /package/{src → es}/variables.less +0 -0
@@ -0,0 +1,597 @@
1
+ import _Reflect$construct from "@babel/runtime-corejs3/core-js-stable/reflect/construct";
2
+ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
3
+ import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
4
+ import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
5
+ import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
6
+ import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
7
+ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
8
+ import _Row from "antd/es/row";
9
+ import _toConsumableArray from "@babel/runtime-corejs3/helpers/toConsumableArray";
10
+ import _Col from "antd/es/col";
11
+ import _Icon from "antd/es/icon";
12
+ import _Button from "antd/es/button";
13
+ import _extends from "@babel/runtime-corejs3/helpers/extends";
14
+ import _asyncToGenerator from "@babel/runtime-corejs3/helpers/asyncToGenerator";
15
+ import _classCallCheck from "@babel/runtime-corejs3/helpers/classCallCheck";
16
+ import _createClass from "@babel/runtime-corejs3/helpers/createClass";
17
+ import _assertThisInitialized from "@babel/runtime-corejs3/helpers/assertThisInitialized";
18
+ import _inherits from "@babel/runtime-corejs3/helpers/inherits";
19
+ import _possibleConstructorReturn from "@babel/runtime-corejs3/helpers/possibleConstructorReturn";
20
+ import _getPrototypeOf from "@babel/runtime-corejs3/helpers/getPrototypeOf";
21
+ import _defineProperty from "@babel/runtime-corejs3/helpers/defineProperty";
22
+ import _Form from "antd/es/form";
23
+ function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
24
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context21, _context22; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context21 = ownKeys(Object(t), !0)).call(_context21, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context22 = ownKeys(Object(t))).call(_context22, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
25
+ import _regeneratorRuntime from "@babel/runtime-corejs3/regenerator";
26
+ import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
27
+ import _reduceInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/reduce";
28
+ import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
29
+ import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
30
+ import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
31
+ import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/includes";
32
+ import _bindInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/bind";
33
+ import _sortInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/sort";
34
+ import _Array$isArray from "@babel/runtime-corejs3/core-js-stable/array/is-array";
35
+ import _JSON$stringify from "@babel/runtime-corejs3/core-js-stable/json/stringify";
36
+ import _spliceInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/splice";
37
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
38
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
39
+ import React from 'react';
40
+ import PropTypes from 'prop-types';
41
+ import ReactDOM from 'react-dom';
42
+ import withStyles from 'isomorphic-style-loader/withStyles';
43
+ import Control, { getTitle, makeString } from '../Control';
44
+ // import helper from '../../common/common';
45
+ // import s from './Search.less';
46
+ import { getPathValue } from "../helper";
47
+ // import showAddDialog from './AddDialog';
48
+ // import showDeleteDialog from './DeleteDialog';
49
+ import variables from "../variables";
50
+ var FormItem = _Form.Item;
51
+ var defaultSize = 'small';
52
+ var defaultColNum = 6;
53
+ var insertTimeKeyMap = {
54
+ from: ["insertTimeTo", "insertTimeFrom"],
55
+ start: ["insertTimeStart", "insertTimeEnd"]
56
+ };
57
+ var TYPE = ['text', 'search', 'searchText', 'select', 'number', 'date', 'readonly', 'selectSearch', 'cascader' //级联选择下拉
58
+ ];
59
+
60
+ /**
61
+ * search: 搜索按钮的标题
62
+ * more:更多按钮的标题
63
+ * reset:重置按钮的标题
64
+ * sort:排序按钮的标题
65
+ */
66
+ var ConfigType = {
67
+ search: PropTypes.string.isRequired,
68
+ reset: PropTypes.string,
69
+ sort: PropTypes.string,
70
+ more: PropTypes.string
71
+ };
72
+
73
+ /**
74
+ * key: 唯一标识一个表单元素
75
+ * title:表单元素旁边的标题
76
+ * type:表单元素的类型
77
+ * props:传递给表单元素的额外属性
78
+ */
79
+ var FilterType = {
80
+ key: PropTypes.string.isRequired,
81
+ title: PropTypes.string.isRequired,
82
+ type: PropTypes.oneOf(TYPE).isRequired,
83
+ options: PropTypes.array,
84
+ props: PropTypes.object
85
+ };
86
+
87
+ /**
88
+ * data:传递给filters的默认值,为key:value的形式,此处的key为FilterType中的key
89
+ * isSort:是否需要排序按钮,默认false,当设置为true时,onClick函数需要实现key为sort的响应函数
90
+ * options: 作用同FilterType.options类似,但优先级高于它
91
+ * onClick:按钮点击事件,原型为func(key)
92
+ * onChange:表单控件内容改变时触发,原型为func(key, value)
93
+ * onSearch:search控件发出的事件,原型为func(key, value)
94
+ * displayRow:折叠时需要展示的行数,整数,默认为2
95
+ */
96
+ var Search2 = /*#__PURE__*/function (_React$Component) {
97
+ _inherits(Search2, _React$Component);
98
+ var _super = _createSuper(Search2);
99
+ function Search2() {
100
+ var _context;
101
+ var _this;
102
+ _classCallCheck(this, Search2);
103
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
104
+ args[_key] = arguments[_key];
105
+ }
106
+ _this = _super.call.apply(_super, _concatInstanceProperty(_context = [this]).call(_context, args));
107
+ _defineProperty(_assertThisInitialized(_this), "state", {
108
+ more: false
109
+ });
110
+ _defineProperty(_assertThisInitialized(_this), "getPathFun", /*#__PURE__*/function () {
111
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(key) {
112
+ var _context2, _context8;
113
+ var pathArr, _global$store$getStat, sidebars, navigation, title, body, url;
114
+ return _regeneratorRuntime.wrap(function _callee$(_context9) {
115
+ while (1) switch (_context9.prev = _context9.next) {
116
+ case 0:
117
+ pathArr = global.location.pathname.split('/');
118
+ _global$store$getStat = global.store.getState().layout, sidebars = _global$store$getStat.sidebars, navigation = _global$store$getStat.navigation;
119
+ title = _reduceInstanceProperty(_context2 = _Object$keys(sidebars)).call(_context2, function (t, i) {
120
+ var _context3;
121
+ _mapInstanceProperty(_context3 = sidebars[i]).call(_context3, function (item) {
122
+ if (item.children) {
123
+ var _context4;
124
+ var filterArr = _filterInstanceProperty(_context4 = item.children).call(_context4, function (c) {
125
+ return c.href === global.location.pathname;
126
+ });
127
+ if (filterArr.length !== 0) {
128
+ var _context5, _context6;
129
+ t = _concatInstanceProperty(_context5 = _filterInstanceProperty(navigation).call(navigation, function (n) {
130
+ return n.key === i;
131
+ })[0].title).call(_context5, _concatInstanceProperty(_context6 = "-".concat(item.title, "-")).call(_context6, filterArr[0].title));
132
+ }
133
+ } else {
134
+ if (item.href === global.location.pathname) {
135
+ var _context7;
136
+ t = _concatInstanceProperty(_context7 = _filterInstanceProperty(navigation).call(navigation, function (n) {
137
+ return n.key === i;
138
+ })[0].title).call(_context7, "-".concat(item.title));
139
+ }
140
+ }
141
+ return item;
142
+ });
143
+ return t;
144
+ }, '');
145
+ body = {
146
+ action: _concatInstanceProperty(_context8 = "".concat(pathArr[pathArr.length - 1], "_")).call(_context8, key),
147
+ actionName: "".concat(title, "-\u641C\u7D22"),
148
+ menuName: title
149
+ };
150
+ url = '/api/standard/log'; // await helper.fetchJson(url, helper.postOption(body))
151
+ case 5:
152
+ case "end":
153
+ return _context9.stop();
154
+ }
155
+ }, _callee);
156
+ }));
157
+ return function (_x) {
158
+ return _ref.apply(this, arguments);
159
+ };
160
+ }());
161
+ _defineProperty(_assertThisInitialized(_this), "onClick", function (key) {
162
+ var onClick = _this.props.onClick;
163
+ if (key === 'search') {
164
+ // this.getPathFun(key);
165
+ }
166
+ onClick && onClick(key);
167
+ });
168
+ _defineProperty(_assertThisInitialized(_this), "onMore", function () {
169
+ var onHeightChange = _this.props.onHeightChange;
170
+ _this.setState({
171
+ more: !_this.state.more
172
+ });
173
+ onHeightChange && onHeightChange(_this.calHeight(!_this.state.more));
174
+ });
175
+ _defineProperty(_assertThisInitialized(_this), "onChange", function (dictionary, key, value) {
176
+ var _context10, _context11;
177
+ var onChange = _this.props.onChange;
178
+ if (value && key === 'queryGroup' && dictionary && global.dictionary && global.dictionary[dictionary] && !_includesInstanceProperty(_context10 = _mapInstanceProperty(_context11 = global.dictionary[dictionary]).call(_context11, function (item) {
179
+ return item.value;
180
+ })).call(_context10, value)) {
181
+ var _context12;
182
+ var realValue = JSON.parse(value);
183
+ _this.onClick('reset');
184
+ _mapInstanceProperty(_context12 = _Object$keys(realValue)).call(_context12, function (objectKey) {
185
+ onChange && objectKey !== 'queryId' && onChange(objectKey, realValue[objectKey]);
186
+ });
187
+ }
188
+ onChange && onChange(key, value);
189
+ });
190
+ _defineProperty(_assertThisInitialized(_this), "onPressEnter", function () {
191
+ ReactDOM.findDOMNode(_this.refs.search).click();
192
+ });
193
+ _defineProperty(_assertThisInitialized(_this), "toButton", function (key) {
194
+ var _context13;
195
+ var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
196
+ var config = _this.props.config;
197
+ var onClick = _bindInstanceProperty(_context13 = _this.onClick).call(_context13, _assertThisInitialized(_this), key);
198
+ return /*#__PURE__*/React.createElement(_Button, _extends({
199
+ size: defaultSize,
200
+ onClick: onClick
201
+ }, props), config[key]);
202
+ });
203
+ _defineProperty(_assertThisInitialized(_this), "toMore", function () {
204
+ return /*#__PURE__*/React.createElement("a", {
205
+ role: "more",
206
+ onClick: _this.onMore
207
+ }, _this.props.config.more, /*#__PURE__*/React.createElement(_Icon, {
208
+ type: "down",
209
+ "data-status": !_this.state.more ? 'down' : 'up'
210
+ }));
211
+ });
212
+ _defineProperty(_assertThisInitialized(_this), "toButtons", function () {
213
+ var config = _this.props.config;
214
+ return /*#__PURE__*/React.createElement("div", {
215
+ role: "buttons"
216
+ }, _this.toButton('search', {
217
+ ref: 'search',
218
+ type: 'primary'
219
+ }), config.reset ? _this.toButton('reset') : null, _this.isSort() ? _this.toButton('sort') : null, _this.isMore() ? _this.toMore() : null);
220
+ });
221
+ _defineProperty(_assertThisInitialized(_this), "isSort", function () {
222
+ var _this$props = _this.props,
223
+ config = _this$props.config,
224
+ _this$props$colNum = _this$props.colNum,
225
+ colNum = _this$props$colNum === void 0 ? defaultColNum : _this$props$colNum,
226
+ filters = _this$props.filters,
227
+ _this$props$isSort = _this$props.isSort,
228
+ isSort = _this$props$isSort === void 0 ? false : _this$props$isSort;
229
+ return isSort && _sortInstanceProperty(config) && filters.length > colNum;
230
+ });
231
+ _defineProperty(_assertThisInitialized(_this), "isMore", function () {
232
+ var _this$props2 = _this.props,
233
+ config = _this$props2.config,
234
+ _this$props2$colNum = _this$props2.colNum,
235
+ colNum = _this$props2$colNum === void 0 ? defaultColNum : _this$props2$colNum,
236
+ filters = _this$props2.filters,
237
+ _this$props2$displayR = _this$props2.displayRow,
238
+ displayRow = _this$props2$displayR === void 0 ? filters.length > 4 ? 2 : 1 : _this$props2$displayR;
239
+ return config.more && _filterInstanceProperty(filters).call(filters, function (item) {
240
+ return !item.hide;
241
+ }).length > colNum * displayRow;
242
+ });
243
+ _defineProperty(_assertThisInitialized(_this), "getOptions", function (filter) {
244
+ var options = _this.props.options;
245
+ if (options && _Array$isArray(options[filter.key])) {
246
+ return options[filter.key];
247
+ } else {
248
+ return filter.options || filter.typeRelated || [];
249
+ }
250
+ });
251
+ _defineProperty(_assertThisInitialized(_this), "getContainer", function () {
252
+ return _this.props.getContainer;
253
+ });
254
+ _defineProperty(_assertThisInitialized(_this), "getControlProps", function (control) {
255
+ var _context14;
256
+ var _this$props$data = _this.props.data,
257
+ data = _this$props$data === void 0 ? {} : _this$props$data;
258
+ return _objectSpread(_objectSpread({}, control.props || {}), {}, {
259
+ size: defaultSize,
260
+ type: control.type,
261
+ value: makeString(data[control.key]),
262
+ onChange: _bindInstanceProperty(_context14 = _this.onChange).call(_context14, _assertThisInitialized(_this), control.dictionary, control.key)
263
+ });
264
+ });
265
+ _defineProperty(_assertThisInitialized(_this), "validDate", function (_ref2) {
266
+ var key = _ref2.key,
267
+ type = _ref2.type;
268
+ return function (date) {
269
+ var _this$props$data2 = _this.props.data,
270
+ data = _this$props$data2 === void 0 ? {} : _this$props$data2;
271
+ if (!date || !data[key]) {
272
+ return false;
273
+ } else {
274
+ if (type === '>') {
275
+ return date.format('YYYY-MM-DD HH:mm:ss') <= data[key].valueOf();
276
+ } else if (type === '<') {
277
+ return date.format('YYYY-MM-DD HH:mm:ss') >= data[key].valueOf();
278
+ } else {
279
+ return false;
280
+ }
281
+ }
282
+ };
283
+ });
284
+ _defineProperty(_assertThisInitialized(_this), "toText", function (props) {
285
+ props.onPressEnter = _this.onPressEnter;
286
+ return /*#__PURE__*/React.createElement(Control, props);
287
+ });
288
+ _defineProperty(_assertThisInitialized(_this), "toNumber", function (props) {
289
+ props.defaultValue = props.value;
290
+ delete props.value;
291
+ return /*#__PURE__*/React.createElement(Control, props);
292
+ });
293
+ _defineProperty(_assertThisInitialized(_this), "getQueryGroupOptions", function (_ref3) {
294
+ var dictionary = _ref3.dictionary,
295
+ _ref3$configCode = _ref3.configCode,
296
+ configCode = _ref3$configCode === void 0 ? 'unknown' : _ref3$configCode;
297
+ var realOptions = [];
298
+ if (dictionary && global.dictionary) {
299
+ var dicOptions = global.dictionary[dictionary] || [];
300
+ realOptions = _concatInstanceProperty(realOptions).call(realOptions, dicOptions);
301
+ }
302
+ var state = global.store.getState();
303
+ var path = ['layout', 'tableColsSetting', configCode];
304
+ var _ref4 = getPathValue(state, path) || {},
305
+ _ref4$queryList = _ref4.queryList,
306
+ queryList = _ref4$queryList === void 0 ? [] : _ref4$queryList;
307
+ return _concatInstanceProperty(realOptions).call(realOptions, _mapInstanceProperty(queryList).call(queryList, function (item) {
308
+ return {
309
+ title: item.name,
310
+ value: _JSON$stringify(item.query)
311
+ };
312
+ }));
313
+ });
314
+ _defineProperty(_assertThisInitialized(_this), "toSelect", function (props, filter) {
315
+ var container = _this.getContainer();
316
+ container && (props.getPopupContainer = container);
317
+ props.options = filter.key === 'queryGroup' ? _this.getQueryGroupOptions(filter) : _this.getOptions(filter);
318
+ props.dropdownMatchSelectWidth = false;
319
+ return /*#__PURE__*/React.createElement(Control, props);
320
+ });
321
+ _defineProperty(_assertThisInitialized(_this), "createSearchEvent", function (filter) {
322
+ if (_this.props.onSearch) {
323
+ return function (value) {
324
+ return _this.props.onSearch(filter.key, value, filter);
325
+ };
326
+ } else {
327
+ return null;
328
+ }
329
+ });
330
+ _defineProperty(_assertThisInitialized(_this), "toSearch", function (props, filter) {
331
+ var container = _this.getContainer();
332
+ container && (props.getPopupContainer = container);
333
+ props.options = _this.getOptions(filter);
334
+ props.onSearch = _this.createSearchEvent(filter);
335
+ props.dropdownMatchSelectWidth = false;
336
+ return /*#__PURE__*/React.createElement(Control, props);
337
+ });
338
+ _defineProperty(_assertThisInitialized(_this), "selectSearch", function (props, filter) {
339
+ var container = _this.getContainer();
340
+ container && (props.getPopupContainer = container);
341
+ props.options = _this.getOptions(filter);
342
+ props.onSearch = _this.createSearchEvent(filter);
343
+ props.dropdownMatchSelectWidth = false;
344
+ return /*#__PURE__*/React.createElement(Control, props);
345
+ });
346
+ _defineProperty(_assertThisInitialized(_this), "toDate", function (props, _ref5) {
347
+ var rule = _ref5.rule;
348
+ var container = _this.getContainer();
349
+ container && (props.getCalendarContainer = container);
350
+ rule && (props.disabledDate = _this.validDate(rule));
351
+ props.style = {
352
+ width: '100%'
353
+ };
354
+ return /*#__PURE__*/React.createElement(Control, props);
355
+ });
356
+ _defineProperty(_assertThisInitialized(_this), "toReadonly", function (props, filter) {
357
+ props.value = getTitle(props.value, _this.getOptions(filter));
358
+ return /*#__PURE__*/React.createElement(Control, props);
359
+ });
360
+ _defineProperty(_assertThisInitialized(_this), "toCascader", function (props, filter) {
361
+ var container = _this.getContainer();
362
+ container && (props.getPopupContainer = container);
363
+ props.options = _this.getOptions(filter);
364
+ props.onSearch = _this.createSearchEvent(filter);
365
+ props.placeholder = filter.placeholder || '';
366
+ return /*#__PURE__*/React.createElement(Control, props);
367
+ });
368
+ _defineProperty(_assertThisInitialized(_this), "toControl", function (control) {
369
+ var props = _this.getControlProps(control);
370
+ switch (control.type) {
371
+ case 'text':
372
+ return _this.toText(props, control);
373
+ case 'number':
374
+ return _this.toNumber(props, control);
375
+ case 'select':
376
+ return _this.toSelect(props, control);
377
+ case 'selectSearch':
378
+ return _this.selectSearch(props, control);
379
+ case 'search':
380
+ case 'searchText':
381
+ return _this.toSearch(props, control);
382
+ case 'date':
383
+ return _this.toDate(props, control);
384
+ case 'readonly':
385
+ return _this.toReadonly(props, control);
386
+ case 'cascader':
387
+ return _this.toCascader(props, control);
388
+ default:
389
+ return 'type error';
390
+ }
391
+ });
392
+ _defineProperty(_assertThisInitialized(_this), "toLabel", function (_ref6) {
393
+ var title = _ref6.title,
394
+ key = _ref6.key,
395
+ dictionary = _ref6.dictionary,
396
+ _ref6$configCode = _ref6.configCode,
397
+ configCode = _ref6$configCode === void 0 ? 'unknown' : _ref6$configCode;
398
+ if (key === 'queryGroup') {
399
+ var _context15, _context16;
400
+ //查询组合
401
+ return /*#__PURE__*/React.createElement("span", null, title, /*#__PURE__*/React.createElement(_Icon, {
402
+ role: "icon",
403
+ type: "plus-circle-o",
404
+ onClick: _bindInstanceProperty(_context15 = _this.onAddQueryGroup).call(_context15, _assertThisInitialized(_this), configCode, _this.props.data, dictionary)
405
+ }), /*#__PURE__*/React.createElement(_Icon, {
406
+ role: "icon",
407
+ type: "minus-circle-o",
408
+ onClick: _bindInstanceProperty(_context16 = _this.onDelQueryGroup).call(_context16, _assertThisInitialized(_this), configCode, _this.props.data, dictionary)
409
+ }));
410
+ } else {
411
+ return title;
412
+ }
413
+ });
414
+ _defineProperty(_assertThisInitialized(_this), "toCol", function (span, control, more) {
415
+ var factor = control.span || 1;
416
+ return /*#__PURE__*/React.createElement(_Col, {
417
+ span: span * factor,
418
+ key: control.key,
419
+ onFocus: more ? function () {
420
+ _this.setState({
421
+ more: true
422
+ });
423
+ } : undefined
424
+ }, /*#__PURE__*/React.createElement(FormItem, {
425
+ label: _this.toLabel(control),
426
+ required: control.required
427
+ }, _this.toControl(control)));
428
+ });
429
+ _defineProperty(_assertThisInitialized(_this), "toCols", function () {
430
+ var _this$props3 = _this.props,
431
+ _this$props3$insertTi = _this$props3.insertTimeKey,
432
+ insertTimeKey = _this$props3$insertTi === void 0 ? 'from' : _this$props3$insertTi,
433
+ _this$props3$colNum = _this$props3.colNum,
434
+ colNum = _this$props3$colNum === void 0 ? defaultColNum : _this$props3$colNum,
435
+ filters = _this$props3.filters,
436
+ _this$props3$displayR = _this$props3.displayRow,
437
+ displayRow = _this$props3$displayR === void 0 ? filters.length > defaultColNum ? 2 : 1 : _this$props3$displayR;
438
+ var span = 24 / Math.min(colNum, _filterInstanceProperty(filters).call(filters, function (item) {
439
+ return !item.hide;
440
+ }).length);
441
+ var newFilters = _filterInstanceProperty(filters).call(filters, function (item) {
442
+ return !item.hide;
443
+ });
444
+ var insertKeys = insertTimeKeyMap[insertTimeKey];
445
+ var insertTimeCols = _filterInstanceProperty(newFilters).call(newFilters, function (x) {
446
+ return _includesInstanceProperty(insertKeys).call(insertKeys, x.key);
447
+ });
448
+ var otherCols = _filterInstanceProperty(newFilters).call(newFilters, function (x) {
449
+ return !_includesInstanceProperty(insertKeys).call(insertKeys, x.key);
450
+ });
451
+ if (insertTimeCols.length > 0) {
452
+ if (otherCols.length >= defaultColNum) {
453
+ var _context17;
454
+ _spliceInstanceProperty(otherCols).apply(otherCols, _concatInstanceProperty(_context17 = [6, 0]).call(_context17, _toConsumableArray(insertTimeCols)));
455
+ newFilters = otherCols;
456
+ } else {
457
+ newFilters = _concatInstanceProperty(otherCols).call(otherCols, insertTimeCols);
458
+ }
459
+ }
460
+ if (span == 4.8) {
461
+ //特殊处理filters为5的时候,span不能为小数
462
+ return _mapInstanceProperty(newFilters).call(newFilters, function (control, index) {
463
+ return _this.toCol(index == 0 ? 4 : 5, control, index >= colNum * displayRow);
464
+ });
465
+ } else {
466
+ return _mapInstanceProperty(newFilters).call(newFilters, function (control, index) {
467
+ return _this.toCol(span, control, index >= colNum * displayRow);
468
+ });
469
+ }
470
+ });
471
+ _defineProperty(_assertThisInitialized(_this), "calWidth", function () {
472
+ var _this$props4 = _this.props,
473
+ _this$props4$colNum = _this$props4.colNum,
474
+ colNum = _this$props4$colNum === void 0 ? defaultColNum : _this$props4$colNum,
475
+ filters = _this$props4.filters;
476
+ var length = _filterInstanceProperty(filters).call(filters, function (item) {
477
+ return !item.hide;
478
+ }).length;
479
+ if (length < colNum) {
480
+ return "".concat(length * 13.6, "%");
481
+ } else {
482
+ return "".concat(defaultColNum * 13.6, "%");
483
+ }
484
+ });
485
+ _defineProperty(_assertThisInitialized(_this), "calHeight", function (more) {
486
+ var _this$props5 = _this.props,
487
+ _this$props5$colNum = _this$props5.colNum,
488
+ colNum = _this$props5$colNum === void 0 ? defaultColNum : _this$props5$colNum,
489
+ filters = _this$props5.filters,
490
+ _this$props5$displayR = _this$props5.displayRow,
491
+ displayRow = _this$props5$displayR === void 0 ? filters.length > defaultColNum ? 2 : 1 : _this$props5$displayR;
492
+ if (more) {
493
+ var row = Math.ceil(_filterInstanceProperty(filters).call(filters, function (item) {
494
+ return !item.hide;
495
+ }).length / colNum);
496
+ return row * 36 + (row - 1) * 10;
497
+ } else {
498
+ return displayRow * 36 + (displayRow - 1) * 10;
499
+ }
500
+ });
501
+ return _this;
502
+ }
503
+ _createClass(Search2, [{
504
+ key: "onAddQueryGroup",
505
+ value: function () {
506
+ var _onAddQueryGroup = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(configCode, searchData, dictionary) {
507
+ var _context18;
508
+ var filter, dicOptionNameArr, dicOptions;
509
+ return _regeneratorRuntime.wrap(function _callee2$(_context19) {
510
+ while (1) switch (_context19.prev = _context19.next) {
511
+ case 0:
512
+ filter = _reduceInstanceProperty(_context18 = _Object$keys(searchData)).call(_context18, function (state, key) {
513
+ if (searchData[key] && key !== 'queryGroup') {
514
+ state[key] = searchData[key];
515
+ }
516
+ return state;
517
+ }, {}); // if (Object.keys(filter).length < 1) return helper.showError(`查询条件不能为空`);
518
+ dicOptionNameArr = [];
519
+ if (dictionary && global.dictionary) {
520
+ dicOptions = global.dictionary[dictionary] || [];
521
+ dicOptionNameArr = _mapInstanceProperty(dicOptions).call(dicOptions, function (item) {
522
+ return item.title;
523
+ });
524
+ }
525
+ // if (true === await showAddDialog(configCode, filter, dicOptionNameArr)) {
526
+ // this.onChange(undefined, 'queryGroup', '');
527
+ // }
528
+ case 3:
529
+ case "end":
530
+ return _context19.stop();
531
+ }
532
+ }, _callee2);
533
+ }));
534
+ function onAddQueryGroup(_x2, _x3, _x4) {
535
+ return _onAddQueryGroup.apply(this, arguments);
536
+ }
537
+ return onAddQueryGroup;
538
+ }()
539
+ }, {
540
+ key: "onDelQueryGroup",
541
+ value: function () {
542
+ var _onDelQueryGroup = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(configCode, searchData, dictionary) {
543
+ var queryGroup, dicOptions, _JSON$parse, queryId;
544
+ return _regeneratorRuntime.wrap(function _callee3$(_context20) {
545
+ while (1) switch (_context20.prev = _context20.next) {
546
+ case 0:
547
+ queryGroup = searchData.queryGroup; // if (!queryGroup) return helper.showError(`请先选择要删除的查询组合`);
548
+ if (dictionary && global.dictionary) {
549
+ dicOptions = global.dictionary[dictionary] || []; // if (dicOptions.map(item => item.value).includes(queryGroup)) return helper.showError(`系统固定查询组合不允许删除`);
550
+ }
551
+ _JSON$parse = JSON.parse(queryGroup), queryId = _JSON$parse.queryId; // if(true === await showDeleteDialog(configCode, queryId)) {
552
+ // this.onClick('reset');
553
+ // }
554
+ case 3:
555
+ case "end":
556
+ return _context20.stop();
557
+ }
558
+ }, _callee3);
559
+ }));
560
+ function onDelQueryGroup(_x5, _x6, _x7) {
561
+ return _onDelQueryGroup.apply(this, arguments);
562
+ }
563
+ return onDelQueryGroup;
564
+ }()
565
+ }, {
566
+ key: "render",
567
+ value: function render() {
568
+ return /*#__PURE__*/React.createElement("div", {
569
+ className: variables('Search2'),
570
+ style: {
571
+ height: this.calHeight(this.state.more)
572
+ }
573
+ }, /*#__PURE__*/React.createElement(_Form, {
574
+ layout: "vertical",
575
+ style: {
576
+ width: this.calWidth()
577
+ }
578
+ }, /*#__PURE__*/React.createElement(_Row, {
579
+ gutter: 20
580
+ }, this.toCols())), this.toButtons());
581
+ }
582
+ }]);
583
+ return Search2;
584
+ }(React.Component);
585
+ _defineProperty(Search2, "propTypes", {
586
+ config: PropTypes.shape(ConfigType).isRequired,
587
+ filters: PropTypes.arrayOf(PropTypes.shape(FilterType)).isRequired,
588
+ data: PropTypes.object,
589
+ options: PropTypes.object,
590
+ getContainer: PropTypes.func,
591
+ onClick: PropTypes.func,
592
+ onChange: PropTypes.func,
593
+ onSearch: PropTypes.func,
594
+ onHeightChange: PropTypes.func,
595
+ displayRow: PropTypes.number
596
+ });
597
+ export default Search2;
@@ -2,7 +2,6 @@
2
2
 
3
3
  .@{cloudlink-prefix}-Search2 {
4
4
  transition: all 0.3s;
5
-
6
5
  > *:first-child {
7
6
  display: inline-block;
8
7
  vertical-align: top;