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

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 (277) 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 +269 -269
  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 +555 -394
  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 +1584 -1689
  34. package/es/assets/styles/resetAntd.less +568 -564
  35. package/es/assets/styles/variable.less +21 -21
  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 +101 -101
  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.js +20 -17
  59. package/es/attributeSelector/types.d.ts +1 -0
  60. package/es/chart/demo/data/data5 copy.js +2 -2
  61. package/es/chart/demo/index.js +5 -5
  62. package/es/chart/demo/line_bar_stack.js +25 -25
  63. package/es/chart/demo/stack.js +5 -5
  64. package/es/chart/index.js +11 -11
  65. package/es/chart/styles/index.less +113 -113
  66. package/es/chart/util/chartOptionConfig.js +6 -6
  67. package/es/chart/util/color.js +1 -1
  68. package/es/chart/util/data/china.js +1 -1
  69. package/es/chart/util/formatData.js +6 -6
  70. package/es/chart/util/mapUtil.js +11 -11
  71. package/es/constants/apis.d.ts +1 -0
  72. package/es/constants/apis.js +2 -1
  73. package/es/constants/common.d.ts +11 -0
  74. package/es/constants/common.js +31 -0
  75. package/es/context/index.d.ts +1 -0
  76. package/es/cycleTime/demo/hour.js +5 -5
  77. package/es/cycleTime/index.js +16 -16
  78. package/es/cycleTime/month.js +7 -7
  79. package/es/dataSetGroup/index.js +5 -5
  80. package/es/dataSetGroup/overlay.js +10 -10
  81. package/es/datePicker/datePicker.js +8 -8
  82. package/es/datePicker/demo/customType.js +5 -5
  83. package/es/datePicker/demo/day.js +5 -5
  84. package/es/datePicker/demo/index.js +5 -5
  85. package/es/datePicker/index.js +19 -19
  86. package/es/datePicker/shortcut.js +5 -5
  87. package/es/datePickerV2/datePicker.js +8 -8
  88. package/es/datePickerV2/demo/customType.js +5 -5
  89. package/es/datePickerV2/demo/day.js +5 -5
  90. package/es/datePickerV2/demo/index.js +6 -6
  91. package/es/datePickerV2/index.js +35 -26
  92. package/es/datePickerV2/popoverContent.js +8 -8
  93. package/es/datePickerV2/shortcut.js +8 -8
  94. package/es/datePickerV2/styles/index.less +194 -194
  95. package/es/datePickerV2/types.d.ts +1 -0
  96. package/es/datePickerV2/utils.js +8 -2
  97. package/es/demoWrapper/content.js +43 -38
  98. package/es/demoWrapper/index.js +15 -15
  99. package/es/demoWrapper/innerDemo.js +1 -1
  100. package/es/dialog/demo/index.js +5 -5
  101. package/es/dialog/index.js +6 -6
  102. package/es/dnd/demo/data.js +5 -5
  103. package/es/dnd/demo/handle.js +5 -5
  104. package/es/dnd/demo/index.js +5 -1
  105. package/es/dnd/index.js +11 -10
  106. package/es/dnd/item.js +20 -6
  107. package/es/empty/index.js +6 -6
  108. package/es/eventSelector/demo/index.js +5 -5
  109. package/es/eventSelector/demo/multiple.js +5 -5
  110. package/es/eventSelector/index.js +10 -9
  111. package/es/eventSelector/listPanel.js +42 -46
  112. package/es/eventSelector/option.d.ts +1 -0
  113. package/es/eventSelector/option.js +15 -4
  114. package/es/eventSelector/styles/index.less +127 -123
  115. package/es/eventSelector/types.d.ts +1 -0
  116. package/es/formulaTarget/components/formula/index.js +9 -8
  117. package/es/formulaTarget/components/formula/index.less +76 -76
  118. package/es/formulaTarget/components/formula/types.d.ts +1 -0
  119. package/es/formulaTarget/components/formula/util.js +6 -6
  120. package/es/formulaTarget/components/formulaItem/index.js +27 -22
  121. package/es/formulaTarget/components/formulaItem/types.d.ts +1 -0
  122. package/es/formulaTarget/components/panel/index.js +34 -33
  123. package/es/formulaTarget/components/panel/item.js +13 -9
  124. package/es/formulaTarget/components/panel/types.d.ts +2 -0
  125. package/es/formulaTarget/components/symbol/index.js +5 -5
  126. package/es/formulaTarget/demo/group.js +13 -13
  127. package/es/formulaTarget/index.js +27 -26
  128. package/es/formulaTarget/types.d.ts +1 -0
  129. package/es/hooks/useBizStore.js +35 -35
  130. package/es/hooks/useChanged.js +5 -5
  131. package/es/hooks/useSubject.js +5 -5
  132. package/es/icon/iconFont.js +8 -8
  133. package/es/index.d.ts +2 -2
  134. package/es/index.js +2 -2
  135. package/es/layout/analysisLayout/index.js +8 -8
  136. package/es/layout/columnLayout/demo/data.js +9 -9
  137. package/es/layout/columnLayout/demo/index.js +5 -5
  138. package/es/layout/columnLayout/demo/panel.js +5 -5
  139. package/es/layout/columnLayout/index.js +10 -10
  140. package/es/layout/optionTitle/components/btnMenu/demo.js +2 -2
  141. package/es/layout/optionTitle/components/btnMenu/index.js +6 -6
  142. package/es/layout/optionTitle/components/changePanelModal/index.js +14 -14
  143. package/es/layout/optionTitle/components/changePanelModal/panelItem.js +10 -10
  144. package/es/layout/optionTitle/components/changePanelModal/styles/index.less +92 -92
  145. package/es/layout/optionTitle/components/title/demo.js +5 -5
  146. package/es/layout/optionTitle/components/title/index.js +11 -11
  147. package/es/layout/optionTitle/demo/index.js +5 -5
  148. package/es/layout/optionTitle/demo/layout.js +5 -5
  149. package/es/layout/optionTitle/demo/panelCreate.js +5 -5
  150. package/es/layout/optionTitle/index.js +16 -16
  151. package/es/layout/optionTitle/layout.js +9 -9
  152. package/es/layout/optionTitle/styles/layout.less +90 -90
  153. package/es/loginForm/index.js +5 -5
  154. package/es/platformSelector/index.js +5 -5
  155. package/es/platformSelector/styles/index.less +26 -26
  156. package/es/productCondition/conditionTypeList.js +2 -2
  157. package/es/productCondition/conditions/cdpCshCondition.js +54 -51
  158. package/es/productCondition/conditions/constants.d.ts +2 -0
  159. package/es/productCondition/conditions/constants.js +2 -0
  160. package/es/productCondition/conditions/eventCondition.js +8 -8
  161. package/es/productCondition/conditions/order/runPeriodCondition.js +6 -6
  162. package/es/productCondition/conditions/order/runTimesCondition.js +13 -13
  163. package/es/productCondition/conditions/periodCondition.js +8 -8
  164. package/es/productCondition/conditions/propCondition.js +14 -14
  165. package/es/productCondition/conditions/runTimesCondition.js +6 -6
  166. package/es/productCondition/conditions/styles/periodCondition.less +26 -26
  167. package/es/productCondition/conditions/textDesc.js +6 -6
  168. package/es/productCondition/conditions/timeDimension.js +18 -18
  169. package/es/productCondition/demo/business.js +5 -5
  170. package/es/productCondition/demo/index.js +5 -5
  171. package/es/productCondition/index.js +17 -17
  172. package/es/productCondition/orConditions.js +8 -8
  173. package/es/productCondition/relationLabel.js +2 -2
  174. package/es/productCondition/styles/conditionTypeList.less +32 -30
  175. package/es/productCondition/styles/relationLabel.less +19 -19
  176. package/es/productCondition/types.d.ts +2 -0
  177. package/es/productCondition/util.d.ts +4 -0
  178. package/es/productCondition/util.js +10 -8
  179. package/es/quickDatePicker/demo/index.js +36 -16
  180. package/es/quickDatePicker/index.js +129 -30
  181. package/es/quickDatePicker/styles/index.less +141 -138
  182. package/es/quickDatePicker/types.d.ts +13 -0
  183. package/es/quickDatePicker/utils.d.ts +6 -0
  184. package/es/quickDatePicker/utils.js +54 -1
  185. package/es/select/demo/children.js +5 -5
  186. package/es/select/demo/group.js +5 -5
  187. package/es/select/demo/index.js +7 -6
  188. package/es/select/demo/loading.js +5 -5
  189. package/es/select/demo/multiple.js +5 -5
  190. package/es/select/handle.js +13 -13
  191. package/es/select/index.js +17 -16
  192. package/es/select/option.js +14 -14
  193. package/es/select/overlay.js +18 -17
  194. package/es/select/styles/handle.less +206 -193
  195. package/es/socket/demo/demo.js +8 -8
  196. package/es/socket/index.js +26 -23
  197. package/es/subjectWrapper/index.js +16 -14
  198. package/es/table/demo/data/color.js +1 -1
  199. package/es/table/demo/index.js +15 -15
  200. package/es/table/demo/index2.js +5 -5
  201. package/es/table/demo/index3.js +8 -8
  202. package/es/table/index.js +11 -38
  203. package/es/targetConditionGroup/components/targetDimension.js +7 -7
  204. package/es/targetConditionGroup/demo/group.js +18 -31
  205. package/es/targetConditionGroup/demo/index.js +5 -5
  206. package/es/targetConditionGroup/index.js +35 -33
  207. package/es/targetConditionGroup/types.d.ts +1 -0
  208. package/es/targetSelector/demo/index.js +5 -5
  209. package/es/targetSelector/editBox.d.ts +1 -0
  210. package/es/targetSelector/editBox.js +13 -8
  211. package/es/targetSelector/index.js +9 -8
  212. package/es/targetSelector/optionIcon.js +3 -0
  213. package/es/targetSelector/styles/index.less +142 -110
  214. package/es/userCondition/conditionTypeList.js +13 -12
  215. package/es/userCondition/conditions/business/operatorCondition.js +15 -15
  216. package/es/userCondition/conditions/business/paramsCondition.js +10 -10
  217. package/es/userCondition/conditions/businessCondition.js +15 -15
  218. package/es/userCondition/conditions/cdpCondition.js +36 -33
  219. package/es/userCondition/conditions/cdpCshCondition.js +54 -51
  220. package/es/userCondition/conditions/constants.d.ts +2 -0
  221. package/es/userCondition/conditions/constants.js +2 -0
  222. package/es/userCondition/conditions/dataAttribute.js +22 -18
  223. package/es/userCondition/conditions/eventCondition.js +31 -39
  224. package/es/userCondition/conditions/order/runPeriodCondition.js +6 -6
  225. package/es/userCondition/conditions/order/runTimesCondition.js +13 -13
  226. package/es/userCondition/conditions/periodCondition.js +25 -17
  227. package/es/userCondition/conditions/propCondition.d.ts +1 -4
  228. package/es/userCondition/conditions/propCondition.js +21 -19
  229. package/es/userCondition/conditions/runTimesCondition.js +6 -6
  230. package/es/userCondition/conditions/styles/eventCondition.less +71 -57
  231. package/es/userCondition/conditions/styles/periodCondition.less +32 -26
  232. package/es/userCondition/conditions/styles/textDesc.less +16 -17
  233. package/es/userCondition/conditions/tagsCondition.js +23 -16
  234. package/es/userCondition/conditions/textDesc.js +20 -16
  235. package/es/userCondition/conditions/timeDimension.js +18 -18
  236. package/es/userCondition/demo/business.js +5 -5
  237. package/es/userCondition/demo/index.js +25 -19
  238. package/es/userCondition/demo/mockData.d.ts +20 -94
  239. package/es/userCondition/demo/mockData.js +31 -76
  240. package/es/userCondition/index.d.ts +6 -5
  241. package/es/userCondition/index.js +129 -50
  242. package/es/userCondition/orConditions.js +8 -8
  243. package/es/userCondition/relationLabel.js +2 -2
  244. package/es/userCondition/styles/conditionTypeList.less +32 -30
  245. package/es/userCondition/styles/relationLabel.less +19 -19
  246. package/es/userCondition/types.d.ts +4 -1
  247. package/es/userCondition/util.d.ts +4 -0
  248. package/es/userCondition/util.js +10 -8
  249. package/es/userGroup/demo/group.js +13 -13
  250. package/es/userGroup/demo/index.js +8 -15
  251. package/es/userGroup/index.js +129 -23
  252. package/es/userGroup/overlay.js +32 -18
  253. package/es/userGroup/styles/index.less +199 -145
  254. package/es/userGroup/types.d.ts +2 -0
  255. package/es/userGroup/util.d.ts +2 -0
  256. package/es/userGroup/util.js +47 -0
  257. package/es/userGroupHeader/demo/index.js +1 -1
  258. package/es/userGroupHeader/index.d.ts +1 -0
  259. package/es/userGroupHeader/index.js +117 -14
  260. package/es/userGroupHeader/styles/index.less +50 -31
  261. package/es/userTagsSelector/cascaderOverlay.js +36 -29
  262. package/es/userTagsSelector/components/tagList/index.js +5 -5
  263. package/es/userTagsSelector/demo/index.js +5 -5
  264. package/es/userTagsSelector/groups/index.js +5 -5
  265. package/es/userTagsSelector/index.js +43 -13
  266. package/es/userTagsSelector/multipleCheckPanel/index.js +5 -5
  267. package/es/userTagsSelector/styles/index.less +20 -10
  268. package/es/userTagsSelector/types.d.ts +2 -0
  269. package/es/userTagsSelector/util.d.ts +1 -0
  270. package/es/userTagsSelector/util.js +20 -0
  271. package/es/utils/ajax.js +86 -46
  272. package/es/utils/demo/interruption.js +5 -5
  273. package/es/utils/type.js +6 -6
  274. package/es/utils/util.d.ts +1 -0
  275. package/es/utils/util.js +18 -0
  276. package/package.json +2 -2
  277. package/es/assets/colorIcon/iconfont.svg +0 -129
