cloud-b2b 1.1.50 → 1.1.51

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 (309) hide show
  1. package/package.json +44 -22
  2. package/src/Area/Area.js +94 -0
  3. package/src/Card/Card.js +16 -0
  4. package/src/CodeInput/CodeInput.js +76 -0
  5. package/src/Control/Control.js +338 -0
  6. package/src/Control/event.js +45 -0
  7. package/src/Enhance/Dialogs.js +24 -0
  8. package/src/Enhance/Loading.js +83 -0
  9. package/{es → src}/Enhance/index.js +8 -8
  10. package/src/Header/Header.js +149 -0
  11. package/src/Header/Vertical.js +74 -0
  12. package/src/ImageView/ImageView.js +62 -0
  13. package/src/Indent/Indent.js +12 -0
  14. package/src/InpurCascader/InputCascader.js +83 -0
  15. package/src/InputEditor/InputEditor.js +93 -0
  16. package/src/InputSearch/InputSearch.js +186 -0
  17. package/src/InputSelect/InputSelect.js +103 -0
  18. package/src/InputTreeSelect/InputTreeSelect.js +87 -0
  19. package/src/InputWriting/InputWriting.js +65 -0
  20. package/src/Layout/Layout.js +121 -0
  21. package/src/LayoutLink/LayoutLink.js +59 -0
  22. package/src/Link/Link.js +57 -0
  23. package/src/Loading/Loading.js +15 -0
  24. package/src/Loading2/Loading2.js +15 -0
  25. package/src/ModalWithDrag/ModalWithDrag.js +17 -0
  26. package/src/ModalWithDrag/drag.js +128 -0
  27. package/src/NumberInput/NumberInput.js +137 -0
  28. package/src/Search/Search.js +368 -0
  29. package/src/Sidebar/Sidebar.js +111 -0
  30. package/src/Sidebar2/Sidebar.js +143 -0
  31. package/src/SuperForm/SuperForm.js +516 -0
  32. package/src/SuperForm2/SuperForm.js +588 -0
  33. package/src/SuperIcon/SuperIcon.js +14 -0
  34. package/src/SuperPagination/SuperPagination.js +65 -0
  35. package/src/SuperTab/SuperTab.js +84 -0
  36. package/src/SuperTab2/SuperTab2.js +94 -0
  37. package/src/SuperTable/DragSortRow.js +62 -0
  38. package/src/SuperTable/FilterDropDown.js +111 -0
  39. package/src/SuperTable/SuperTable.js +590 -0
  40. package/src/SuperTable/fixed.js +34 -0
  41. package/src/SuperTable2/SuperTable2.js +600 -0
  42. package/src/SuperTable2/SuperTableCell.js +144 -0
  43. package/src/SuperTable3/FilterDropDown.js +111 -0
  44. package/src/SuperTable3/SuperTable.js +498 -0
  45. package/src/SuperTable3/fixed.js +34 -0
  46. package/src/SuperToolbar/SuperToolbar.js +128 -0
  47. package/src/SuperUpload/SuperUpload.js +137 -0
  48. package/src/Title/Title.js +18 -0
  49. package/src/Viewer/ImageViews.js +220 -0
  50. package/src/Viewer/Viewer.js +97 -0
  51. package/src/WingBlank/WingBlank.js +14 -0
  52. package/src/helper.js +185 -0
  53. package/src/history.js +6 -0
  54. package/src/index.js +38 -0
  55. package/src/variables.js +5 -0
  56. package/test/index.html +10 -0
  57. package/test/test.js +16 -0
  58. package/test/test.less +12 -0
  59. package/test/webpack.config.js +71 -0
  60. package/tools/babel.config.js +14 -0
  61. package/tools/build.js +70 -0
  62. package/tools/publish.js +9 -0
  63. package/tools/util.js +53 -0
  64. package/es/Area/Area.js +0 -170
  65. package/es/Card/Card.js +0 -20
  66. package/es/CodeInput/CodeInput.js +0 -152
  67. package/es/Control/Control.js +0 -496
  68. package/es/Control/event.js +0 -57
  69. package/es/Enhance/Dialogs.js +0 -67
  70. package/es/Enhance/Loading.js +0 -151
  71. package/es/Header/Header.js +0 -194
  72. package/es/Header/Vertical.js +0 -129
  73. package/es/ImageView/ImageView.js +0 -117
  74. package/es/Indent/Indent.js +0 -23
  75. package/es/InpurCascader/InputCascader.js +0 -135
  76. package/es/InputEditor/InputEditor.js +0 -113
  77. package/es/InputSearch/InputSearch.js +0 -311
  78. package/es/InputSelect/InputSelect.js +0 -191
  79. package/es/InputTreeSelect/InputTreeSelect.js +0 -147
  80. package/es/InputWriting/InputWriting.js +0 -107
  81. package/es/Layout/Layout.js +0 -232
  82. package/es/LayoutLink/LayoutLink.js +0 -82
  83. package/es/Link/Link.js +0 -108
  84. package/es/Loading/Loading.js +0 -15
  85. package/es/Loading2/Loading2.js +0 -11
  86. package/es/ModalWithDrag/ModalWithDrag.js +0 -34
  87. package/es/ModalWithDrag/drag.js +0 -133
  88. package/es/NumberInput/NumberInput.js +0 -240
  89. package/es/Search/Search.js +0 -595
  90. package/es/Sidebar/Sidebar.js +0 -165
  91. package/es/Sidebar2/Sidebar.js +0 -192
  92. package/es/SuperForm/SuperForm.js +0 -720
  93. package/es/SuperForm2/SuperForm.js +0 -828
  94. package/es/SuperIcon/SuperIcon.js +0 -30
  95. package/es/SuperPagination/SuperPagination.js +0 -126
  96. package/es/SuperTab/SuperTab.js +0 -130
  97. package/es/SuperTab2/SuperTab2.js +0 -167
  98. package/es/SuperTable/DragSortRow.js +0 -125
  99. package/es/SuperTable/FilterDropDown.js +0 -188
  100. package/es/SuperTable/SuperTable.js +0 -940
  101. package/es/SuperTable/fixed.js +0 -42
  102. package/es/SuperTable2/SuperTable2.js +0 -1019
  103. package/es/SuperTable2/SuperTableCell.js +0 -242
  104. package/es/SuperTable3/FilterDropDown.js +0 -188
  105. package/es/SuperTable3/SuperTable.js +0 -790
  106. package/es/SuperTable3/fixed.js +0 -42
  107. package/es/SuperToolbar/SuperToolbar.js +0 -223
  108. package/es/SuperUpload/SuperUpload.js +0 -434
  109. package/es/Title/Title.js +0 -36
  110. package/es/Viewer/ImageViews.js +0 -311
  111. package/es/Viewer/Viewer.js +0 -149
  112. package/es/WingBlank/WingBlank.js +0 -20
  113. package/es/helper.js +0 -169
  114. package/es/history.js +0 -5
  115. package/es/index.js +0 -37
  116. package/es/variables.js +0 -4
  117. package/lib/Area/Area.js +0 -198
  118. package/lib/Area/package.json +0 -6
  119. package/lib/Card/Card.js +0 -38
  120. package/lib/Card/package.json +0 -6
  121. package/lib/CodeInput/CodeInput.js +0 -179
  122. package/lib/CodeInput/package.json +0 -6
  123. package/lib/Control/Control.js +0 -548
  124. package/lib/Control/event.js +0 -68
  125. package/lib/Control/package.json +0 -6
  126. package/lib/Enhance/Dialogs.js +0 -87
  127. package/lib/Enhance/Loading.js +0 -175
  128. package/lib/Enhance/index.js +0 -35
  129. package/lib/Enhance/package.json +0 -6
  130. package/lib/Header/Header.js +0 -215
  131. package/lib/Header/Header.less +0 -95
  132. package/lib/Header/Vertical.js +0 -150
  133. package/lib/Header/Vertical.less +0 -60
  134. package/lib/Header/package.json +0 -6
  135. package/lib/ImageView/ImageView.js +0 -134
  136. package/lib/ImageView/ImageView.less +0 -14
  137. package/lib/ImageView/package.json +0 -6
  138. package/lib/Indent/Indent.js +0 -38
  139. package/lib/Indent/package.json +0 -6
  140. package/lib/InpurCascader/InputCascader.js +0 -156
  141. package/lib/InpurCascader/package.json +0 -6
  142. package/lib/InputEditor/InputEditor.js +0 -131
  143. package/lib/InputEditor/inputEditor.less +0 -8
  144. package/lib/InputEditor/package.json +0 -6
  145. package/lib/InputSearch/InputSearch.js +0 -327
  146. package/lib/InputSearch/package.json +0 -6
  147. package/lib/InputSelect/InputSelect.js +0 -214
  148. package/lib/InputSelect/package.json +0 -6
  149. package/lib/InputTreeSelect/InputTreeSelect.js +0 -169
  150. package/lib/InputTreeSelect/package.json +0 -6
  151. package/lib/InputWriting/InputWriting.js +0 -123
  152. package/lib/InputWriting/package.json +0 -6
  153. package/lib/Layout/Layout.js +0 -258
  154. package/lib/Layout/Layout.less +0 -28
  155. package/lib/Layout/package.json +0 -6
  156. package/lib/LayoutLink/LayoutLink.js +0 -114
  157. package/lib/LayoutLink/LayoutLink.less +0 -53
  158. package/lib/LayoutLink/package.json +0 -6
  159. package/lib/Link/Link.js +0 -130
  160. package/lib/Link/package.json +0 -6
  161. package/lib/Loading/Loading.js +0 -30
  162. package/lib/Loading/Loading.less +0 -13
  163. package/lib/Loading/package.json +0 -6
  164. package/lib/Loading2/Loading2.js +0 -26
  165. package/lib/Loading2/Loading2.less +0 -19
  166. package/lib/Loading2/package.json +0 -6
  167. package/lib/ModalWithDrag/ModalWithDrag.js +0 -53
  168. package/lib/ModalWithDrag/ModalWithDrag.less +0 -6
  169. package/lib/ModalWithDrag/drag.js +0 -147
  170. package/lib/ModalWithDrag/package.json +0 -6
  171. package/lib/NumberInput/NumberInput.js +0 -262
  172. package/lib/NumberInput/package.json +0 -6
  173. package/lib/Search/Search.js +0 -616
  174. package/lib/Search/Search.less +0 -63
  175. package/lib/Search/package.json +0 -6
  176. package/lib/Sidebar/Sidebar.js +0 -186
  177. package/lib/Sidebar/Sidebar.less +0 -78
  178. package/lib/Sidebar/package.json +0 -6
  179. package/lib/Sidebar2/Sidebar.js +0 -213
  180. package/lib/Sidebar2/Sidebar.less +0 -153
  181. package/lib/Sidebar2/package.json +0 -6
  182. package/lib/SuperForm/SuperForm.js +0 -731
  183. package/lib/SuperForm/SuperForm.less +0 -52
  184. package/lib/SuperForm/package.json +0 -6
  185. package/lib/SuperForm2/SuperForm.js +0 -834
  186. package/lib/SuperForm2/SuperForm.less +0 -52
  187. package/lib/SuperForm2/package.json +0 -6
  188. package/lib/SuperIcon/SuperIcon.js +0 -47
  189. package/lib/SuperIcon/package.json +0 -6
  190. package/lib/SuperPagination/SuperPagination.js +0 -145
  191. package/lib/SuperPagination/package.json +0 -6
  192. package/lib/SuperTab/SuperTab.js +0 -146
  193. package/lib/SuperTab/SuperTab.less +0 -43
  194. package/lib/SuperTab/package.json +0 -6
  195. package/lib/SuperTab2/SuperTab2.js +0 -191
  196. package/lib/SuperTab2/SuperTab2.less +0 -18
  197. package/lib/SuperTab2/package.json +0 -6
  198. package/lib/SuperTable/DragSortRow.js +0 -142
  199. package/lib/SuperTable/DragSortRow.less +0 -17
  200. package/lib/SuperTable/FilterDropDown.js +0 -205
  201. package/lib/SuperTable/FilterDropDown.less +0 -30
  202. package/lib/SuperTable/SuperTable.js +0 -945
  203. package/lib/SuperTable/SuperTable.less +0 -132
  204. package/lib/SuperTable/fixed.js +0 -55
  205. package/lib/SuperTable/package.json +0 -6
  206. package/lib/SuperTable2/SuperTable2.js +0 -1047
  207. package/lib/SuperTable2/SuperTable2.less +0 -118
  208. package/lib/SuperTable2/SuperTableCell.js +0 -258
  209. package/lib/SuperTable2/package.json +0 -6
  210. package/lib/SuperTable3/FilterDropDown.js +0 -205
  211. package/lib/SuperTable3/FilterDropDown.less +0 -29
  212. package/lib/SuperTable3/SuperTable.js +0 -795
  213. package/lib/SuperTable3/SuperTable.less +0 -99
  214. package/lib/SuperTable3/fixed.js +0 -55
  215. package/lib/SuperTable3/package.json +0 -6
  216. package/lib/SuperToolbar/SuperToolbar.js +0 -248
  217. package/lib/SuperToolbar/SuperToolbar.less +0 -17
  218. package/lib/SuperToolbar/package.json +0 -6
  219. package/lib/SuperUpload/SuperUpload.js +0 -481
  220. package/lib/SuperUpload/SuperUpload.less +0 -28
  221. package/lib/SuperUpload/package.json +0 -6
  222. package/lib/Title/Title.js +0 -54
  223. package/lib/Title/Title.less +0 -35
  224. package/lib/Title/package.json +0 -6
  225. package/lib/Viewer/ImageViews.js +0 -323
  226. package/lib/Viewer/Viewer.js +0 -167
  227. package/lib/Viewer/Viewer.less +0 -67
  228. package/lib/Viewer/imgView.less +0 -59
  229. package/lib/Viewer/package.json +0 -7
  230. package/lib/WingBlank/WingBlank.js +0 -37
  231. package/lib/WingBlank/WingBlank.less +0 -12
  232. package/lib/WingBlank/package.json +0 -6
  233. package/lib/adjust.less +0 -89
  234. package/lib/helper.js +0 -204
  235. package/lib/history.js +0 -18
  236. package/lib/index.js +0 -347
  237. package/lib/index.less +0 -31
  238. package/lib/style.less +0 -30
  239. package/lib/variables.js +0 -16
  240. package/lib/variables.less +0 -73
  241. /package/{es → src}/Area/package.json +0 -0
  242. /package/{es → src}/Card/package.json +0 -0
  243. /package/{es → src}/CodeInput/package.json +0 -0
  244. /package/{es → src}/Control/package.json +0 -0
  245. /package/{es → src}/Enhance/package.json +0 -0
  246. /package/{es → src}/Header/Header.less +0 -0
  247. /package/{es → src}/Header/Vertical.less +0 -0
  248. /package/{es → src}/Header/package.json +0 -0
  249. /package/{es → src}/ImageView/ImageView.less +0 -0
  250. /package/{es → src}/ImageView/package.json +0 -0
  251. /package/{es → src}/Indent/package.json +0 -0
  252. /package/{es → src}/InpurCascader/package.json +0 -0
  253. /package/{es → src}/InputEditor/inputEditor.less +0 -0
  254. /package/{es → src}/InputEditor/package.json +0 -0
  255. /package/{es → src}/InputSearch/package.json +0 -0
  256. /package/{es → src}/InputSelect/package.json +0 -0
  257. /package/{es → src}/InputTreeSelect/package.json +0 -0
  258. /package/{es → src}/InputWriting/package.json +0 -0
  259. /package/{es → src}/Layout/Layout.less +0 -0
  260. /package/{es → src}/Layout/package.json +0 -0
  261. /package/{es → src}/LayoutLink/LayoutLink.less +0 -0
  262. /package/{es → src}/LayoutLink/package.json +0 -0
  263. /package/{es → src}/Link/package.json +0 -0
  264. /package/{es → src}/Loading/Loading.less +0 -0
  265. /package/{es → src}/Loading/package.json +0 -0
  266. /package/{es → src}/Loading2/Loading2.less +0 -0
  267. /package/{es → src}/Loading2/package.json +0 -0
  268. /package/{es → src}/ModalWithDrag/ModalWithDrag.less +0 -0
  269. /package/{es → src}/ModalWithDrag/package.json +0 -0
  270. /package/{es → src}/NumberInput/package.json +0 -0
  271. /package/{es → src}/Search/Search.less +0 -0
  272. /package/{es → src}/Search/package.json +0 -0
  273. /package/{es → src}/Sidebar/Sidebar.less +0 -0
  274. /package/{es → src}/Sidebar/package.json +0 -0
  275. /package/{es → src}/Sidebar2/Sidebar.less +0 -0
  276. /package/{es → src}/Sidebar2/package.json +0 -0
  277. /package/{es → src}/SuperForm/SuperForm.less +0 -0
  278. /package/{es → src}/SuperForm/package.json +0 -0
  279. /package/{es → src}/SuperForm2/SuperForm.less +0 -0
  280. /package/{es → src}/SuperForm2/package.json +0 -0
  281. /package/{es → src}/SuperIcon/package.json +0 -0
  282. /package/{es → src}/SuperPagination/package.json +0 -0
  283. /package/{es → src}/SuperTab/SuperTab.less +0 -0
  284. /package/{es → src}/SuperTab/package.json +0 -0
  285. /package/{es → src}/SuperTab2/SuperTab2.less +0 -0
  286. /package/{es → src}/SuperTab2/package.json +0 -0
  287. /package/{es → src}/SuperTable/DragSortRow.less +0 -0
  288. /package/{es → src}/SuperTable/FilterDropDown.less +0 -0
  289. /package/{es → src}/SuperTable/SuperTable.less +0 -0
  290. /package/{es → src}/SuperTable/package.json +0 -0
  291. /package/{es → src}/SuperTable2/SuperTable2.less +0 -0
  292. /package/{es → src}/SuperTable2/package.json +0 -0
  293. /package/{es → src}/SuperTable3/FilterDropDown.less +0 -0
  294. /package/{es → src}/SuperTable3/SuperTable.less +0 -0
  295. /package/{es → src}/SuperTable3/package.json +0 -0
  296. /package/{es → src}/SuperToolbar/SuperToolbar.less +0 -0
  297. /package/{es → src}/SuperToolbar/package.json +0 -0
  298. /package/{es → src}/SuperUpload/SuperUpload.less +0 -0
  299. /package/{es → src}/SuperUpload/package.json +0 -0
  300. /package/{es → src}/Title/Title.less +0 -0
  301. /package/{es → src}/Title/package.json +0 -0
  302. /package/{es → src}/Viewer/Viewer.less +0 -0
  303. /package/{es → src}/Viewer/imgView.less +0 -0
  304. /package/{es → src}/Viewer/package.json +0 -0
  305. /package/{es → src}/WingBlank/WingBlank.less +0 -0
  306. /package/{es → src}/WingBlank/package.json +0 -0
  307. /package/{es → src}/adjust.less +0 -0
  308. /package/{es → src}/style.less +0 -0
  309. /package/{es → src}/variables.less +0 -0
