@zgfe/business-lib 1.2.70-hxd.17 → 1.2.70-hxd.20

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 (283) hide show
  1. package/es/AUMFormulaTarget/components/formula/index.js +16 -14
  2. package/es/AUMFormulaTarget/components/formula/util.js +6 -6
  3. package/es/AUMFormulaTarget/components/formulaItem/index.js +23 -23
  4. package/es/AUMFormulaTarget/components/panel/cdpCshCondition.js +52 -52
  5. package/es/AUMFormulaTarget/components/panel/index.js +30 -30
  6. package/es/AUMFormulaTarget/components/panel/index.less +1 -1
  7. package/es/AUMFormulaTarget/components/panel/item.js +22 -22
  8. package/es/AUMFormulaTarget/components/symbol/index.js +5 -5
  9. package/es/AUMFormulaTarget/demo/group.js +13 -13
  10. package/es/AUMFormulaTarget/demo/index.js +1 -1
  11. package/es/AUMFormulaTarget/index.js +11 -11
  12. package/es/addToPanel/components/addPanel.js +5 -5
  13. package/es/addToPanel/components/numberChart.js +5 -5
  14. package/es/addToPanel/components/styleList.js +5 -5
  15. package/es/addToPanel/components/wholeChart.js +5 -5
  16. package/es/addToPanel/demo/edit.js +7 -7
  17. package/es/addToPanel/demo/index.js +7 -7
  18. package/es/addToPanel/index.js +22 -22
  19. package/es/addToScene/demo/index.js +7 -7
  20. package/es/addToScene/index.js +9 -9
  21. package/es/assets/colorIcon/demo_index.html +1023 -492
  22. package/es/assets/colorIcon/iconfont.css +203 -110
  23. package/es/assets/colorIcon/iconfont.js +13 -14
  24. package/es/assets/colorIcon/iconfont.json +433 -272
  25. package/es/assets/colorIcon/iconfont.ttf +0 -0
  26. package/es/assets/colorIcon/iconfont.woff +0 -0
  27. package/es/assets/colorIcon/iconfont.woff2 +0 -0
  28. package/es/assets/demo/dropdown.js +5 -5
  29. package/es/assets/demo/input.js +5 -5
  30. package/es/assets/iconfont/demo_index.html +203 -348
  31. package/es/assets/iconfont/iconfont.css +103 -63
  32. package/es/assets/iconfont/iconfont.js +1 -1
  33. package/es/assets/iconfont/iconfont.json +0 -105
  34. package/es/assets/styles/resetAntd.less +6 -2
  35. package/es/assets/styles/variable.less +1 -1
  36. package/es/assets/theme.js +2 -2
  37. package/es/attrCondition/demo/group.js +1 -1
  38. package/es/attrCondition/group.js +15 -7
  39. package/es/attrCondition/index.js +15 -13
  40. package/es/attrCondition/styles/index.less +1 -1
  41. package/es/attrCondition/useAttrCondition.js +11 -12
  42. package/es/attrCondition/useConditionGroup.js +8 -8
  43. package/es/attrConditions/components/operateList.js +16 -13
  44. package/es/attrConditions/components/stringList.js +22 -21
  45. package/es/attrConditions/components/valuesList.js +5 -5
  46. package/es/attrConditions/demo/group.js +7 -7
  47. package/es/attrConditions/demo/index.js +5 -5
  48. package/es/attrConditions/group.js +3 -3
  49. package/es/attrConditions/index.js +4 -2
  50. package/es/attrConditions/types.d.ts +3 -0
  51. package/es/attrConditions/utils/operates.d.ts +4 -0
  52. package/es/attrConditions/utils/operates.js +37 -0
  53. package/es/attributeSelector/demo/disable.js +5 -5
  54. package/es/attributeSelector/demo/extra.js +5 -5
  55. package/es/attributeSelector/demo/funnel.js +5 -5
  56. package/es/attributeSelector/demo/index.js +5 -5
  57. package/es/attributeSelector/index.js +17 -15
  58. package/es/attributeSelector/listPanel.d.ts +1 -4
  59. package/es/attributeSelector/listPanel.js +327 -115
  60. package/es/attributeSelector/types.d.ts +1 -1
  61. package/es/attributeSelector/util.js +0 -3
  62. package/es/chart/demo/data/data5 copy.js +2 -2
  63. package/es/chart/demo/index.js +5 -5
  64. package/es/chart/demo/line_bar_stack.js +25 -25
  65. package/es/chart/demo/stack.js +5 -5
  66. package/es/chart/index.js +11 -11
  67. package/es/chart/styles/index.less +2 -2
  68. package/es/chart/util/chartOptionConfig.js +6 -6
  69. package/es/chart/util/color.js +1 -1
  70. package/es/chart/util/data/china.js +1 -1
  71. package/es/chart/util/formatData.js +6 -6
  72. package/es/chart/util/mapUtil.js +11 -11
  73. package/es/constants/apis.d.ts +4 -0
  74. package/es/constants/apis.js +6 -2
  75. package/es/constants/common.d.ts +11 -0
  76. package/es/constants/common.js +31 -0
  77. package/es/context/index.d.ts +1 -0
  78. package/es/cycleTime/demo/hour.js +5 -5
  79. package/es/cycleTime/index.js +16 -16
  80. package/es/cycleTime/month.js +7 -7
  81. package/es/dataSetGroup/index.js +5 -5
  82. package/es/dataSetGroup/overlay.js +10 -10
  83. package/es/datePicker/datePicker.js +8 -8
  84. package/es/datePicker/demo/customType.js +5 -5
  85. package/es/datePicker/demo/day.js +5 -5
  86. package/es/datePicker/demo/index.js +5 -5
  87. package/es/datePicker/index.js +19 -19
  88. package/es/datePicker/shortcut.js +5 -5
  89. package/es/datePickerV2/datePicker.js +8 -8
  90. package/es/datePickerV2/demo/customType.js +5 -5
  91. package/es/datePickerV2/demo/day.js +5 -5
  92. package/es/datePickerV2/demo/index.js +6 -6
  93. package/es/datePickerV2/index.js +35 -26
  94. package/es/datePickerV2/popoverContent.js +8 -8
  95. package/es/datePickerV2/shortcut.js +8 -8
  96. package/es/datePickerV2/styles/index.less +1 -1
  97. package/es/datePickerV2/types.d.ts +1 -0
  98. package/es/datePickerV2/utils.js +8 -2
  99. package/es/demoWrapper/content.js +43 -38
  100. package/es/demoWrapper/index.js +15 -15
  101. package/es/demoWrapper/innerDemo.js +1 -1
  102. package/es/dialog/demo/index.js +5 -5
  103. package/es/dialog/index.js +6 -6
  104. package/es/dnd/demo/data.js +5 -5
  105. package/es/dnd/demo/handle.js +5 -5
  106. package/es/dnd/demo/index.js +5 -1
  107. package/es/dnd/index.js +11 -10
  108. package/es/dnd/item.js +20 -6
  109. package/es/empty/index.js +6 -6
  110. package/es/eventSelector/demo/index.js +5 -5
  111. package/es/eventSelector/demo/multiple.js +5 -5
  112. package/es/eventSelector/index.js +10 -9
  113. package/es/eventSelector/listPanel.js +42 -46
  114. package/es/eventSelector/option.d.ts +1 -0
  115. package/es/eventSelector/option.js +15 -4
  116. package/es/eventSelector/styles/index.less +4 -0
  117. package/es/eventSelector/types.d.ts +1 -0
  118. package/es/formulaTarget/components/formula/index.js +9 -8
  119. package/es/formulaTarget/components/formula/index.less +1 -1
  120. package/es/formulaTarget/components/formula/types.d.ts +1 -0
  121. package/es/formulaTarget/components/formula/util.js +6 -6
  122. package/es/formulaTarget/components/formulaItem/index.js +27 -22
  123. package/es/formulaTarget/components/formulaItem/types.d.ts +1 -0
  124. package/es/formulaTarget/components/panel/index.js +34 -33
  125. package/es/formulaTarget/components/panel/item.js +13 -9
  126. package/es/formulaTarget/components/panel/types.d.ts +2 -0
  127. package/es/formulaTarget/components/symbol/index.js +5 -5
  128. package/es/formulaTarget/demo/group.js +13 -13
  129. package/es/formulaTarget/index.js +27 -26
  130. package/es/formulaTarget/types.d.ts +1 -0
  131. package/es/hooks/useBizStore.js +35 -35
  132. package/es/hooks/useChanged.js +5 -5
  133. package/es/hooks/useSubject.js +5 -5
  134. package/es/icon/iconFont.js +8 -8
  135. package/es/index.d.ts +2 -2
  136. package/es/index.js +2 -2
  137. package/es/layout/analysisLayout/index.js +8 -8
  138. package/es/layout/columnLayout/demo/data.js +9 -9
  139. package/es/layout/columnLayout/demo/index.js +5 -5
  140. package/es/layout/columnLayout/demo/panel.js +5 -5
  141. package/es/layout/columnLayout/index.js +10 -10
  142. package/es/layout/optionTitle/components/btnMenu/demo.js +2 -2
  143. package/es/layout/optionTitle/components/btnMenu/index.js +6 -6
  144. package/es/layout/optionTitle/components/changePanelModal/index.js +14 -14
  145. package/es/layout/optionTitle/components/changePanelModal/panelItem.js +10 -10
  146. package/es/layout/optionTitle/components/changePanelModal/styles/index.less +3 -3
  147. package/es/layout/optionTitle/components/title/demo.js +5 -5
  148. package/es/layout/optionTitle/components/title/index.js +11 -11
  149. package/es/layout/optionTitle/demo/index.js +5 -5
  150. package/es/layout/optionTitle/demo/layout.js +5 -5
  151. package/es/layout/optionTitle/demo/panelCreate.js +5 -5
  152. package/es/layout/optionTitle/index.js +16 -16
  153. package/es/layout/optionTitle/layout.js +9 -9
  154. package/es/layout/optionTitle/styles/layout.less +1 -1
  155. package/es/loginForm/index.js +5 -5
  156. package/es/platformSelector/index.js +5 -5
  157. package/es/platformSelector/styles/index.less +1 -1
  158. package/es/productCondition/conditionTypeList.js +2 -2
  159. package/es/productCondition/conditions/cdpCshCondition.js +54 -51
  160. package/es/productCondition/conditions/constants.d.ts +2 -0
  161. package/es/productCondition/conditions/constants.js +2 -0
  162. package/es/productCondition/conditions/eventCondition.js +8 -8
  163. package/es/productCondition/conditions/order/runPeriodCondition.js +6 -6
  164. package/es/productCondition/conditions/order/runTimesCondition.js +13 -13
  165. package/es/productCondition/conditions/periodCondition.js +8 -8
  166. package/es/productCondition/conditions/propCondition.js +14 -14
  167. package/es/productCondition/conditions/runTimesCondition.js +6 -6
  168. package/es/productCondition/conditions/styles/periodCondition.less +1 -1
  169. package/es/productCondition/conditions/textDesc.js +6 -6
  170. package/es/productCondition/conditions/timeDimension.js +18 -18
  171. package/es/productCondition/demo/business.js +5 -5
  172. package/es/productCondition/demo/index.js +5 -5
  173. package/es/productCondition/index.js +17 -17
  174. package/es/productCondition/orConditions.js +8 -8
  175. package/es/productCondition/relationLabel.js +2 -2
  176. package/es/productCondition/styles/conditionTypeList.less +4 -2
  177. package/es/productCondition/styles/relationLabel.less +1 -1
  178. package/es/productCondition/types.d.ts +2 -0
  179. package/es/productCondition/util.d.ts +4 -0
  180. package/es/productCondition/util.js +10 -8
  181. package/es/quickDatePicker/demo/index.js +36 -16
  182. package/es/quickDatePicker/index.js +129 -30
  183. package/es/quickDatePicker/styles/index.less +28 -25
  184. package/es/quickDatePicker/types.d.ts +13 -0
  185. package/es/quickDatePicker/utils.d.ts +6 -0
  186. package/es/quickDatePicker/utils.js +54 -1
  187. package/es/select/demo/children.js +5 -5
  188. package/es/select/demo/group.js +5 -5
  189. package/es/select/demo/index.js +7 -6
  190. package/es/select/demo/loading.js +5 -5
  191. package/es/select/demo/multiple.js +5 -5
  192. package/es/select/handle.js +13 -13
  193. package/es/select/index.js +17 -16
  194. package/es/select/option.js +14 -14
  195. package/es/select/overlay.js +18 -17
  196. package/es/select/styles/handle.less +15 -2
  197. package/es/socket/demo/demo.js +8 -8
  198. package/es/socket/index.js +26 -23
  199. package/es/subjectWrapper/index.js +16 -14
  200. package/es/table/demo/data/color.js +1 -1
  201. package/es/table/demo/index.js +15 -15
  202. package/es/table/demo/index2.js +5 -5
  203. package/es/table/demo/index3.js +8 -8
  204. package/es/table/index.js +11 -38
  205. package/es/targetConditionGroup/components/targetDimension.js +7 -7
  206. package/es/targetConditionGroup/demo/group.js +18 -31
  207. package/es/targetConditionGroup/demo/index.js +5 -5
  208. package/es/targetConditionGroup/index.js +35 -33
  209. package/es/targetConditionGroup/types.d.ts +1 -0
  210. package/es/targetSelector/demo/index.js +5 -5
  211. package/es/targetSelector/editBox.d.ts +1 -0
  212. package/es/targetSelector/editBox.js +13 -8
  213. package/es/targetSelector/index.js +9 -8
  214. package/es/targetSelector/optionIcon.js +3 -0
  215. package/es/targetSelector/styles/index.less +35 -3
  216. package/es/userCondition/conditionTypeList.js +13 -12
  217. package/es/userCondition/conditions/business/operatorCondition.js +15 -15
  218. package/es/userCondition/conditions/business/paramsCondition.js +10 -10
  219. package/es/userCondition/conditions/businessCondition.js +15 -15
  220. package/es/userCondition/conditions/cdpCondition.js +36 -33
  221. package/es/userCondition/conditions/cdpCshCondition.js +54 -51
  222. package/es/userCondition/conditions/constants.d.ts +2 -0
  223. package/es/userCondition/conditions/constants.js +2 -0
  224. package/es/userCondition/conditions/dataAttribute.js +22 -18
  225. package/es/userCondition/conditions/eventCondition.js +31 -39
  226. package/es/userCondition/conditions/order/runPeriodCondition.js +6 -6
  227. package/es/userCondition/conditions/order/runTimesCondition.js +13 -13
  228. package/es/userCondition/conditions/periodCondition.js +25 -17
  229. package/es/userCondition/conditions/propCondition.d.ts +1 -4
  230. package/es/userCondition/conditions/propCondition.js +21 -19
  231. package/es/userCondition/conditions/runTimesCondition.js +6 -6
  232. package/es/userCondition/conditions/styles/eventCondition.less +14 -0
  233. package/es/userCondition/conditions/styles/periodCondition.less +7 -1
  234. package/es/userCondition/conditions/styles/textDesc.less +3 -4
  235. package/es/userCondition/conditions/tagsCondition.js +23 -16
  236. package/es/userCondition/conditions/textDesc.js +20 -16
  237. package/es/userCondition/conditions/timeDimension.js +18 -18
  238. package/es/userCondition/demo/business.js +5 -5
  239. package/es/userCondition/demo/index.js +25 -19
  240. package/es/userCondition/demo/mockData.d.ts +20 -94
  241. package/es/userCondition/demo/mockData.js +31 -76
  242. package/es/userCondition/index.d.ts +6 -5
  243. package/es/userCondition/index.js +129 -50
  244. package/es/userCondition/orConditions.js +8 -8
  245. package/es/userCondition/relationLabel.js +2 -2
  246. package/es/userCondition/styles/conditionTypeList.less +4 -2
  247. package/es/userCondition/styles/relationLabel.less +1 -1
  248. package/es/userCondition/types.d.ts +4 -1
  249. package/es/userCondition/util.d.ts +4 -0
  250. package/es/userCondition/util.js +10 -8
  251. package/es/userGroup/demo/group.js +13 -13
  252. package/es/userGroup/demo/index.js +8 -15
  253. package/es/userGroup/index.js +129 -23
  254. package/es/userGroup/overlay.js +32 -18
  255. package/es/userGroup/styles/index.less +55 -1
  256. package/es/userGroup/types.d.ts +2 -0
  257. package/es/userGroup/util.d.ts +2 -0
  258. package/es/userGroup/util.js +47 -0
  259. package/es/userGroupHeader/demo/index.js +1 -1
  260. package/es/userGroupHeader/index.d.ts +1 -0
  261. package/es/userGroupHeader/index.js +117 -14
  262. package/es/userGroupHeader/styles/index.less +21 -2
  263. package/es/userTagsSelector/cascaderOverlay.js +36 -29
  264. package/es/userTagsSelector/components/tagList/index.js +5 -5
  265. package/es/userTagsSelector/demo/index.js +5 -5
  266. package/es/userTagsSelector/groups/index.js +5 -5
  267. package/es/userTagsSelector/index.js +43 -13
  268. package/es/userTagsSelector/multipleCheckPanel/index.js +5 -5
  269. package/es/userTagsSelector/styles/index.less +10 -0
  270. package/es/userTagsSelector/types.d.ts +2 -0
  271. package/es/userTagsSelector/util.d.ts +1 -0
  272. package/es/userTagsSelector/util.js +20 -0
  273. package/es/utils/ajax.js +86 -46
  274. package/es/utils/demo/interruption.js +5 -5
  275. package/es/utils/eventApi.d.ts +14 -0
  276. package/es/utils/eventApi.js +128 -0
  277. package/es/utils/index.d.ts +2 -1
  278. package/es/utils/index.js +2 -1
  279. package/es/utils/type.js +6 -6
  280. package/es/utils/util.d.ts +1 -0
  281. package/es/utils/util.js +18 -0
  282. package/package.json +62 -62
  283. package/es/assets/colorIcon/iconfont.svg +0 -129
