@vtx/components 3.1.131 → 3.1.133

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/lib/_util/filterSpecialCharacters.js +60 -49
  2. package/lib/_util/filterSpecialCharacters.js.map +1 -1
  3. package/lib/_util/getComponentProps.js +1 -4
  4. package/lib/_util/getComponentProps.js.map +1 -1
  5. package/lib/_util/getToken.js +8 -16
  6. package/lib/_util/getToken.js.map +1 -1
  7. package/lib/_util/getUrlParam.js +2 -9
  8. package/lib/_util/getUrlParam.js.map +1 -1
  9. package/lib/_util/isFunction.js +0 -1
  10. package/lib/_util/isFunction.js.map +1 -1
  11. package/lib/_util/isObject.js +0 -1
  12. package/lib/_util/isObject.js.map +1 -1
  13. package/lib/_util/useColSize.js +3 -13
  14. package/lib/_util/useColSize.js.map +1 -1
  15. package/lib/_util/useInterval.js +0 -3
  16. package/lib/_util/useInterval.js.map +1 -1
  17. package/lib/_util/useSet.js +26 -42
  18. package/lib/_util/useSet.js.map +1 -1
  19. package/lib/config.js +1 -2
  20. package/lib/config.js.map +1 -1
  21. package/lib/index.js +1 -30
  22. package/lib/index.js.map +1 -1
  23. package/lib/style/index.less +2 -2
  24. package/lib/style/themes/compact.less +1 -1
  25. package/lib/style/themes/dark.less +9 -9
  26. package/lib/style/themes/default.less +7 -7
  27. package/lib/style/themes/index.less +1 -1
  28. package/lib/style/themes/variable.less +5 -5
  29. package/lib/vtx-color-picker/index.js +14 -33
  30. package/lib/vtx-color-picker/index.js.map +1 -1
  31. package/lib/vtx-color-picker/style/css.js +0 -2
  32. package/lib/vtx-color-picker/style/css.js.map +1 -1
  33. package/lib/vtx-color-picker/style/index.js +0 -2
  34. package/lib/vtx-color-picker/style/index.js.map +1 -1
  35. package/lib/vtx-combogrid/Combogrid.js +55 -96
  36. package/lib/vtx-combogrid/Combogrid.js.map +1 -1
  37. package/lib/vtx-combogrid/index.js +41 -66
  38. package/lib/vtx-combogrid/index.js.map +1 -1
  39. package/lib/vtx-combogrid/style/css.js +0 -7
  40. package/lib/vtx-combogrid/style/css.js.map +1 -1
  41. package/lib/vtx-combogrid/style/index.js +0 -7
  42. package/lib/vtx-combogrid/style/index.js.map +1 -1
  43. package/lib/vtx-datagrid/Alert.js +6 -15
  44. package/lib/vtx-datagrid/Alert.js.map +1 -1
  45. package/lib/vtx-datagrid/ColumnSetting.js +49 -89
  46. package/lib/vtx-datagrid/ColumnSetting.js.map +1 -1
  47. package/lib/vtx-datagrid/ResizeableTitle.js +6 -18
  48. package/lib/vtx-datagrid/ResizeableTitle.js.map +1 -1
  49. package/lib/vtx-datagrid/index.js +141 -212
  50. package/lib/vtx-datagrid/index.js.map +1 -1
  51. package/lib/vtx-datagrid/renderColumnButtons.js +15 -46
  52. package/lib/vtx-datagrid/renderColumnButtons.js.map +1 -1
  53. package/lib/vtx-datagrid/style/css.js +0 -10
  54. package/lib/vtx-datagrid/style/css.js.map +1 -1
  55. package/lib/vtx-datagrid/style/index.js +0 -10
  56. package/lib/vtx-datagrid/style/index.js.map +1 -1
  57. package/lib/vtx-date-picker/QdatePicker.js +28 -58
  58. package/lib/vtx-date-picker/QdatePicker.js.map +1 -1
  59. package/lib/vtx-date-picker/generatePicker.js +35 -77
  60. package/lib/vtx-date-picker/generatePicker.js.map +1 -1
  61. package/lib/vtx-date-picker/index.js +2 -8
  62. package/lib/vtx-date-picker/index.js.map +1 -1
  63. package/lib/vtx-date-picker/style/css.js +0 -1
  64. package/lib/vtx-date-picker/style/css.js.map +1 -1
  65. package/lib/vtx-date-picker/style/index.js +0 -1
  66. package/lib/vtx-date-picker/style/index.js.map +1 -1
  67. package/lib/vtx-date-picker/style/index.less +39 -39
  68. package/lib/vtx-editor/index.js +13 -32
  69. package/lib/vtx-editor/index.js.map +1 -1
  70. package/lib/vtx-editor/style/css.js +0 -1
  71. package/lib/vtx-editor/style/css.js.map +1 -1
  72. package/lib/vtx-editor/style/index.js +0 -1
  73. package/lib/vtx-editor/style/index.js.map +1 -1
  74. package/lib/vtx-editor/style/index.less +8 -8
  75. package/lib/vtx-ellipsis-text/index.js +16 -29
  76. package/lib/vtx-ellipsis-text/index.js.map +1 -1
  77. package/lib/vtx-ellipsis-text/style/css.js +0 -1
  78. package/lib/vtx-ellipsis-text/style/css.js.map +1 -1
  79. package/lib/vtx-ellipsis-text/style/index.js +0 -1
  80. package/lib/vtx-ellipsis-text/style/index.js.map +1 -1
  81. package/lib/vtx-ellipsis-text/style/index.less +13 -13
  82. package/lib/vtx-export/index.js +38 -73
  83. package/lib/vtx-export/index.js.map +1 -1
  84. package/lib/vtx-export/style/css.js +0 -5
  85. package/lib/vtx-export/style/css.js.map +1 -1
  86. package/lib/vtx-export/style/index.js +0 -5
  87. package/lib/vtx-export/style/index.js.map +1 -1
  88. package/lib/vtx-export-async/History.js +75 -117
  89. package/lib/vtx-export-async/History.js.map +1 -1
  90. package/lib/vtx-export-async/index.js +80 -121
  91. package/lib/vtx-export-async/index.js.map +1 -1
  92. package/lib/vtx-export-async/style/css.js.map +1 -1
  93. package/lib/vtx-export-async/style/index.js.map +1 -1
  94. package/lib/vtx-export-async/util.js +9 -21
  95. package/lib/vtx-export-async/util.js.map +1 -1
  96. package/lib/vtx-form-layout/Card.js +17 -39
  97. package/lib/vtx-form-layout/Card.js.map +1 -1
  98. package/lib/vtx-form-layout/Divider.js +6 -12
  99. package/lib/vtx-form-layout/Divider.js.map +1 -1
  100. package/lib/vtx-form-layout/FormItem.js +16 -38
  101. package/lib/vtx-form-layout/FormItem.js.map +1 -1
  102. package/lib/vtx-form-layout/Pane.js +4 -10
  103. package/lib/vtx-form-layout/Pane.js.map +1 -1
  104. package/lib/vtx-form-layout/Row.js +2 -9
  105. package/lib/vtx-form-layout/Row.js.map +1 -1
  106. package/lib/vtx-form-layout/context.js +1 -4
  107. package/lib/vtx-form-layout/context.js.map +1 -1
  108. package/lib/vtx-form-layout/demo/Modal.less +43 -43
  109. package/lib/vtx-form-layout/index.js +10 -25
  110. package/lib/vtx-form-layout/index.js.map +1 -1
  111. package/lib/vtx-form-layout/style/css.js +0 -7
  112. package/lib/vtx-form-layout/style/css.js.map +1 -1
  113. package/lib/vtx-form-layout/style/index.js +0 -7
  114. package/lib/vtx-form-layout/style/index.js.map +1 -1
  115. package/lib/vtx-form-layout/style/index.less +220 -220
  116. package/lib/vtx-image/Image.js +77 -117
  117. package/lib/vtx-image/Image.js.map +1 -1
  118. package/lib/vtx-image/Preview.js +34 -63
  119. package/lib/vtx-image/Preview.js.map +1 -1
  120. package/lib/vtx-image/PreviewGroup.js +24 -54
  121. package/lib/vtx-image/PreviewGroup.js.map +1 -1
  122. package/lib/vtx-image/index.js +4 -11
  123. package/lib/vtx-image/index.js.map +1 -1
  124. package/lib/vtx-image/style/css.js +0 -1
  125. package/lib/vtx-image/style/css.js.map +1 -1
  126. package/lib/vtx-image/style/index.js +0 -1
  127. package/lib/vtx-image/style/index.js.map +1 -1
  128. package/lib/vtx-import/index.js +49 -82
  129. package/lib/vtx-import/index.js.map +1 -1
  130. package/lib/vtx-import/result.js +15 -33
  131. package/lib/vtx-import/result.js.map +1 -1
  132. package/lib/vtx-import/style/css.js +0 -3
  133. package/lib/vtx-import/style/css.js.map +1 -1
  134. package/lib/vtx-import/style/index.js +0 -3
  135. package/lib/vtx-import/style/index.js.map +1 -1
  136. package/lib/vtx-import/style/index.less +8 -8
  137. package/lib/vtx-import2/CheckResult.js +2 -9
  138. package/lib/vtx-import2/CheckResult.js.map +1 -1
  139. package/lib/vtx-import2/Content.js +16 -38
  140. package/lib/vtx-import2/Content.js.map +1 -1
  141. package/lib/vtx-import2/DownloadSvg.js +2 -7
  142. package/lib/vtx-import2/DownloadSvg.js.map +1 -1
  143. package/lib/vtx-import2/ImportResult.js +8 -15
  144. package/lib/vtx-import2/ImportResult.js.map +1 -1
  145. package/lib/vtx-import2/UploadSvg.js +2 -7
  146. package/lib/vtx-import2/UploadSvg.js.map +1 -1
  147. package/lib/vtx-import2/index.js +58 -117
  148. package/lib/vtx-import2/index.js.map +1 -1
  149. package/lib/vtx-import2/style/css.js +0 -3
  150. package/lib/vtx-import2/style/css.js.map +1 -1
  151. package/lib/vtx-import2/style/index.js +0 -3
  152. package/lib/vtx-import2/style/index.js.map +1 -1
  153. package/lib/vtx-import2/style/index.less +102 -102
  154. package/lib/vtx-input/TextArea.js +14 -31
  155. package/lib/vtx-input/TextArea.js.map +1 -1
  156. package/lib/vtx-input/index.js +24 -49
  157. package/lib/vtx-input/index.js.map +1 -1
  158. package/lib/vtx-input/style/css.js +0 -1
  159. package/lib/vtx-input/style/css.js.map +1 -1
  160. package/lib/vtx-input/style/index.js +0 -1
  161. package/lib/vtx-input/style/index.js.map +1 -1
  162. package/lib/vtx-input/style/index.less +24 -24
  163. package/lib/vtx-input/useLength.js +10 -23
  164. package/lib/vtx-input/useLength.js.map +1 -1
  165. package/lib/vtx-modal/Title.js +3 -9
  166. package/lib/vtx-modal/Title.js.map +1 -1
  167. package/lib/vtx-modal/index.js +52 -85
  168. package/lib/vtx-modal/index.js.map +1 -1
  169. package/lib/vtx-modal/style/css.js +0 -1
  170. package/lib/vtx-modal/style/css.js.map +1 -1
  171. package/lib/vtx-modal/style/index.js +0 -1
  172. package/lib/vtx-modal/style/index.js.map +1 -1
  173. package/lib/vtx-page-layout/Basic.js +4 -9
  174. package/lib/vtx-page-layout/Basic.js.map +1 -1
  175. package/lib/vtx-page-layout/Content.js +16 -27
  176. package/lib/vtx-page-layout/Content.js.map +1 -1
  177. package/lib/vtx-page-layout/Pane.js +4 -13
  178. package/lib/vtx-page-layout/Pane.js.map +1 -1
  179. package/lib/vtx-page-layout/TableLayout.js +34 -64
  180. package/lib/vtx-page-layout/TableLayout.js.map +1 -1
  181. package/lib/vtx-page-layout/TableWrap.js +12 -23
  182. package/lib/vtx-page-layout/TableWrap.js.map +1 -1
  183. package/lib/vtx-page-layout/container.js +32 -61
  184. package/lib/vtx-page-layout/container.js.map +1 -1
  185. package/lib/vtx-page-layout/index.js +2 -11
  186. package/lib/vtx-page-layout/index.js.map +1 -1
  187. package/lib/vtx-page-layout/style/css.js.map +1 -1
  188. package/lib/vtx-page-layout/style/index.js.map +1 -1
  189. package/lib/vtx-page-layout/style/index.less +138 -138
  190. package/lib/vtx-rps-frame/index.js +38 -58
  191. package/lib/vtx-rps-frame/index.js.map +1 -1
  192. package/lib/vtx-rps-frame/style/css.js.map +1 -1
  193. package/lib/vtx-rps-frame/style/index.js.map +1 -1
  194. package/lib/vtx-scrollable-row/index.js +34 -68
  195. package/lib/vtx-scrollable-row/index.js.map +1 -1
  196. package/lib/vtx-scrollable-row/style/css.js.map +1 -1
  197. package/lib/vtx-scrollable-row/style/index.js.map +1 -1
  198. package/lib/vtx-scrollable-row/style/index.less +113 -113
  199. package/lib/vtx-search/VtxCol.js +8 -27
  200. package/lib/vtx-search/VtxCol.js.map +1 -1
  201. package/lib/vtx-search/VtxRow.js +8 -15
  202. package/lib/vtx-search/VtxRow.js.map +1 -1
  203. package/lib/vtx-search/index.js +67 -112
  204. package/lib/vtx-search/index.js.map +1 -1
  205. package/lib/vtx-search/style/css.js +0 -4
  206. package/lib/vtx-search/style/css.js.map +1 -1
  207. package/lib/vtx-search/style/index.js +0 -4
  208. package/lib/vtx-search/style/index.js.map +1 -1
  209. package/lib/vtx-search-map-input/index.js +63 -98
  210. package/lib/vtx-search-map-input/index.js.map +1 -1
  211. package/lib/vtx-search-map-input/style/css.js +0 -2
  212. package/lib/vtx-search-map-input/style/css.js.map +1 -1
  213. package/lib/vtx-search-map-input/style/index.js +0 -2
  214. package/lib/vtx-search-map-input/style/index.js.map +1 -1
  215. package/lib/vtx-select/index.js +47 -99
  216. package/lib/vtx-select/index.js.map +1 -1
  217. package/lib/vtx-select/style/css.js +0 -8
  218. package/lib/vtx-select/style/css.js.map +1 -1
  219. package/lib/vtx-select/style/index.js +0 -8
  220. package/lib/vtx-select/style/index.js.map +1 -1
  221. package/lib/vtx-select/style/index.less +68 -68
  222. package/lib/vtx-signature/index.js +19 -34
  223. package/lib/vtx-signature/index.js.map +1 -1
  224. package/lib/vtx-signature/style/css.js +0 -2
  225. package/lib/vtx-signature/style/css.js.map +1 -1
  226. package/lib/vtx-signature/style/index.js +0 -2
  227. package/lib/vtx-signature/style/index.js.map +1 -1
  228. package/lib/vtx-signature/style/index.less +33 -33
  229. package/lib/vtx-split-pane/Pane.js +12 -23
  230. package/lib/vtx-split-pane/Pane.js.map +1 -1
  231. package/lib/vtx-split-pane/Resizer.js +21 -41
  232. package/lib/vtx-split-pane/Resizer.js.map +1 -1
  233. package/lib/vtx-split-pane/SplitPane.js +55 -111
  234. package/lib/vtx-split-pane/SplitPane.js.map +1 -1
  235. package/lib/vtx-split-pane/index.js +2 -7
  236. package/lib/vtx-split-pane/index.js.map +1 -1
  237. package/lib/vtx-split-pane/style/css.js +0 -3
  238. package/lib/vtx-split-pane/style/css.js.map +1 -1
  239. package/lib/vtx-split-pane/style/index.js +0 -3
  240. package/lib/vtx-split-pane/style/index.js.map +1 -1
  241. package/lib/vtx-split-pane/style/index.less +76 -76
  242. package/lib/vtx-statistics-column/Back.js +4 -11
  243. package/lib/vtx-statistics-column/Back.js.map +1 -1
  244. package/lib/vtx-statistics-column/Item.js +16 -32
  245. package/lib/vtx-statistics-column/Item.js.map +1 -1
  246. package/lib/vtx-statistics-column/Total.js +15 -31
  247. package/lib/vtx-statistics-column/Total.js.map +1 -1
  248. package/lib/vtx-statistics-column/context.js +1 -4
  249. package/lib/vtx-statistics-column/context.js.map +1 -1
  250. package/lib/vtx-statistics-column/index.js +2 -19
  251. package/lib/vtx-statistics-column/index.js.map +1 -1
  252. package/lib/vtx-statistics-column/style/css.js +0 -1
  253. package/lib/vtx-statistics-column/style/css.js.map +1 -1
  254. package/lib/vtx-statistics-column/style/index.js +0 -1
  255. package/lib/vtx-statistics-column/style/index.js.map +1 -1
  256. package/lib/vtx-statistics-column/style/index.less +59 -59
  257. package/lib/vtx-time-picker/index.js +8 -22
  258. package/lib/vtx-time-picker/index.js.map +1 -1
  259. package/lib/vtx-time-picker/style/css.js.map +1 -1
  260. package/lib/vtx-time-picker/style/index.js.map +1 -1
  261. package/lib/vtx-tree/index.js +83 -153
  262. package/lib/vtx-tree/index.js.map +1 -1
  263. package/lib/vtx-tree/style/css.js +0 -2
  264. package/lib/vtx-tree/style/css.js.map +1 -1
  265. package/lib/vtx-tree/style/index.css +3 -0
  266. package/lib/vtx-tree/style/index.js +0 -2
  267. package/lib/vtx-tree/style/index.js.map +1 -1
  268. package/lib/vtx-tree/style/index.less +4 -0
  269. package/lib/vtx-tree/utils.js +10 -31
  270. package/lib/vtx-tree/utils.js.map +1 -1
  271. package/lib/vtx-tree-select/index.js +37 -81
  272. package/lib/vtx-tree-select/index.js.map +1 -1
  273. package/lib/vtx-tree-select/style/css.js +0 -4
  274. package/lib/vtx-tree-select/style/css.js.map +1 -1
  275. package/lib/vtx-tree-select/style/index.js +0 -4
  276. package/lib/vtx-tree-select/style/index.js.map +1 -1
  277. package/lib/vtx-upload/FilePreview.js +16 -34
  278. package/lib/vtx-upload/FilePreview.js.map +1 -1
  279. package/lib/vtx-upload/index.js +89 -166
  280. package/lib/vtx-upload/index.js.map +1 -1
  281. package/lib/vtx-upload/style/css.js +0 -6
  282. package/lib/vtx-upload/style/css.js.map +1 -1
  283. package/lib/vtx-upload/style/index.js +0 -6
  284. package/lib/vtx-upload/style/index.js.map +1 -1
  285. package/lib/vtx-upload/style/index.less +61 -61
  286. package/lib/vtx-wang-editor/index.js +84 -126
  287. package/lib/vtx-wang-editor/index.js.map +1 -1
  288. package/lib/vtx-wang-editor/style/css.js +0 -1
  289. package/lib/vtx-wang-editor/style/css.js.map +1 -1
  290. package/lib/vtx-wang-editor/style/index.js +0 -1
  291. package/lib/vtx-wang-editor/style/index.js.map +1 -1
  292. package/lib/vtx-wang-editor/style/index.less +12 -12
  293. package/lib/vtx-wang-editor/wangEditorUtil.js +80 -141
  294. package/lib/vtx-wang-editor/wangEditorUtil.js.map +1 -1
  295. package/lib/vtx-ztree/index.js +77 -133
  296. package/lib/vtx-ztree/index.js.map +1 -1
  297. package/lib/vtx-ztree/style/css.js +0 -1
  298. package/lib/vtx-ztree/style/css.js.map +1 -1
  299. package/lib/vtx-ztree/style/index.js +0 -1
  300. package/lib/vtx-ztree/style/index.js.map +1 -1
  301. package/lib/vtx-ztree/style/index.less +45 -45
  302. package/lib/vtx-ztree-select/index.js +91 -159
  303. package/lib/vtx-ztree-select/index.js.map +1 -1
  304. package/lib/vtx-ztree-select/style/css.js +0 -3
  305. package/lib/vtx-ztree-select/style/css.js.map +1 -1
  306. package/lib/vtx-ztree-select/style/index.js +0 -3
  307. package/lib/vtx-ztree-select/style/index.js.map +1 -1
  308. package/lib/vtx-ztree-select/style/index.less +109 -109
  309. package/package.json +122 -122