@@ -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
  });
@@ -1,193 +1,206 @@
1
- @import '../../assets/styles/inner.less';
2
-
3
- .biz-select-handle {
4
- &-input {
5
- position: relative;
6
- display: flex;
7
- flex: 1;
8
- padding: 0px 6px 0 8px;
9
- &.disable {
10
- .__disable();
11
- .bsicon {
12
- color: @disabled-color;
13
- }
14
- }
15
-
16
- .__select-default();
17
-
18
- &.secondary {
19
- .__select-normal-secondary();
20
- }
21
-
22
- &.borderless {
23
- border: none;
24
- }
25
-
26
- &.large {
27
- height: @height-lg;
28
- font-size: @font-size-lg;
29
- line-height: @height-lg;
30
- }
31
-
32
- &.small {
33
- height: @height-sm;
34
- line-height: @height-sm;
35
- }
36
-
37
- &.middle {
38
- height: @height-base;
39
- line-height: @height-base;
40
- }
41
- }
42
-
43
- &-input-multiple {
44
- display: flex;
45
- align-items: center;
46
- height: auto;
47
- line-height: 1;
48
- &.small {
49
- height: auto;
50
- min-height: @height-sm;
51
- }
52
-
53
- &.middle {
54
- height: auto;
55
- min-height: @height-base;
56
- }
57
- .biz-select-handle-tag {
58
- display: flex;
59
- align-items: center;
60
- margin: 2px 4px 2px 0;
61
- padding: 0 4px;
62
- padding-top: 1px;
63
- padding-bottom: 1px;
64
- background: none;
65
- border-color: #cacdd4;
66
- border-radius: @border-radius-small;
67
- &-label {
68
- min-width: 0;
69
- max-width: 100px;
70
- overflow: hidden;
71
- text-overflow: ellipsis;
72
- }
73
- &:not(.disable) {
74
- &:hover {
75
- .__default-hover();
76
- .anticon {
77
- color: @primary-color;
78
- }
79
- }
80
- }
81
- &.disable {
82
- &:hover {
83
- cursor: not-allowed;
84
- .anticon-close {
85
- cursor: not-allowed;
86
- }
87
- }
88
- .biz-select-handle-tag-label,
89
- .ant-tag-close-icon {
90
- color: #ccd0d4 !important;
91
- }
92
- }
93
- }
94
- }
95
- &-multiple-content {
96
- display: flex;
97
- flex: 1;
98
- flex-wrap: wrap;
99
- align-items: center;
100
- overflow: visible;
101
- }
102
-
103
- &-search.ant-input {
104
- width: auto;
105
- padding: 0;
106
- background-color: transparent;
107
- border: none;
108
- box-shadow: none;
109
-
110
- &:focus,
111
- &.active {
112
- box-shadow: none !important;
113
- }
114
- }
115
- &-temp {
116
- position: absolute;
117
- top: -999999999999999px;
118
- padding: 0 @padding-sm;
119
- font-size: @font-size-base;
120
- }
121
-
122
- &-holder {
123
- color: @input-placeholder-color;
124
- line-height: 20px;
125
- }
126
- &-content {
127
- display: flex;
128
- flex: 1;
129
- align-items: center;
130
- width: 100%;
131
- &-label {
132
- // width: 100%;
133
- .__default-overflow();
134
- }
135
- &-icon-list {
136
- display: flex;
137
- // flex: 1;
138
- flex-direction: row;
139
- align-items: center;
140
- justify-content: end;
141
- }
142
- &-icon-qingchu-box {
143
- display: none;
144
- gap: 10px;
145
- align-items: center;
146
- justify-content: center;
147
- width: 16px;
148
- height: 24px;
149
- margin-left: 8px;
150
- padding: 10px;
151
- border-radius: 4px;
152
- }
153
- &-icon-qingchu-box:hover {
154
- color: #fb5547;
155
- background: #feddda;
156
- }
157
- }
158
- &-input:hover {
159
- .biz-select-handle-content-icon-qingchu-box {
160
- display: flex;
161
- }
162
- }
163
- &-expand-icon {
164
- width: 14px;
165
- margin-left: 5px;
166
- color: @text-color-secondary;
167
- &.open {
168
- transform: rotate(180deg);
169
- }
170
- }
171
-
172
- &-tooltip {
173
- .ant-tooltip-inner {
174
- color: @black;
175
- background-color: @white;
176
- }
177
- }
178
-
179
- &-icon {
180
- margin-right: @margin-xss;
181
- }
182
-
183
- &-status-error {
184
- border-color: @error-color;
185
- &.biz-select-handle-input:hover {
186
- border-color: @error-color;
187
- }
188
- &.biz-select-handle-input.active:not(.disable) {
189
- border-color: @error-color;
190
- box-shadow: 0 0 0 4px rgba(#ff8170, 0.2) !important;
191
- }
192
- }
193
- }
1
+ @import '../../assets/styles/inner.less';
2
+
3
+ .biz-select-handle {
4
+ &-input {
5
+ position: relative;
6
+ display: flex;
7
+ flex: 1;
8
+ padding: 0px 6px 0 8px;
9
+ &.disable {
10
+ .__disable();
11
+ .bsicon {
12
+ color: @disabled-color;
13
+ }
14
+ }
15
+
16
+ .__select-default();
17
+
18
+ &.secondary {
19
+ .__select-normal-secondary();
20
+ }
21
+
22
+ &.borderless {
23
+ border: none;
24
+ }
25
+
26
+ &.large {
27
+ height: @height-lg;
28
+ font-size: @font-size-lg;
29
+ line-height: @height-lg;
30
+ }
31
+
32
+ &.small {
33
+ height: @height-sm;
34
+ line-height: @height-sm;
35
+ }
36
+
37
+ &.middle {
38
+ height: @height-base;
39
+ line-height: @height-base;
40
+ }
41
+ }
42
+
43
+ &-input-multiple {
44
+ display: flex;
45
+ align-items: center;
46
+ height: auto;
47
+ line-height: 1;
48
+ &.small {
49
+ height: auto;
50
+ min-height: @height-sm;
51
+ }
52
+
53
+ &.middle {
54
+ height: auto;
55
+ min-height: @height-base;
56
+ }
57
+ .biz-select-handle-tag {
58
+ display: flex;
59
+ align-items: center;
60
+ margin: 2px 4px 2px 0;
61
+ padding: 0 4px;
62
+ padding-top: 1px;
63
+ padding-bottom: 1px;
64
+ background: none;
65
+ border-color: #cacdd4;
66
+ border-radius: @border-radius-small;
67
+ &-label {
68
+ min-width: 0;
69
+ max-width: 100px;
70
+ overflow: hidden;
71
+ text-overflow: ellipsis;
72
+ }
73
+ &:not(.disable) {
74
+ &:hover {
75
+ .__default-hover();
76
+ .anticon {
77
+ color: @primary-color;
78
+ }
79
+ }
80
+ }
81
+ &.disable {
82
+ &:hover {
83
+ cursor: not-allowed;
84
+ .anticon-close {
85
+ cursor: not-allowed;
86
+ }
87
+ }
88
+ .biz-select-handle-tag-label,
89
+ .ant-tag-close-icon {
90
+ color: #ccd0d4 !important;
91
+ }
92
+ }
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
+ }
107
+ }
108
+ &-multiple-content {
109
+ display: flex;
110
+ flex: 1;
111
+ flex-wrap: wrap;
112
+ align-items: center;
113
+ overflow: visible;
114
+ }
115
+
116
+ &-search.ant-input {
117
+ width: auto;
118
+ padding: 0;
119
+ background-color: transparent;
120
+ border: none !important;
121
+ box-shadow: none;
122
+
123
+ &:focus,
124
+ &.active {
125
+ box-shadow: none !important;
126
+ }
127
+ }
128
+ &-temp {
129
+ position: absolute;
130
+ top: -999999999999999px;
131
+ padding: 0 @padding-sm;
132
+ font-size: @font-size-base;
133
+ }
134
+
135
+ &-holder {
136
+ color: @input-placeholder-color;
137
+ line-height: 20px;
138
+ }
139
+ &-content {
140
+ display: flex;
141
+ flex: 1;
142
+ align-items: center;
143
+ width: calc(100% - 19px);
144
+ &-label {
145
+ // width: 100%;
146
+ .__default-overflow();
147
+ }
148
+ &-icon-list {
149
+ display: flex;
150
+ // flex: 1;
151
+ flex-direction: row;
152
+ align-items: center;
153
+ justify-content: end;
154
+ }
155
+ &-icon-qingchu-box {
156
+ display: none;
157
+ gap: 10px;
158
+ align-items: center;
159
+ justify-content: center;
160
+ width: 16px;
161
+ height: 24px;
162
+ margin-left: 8px;
163
+ padding: 10px;
164
+ border-radius: 4px;
165
+ }
166
+ &-icon-qingchu-box:hover {
167
+ color: #fb5547;
168
+ background: #feddda;
169
+ }
170
+ }
171
+ &-input:hover {
172
+ .biz-select-handle-content-icon-qingchu-box {
173
+ display: flex;
174
+ }
175
+ }
176
+ &-expand-icon {
177
+ width: 14px;
178
+ margin-left: 5px;
179
+ color: @text-color-secondary;
180
+ &.open {
181
+ transform: rotate(180deg);
182
+ }
183
+ }
184
+
185
+ &-tooltip {
186
+ .ant-tooltip-inner {
187
+ color: @black;
188
+ background-color: @white;
189
+ }
190
+ }
191
+
192
+ &-icon {
193
+ margin-right: @margin-xss;
194
+ }
195
+
196
+ &-status-error {
197
+ border-color: @error-color;
198
+ &.biz-select-handle-input:hover {
199
+ border-color: @error-color;
200
+ }
201
+ &.biz-select-handle-input.active:not(.disable) {
202
+ border-color: @error-color;
203
+ box-shadow: 0 0 0 4px rgba(#ff8170, 0.2) !important;
204
+ }
205
+ }
206
+ }