@@ -1,720 +0,0 @@
1
- import _Reflect$construct from "@babel/runtime-corejs3/core-js-stable/reflect/construct";
2
- import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
3
- import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
4
- import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
5
- import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
6
- import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
7
- import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
8
- import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
9
- import _Row from "antd/es/row";
10
- import _Col from "antd/es/col";
11
- import _extends from "@babel/runtime-corejs3/helpers/extends";
12
- import _Checkbox from "antd/es/checkbox";
13
- import _Icon from "antd/es/icon";
14
- import _typeof from "@babel/runtime-corejs3/helpers/typeof";
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
- import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
24
- import _Array$isArray from "@babel/runtime-corejs3/core-js-stable/array/is-array";
25
- import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
26
- import _someInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/some";
27
- import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/includes";
28
- import _bindInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/bind";
29
- import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
30
-
31
- function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
32
-
33
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context17, _context18; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context17 = ownKeys(Object(source), !0)).call(_context17, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context18 = ownKeys(Object(source))).call(_context18, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
34
-
35
- 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); }; }
36
-
37
- 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; } }
38
-
39
- import React from 'react';
40
- import PropTypes from 'prop-types';
41
- import ReactDOM from 'react-dom';
42
- import helper from '../helper';
43
- import Control, { getTitle, makeString } from '../Control';
44
- import variables from '../variables';
45
- var FormItem = _Form.Item;
46
- var defaultSize = 'small';
47
- var defaultColNum = 4;
48
- var TYPE = ['readonly', 'text', 'search', 'searchText', 'select', 'selectText', 'radioGroup', 'number', 'date', 'textArea', 'password', 'editor', 'selectWriting', 'selectSearch', 'empty', 'area', 'uploadImg', 'cascader', 'treeSelect'];
49
- /**
50
- * key:[必须],用于唯一标识该Form下的一个表单元素
51
- * title:[必须],表单元素的标签
52
- * type:[必须],表单元素类型
53
- * required: [可选],是否为必填项
54
- * options: [可选],对象数组(type为readonly,radio,search, searchText,select, selectText时有效)
55
- * span: [可选],占据的列数,默认为1
56
- * showAdd: [可选],是否显示+号,点击+号会触发onAdd事件,默认为false
57
- * rule: [可选],用于设置校验规则
58
- * highLightKeys: [可选],用于设置高亮样式,仅只读字段生效
59
- */
60
-
61
- var ControlType = {
62
- key: PropTypes.string.isRequired,
63
- title: PropTypes.string,
64
- type: PropTypes.oneOf(TYPE).isRequired,
65
- required: PropTypes.bool,
66
- options: PropTypes.array,
67
- span: PropTypes.number,
68
- onCheckItem: PropTypes.any,
69
- showAdd: PropTypes.any,
70
- rule: PropTypes.object,
71
- props: PropTypes.object
72
- };
73
-
74
- var Controlled = /*#__PURE__*/function (_React$Component) {
75
- _inherits(Controlled, _React$Component);
76
-
77
- var _super = _createSuper(Controlled);
78
-
79
- function Controlled(props) {
80
- var _this;
81
-
82
- _classCallCheck(this, Controlled);
83
-
84
- _this = _super.call(this, props);
85
-
86
- _defineProperty(_assertThisInitialized(_this), "onChange", function (value) {
87
- var onChange = _this.props.onChange;
88
-
89
- _this.setState({
90
- value: value
91
- });
92
-
93
- onChange && onChange(value);
94
- });
95
-
96
- _this.state = {
97
- value: props.value
98
- };
99
- return _this;
100
- }
101
-
102
- _createClass(Controlled, [{
103
- key: "componentWillReceiveProps",
104
- value: function componentWillReceiveProps(nextProps) {
105
- if (this.props.value !== nextProps.value) {
106
- this.setState({
107
- value: nextProps.value
108
- });
109
- }
110
- }
111
- }, {
112
- key: "render",
113
- value: function render() {
114
- var props = _objectSpread(_objectSpread({}, this.props), {}, {
115
- value: this.state.value,
116
- onChange: this.onChange
117
- });
118
-
119
- return /*#__PURE__*/React.createElement(Control, props);
120
- }
121
- }]);
122
-
123
- return Controlled;
124
- }(React.Component);
125
- /**
126
- * colNum:[可选],表单的列数,默认为4
127
- * readonly: [可选],为true时,所有表单元素都是只读的; 为字符串数组时,用于指定key的表单元素是只读的
128
- * hideControls: [可选],指定key的表单元素被隐藏
129
- * options: [可选],键值对,值与ControlType中options作用相同,但优先级更高
130
- * onChange:内容改变时触发,原型为func(key, value)
131
- * onSearch:搜索框中用户输入时触发,原型为func(key, title, control)
132
- * onAdd: 点击+号时触发,原型为func(key)
133
- * checkable:是否显示checkbox选择框
134
- * onOpenChange:控制日期框显示隐藏回调func(key, open)
135
- * onAreaSearch:联级选择器触发,原型为func(key - 当前联级key, title - 输入值, parentKey - 主体联级key)
136
- * OnFileChange:上传组件触发,原型为func(key,{fileList, fileDeleteList})
137
- */
138
-
139
-
140
- var SuperForm = /*#__PURE__*/function (_React$Component2) {
141
- _inherits(SuperForm, _React$Component2);
142
-
143
- var _super2 = _createSuper(SuperForm);
144
-
145
- function SuperForm() {
146
- var _context;
147
-
148
- var _this2;
149
-
150
- _classCallCheck(this, SuperForm);
151
-
152
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
153
- args[_key] = arguments[_key];
154
- }
155
-
156
- _this2 = _super2.call.apply(_super2, _concatInstanceProperty(_context = [this]).call(_context, args));
157
-
158
- _defineProperty(_assertThisInitialized(_this2), "onAdd", function (key, title) {
159
- var onAdd = _this2.props.onAdd;
160
- onAdd && onAdd(key, title);
161
- });
162
-
163
- _defineProperty(_assertThisInitialized(_this2), "onChange", function (key, value) {
164
- var onChange = _this2.props.onChange;
165
-
166
- if (onChange) {
167
- _this2.onExitValid(key);
168
-
169
- onChange(key, value);
170
- }
171
- });
172
-
173
- _defineProperty(_assertThisInitialized(_this2), "onBlur", function (key, value) {
174
- var onChange = _this2.props.onChange;
175
-
176
- if (onChange) {
177
- _this2.onExitValid(key);
178
-
179
- onChange(key, value);
180
- }
181
- });
182
-
183
- _defineProperty(_assertThisInitialized(_this2), "onExitValid", function (key, value) {
184
- if (key === _this2.validKey) {
185
- _this2.validKey = '';
186
-
187
- _this2.props.onExitValid();
188
- }
189
-
190
- _this2.props.onChangeOperate && _this2.props.onChangeOperate(key, value);
191
- });
192
-
193
- // 动态生成getValidState方法
194
- _defineProperty(_assertThisInitialized(_this2), "initValidState", function () {
195
- var _this2$props = _this2.props,
196
- value = _this2$props.value,
197
- valid = _this2$props.valid;
198
-
199
- var invalid = function invalid() {
200
- return null;
201
- };
202
-
203
- var _valid = function _valid(_ref) {
204
- var key = _ref.key,
205
- required = _ref.required;
206
-
207
- if (required) {
208
- if (!value || helper.isEmpty2(value[key]) || !_Array$isArray(value[key]) && _typeof(value[key]) === 'object' && helper.isEmpty(value[key].value)) {
209
- _this2.getValidState = invalid;
210
- _this2.validKey = key;
211
- return 'error';
212
- }
213
- }
214
-
215
- return null;
216
- };
217
-
218
- _this2.getValidState = valid ? _valid : invalid;
219
- });
220
-
221
- _defineProperty(_assertThisInitialized(_this2), "validDate", function (_ref2) {
222
- var key = _ref2.key,
223
- type = _ref2.type;
224
- return function (date) {
225
- var _this2$props$value = _this2.props.value,
226
- value = _this2$props$value === void 0 ? {} : _this2$props$value;
227
-
228
- if (!date || !value[key]) {
229
- return false;
230
- } else {
231
- if (type === '>') {
232
- return date.format('YYYY-MM-DD') <= value[key];
233
- } else if (type === '<') {
234
- return date.format('YYYY-MM-DD') >= value[key];
235
- } else {
236
- return false;
237
- }
238
- }
239
- };
240
- });
241
-
242
- _defineProperty(_assertThisInitialized(_this2), "getPopupContainer", function () {
243
- var container = _this2.props.container;
244
-
245
- if (typeof container === 'undefined') {
246
- return ReactDOM.findDOMNode(_assertThisInitialized(_this2));
247
- } else if (typeof container === 'boolean') {
248
- return document.body;
249
- } else {
250
- return ReactDOM.findDOMNode(container);
251
- }
252
- });
253
-
254
- _defineProperty(_assertThisInitialized(_this2), "getMaxWidth", function () {
255
- var _this2$props$colNum = _this2.props.colNum,
256
- colNum = _this2$props$colNum === void 0 ? defaultColNum : _this2$props$colNum;
257
- return colNum * 250;
258
- });
259
-
260
- _defineProperty(_assertThisInitialized(_this2), "getContainer", function () {
261
- return _this2.props.getContainer;
262
- });
263
-
264
- _defineProperty(_assertThisInitialized(_this2), "getControls", function () {
265
- var _this2$props2 = _this2.props,
266
- hideControls = _this2$props2.hideControls,
267
- controls = _this2$props2.controls;
268
-
269
- if (!hideControls) {
270
- return controls;
271
- } else {
272
- return _filterInstanceProperty(controls).call(controls, function (control) {
273
- return !_someInstanceProperty(hideControls).call(hideControls, function (key) {
274
- return control.key === key;
275
- });
276
- });
277
- }
278
- });
279
-
280
- _defineProperty(_assertThisInitialized(_this2), "getType", function (_ref3) {
281
- var _context2;
282
-
283
- var key = _ref3.key,
284
- type = _ref3.type;
285
- var readonly = _this2.props.readonly;
286
-
287
- if (_includesInstanceProperty(_context2 = ['area', 'uploadImg']).call(_context2, type)) {
288
- return type;
289
- } else if (!readonly) {
290
- return type;
291
- } else if (readonly === true) {
292
- return 'readonly';
293
- } else if (_Array$isArray(readonly) && _someInstanceProperty(readonly).call(readonly, function (readonlyKey) {
294
- return readonlyKey === key;
295
- })) {
296
- return 'readonly';
297
- } else {
298
- return type;
299
- }
300
- });
301
-
302
- _defineProperty(_assertThisInitialized(_this2), "specialProps", function (type, _ref4) {
303
- var key = _ref4.key,
304
- _ref4$props = _ref4.props,
305
- props = _ref4$props === void 0 ? {} : _ref4$props,
306
- originType = _ref4.type;
307
-
308
- if (type === 'readonly') {
309
- var _this2$props$highLigh = _this2.props.highLightKeys,
310
- highLightKeys = _this2$props$highLigh === void 0 ? [] : _this2$props$highLigh;
311
- var style = _includesInstanceProperty(highLightKeys).call(highLightKeys, key) ? {
312
- backgroundColor: 'red',
313
- color: 'white'
314
- } : {
315
- backgroundColor: '#f0f0f0'
316
- };
317
-
318
- if (originType === 'textArea') {
319
- var _context3;
320
-
321
- return {
322
- type: 'textArea',
323
- readonly: true,
324
- style: style,
325
- onBlur: _bindInstanceProperty(_context3 = _this2.onExitValid).call(_context3, _assertThisInitialized(_this2), key)
326
- };
327
- } else {
328
- var _context4;
329
-
330
- return {
331
- style: style,
332
- onBlur: _bindInstanceProperty(_context4 = _this2.onExitValid).call(_context4, _assertThisInitialized(_this2), key)
333
- };
334
- }
335
- } else if (type === 'text' || type === 'textArea') {
336
- var _context5, _context6;
337
-
338
- return _objectSpread(_objectSpread({}, props), {}, {
339
- onChange: _bindInstanceProperty(_context5 = _this2.onExitValid).call(_context5, _assertThisInitialized(_this2), key),
340
- onBlur: _bindInstanceProperty(_context6 = _this2.onChange).call(_context6, _assertThisInitialized(_this2), key)
341
- });
342
- } else if (type === 'date') {
343
- var _context7, _context8;
344
-
345
- var propsObj = _objectSpread(_objectSpread({}, props), {}, {
346
- onChange: _bindInstanceProperty(_context7 = _this2.onBlur).call(_context7, _assertThisInitialized(_this2), key),
347
- onBlur: _bindInstanceProperty(_context8 = _this2.onExitValid).call(_context8, _assertThisInitialized(_this2), key)
348
- });
349
-
350
- if (_this2.props.onOpenChange && typeof _this2.props.onOpenChange === 'function') {
351
- var _context9;
352
-
353
- propsObj.onOpenChange = _bindInstanceProperty(_context9 = _this2.props.onOpenChange).call(_context9, _assertThisInitialized(_this2), key);
354
- }
355
-
356
- return propsObj;
357
- } else if (type === 'area') {
358
- var _context10, _context11;
359
-
360
- return _objectSpread(_objectSpread({}, props), {}, {
361
- onChange: _bindInstanceProperty(_context10 = _this2.onBlur).call(_context10, _assertThisInitialized(_this2), key),
362
- onBlur: _bindInstanceProperty(_context11 = _this2.onExitValid).call(_context11, _assertThisInitialized(_this2), key),
363
- onAreaSearch: _this2.props.onAreaSearch
364
- });
365
- } else {
366
- var _context12, _context13;
367
-
368
- return _objectSpread(_objectSpread({}, props), {}, {
369
- onChange: _bindInstanceProperty(_context12 = _this2.onBlur).call(_context12, _assertThisInitialized(_this2), key),
370
- onBlur: _bindInstanceProperty(_context13 = _this2.onExitValid).call(_context13, _assertThisInitialized(_this2), key)
371
- });
372
- }
373
- });
374
-
375
- _defineProperty(_assertThisInitialized(_this2), "getControlProps", function (control, status) {
376
- var _this2$props$value2 = _this2.props.value,
377
- value = _this2$props$value2 === void 0 ? {} : _this2$props$value2;
378
-
379
- var type = _this2.getType(control);
380
-
381
- var props = _this2.specialProps(type, control);
382
-
383
- return _objectSpread(_objectSpread({
384
- autoFocus: !!status,
385
- type: type
386
- }, props), {}, {
387
- size: defaultSize,
388
- value: makeString(value[control.key])
389
- });
390
- });
391
-
392
- _defineProperty(_assertThisInitialized(_this2), "getOptions", function (key, options) {
393
- var higher = _this2.props.options || {};
394
- return higher[key] || options;
395
- });
396
-
397
- _defineProperty(_assertThisInitialized(_this2), "toEmpty", function (props) {});
398
-
399
- _defineProperty(_assertThisInitialized(_this2), "toText", function (props) {
400
- return /*#__PURE__*/React.createElement(Controlled, props);
401
- });
402
-
403
- _defineProperty(_assertThisInitialized(_this2), "toPassword", function (props) {
404
- return /*#__PURE__*/React.createElement(Controlled, props);
405
- });
406
-
407
- _defineProperty(_assertThisInitialized(_this2), "toEditor", function (props, control) {
408
- props.inputKey = control.key;
409
- return /*#__PURE__*/React.createElement(Controlled, props);
410
- });
411
-
412
- _defineProperty(_assertThisInitialized(_this2), "toSelectWriting", function (props, control) {
413
- return /*#__PURE__*/React.createElement(Controlled, props);
414
- });
415
-
416
- _defineProperty(_assertThisInitialized(_this2), "toTextArea", function (props, control) {
417
- if (control.allFullFather) {
418
- props.rows = control.rows;
419
- props.maxLength = control.maxLength;
420
- props.style = {
421
- 'resize': 'none'
422
- };
423
- } else {
424
- props.autoSize = {
425
- minRows: 1,
426
- maxRows: 5
427
- };
428
- }
429
-
430
- return /*#__PURE__*/React.createElement(Controlled, props);
431
- });
432
-
433
- _defineProperty(_assertThisInitialized(_this2), "toNumber", function (props) {
434
- props.defaultValue = props.value;
435
- delete props.value;
436
- return /*#__PURE__*/React.createElement(Control, props);
437
- });
438
-
439
- _defineProperty(_assertThisInitialized(_this2), "toSelect", function (props, _ref5) {
440
- var options = _ref5.options,
441
- key = _ref5.key;
442
- props.getPopupContainer = _this2.getPopupContainer;
443
- props.options = _this2.getOptions(key, options);
444
- props.dropdownMatchSelectWidth = false;
445
- return /*#__PURE__*/React.createElement(Control, props);
446
- });
447
-
448
- _defineProperty(_assertThisInitialized(_this2), "createSearchEvent", function (control) {
449
- if (_this2.props.onSearch) {
450
- return function (value) {
451
- return _this2.props.onSearch(control.key, value, control);
452
- };
453
- } else {
454
- return null;
455
- }
456
- });
457
-
458
- _defineProperty(_assertThisInitialized(_this2), "toSearch", function (props, control) {
459
- props.getPopupContainer = _this2.getPopupContainer;
460
- props.options = _this2.getOptions(control.key, control.options);
461
- props.onSearch = _this2.createSearchEvent(control);
462
- props.dropdownMatchSelectWidth = false;
463
- return /*#__PURE__*/React.createElement(Control, props);
464
- });
465
-
466
- _defineProperty(_assertThisInitialized(_this2), "toDate", function (props, _ref6) {
467
- var rule = _ref6.rule;
468
- props.getCalendarContainer = _this2.getPopupContainer;
469
- props.style = {
470
- width: '100%'
471
- };
472
- rule && (props.disabledDate = _this2.validDate(rule));
473
- return /*#__PURE__*/React.createElement(Control, props);
474
- });
475
-
476
- _defineProperty(_assertThisInitialized(_this2), "toRadioGroup", function (props, _ref7) {
477
- var key = _ref7.key,
478
- options = _ref7.options;
479
- props.options = _this2.getOptions(key, options);
480
- return /*#__PURE__*/React.createElement(Control, props);
481
- });
482
-
483
- _defineProperty(_assertThisInitialized(_this2), "toReadonly", function (props, _ref8) {
484
- var options = _ref8.options,
485
- key = _ref8.key;
486
- props.value = getTitle(props.value, _this2.getOptions(key, options));
487
- return /*#__PURE__*/React.createElement(Control, props);
488
- });
489
-
490
- _defineProperty(_assertThisInitialized(_this2), "selectSearch", function (props, control) {
491
- props.getPopupContainer = _this2.getPopupContainer;
492
- props.options = _this2.getOptions(control.key, control.options);
493
- props.onSearch = _this2.createSearchEvent(control);
494
- props.dropdownMatchSelectWidth = false;
495
- return /*#__PURE__*/React.createElement(Control, props);
496
- });
497
-
498
- _defineProperty(_assertThisInitialized(_this2), "area", function (props, _ref9) {
499
- var key = _ref9.key,
500
- options = _ref9.options;
501
- var readonly = _this2.props.readonly;
502
- props.parentKey = key;
503
- props.options = _this2.getOptions(key, options);
504
- props.dropdownMatchSelectWidth = false;
505
- props.readonly = readonly === true || _Array$isArray(readonly) && _someInstanceProperty(readonly).call(readonly, function (readonlyKey) {
506
- return readonlyKey === key;
507
- }) ? true : false;
508
- return /*#__PURE__*/React.createElement(Control, props);
509
- });
510
-
511
- _defineProperty(_assertThisInitialized(_this2), "uploadImg", function (props, control) {
512
- var _context14;
513
-
514
- var readonly = _this2.props.readonly;
515
- props.required = control.required || false;
516
- props.onFileChange = _bindInstanceProperty(_context14 = _this2.onFileChange).call(_context14, _assertThisInitialized(_this2), control);
517
- props.readonly = readonly === true || _Array$isArray(readonly) && _someInstanceProperty(readonly).call(readonly, function (readonlyKey) {
518
- return readonlyKey === control.key;
519
- }) ? true : false;
520
- return /*#__PURE__*/React.createElement(Control, props);
521
- });
522
-
523
- _defineProperty(_assertThisInitialized(_this2), "toCascader", function (props, control) {
524
- var container = _this2.getContainer();
525
-
526
- container && (props.getPopupContainer = container);
527
- props.options = control.options || [];
528
- props.onSearch = _this2.createSearchEvent(control);
529
- props.placeholder = props.placeholder || '';
530
- props.loadData = _this2.createSearchEvent(control);
531
- return /*#__PURE__*/React.createElement(Control, props);
532
- });
533
-
534
- _defineProperty(_assertThisInitialized(_this2), "toTreeSelect", function (props, filter) {
535
- var container = _this2.getContainer();
536
-
537
- container && (props.getPopupContainer = container);
538
- props.options = _this2.getOptions(filter);
539
- props.onSearch = _this2.createSearchEvent(filter);
540
- props.placeholder = filter.placeholder || '';
541
- return /*#__PURE__*/React.createElement(Control, props);
542
- });
543
-
544
- _defineProperty(_assertThisInitialized(_this2), "toControl", function (props, control) {
545
- switch (props.type) {
546
- case 'readonly':
547
- return _this2.toReadonly(props, control);
548
-
549
- case 'text':
550
- return _this2.toText(props, control);
551
-
552
- case 'number':
553
- return _this2.toNumber(props, control);
554
-
555
- case 'select':
556
- case 'selectText':
557
- return _this2.toSelect(props, control);
558
-
559
- case 'search':
560
- case 'searchText':
561
- return _this2.toSearch(props, control);
562
-
563
- case 'date':
564
- return _this2.toDate(props, control);
565
-
566
- case 'radioGroup':
567
- return _this2.toRadioGroup(props, control);
568
-
569
- case 'textArea':
570
- return _this2.toTextArea(props, control);
571
-
572
- case 'password':
573
- return _this2.toPassword(props, control);
574
-
575
- case 'editor':
576
- return _this2.toEditor(props, control);
577
-
578
- case 'selectWriting':
579
- return _this2.toSelectWriting(props, control);
580
-
581
- case 'selectSearch':
582
- return _this2.selectSearch(props, control);
583
-
584
- case 'empty':
585
- return _this2.toEmpty(props, control);
586
-
587
- case 'area':
588
- return _this2.area(props, control);
589
-
590
- case 'uploadImg':
591
- return _this2.uploadImg(props, control);
592
-
593
- case 'cascader':
594
- return _this2.toCascader(props, control);
595
-
596
- case 'treeSelect':
597
- return _this2.toTreeSelect(props, control);
598
-
599
- default:
600
- return 'type error';
601
- }
602
- });
603
-
604
- _defineProperty(_assertThisInitialized(_this2), "toLabel", function (_ref10, type) {
605
- var title = _ref10.title,
606
- showAdd = _ref10.showAdd,
607
- key = _ref10.key;
608
-
609
- if (showAdd && type !== 'readonly') {
610
- var _context15;
611
-
612
- var onClick = _bindInstanceProperty(_context15 = _this2.onAdd).call(_context15, _assertThisInitialized(_this2), key, title);
613
-
614
- return /*#__PURE__*/React.createElement("span", null, title, /*#__PURE__*/React.createElement(_Icon, {
615
- role: "add",
616
- type: "plus-circle-o",
617
- onClick: onClick
618
- }));
619
- } else {
620
- return title;
621
- }
622
- });
623
-
624
- _defineProperty(_assertThisInitialized(_this2), "toCol", function (span, control) {
625
- var factor = control.span || 1;
626
-
627
- var status = _this2.getValidState(control);
628
-
629
- var controlProps = _this2.getControlProps(control, status);
630
-
631
- var itemProps = {
632
- label: _this2.toLabel(control, controlProps.type),
633
- required: control.required,
634
- validateStatus: status
635
- };
636
- var _this2$props3 = _this2.props,
637
- checkable = _this2$props3.checkable,
638
- onCheckItem = _this2$props3.onCheckItem;
639
- return control.type !== 'empty' ? /*#__PURE__*/React.createElement(_Col, {
640
- span: span * factor,
641
- key: control.key
642
- }, checkable && /*#__PURE__*/React.createElement(_Checkbox, {
643
- className: variables('SuperForm').checkbox,
644
- onChange: _bindInstanceProperty(onCheckItem).call(onCheckItem, _assertThisInitialized(_this2), control),
645
- checked: control.checked
646
- }), /*#__PURE__*/React.createElement(FormItem, _extends({}, itemProps, {
647
- className: checkable ? variables('SuperForm').formItemWithCheckbox : ''
648
- }), _this2.toControl(controlProps, control))) : /*#__PURE__*/React.createElement(_Col, {
649
- span: span * factor,
650
- key: control.key,
651
- style: {
652
- height: '44px'
653
- }
654
- });
655
- });
656
-
657
- _defineProperty(_assertThisInitialized(_this2), "toCols", function () {
658
- var _context16;
659
-
660
- var _this2$props4 = _this2.props,
661
- _this2$props4$colNum = _this2$props4.colNum,
662
- colNum = _this2$props4$colNum === void 0 ? defaultColNum : _this2$props4$colNum,
663
- allFullFather = _this2$props4.allFullFather;
664
-
665
- if (allFullFather) {
666
- colNum = 1;
667
- }
668
-
669
- var span = 24 / colNum;
670
- return _mapInstanceProperty(_context16 = _this2.getControls()).call(_context16, function (control) {
671
- if (allFullFather) {
672
- control.allFullFather = allFullFather;
673
- }
674
-
675
- return _this2.toCol(span, control);
676
- });
677
- });
678
-
679
- return _this2;
680
- }
681
-
682
- _createClass(SuperForm, [{
683
- key: "render",
684
- value: function render() {
685
- this.initValidState();
686
- return /*#__PURE__*/React.createElement("div", {
687
- className: variables('SuperForm')
688
- }, /*#__PURE__*/React.createElement(_Form, {
689
- layout: "vertical",
690
- style: {
691
- maxWidth: this.props.allFullFather ? '100%' : this.getMaxWidth()
692
- }
693
- }, /*#__PURE__*/React.createElement(_Row, {
694
- gutter: 20
695
- }, this.toCols())));
696
- }
697
- }]);
698
-
699
- return SuperForm;
700
- }(React.Component);
701
-
702
- _defineProperty(SuperForm, "propTypes", {
703
- controls: PropTypes.arrayOf(PropTypes.shape(ControlType)).isRequired,
704
- value: PropTypes.object,
705
- colNum: PropTypes.number,
706
- valid: PropTypes.bool,
707
- readonly: PropTypes.oneOfType([PropTypes.bool, PropTypes.array]),
708
- hideControls: PropTypes.array,
709
- options: PropTypes.object,
710
- onChange: PropTypes.func,
711
- onSearch: PropTypes.func,
712
- onExitValid: PropTypes.func,
713
- onAdd: PropTypes.func,
714
- checkable: PropTypes.bool,
715
- onOpenChange: PropTypes.func,
716
- onAreaSearch: PropTypes.func,
717
- OnFileChange: PropTypes.func
718
- });
719
-
720
- export default SuperForm;