@@ -1,16 +1,17 @@
1
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
2
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
4
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
5
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
3
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import React, { useState } from 'react';
8
8
  import { BizSelect } from '@zgfe/business-lib';
9
9
  import { Button } from 'antd';
10
10
  var stringOperate = [{
11
11
  name: '是',
12
12
  value: 'equal',
13
- tip: 'ttttttttttt'
13
+ tip: 'ttttttttttt',
14
+ replaceLabel: '嘿嘿嘿?怎么个事'
14
15
  }, {
15
16
  name: '包含',
16
17
  value: 'contains'
@@ -1,9 +1,9 @@
1
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
2
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
4
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
5
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
3
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import React, { useEffect, useState } from 'react';
8
8
  import { BizSelect } from '@zgfe/business-lib';
9
9
  var stringOperate = Array(10).fill(1).map(function (_item, index) {
@@ -1,9 +1,9 @@
1
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
2
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
4
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
5
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
3
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import React, { useState } from 'react';
8
8
  import { BizSelect } from '@zgfe/business-lib';
9
9
  var stringOperate = [{
@@ -1,9 +1,9 @@
1
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
2
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
4
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
5
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
3
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import { Input, Tag, Tooltip } from 'antd';
8
8
  import { FormItemInputContext } from 'antd/es/form/context';
9
9
  import React, { useContext, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
@@ -114,17 +114,17 @@ var SelectHandle = /*#__PURE__*/React.forwardRef(function (props, ref) {
114
114
  color: "#fff"
115
115
  }, /*#__PURE__*/React.createElement(Tag, {
116
116
  closable: true,
117
- className: "".concat(classPrefix, "-tag ").concat(disable || disableKeyMap[item[keyField]] ? 'disable' : ''),
117
+ className: "".concat(classPrefix, "-tag state-").concat(item.ancestryState, " ").concat(disable || disableKeyMap[item[keyField]] ? 'disable' : ''),
118
118
  onClose: function onClose() {
119
119
  !disable && !disableKeyMap[item[keyField]] && onDelete(item);
120
120
  }
121
121
  }, /*#__PURE__*/React.createElement("div", {
122
122
  className: "".concat(classPrefix, "-tag-label")
123
123
  }, item[aliasField || ''] || item[labelField])));
124
- }) : !focus ? (/*#__PURE__*/React.createElement("span", {
124
+ }) : !focus ? /*#__PURE__*/React.createElement("span", {
125
125
  className: "".concat(classPrefix, "-holder"),
126
126
  onClick: onClick
127
- }, placeholder || '请选择')) : '', /*#__PURE__*/React.createElement(Input, {
127
+ }, placeholder || '请选择') : '', /*#__PURE__*/React.createElement(Input, {
128
128
  ref: inputRef,
129
129
  autoFocus: focus,
130
130
  disabled: props.disable,
@@ -152,11 +152,11 @@ var SelectHandle = /*#__PURE__*/React.forwardRef(function (props, ref) {
152
152
  className: "".concat(classPrefix, "-content")
153
153
  }, /*#__PURE__*/React.createElement("span", {
154
154
  className: "".concat(classPrefix, "-content-label")
155
- }, showSelectIcon && ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.icon) && (/*#__PURE__*/React.createElement("span", {
155
+ }, showSelectIcon && ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.icon) && /*#__PURE__*/React.createElement("span", {
156
156
  className: "".concat(classPrefix, "-icon")
157
- }, props.value.icon)), props.children || props.label || (optionData === null || optionData === void 0 ? void 0 : optionData[aliasField || '']) || (optionData === null || optionData === void 0 ? void 0 : optionData[labelField]) || (/*#__PURE__*/React.createElement("span", {
157
+ }, props.value.icon), props.children || props.label || (optionData === null || optionData === void 0 ? void 0 : optionData[aliasField || '']) || (optionData === null || optionData === void 0 ? void 0 : optionData[labelField]) || /*#__PURE__*/React.createElement("span", {
158
158
  className: "".concat(classPrefix, "-holder")
159
- }, placeholder || '请选择')), extraLabel)), /*#__PURE__*/React.createElement("div", {
159
+ }, placeholder || '请选择'), extraLabel)), /*#__PURE__*/React.createElement("div", {
160
160
  className: "".concat(classPrefix, "-content-icon-list"),
161
161
  style: onSelectDelete ? {
162
162
  width: 50
@@ -164,7 +164,7 @@ var SelectHandle = /*#__PURE__*/React.forwardRef(function (props, ref) {
164
164
  }, /*#__PURE__*/React.createElement(IconFont, {
165
165
  className: "".concat(classPrefix, "-expand-icon").concat(props.open ? ' open' : ''),
166
166
  type: 'xiangxia'
167
- }), onSelectDelete && (/*#__PURE__*/React.createElement("div", {
167
+ }), onSelectDelete && /*#__PURE__*/React.createElement("div", {
168
168
  className: "".concat(classPrefix, "-content-icon-qingchu-box"),
169
169
  onClick: function onClick(e) {
170
170
  e.stopPropagation();
@@ -173,6 +173,6 @@ var SelectHandle = /*#__PURE__*/React.forwardRef(function (props, ref) {
173
173
  }, /*#__PURE__*/React.createElement(IconFont, {
174
174
  className: "".concat(classPrefix, "-content-icon-qingchu"),
175
175
  type: 'qingchu'
176
- })))));
176
+ }))));
177
177
  });
178
178
  export default SelectHandle;
@@ -1,18 +1,18 @@
1
- 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); }
1
+ 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); }
2
2
  var _excluded = ["overlayWidth", "minDropdownWidth", "labelField", "aliasField", "keyField", "enableClear"];