@@ -4,66 +4,43 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _input = _interopRequireDefault(require("antd/lib/input"));
11
-
12
9
  var _lodash = _interopRequireDefault(require("lodash.isequal"));
13
-
14
10
  var _lodash2 = _interopRequireDefault(require("lodash.merge"));
15
-
16
11
  var _lodash3 = _interopRequireDefault(require("lodash.debounce"));
17
-
18
12
  var _propTypes = _interopRequireDefault(require("prop-types"));
19
-
20
13
  var _classnames2 = _interopRequireDefault(require("classnames"));
21
-
22
14
  var _config = _interopRequireDefault(require("../config"));
23
-
24
15
  var _antd = require("antd");
25
-
26
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
27
-
28
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
29
-
30
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
31
-
32
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
33
-
34
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
35
-
36
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
37
-
38
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
39
-
40
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
41
-
42
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
43
-
44
- 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); }; }
45
-
46
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
47
-
48
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
49
-
50
- 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; } }
51
-
52
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
53
-
54
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
55
-
56
- var VtxZtree = /*#__PURE__*/function (_React$Component) {
57
- _inherits(VtxZtree, _React$Component);
58
-
59
- var _super = _createSuper(VtxZtree);
60
-
16
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
17
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
18
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
19
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
20
+ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
21
+ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
22
+ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
23
+ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
24
+ function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
25
+ function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
26
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
27
+ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
28
+ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
29
+ function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
30
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
31
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
32
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /*
33
+ * @Author: yemu
34
+ * @Date: 2021-04-08 22:03:07
35
+ * @LastEditTime: 2021-04-09 10:36:45
36
+ * @LastEditors: yemu
37
+ * @Description: 树形控件
38
+ */
39
+ var VtxZtree = exports["default"] = /*#__PURE__*/function (_React$Component) {
61
40
  function VtxZtree(props) {
62
41
  var _this;
63
-
64
42
  _classCallCheck(this, VtxZtree);
65
-
66
- _this = _super.call(this, props);
43
+ _this = _callSuper(this, VtxZtree, [props]);
67
44
  _this.treeId = "tree-".concat(new Date().getTime(), "-").concat(parseInt(Math.random() * 10000));
68
45
  _this.zTreeObj = null;
69
46
  _this.treeSetting = {};
@@ -72,7 +49,7 @@ var VtxZtree = /*#__PURE__*/function (_React$Component) {
72
49
  _this.searchTimeOutId = null;
73
50
  _this.loadPromise = _this.loadTreeResource();
74
51
  _this.loadComplete = false;
75
- _this.fuzzySearch = (0, _lodash3["default"])(_this.fuzzySearch.bind(_assertThisInitialized(_this)), 300);
52
+ _this.fuzzySearch = (0, _lodash3["default"])(_this.fuzzySearch.bind(_this), 300);
76
53
  _this.state = {
77
54
  searchVal: '',
78
55
  isEmpty: false
@@ -80,8 +57,8 @@ var VtxZtree = /*#__PURE__*/function (_React$Component) {
80
57
  _this.timer = null;
81
58
  return _this;
82
59
  }
83
-
84
- _createClass(VtxZtree, [{
60
+ _inherits(VtxZtree, _React$Component);
61
+ return _createClass(VtxZtree, [{
85
62
  key: "loadTreeResource",
86
63
  value: function loadTreeResource() {
87
64
  if (!$.fn.zTree) {
@@ -108,10 +85,8 @@ var VtxZtree = /*#__PURE__*/function (_React$Component) {
108
85
  key: "componentDidMount",
109
86
  value: function componentDidMount() {
110
87
  var _this2 = this;
111
-
112
88
  this.loadPromise.then(function () {
113
89
  _this2.loadComplete = true;
114
-
115
90
  _this2.refreshTree(_this2.props);
116
91
  });
117
92
  }
@@ -119,7 +94,6 @@ var VtxZtree = /*#__PURE__*/function (_React$Component) {
119
94
  key: "componentDidUpdate",
120
95
  value: function componentDidUpdate(prevProps) {
121
96
  if (!this.loadComplete) return;
122
-
123
97
  if (!(0, _lodash["default"])(prevProps.refreshFlag, this.props.refreshFlag) || !(0, _lodash["default"])(prevProps.data, this.props.data)) {
124
98
  this.refreshTree(this.props);
125
99
  }
@@ -128,13 +102,14 @@ var VtxZtree = /*#__PURE__*/function (_React$Component) {
128
102
  key: "componentWillUnmount",
129
103
  value: function componentWillUnmount() {
130
104
  this.zTreeObj && this.zTreeObj.destroy();
131
- } // 初始化树的配置
105
+ }
132
106
 
107
+ // 初始化树的配置
133
108
  }, {
134
109
  key: "initTreeSetting",
135
110
  value: function initTreeSetting(props) {
136
- var t = this; // 初始化树的配置
137
-
111
+ var t = this;
112
+ // 初始化树的配置
138
113
  this.treeSetting = {
139
114
  check: {
140
115
  enable: !!props.checkable,
@@ -247,32 +222,30 @@ var VtxZtree = /*#__PURE__*/function (_React$Component) {
247
222
  }
248
223
  }
249
224
  }
250
- }; // 继承外部配置
251
-
225
+ };
226
+ // 继承外部配置
252
227
  if (_typeof(this.props.customCfg) == 'object') {
253
228
  (0, _lodash2["default"])(this.treeSetting, this.props.customCfg);
254
229
  }
255
- } // 初始化树的数据,对expandedKeys,checkedKeys做处理
230
+ }
256
231
 
232
+ // 初始化树的数据,对expandedKeys,checkedKeys做处理
257
233
  }, {
258
234
  key: "initTreeNodes",
259
235
  value: function initTreeNodes(props) {
260
236
  var t = this;
261
237
  this.keyNameMapping = {};
262
-
263
238
  if (!Array.isArray(props.data)) {
264
239
  this.treeNodes = [];
265
240
  } else {
266
241
  var checkedKeys = props.checkedKeys || [];
267
242
  var expandedKeys = props.expandedKeys || [];
268
243
  var chkDisabled = !!props.disableCheckboxAll;
269
-
270
244
  this.treeNodes = function genNodes(nodes) {
271
245
  return nodes.map(function (item) {
272
246
  var checked = checkedKeys.indexOf(item.key) != -1;
273
247
  var open = expandedKeys.indexOf(item.key) != -1;
274
248
  t.keyNameMapping[item.key] = item.name;
275
-
276
249
  if (Array.isArray(item.children) && item.children.length > 0) {
277
250
  return _objectSpread(_objectSpread({
278
251
  chkDisabled: chkDisabled,
@@ -293,22 +266,19 @@ var VtxZtree = /*#__PURE__*/function (_React$Component) {
293
266
  }
294
267
  }).map(function (item) {
295
268
  if (Array.isArray(item.children) && item.children.length > 0) {
296
- var newNode = _objectSpread({}, item); // 如果子节点全部被勾选,父节点自动勾选
297
-
298
-
269
+ var newNode = _objectSpread({}, item);
270
+ // 如果子节点全部被勾选,父节点自动勾选
299
271
  if (item.children.every(function (item) {
300
272
  return item.checked;
301
273
  })) {
302
274
  newNode.checked = true;
303
- } // 如果配置了自动展开父节点,父节点自动展开
304
-
305
-
275
+ }
276
+ // 如果配置了自动展开父节点,父节点自动展开
306
277
  if (props.autoExpandParent && item.children.some(function (item) {
307
278
  return item.open;
308
279
  })) {
309
280
  newNode.open = true;
310
281
  }
311
-
312
282
  return newNode;
313
283
  } else {
314
284
  return item;
@@ -316,8 +286,9 @@ var VtxZtree = /*#__PURE__*/function (_React$Component) {
316
286
  });
317
287
  }(props.data);
318
288
  }
319
- } // 重新生成树
289
+ }
320
290
 
291
+ // 重新生成树
321
292
  }, {
322
293
  key: "refreshTree",
323
294
  value: function refreshTree(newProps) {
@@ -325,65 +296,62 @@ var VtxZtree = /*#__PURE__*/function (_React$Component) {
325
296
  this.initTreeSetting(newProps);
326
297
  this.initTreeNodes(newProps);
327
298
  this.zTreeObj = $.fn.zTree.init($("#".concat(this.treeId)), this.treeSetting, this.treeNodes);
328
-
329
299
  if (Array.isArray(newProps.selectedKeys)) {
330
300
  this.selectNodes(newProps.selectedKeys, newProps.multiple);
331
- } // 初始化全展开判断
332
-
333
-
301
+ }
302
+ // 初始化全展开判断
334
303
  if (newProps.defaultExpandAll && !newProps.expandedKeys) {
335
304
  this.zTreeObj.expandAll(true);
336
305
  }
337
- } // 展开或折叠相关节点,expandFlag为true表示展开,false表示折叠
306
+ }
338
307
 
308
+ // 展开或折叠相关节点,expandFlag为true表示展开,false表示折叠
339
309
  }, {
340
310
  key: "expandNodes",
341
311
  value: function expandNodes(expandedKeys) {
342
312
  var expandFlag = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
343
-
344
313
  for (var i = 0, len = expandedKeys.length; i < len; i++) {
345
314
  var node = this.zTreeObj.getNodesByParam('key', expandedKeys[i]).pop();
346
-
347
315
  if (node) {
348
316
  this.zTreeObj.expandNode(node, expandFlag, false, false);
349
317
  }
350
318
  }
351
- } // 勾选节点, checkedFlag为true表示勾选,false表示取消勾选
319
+ }
352
320
 
321
+ // 勾选节点, checkedFlag为true表示勾选,false表示取消勾选
353
322
  }, {
354
323
  key: "checkNodes",
355
324
  value: function checkNodes(checkedKeys) {
356
325
  var checkedFlag = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
357
-
358
326
  for (var i = 0, len = checkedKeys.length; i < len; i++) {
359
327
  var node = this.zTreeObj.getNodesByParam('key', checkedKeys[i]).pop();
360
-
361
328
  if (node) {
362
329
  // 隐藏节点的勾选状态也要改变
363
330
  node.checked = checkedFlag;
364
- this.zTreeObj.updateNode(node, true); // this.zTreeObj.checkNode(node,checkedFlag,false);
331
+ this.zTreeObj.updateNode(node, true);
332
+ // this.zTreeObj.checkNode(node,checkedFlag,false);
365
333
  }
366
334
  }
367
- } // 点击选择节点
335
+ }
368
336
 
337
+ // 点击选择节点
369
338
  }, {
370
339
  key: "selectNodes",
371
340
  value: function selectNodes(selectedKeys, multiple) {
372
341
  for (var i = 0, len = selectedKeys.length; i < len; i++) {
373
342
  var node = this.zTreeObj.getNodesByParam('key', selectedKeys[i]).pop();
374
-
375
343
  if (node) {
376
344
  this.zTreeObj.selectNode(node, multiple, true);
377
345
  }
378
346
  }
379
- } // 取消选择节点
347
+ }
380
348
 
349
+ // 取消选择节点
381
350
  }, {
382
351
  key: "cancelSelectedNodes",
383
352
  value: function cancelSelectedNodes(selectedKeys) {
384
353
  for (var i = 0, len = selectedKeys.length; i < len; i++) {
385
354
  var node = this.zTreeObj.getNodesByParam('key', selectedKeys[i]).pop();
386
-
387
355
  if (node) {
388
356
  this.zTreeObj.cancelSelectedNode(node);
389
357
  }
@@ -398,38 +366,34 @@ var VtxZtree = /*#__PURE__*/function (_React$Component) {
398
366
  var nameKey = this.zTreeObj.setting.data.key.name; // get the key of the node name
399
367
  // isHighLight = isHighLight===false?false:true;//default true, only use false to disable highlight
400
368
  // isExpand = isExpand?true:false; // not to expand in default
401
-
402
369
  this.zTreeObj.setting.view.nameIsHTML = isHighLight; // allow use html in node name for highlight use
403
370
 
404
371
  var metaChar = '[\\[\\]\\\\^\\$\\.\\|\\?\\*\\+\\(\\)]'; // js meta characters
405
-
406
372
  var rexMeta = new RegExp(metaChar, 'gi'); // regular expression to match meta characters
373
+
407
374
  // searchNodeLazy(keyworld);
375
+ ztreeFilter(t.zTreeObj, keyworld);
408
376
 
409
- ztreeFilter(t.zTreeObj, keyworld); // -----------------------------内部函数----------------------------------
377
+ // -----------------------------内部函数----------------------------------
410
378
  // keywords filter function
411
-
412
379
  function ztreeFilter(zTreeObj, _keywords) {
413
380
  if (!_keywords) {
414
381
  _keywords = ''; // default blank for _keywords
415
- } // function to find the matching node
416
-
382
+ }
417
383
 
384
+ // function to find the matching node
418
385
  function filterFunc(node) {
419
386
  if (node && node.oldname && node.oldname.length > 0) {
420
387
  node[nameKey] = node.oldname; // recover oldname of the node if exist
421
388
  }
422
-
423
389
  zTreeObj.updateNode(node); // update node to for modifications take effect
424
-
425
390
  if (_keywords.length == 0) {
426
391
  // return true to show all nodes if the keyword is blank
427
- zTreeObj.showNode(node); // zTreeObj.expandNode(node,isExpand);
428
-
392
+ zTreeObj.showNode(node);
393
+ // zTreeObj.expandNode(node,isExpand);
429
394
  return true;
430
- } // transform node name and keywords to lowercase
431
-
432
-
395
+ }
396
+ // transform node name and keywords to lowercase
433
397
  if (node[nameKey] && node[nameKey].toLowerCase().indexOf(_keywords.toLowerCase()) != -1) {
434
398
  if (isHighLight) {
435
399
  // highlight process
@@ -440,12 +404,9 @@ var VtxZtree = /*#__PURE__*/function (_React$Component) {
440
404
  // add escape character before meta characters
441
405
  return '\\' + matchStr;
442
406
  });
443
-
444
407
  node.oldname = node[nameKey]; // store the old name
445
-
446
408
  var rexGlobal = new RegExp(newKeywords, 'gi'); // 'g' for global,'i' for ignore case
447
409
  // use replace(RegExp,replacement) since replace(/substr/g,replacement) cannot be used here
448
-
449
410
  node[nameKey] = node.oldname.replace(rexGlobal, function (originalText) {
450
411
  // highlight the matching words in node name
451
412
  var highLightText = '<span style="color: whitesmoke;background-color:#f50;">' + originalText + '</span>';
@@ -453,38 +414,29 @@ var VtxZtree = /*#__PURE__*/function (_React$Component) {
453
414
  });
454
415
  zTreeObj.updateNode(node); // update node for modifications take effect
455
416
  }
456
-
457
417
  zTreeObj.showNode(node); // show node with matching keywords
458
-
459
418
  return true; // return true and show this node
460
419
  }
461
-
462
420
  zTreeObj.hideNode(node); // hide node that not matched
463
-
464
421
  return false; // return false for node not matched
465
422
  }
466
-
467
423
  var nodesShow = zTreeObj.getNodesByFilter(filterFunc); // get all nodes that would be shown
468
-
469
424
  processShowNodes(zTreeObj, nodesShow, _keywords); // nodes should be reprocessed to show correctly
470
425
  }
426
+
471
427
  /**
472
428
  * reprocess of nodes before showing
473
429
  */
474
-
475
-
476
430
  function processShowNodes(zTreeObj, nodesShow, _keywords) {
477
431
  if (nodesShow && nodesShow.length > 0) {
478
432
  // process the ancient nodes if _keywords is not blank
479
433
  if (_keywords.length > 0) {
480
434
  $.each(nodesShow, function (n, obj) {
481
435
  var pathOfOne = obj.getPath(); // get all the ancient nodes including current node
482
-
483
436
  if (pathOfOne && pathOfOne.length > 0) {
484
437
  // i < pathOfOne.length-1 process every node in path except self
485
438
  for (var i = 0; i < pathOfOne.length - 1; i++) {
486
439
  zTreeObj.showNode(pathOfOne[i]); // show node
487
-
488
440
  zTreeObj.expandNode(pathOfOne[i], true); // expand node
489
441
  }
490
442
  }
@@ -492,17 +444,16 @@ var VtxZtree = /*#__PURE__*/function (_React$Component) {
492
444
  } else {
493
445
  // show all nodes when _keywords is blank and expand the root nodes
494
446
  var rootNodes = zTreeObj.getNodesByParam('level', '0'); // get all root nodes
495
-
496
447
  $.each(rootNodes, function (n, obj) {
497
448
  zTreeObj.expandNode(obj, true); // expand all root nodes
498
449
  });
499
450
  }
500
451
  }
501
-
502
452
  callback && callback(nodesShow);
503
453
  }
504
- } // 清空搜索框数据(供外部调用)
454
+ }
505
455
 
456
+ // 清空搜索框数据(供外部调用)
506
457
  }, {
507
458
  key: "clearSearch",
508
459
  value: function clearSearch() {
@@ -511,13 +462,13 @@ var VtxZtree = /*#__PURE__*/function (_React$Component) {
511
462
  searchVal: ''
512
463
  });
513
464
  this.refreshTree(this.props);
514
- } // 获取所有已被勾选的节点
465
+ }
515
466
 
467
+ // 获取所有已被勾选的节点
516
468
  }, {
517
469
  key: "getCheckedNodes",
518
470
  value: function getCheckedNodes() {
519
471
  var _this3 = this;
520
-
521
472
  return this.zTreeObj.getNodesByFilter(function (node) {
522
473
  // 节点被勾选(非半勾状态)
523
474
  if (_this3.props.checkStrictly) return node.checked;
@@ -525,11 +476,11 @@ var VtxZtree = /*#__PURE__*/function (_React$Component) {
525
476
  }).map(function (item) {
526
477
  return _objectSpread(_objectSpread({}, item), {}, {
527
478
  name: item.oldname || item.name // 搜索树会改变节点的name
528
-
529
479
  });
530
480
  });
531
- } // 获取所有已被点击选中的节点
481
+ }
532
482
 
483
+ // 获取所有已被点击选中的节点
533
484
  }, {
534
485
  key: "getSelectedNodes",
535
486
  value: function getSelectedNodes() {
@@ -538,14 +489,16 @@ var VtxZtree = /*#__PURE__*/function (_React$Component) {
538
489
  name: item.oldname || item.name
539
490
  });
540
491
  });
541
- } // 展开所有节点(供外部调用)
492
+ }
542
493
 
494
+ // 展开所有节点(供外部调用)
543
495
  }, {
544
496
  key: "expandAll",
545
497
  value: function expandAll() {
546
498
  this.zTreeObj.expandAll(true);
547
- } // 收起所有节点(供外部调用)
499
+ }
548
500
 
501
+ // 收起所有节点(供外部调用)
549
502
  }, {
550
503
  key: "collapseAll",
551
504
  value: function collapseAll() {
@@ -556,9 +509,9 @@ var VtxZtree = /*#__PURE__*/function (_React$Component) {
556
509
  value: function render() {
557
510
  var t = this;
558
511
  var _t$props = t.props,
559
- prefixCls = _t$props.prefixCls,
560
- showSearch = _t$props.showSearch,
561
- searchPlaceholder = _t$props.searchPlaceholder;
512
+ prefixCls = _t$props.prefixCls,
513
+ showSearch = _t$props.showSearch,
514
+ searchPlaceholder = _t$props.searchPlaceholder;
562
515
  return /*#__PURE__*/_react["default"].createElement("div", {
563
516
  className: (0, _classnames2["default"])("".concat(prefixCls, "-wraaper"), _defineProperty({}, "".concat(prefixCls, "-has-search"), showSearch))
564
517
  }, showSearch && /*#__PURE__*/_react["default"].createElement("div", {
@@ -571,15 +524,12 @@ var VtxZtree = /*#__PURE__*/function (_React$Component) {
571
524
  searchVal: e.target.value
572
525
  };
573
526
  t.setState(obj);
574
-
575
527
  if (t.timer) {
576
528
  clearTimeout(t.timer);
577
529
  t.timer = null;
578
530
  }
579
-
580
531
  t.timer = setTimeout(function () {
581
532
  var _obj$searchVal;
582
-
583
533
  t.fuzzySearch((_obj$searchVal = obj.searchVal) === null || _obj$searchVal === void 0 ? void 0 : _obj$searchVal.trim(), true, function (arr) {
584
534
  t.setState({
585
535
  isEmpty: arr.length == 0
@@ -599,17 +549,11 @@ var VtxZtree = /*#__PURE__*/function (_React$Component) {
599
549
  }));
600
550
  }
601
551
  }]);
602
-
603
- return VtxZtree;
604
552
  }(_react["default"].Component);
605
-
606
- exports["default"] = VtxZtree;
607
-
608
553
  _defineProperty(VtxZtree, "defaultProps", {
609
554
  showSearch: true,
610
555
  prefixCls: 'vtx-ztree'
611
556
  });
612
-
613
557
  VtxZtree.propTypes = {
614
558
  showSearch: _propTypes["default"].bool,
615
559
  searchPlaceholder: _propTypes["default"].string,