3
- 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; }
4
- 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; }
5
- 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; }
6
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
7
- 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); }
8
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
3
+ 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; }
4
+ 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; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
9
9
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
11
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
12
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
13
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
14
- function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
15
- function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
10
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
11
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
12
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
13
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
15
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
16
16
  import { Dropdown } from 'antd';
17
17
  import React, { useEffect, useRef, useState } from 'react';
18
18
  import SelectHandle from './handle';
@@ -126,6 +126,7 @@ var BizSelect = function BizSelect(props) {
126
126
  props.onVisibleChange && props.onVisibleChange(flag);
127
127
  };
128
128
  var onCreate = function onCreate(val) {
129
+ var _data;
129
130
  if (!props.enableCreate) return;
130
131
  if (current) {
131
132
  var flag = true;
@@ -136,7 +137,7 @@ var BizSelect = function BizSelect(props) {
136
137
  });
137
138
  if (!flag) return;
138
139
  }
139
- var data = _defineProperty(_defineProperty({}, keyField, val), labelField, val);
140
+ var data = (_data = {}, _defineProperty(_data, keyField, val), _defineProperty(_data, labelField, val), _data);
140
141
  var originData = current || [];
141
142
  originData.push(data);
142
143
  setCurrent(originData);
@@ -182,7 +183,7 @@ var BizSelect = function BizSelect(props) {
182
183
  className: "".concat(classPrefix, "-handle ").concat(props.className ? props.className : ''),
183
184
  ref: selectRef,
184
185
  id: selectId
185
- }, props.children ? props.children : (/*#__PURE__*/React.createElement(SelectHandle, {
186
+ }, props.children ? props.children : /*#__PURE__*/React.createElement(SelectHandle, {
186
187
  ref: boxRef,
187
188
  value: current,
188
189
  labelField: labelField,
@@ -207,7 +208,7 @@ var BizSelect = function BizSelect(props) {
207
208
  onCreate: onCreate,
208
209
  onVisible: onVisible,
209
210
  disableItemList: props.disableItemList
210
- }))));
211
+ })));
211
212
  };
212
213
  BizSelect.defaultProps = {
213
214
  labelField: 'label',
@@ -1,9 +1,9 @@
1
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
2
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
4
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
5
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
3
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
7
  import { Tooltip } from 'antd';
8
8
  import React, { useEffect, useMemo, useRef, useState } from 'react';
9
9
  import { classPrefix } from '.';
@@ -25,13 +25,13 @@ export var SelectAll = function SelectAll(props) {
25
25
  return /*#__PURE__*/React.createElement("div", {
26
26
  className: "".concat(classPrefix, "-option ").concat(classPrefix, "-option-multiple ").concat(classPrefix, "-option-all").concat(checkCode === 2 ? ' active' : ''),
27
27
  onClick: onClick
28
- }, checkCode === 2 ? (/*#__PURE__*/React.createElement(IconFont, {
28
+ }, checkCode === 2 ? /*#__PURE__*/React.createElement(IconFont, {
29
29
  className: "".concat(classPrefix, "-checkbox ").concat(classPrefix, "-checked"),
30
30
  type: 'a-Property1xuanzhong'
31
- })) : (/*#__PURE__*/React.createElement(IconFont, {
31
+ }) : /*#__PURE__*/React.createElement(IconFont, {
32
32
  className: "".concat(classPrefix, "-checkbox ").concat(classPrefix, "-check"),
33
33
  type: 'a-Property1moren'
34
- })), checkCode === 1 ? /*#__PURE__*/React.createElement("div", {
34
+ }), checkCode === 1 ? /*#__PURE__*/React.createElement("div", {
35
35
  className: "".concat(classPrefix, "-checkbox-indeterminate")
36
36
  }) : null, "\u5168\u9009");
37
37
  };
@@ -71,7 +71,7 @@ var SelectOption = function SelectOption(props) {
71
71
  });
72
72
  }
73
73
  function renderLabel(option) {
74
- var dom = getLabel(option[props.aliasField || ''] || option[props.labelField]);
74
+ var dom = getLabel((option === null || option === void 0 ? void 0 : option.replaceLabel) || option[props.aliasField || ''] || option[props.labelField]);
75
75
  return customLabel ? customLabel(dom, option) : dom;
76
76
  }
77
77
  if (group) {
@@ -88,19 +88,19 @@ var SelectOption = function SelectOption(props) {
88
88
  }, /*#__PURE__*/React.createElement("div", {
89
89
  className: "".concat(classPrefix, "-option ").concat(multiple ? classPrefix + '-option-multiple' : '', " ").concat(checked ? 'active' : '', " ").concat(disabled ? 'disabled' : ''),
90
90
  onClick: onClick
91
- }, multiple && (checked ? (/*#__PURE__*/React.createElement(IconFont, {
91
+ }, multiple && (checked ? /*#__PURE__*/React.createElement(IconFont, {
92
92
  className: "".concat(classPrefix, "-checkbox ").concat(classPrefix, "-checked"),
93
93
  type: 'a-Property1xuanzhong'
94
- })) : (/*#__PURE__*/React.createElement(IconFont, {
94
+ }) : /*#__PURE__*/React.createElement(IconFont, {
95
95
  className: "".concat(classPrefix, "-checkbox ").concat(classPrefix, "-check"),
96
96
  type: 'a-Property1moren'
97
- }))), (option === null || option === void 0 ? void 0 : option.icon) && /*#__PURE__*/React.createElement("span", {
97
+ })), (option === null || option === void 0 ? void 0 : option.icon) && /*#__PURE__*/React.createElement("span", {
98
98
  className: "".concat(classPrefix, "-option-icon")
99
99
  }, option === null || option === void 0 ? void 0 : option.icon), /*#__PURE__*/React.createElement("span", {
100
100
  className: "".concat(classPrefix, "-option-label"),
101
101
  ref: optionRef
102
- }, renderLabel(option)), !disabled && (/*#__PURE__*/React.createElement("span", {
102
+ }, renderLabel(option)), !disabled && /*#__PURE__*/React.createElement("span", {
103
103
  className: "".concat(classPrefix, "-option-btn")
104
- }, props.extra && props.extra(option)))));
104
+ }, props.extra && props.extra(option))));
105
105
  };
106
106
  export default SelectOption;
@@ -1,17 +1,17 @@
1
- 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); }
2
- function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
1
+ 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); }
2
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
3
3
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
- function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
5
- function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
6
- 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; }
7
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
8
- 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); }
9
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
4
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
5
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
6
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
9
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
10
10
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
11
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
12
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
13
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
14
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
11
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
12
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
13
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
14
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
15
15
  import React, { useEffect, useState } from 'react';
16
16
  import { Spin, message } from 'antd';
17
17
  import BizSearchInput from '../searchInput';
@@ -92,12 +92,13 @@ var SelectOverlay = /*#__PURE__*/React.forwardRef(function (props, ref) {
92
92
  var optionsDom = [];
93
93
  var list = _.cloneDeep(data);
94
94
  if (props.enableCreate && searchValue) {
95
- list.push(_defineProperty(_defineProperty(_defineProperty({}, props.keyField, searchValue), props.labelField, searchValue), "isTemp", true));
95
+ var _list$push;
96
+ list.push((_list$push = {}, _defineProperty(_list$push, props.keyField, searchValue), _defineProperty(_list$push, props.labelField, searchValue), _defineProperty(_list$push, "isTemp", true), _list$push));
96
97
  }
97
98
  var tempOption = null;
98
99
  var useTemp = true;
99
100
  list.forEach(function (option) {
100
- if (searchValue && !new RegExp(_.escapeRegExp(searchValue), 'i').test(option[aliasField || ''] || option[labelField])) return;
101
+ if (searchValue && !new RegExp(_.escapeRegExp(searchValue), 'i').test((option === null || option === void 0 ? void 0 : option.replaceLabel) || option[aliasField || ''] || option[labelField])) return;
101
102
  if (searchValue && searchValue === option[labelField] && !option.isTemp) useTemp = false;
102
103
  var disabled = false;
103
104
  disableItemList === null || disableItemList === void 0 ? void 0 : disableItemList.forEach(function (item) {
@@ -196,15 +197,15 @@ var SelectOverlay = /*#__PURE__*/React.forwardRef(function (props, ref) {
196
197
  return /*#__PURE__*/React.createElement("div", {
197
198
  className: "".concat(classPrefix, "-overlay ").concat(overlayClassName),
198
199
  ref: ref
199
- }, props.enableSearch && !props.multiple && (/*#__PURE__*/React.createElement(BizSearchInput, {
200
+ }, props.enableSearch && /*#__PURE__*/React.createElement(BizSearchInput, {
200
201
  className: "".concat(classPrefix, "-search"),
201
202
  onChange: onSearch,
202
203
  placeholder: props.searchPlaceholder || '请输入'
203
- })), dropdownExtra, props.enableSelectAll && props.multiple && showList.length ? (/*#__PURE__*/React.createElement(SelectAll, {
204
+ }), dropdownExtra, props.enableSelectAll && props.multiple && showList.length ? /*#__PURE__*/React.createElement(SelectAll, {
204
205
  options: props.options,
205
206
  value: current,
206
207
  onChange: onCheckAllChange
207
- })) : null, /*#__PURE__*/React.createElement("div", {
208
+ }) : null, /*#__PURE__*/React.createElement("div", {
208
209
  className: "".concat(classPrefix, "-list-panel")
209
210
  }, render()));
210
211
  });
@@ -91,6 +91,19 @@
91
91
  }
92
92
  }
93
93
  }
94
+ .biz-select-handle-tag:is(.state-2, .state-3, .state-4) {
95
+ color: #fb5547;
96
+ border-color: #fb5547;
97
+ .ant-tag-close-icon {
98
+ color: #fb5547 !important;
99
+ }
100
+ &:not(.disable) {
101
+ &:hover {
102
+ color: #fb5547;
103
+ border-color: #fb5547;
104
+ }
105
+ }
106
+ }
94
107
  }
95
108
  &-multiple-content {
96
109
  display: flex;
@@ -104,7 +117,7 @@
104
117
  width: auto;
105
118
  padding: 0;
106
119
  background-color: transparent;
107
- border: none;
120
+ border: none !important;
108
121
  box-shadow: none;
109
122
 
110
123
  &:focus,
@@ -127,7 +140,7 @@
127
140
  display: flex;
128
141
  flex: 1;
129
142
  align-items: center;
130
- width: 100%;
143
+ width: calc(100% - 19px);
131
144
  &-label {
132
145
  // width: 100%;
133
146
  .__default-overflow();
@@ -1,13 +1,13 @@
1
- function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
1
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
2
2
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
- function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
4
- function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
5
- function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
3
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
4
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
5
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
6
6
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
7
- function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
8
- function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
9
- function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
10
- function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
7
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
8
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
10
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
11
  import React, { useContext, useEffect, useRef, useState } from 'react';
12
12
  import { SocketClient } from '@zgfe/business-lib';
13
13
  import { Button, Card, Form, Input, notification } from 'antd';