@zgfe/business-lib 1.2.66-hxd.2 → 1.2.70-hxd.1

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 (150) hide show
  1. package/README.md +12 -12
  2. package/config.js +41 -41
  3. package/es/AUMFormulaTarget/components/formula/index.less +86 -86
  4. package/es/AUMFormulaTarget/components/panel/index.less +269 -269
  5. package/es/AUMFormulaTarget/components/symbol/index.less +49 -49
  6. package/es/AUMFormulaTarget/styles/index.less +74 -74
  7. package/es/addToPanel/styles/addPanel.less +25 -25
  8. package/es/addToPanel/styles/index.less +17 -17
  9. package/es/addToPanel/styles/style.less +66 -66
  10. package/es/addToScene/styles/index.less +30 -30
  11. package/es/assets/colorIcon/demo.css +539 -539
  12. package/es/assets/colorIcon/demo_index.html +1454 -1454
  13. package/es/assets/colorIcon/iconfont.css +236 -236
  14. package/es/assets/colorIcon/iconfont.json +394 -394
  15. package/es/assets/colorIcon/iconfont.svg +129 -129
  16. package/es/assets/iconfont/demo.css +539 -539
  17. package/es/assets/iconfont/demo_index.html +5593 -5363
  18. package/es/assets/iconfont/iconfont.css +955 -915
  19. package/es/assets/iconfont/iconfont.js +8 -8
  20. package/es/assets/iconfont/iconfont.json +1654 -1584
  21. package/es/assets/iconfont/iconfont.ttf +0 -0
  22. package/es/assets/iconfont/iconfont.woff +0 -0
  23. package/es/assets/iconfont/iconfont.woff2 +0 -0
  24. package/es/assets/styles/chunks.less +183 -183
  25. package/es/assets/styles/inner.less +3 -3
  26. package/es/assets/styles/resetAntd.less +564 -551
  27. package/es/assets/styles/variable.less +21 -21
  28. package/es/attrCondition/styles/index.less +101 -101
  29. package/es/attrConditions/components/operateList.js +4 -4
  30. package/es/attrConditions/components/valuesList.js +1 -1
  31. package/es/attrConditions/styles/group.less +49 -49
  32. package/es/attrConditions/styles/index.less +151 -151
  33. package/es/attributeSelector/index.js +3 -1
  34. package/es/attributeSelector/listPanel.js +2 -2
  35. package/es/attributeSelector/styles/index.less +141 -141
  36. package/es/attributeSelector/types.d.ts +1 -0
  37. package/es/attributeSelector/util.js +1 -0
  38. package/es/chart/demo/data/data7.d.ts +54 -0
  39. package/es/chart/demo/data/data7.js +1527 -0
  40. package/es/chart/demo/stack.d.ts +3 -0
  41. package/es/chart/demo/stack.js +31 -0
  42. package/es/chart/index.js +16 -6
  43. package/es/chart/styles/index.less +113 -113
  44. package/es/chart/types.d.ts +4 -1
  45. package/es/chart/util/chartOptionConfig.d.ts +4 -3
  46. package/es/chart/util/chartOptionConfig.js +84 -4
  47. package/es/chart/util/data/china.js +17 -17
  48. package/es/chart/util/formatData.d.ts +1 -0
  49. package/es/chart/util/formatData.js +13 -0
  50. package/es/cycleTime/index.js +1 -1
  51. package/es/cycleTime/styles/index.less +24 -24
  52. package/es/cycleTime/styles/month.less +95 -95
  53. package/es/dataSetGroup/styles/index.less +146 -146
  54. package/es/datePicker/index.js +6 -6
  55. package/es/datePicker/styles/index.less +53 -53
  56. package/es/datePickerV2/index.js +6 -3
  57. package/es/datePickerV2/popoverContent.d.ts +1 -0
  58. package/es/datePickerV2/popoverContent.js +3 -1
  59. package/es/datePickerV2/shortcut.d.ts +2 -0
  60. package/es/datePickerV2/shortcut.js +4 -3
  61. package/es/datePickerV2/styles/index.less +194 -194
  62. package/es/datePickerV2/types.d.ts +2 -0
  63. package/es/datePickerV2/utils.d.ts +1 -1
  64. package/es/datePickerV2/utils.js +5 -5
  65. package/es/demoWrapper/index.less +3 -3
  66. package/es/dialog/styles/index.less +22 -22
  67. package/es/dnd/styles/index.less +19 -19
  68. package/es/eventSelector/styles/index.less +123 -123
  69. package/es/formulaTarget/components/formula/index.less +76 -76
  70. package/es/formulaTarget/components/panel/index.less +139 -139
  71. package/es/formulaTarget/components/symbol/index.less +49 -49
  72. package/es/formulaTarget/styles/index.less +74 -74
  73. package/es/hooks/types/subject.d.ts +14 -14
  74. package/es/hooks/useBizStore.js +5 -2
  75. package/es/icon/demo/list.less +32 -32
  76. package/es/index.d.ts +4 -1
  77. package/es/index.js +4 -1
  78. package/es/layout/analysisLayout/demo/index.less +12 -12
  79. package/es/layout/analysisLayout/index.less +118 -118
  80. package/es/layout/columnLayout/demo/index.less +15 -15
  81. package/es/layout/columnLayout/index.less +81 -81
  82. package/es/layout/detail/index.less +27 -27
  83. package/es/layout/optionTitle/components/changePanelModal/styles/index.less +92 -92
  84. package/es/layout/optionTitle/demo/index.less +12 -12
  85. package/es/loading/styles/index.less +20 -20
  86. package/es/loginForm/index.less +7 -7
  87. package/es/platformSelector/styles/index.less +26 -26
  88. package/es/productCondition/conditions/order/runPeriodCondition.js +1 -1
  89. package/es/productCondition/conditions/periodCondition.js +1 -1
  90. package/es/productCondition/conditions/runTimesCondition.js +1 -1
  91. package/es/productCondition/conditions/styles/cdpCondition.less +31 -31
  92. package/es/productCondition/conditions/styles/cdpCshCondition.less +41 -41
  93. package/es/productCondition/conditions/styles/eventCondition.less +51 -51
  94. package/es/productCondition/conditions/styles/periodCondition.less +26 -26
  95. package/es/productCondition/conditions/styles/propCondition.less +43 -43
  96. package/es/productCondition/conditions/styles/runTimesCondition.less +19 -19
  97. package/es/productCondition/conditions/styles/tagsCondition.less +20 -20
  98. package/es/productCondition/conditions/styles/textDesc.less +17 -17
  99. package/es/productCondition/styles/conditionTypeList.less +30 -30
  100. package/es/productCondition/styles/conditionWrap.less +18 -18
  101. package/es/productCondition/styles/index.less +33 -33
  102. package/es/productCondition/styles/orConditions.less +34 -34
  103. package/es/productCondition/styles/relationLabel.less +19 -19
  104. package/es/quickDatePicker/styles/index.less +138 -138
  105. package/es/select/index.js +9 -1
  106. package/es/select/styles/handle.less +193 -193
  107. package/es/select/styles/index.less +129 -129
  108. package/es/select/types.d.ts +3 -2
  109. package/es/socket/demo/index.less +27 -27
  110. package/es/subjectWrapper/demo/index.d.ts +3 -0
  111. package/es/subjectWrapper/demo/index.js +28 -0
  112. package/es/subjectWrapper/index.d.ts +5 -0
  113. package/es/subjectWrapper/index.js +98 -0
  114. package/es/subjectWrapper/index.less +12 -0
  115. package/es/subjectWrapper/types.d.ts +14 -0
  116. package/es/subjectWrapper/types.js +4 -0
  117. package/es/table/styles/index.less +5 -5
  118. package/es/targetConditionGroup/demo/styles/index.less +29 -29
  119. package/es/targetConditionGroup/styles/index.less +53 -53
  120. package/es/targetSelector/styles/index.less +110 -110
  121. package/es/userCondition/conditions/cdpCshCondition.js +0 -1
  122. package/es/userCondition/conditions/order/runPeriodCondition.js +1 -1
  123. package/es/userCondition/conditions/periodCondition.js +1 -1
  124. package/es/userCondition/conditions/runTimesCondition.js +1 -1
  125. package/es/userCondition/conditions/styles/cdpCondition.less +37 -37
  126. package/es/userCondition/conditions/styles/cdpCshCondition.less +47 -47
  127. package/es/userCondition/conditions/styles/eventCondition.less +57 -57
  128. package/es/userCondition/conditions/styles/periodCondition.less +26 -26
  129. package/es/userCondition/conditions/styles/propCondition.less +43 -43
  130. package/es/userCondition/conditions/styles/runTimesCondition.less +19 -19
  131. package/es/userCondition/conditions/styles/tagsCondition.less +20 -20
  132. package/es/userCondition/conditions/styles/textDesc.less +17 -17
  133. package/es/userCondition/styles/conditionTypeList.less +30 -30
  134. package/es/userCondition/styles/conditionWrap.less +18 -18
  135. package/es/userCondition/styles/index.less +33 -33
  136. package/es/userCondition/styles/orConditions.less +34 -34
  137. package/es/userCondition/styles/relationLabel.less +19 -19
  138. package/es/userGroup/index.js +2 -2
  139. package/es/userGroup/styles/index.less +145 -145
  140. package/es/userGroupHeader/demo/index.js +1 -1
  141. package/es/userGroupHeader/styles/index.less +31 -31
  142. package/es/userTagsSelector/components/search/index.less +6 -6
  143. package/es/userTagsSelector/components/tagList/index.less +13 -13
  144. package/es/userTagsSelector/groups/styles/option.less +55 -55
  145. package/es/userTagsSelector/multipleCheckPanel/styles/option.less +40 -40
  146. package/es/userTagsSelector/styles/cascaderOverlay.less +34 -34
  147. package/es/userTagsSelector/styles/index.less +10 -10
  148. package/es/utils/util.d.ts +3 -0
  149. package/es/utils/util.js +10 -0
  150. package/package.json +62 -62
@@ -1,27 +1,27 @@
1
- @import '../../assets/styles/inner.less';
2
- .container {
3
- display: flex;
4
- flex-direction: row;
5
- border: 1px solid red;
6
- & > :global(.ant-card) {
7
- flex: 1;
8
- margin: @margin-md;
9
- }
10
- }
11
- .history {
12
- height: 400px;
13
- overflow: auto;
14
- }
15
- .he,
16
- .me {
17
- margin-bottom: @margin-sm;
18
- padding: @padding-sm;
19
- line-height: 24px;
20
- background: @background-color-base;
21
- }
22
- .he {
23
- text-align: left;
24
- }
25
- .me {
26
- text-align: right;
27
- }
1
+ @import '../../assets/styles/inner.less';
2
+ .container {
3
+ display: flex;
4
+ flex-direction: row;
5
+ border: 1px solid red;
6
+ & > :global(.ant-card) {
7
+ flex: 1;
8
+ margin: @margin-md;
9
+ }
10
+ }
11
+ .history {
12
+ height: 400px;
13
+ overflow: auto;
14
+ }
15
+ .he,
16
+ .me {
17
+ margin-bottom: @margin-sm;
18
+ padding: @padding-sm;
19
+ line-height: 24px;
20
+ background: @background-color-base;
21
+ }
22
+ .he {
23
+ text-align: left;
24
+ }
25
+ .me {
26
+ text-align: right;
27
+ }
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
3
+ export default _default;
@@ -0,0 +1,28 @@
1
+ import React, { useContext } from 'react';
2
+ import { SubjectWrapper, BizGlobalDataContext, useChanged } from '@zgfe/business-lib';
3
+ function Test() {
4
+ var _useContext = useContext(BizGlobalDataContext),
5
+ currentApp = _useContext.currentApp,
6
+ currentProject = _useContext.currentProject;
7
+ useChanged(function () {
8
+ console.log('currentApp changed', currentApp);
9
+ }, currentApp);
10
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
11
+ style: {
12
+ margin: '20px',
13
+ padding: '20px 20px 10px 20px',
14
+ background: 'pink'
15
+ }
16
+ }, /*#__PURE__*/React.createElement("p", null, " \u5F53\u524D\u5E94\u7528\u540D\u79F0: ", currentProject === null || currentProject === void 0 ? void 0 : currentProject.projectName), /*#__PURE__*/React.createElement("p", null, " \u5F53\u524D\u5E94\u7528id: ", currentProject === null || currentProject === void 0 ? void 0 : currentProject.projectId)), /*#__PURE__*/React.createElement("div", {
17
+ style: {
18
+ margin: '20px',
19
+ padding: '20px 20px 10px 20px',
20
+ background: '#FFEB3B'
21
+ }
22
+ }, /*#__PURE__*/React.createElement("p", null, " \u5F53\u524D\u4E3B\u4F53\u540D\u79F0: ", currentApp === null || currentApp === void 0 ? void 0 : currentApp.appName), /*#__PURE__*/React.createElement("p", null, " \u5F53\u524D\u4E3B\u4F53id: ", currentApp === null || currentApp === void 0 ? void 0 : currentApp.id)));
23
+ }
24
+ export default (function () {
25
+ return /*#__PURE__*/React.createElement(SubjectWrapper, {
26
+ needMeta: true
27
+ }, /*#__PURE__*/React.createElement(Test, null));
28
+ });
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import DemoWrapperTypes from './types';
3
+ import './index.less';
4
+ declare const SubjectWrapper: React.FC<DemoWrapperTypes.Props>;
5
+ export default SubjectWrapper;
@@ -0,0 +1,98 @@
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 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; }
3
+ 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; }
4
+ 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; }
5
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
+ 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); }
7
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+ 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."); }
9
+ 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); }
10
+ 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; }
11
+ 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; } }
12
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
13
+ import { Spin } from 'antd';
14
+ import BizGlobalDataContext from '../context';
15
+ import React, { useEffect, useState, useContext, Fragment } from 'react';
16
+ import useBizStore from '../hooks/useBizStore';
17
+ import './index.less';
18
+ var SubjectWrapper = function SubjectWrapper(_ref) {
19
+ var children = _ref.children,
20
+ className = _ref.className,
21
+ defaultApp = _ref.defaultApp,
22
+ needMeta = _ref.needMeta,
23
+ contextProps = _ref.contextProps;
24
+ if (!needMeta || defaultApp === undefined) {
25
+ return /*#__PURE__*/React.createElement(Fragment, null, children);
26
+ }
27
+ var globalData = useContext(BizGlobalDataContext);
28
+ var _useState = useState(true),
29
+ _useState2 = _slicedToArray(_useState, 2),
30
+ loading = _useState2[0],
31
+ setLoading = _useState2[1];
32
+ var _useState3 = useState(globalData.currentApp),
33
+ _useState4 = _slicedToArray(_useState3, 2),
34
+ currentApp = _useState4[0],
35
+ setCurrentApp = _useState4[1];
36
+ var _useBizStore = useBizStore({
37
+ currentApp: currentApp
38
+ }),
39
+ useBizStoreLoading = _useBizStore.useBizStoreLoading,
40
+ eventGroupList = _useBizStore.eventGroupList,
41
+ userPropList = _useBizStore.userPropList,
42
+ envPropList = _useBizStore.envPropList,
43
+ eventNameMap = _useBizStore.eventNameMap,
44
+ eventIdMap = _useBizStore.eventIdMap,
45
+ userGroupList = _useBizStore.userGroupList,
46
+ groupLoading = _useBizStore.groupLoading,
47
+ setUserGroupList = _useBizStore.setUserGroupList,
48
+ tagList = _useBizStore.tagList,
49
+ tagLoading = _useBizStore.tagLoading,
50
+ setTagList = _useBizStore.setTagList,
51
+ queryGroups = _useBizStore.queryGroups,
52
+ queryTags = _useBizStore.queryTags;
53
+ useEffect(function () {
54
+ appInfo(globalData.projectList);
55
+ }, [defaultApp]);
56
+ var appInfo = function appInfo(data) {
57
+ var hasDefaultApp = false;
58
+ if (defaultApp) {
59
+ data.map(function (item) {
60
+ item.appList.map(function (_item) {
61
+ if (defaultApp === _item.id) {
62
+ hasDefaultApp = true;
63
+ setCurrentApp(_item);
64
+ }
65
+ });
66
+ });
67
+ } else {
68
+ setCurrentApp(data[0].appList[0]);
69
+ }
70
+ if (!hasDefaultApp) {
71
+ setCurrentApp(data[0].appList[0]);
72
+ }
73
+ setLoading(false);
74
+ };
75
+ return /*#__PURE__*/React.createElement("div", {
76
+ className: "lib-subjectWrapper ".concat(className, " ").concat(useBizStoreLoading ? 'lib-subjectWrapper-loading' : '')
77
+ }, (useBizStoreLoading || loading) && /*#__PURE__*/React.createElement(Spin, null), !(useBizStoreLoading || loading) && /*#__PURE__*/React.createElement(BizGlobalDataContext.Provider, {
78
+ value: _objectSpread(_objectSpread({}, globalData), {}, {
79
+ currentApp: _objectSpread(_objectSpread({}, currentApp), {}, {
80
+ appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.id
81
+ }),
82
+ eventGroupList: eventGroupList,
83
+ userPropList: userPropList,
84
+ eventEnvList: envPropList,
85
+ eventIdMap: eventIdMap,
86
+ eventNameMap: eventNameMap,
87
+ userGroupList: userGroupList,
88
+ groupLoading: groupLoading,
89
+ setUserGroupList: setUserGroupList,
90
+ tagList: tagList,
91
+ tagLoading: tagLoading,
92
+ setTagList: setTagList,
93
+ queryGroups: queryGroups,
94
+ queryTags: queryTags
95
+ }, contextProps)
96
+ }, children));
97
+ };
98
+ export default SubjectWrapper;
@@ -0,0 +1,12 @@
1
+ @import '~antd/dist/antd.less';
2
+ @import '../assets/iconfont/iconfont.css';
3
+ @import '../assets/styles/resetAntd.less';
4
+ .lib-subjectWrapper {
5
+ width: 100%;
6
+ height: 100%;
7
+ &-loading {
8
+ display: flex;
9
+ align-items: center;
10
+ justify-content: center;
11
+ }
12
+ }
@@ -0,0 +1,14 @@
1
+ import React, { ReactNode } from 'react';
2
+ import { GlobalContextProps } from '../context';
3
+ declare namespace DemoWrapperTypes {
4
+ interface Props {
5
+ className?: string;
6
+ defaultApp?: number;
7
+ needMeta?: boolean;
8
+ children?: ReactNode;
9
+ contextProps?: GlobalContextProps;
10
+ projectList?: any;
11
+ }
12
+ }
13
+ export declare const Props: React.FC<DemoWrapperTypes.Props>;
14
+ export default DemoWrapperTypes;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export var Props = function Props() {
3
+ return /*#__PURE__*/React.createElement(React.Fragment, null);
4
+ };
@@ -1,5 +1,5 @@
1
- @import '../../assets/styles/inner.less';
2
-
3
- .biz-table-total {
4
- color: @primary-color;
5
- }
1
+ @import '../../assets/styles/inner.less';
2
+
3
+ .biz-table-total {
4
+ color: @primary-color;
5
+ }
@@ -1,29 +1,29 @@
1
- @import '../../../assets/styles/inner.less';
2
-
3
- .biz-add-btn {
4
- width: fit-content;
5
- padding: 0 4px;
6
- line-height: 20px;
7
- background-color: #fff;
8
- border-radius: 4px;
9
-
10
- span {
11
- margin-right: 5px;
12
- }
13
-
14
- &.disabled {
15
- color: @disabled-color;
16
- cursor: not-allowed;
17
- span {
18
- color: @disabled-color;
19
- }
20
- }
21
-
22
- &:hover:not(.disabled) {
23
- .__default-hover();
24
-
25
- span {
26
- color: @primary-color;
27
- }
28
- }
29
- }
1
+ @import '../../../assets/styles/inner.less';
2
+
3
+ .biz-add-btn {
4
+ width: fit-content;
5
+ padding: 0 4px;
6
+ line-height: 20px;
7
+ background-color: #fff;
8
+ border-radius: 4px;
9
+
10
+ span {
11
+ margin-right: 5px;
12
+ }
13
+
14
+ &.disabled {
15
+ color: @disabled-color;
16
+ cursor: not-allowed;
17
+ span {
18
+ color: @disabled-color;
19
+ }
20
+ }
21
+
22
+ &:hover:not(.disabled) {
23
+ .__default-hover();
24
+
25
+ span {
26
+ color: @primary-color;
27
+ }
28
+ }
29
+ }
@@ -1,53 +1,53 @@
1
- @import '../../assets/styles/inner.less';
2
-
3
- .biz-target {
4
- &-content {
5
- display: flex;
6
- align-items: center;
7
- }
8
-
9
- .biz-target-select {
10
- min-width: 160px;
11
- max-width: calc(100% - 208px);
12
- &:hover {
13
- .biz-event-select {
14
- max-width: calc(100% - 18px);
15
- }
16
- }
17
- .biz-event-select {
18
- max-width: 100%;
19
- }
20
- .biz-select-handle-content {
21
- max-width: calc(100% - 19px);
22
- }
23
- }
24
-
25
- .biz-attr-condition-group {
26
- margin-top: 12px;
27
- }
28
-
29
- &-dimension {
30
- width: 100px;
31
- margin-left: 16px;
32
- }
33
- &-dropmenu,
34
- &-submenu {
35
- width: 120px;
36
- }
37
-
38
- &-icon {
39
- margin-left: 16px;
40
- .__icon();
41
-
42
- &.shaixuan {
43
- font-size: 20px !important;
44
- }
45
-
46
- &.delete {
47
- font-size: 16px !important;
48
- }
49
- }
50
- .biz-event-select.focus {
51
- box-shadow: none;
52
- }
53
- }
1
+ @import '../../assets/styles/inner.less';
2
+
3
+ .biz-target {
4
+ &-content {
5
+ display: flex;
6
+ align-items: center;
7
+ }
8
+
9
+ .biz-target-select {
10
+ min-width: 160px;
11
+ max-width: calc(100% - 208px);
12
+ &:hover {
13
+ .biz-event-select {
14
+ max-width: calc(100% - 18px);
15
+ }
16
+ }
17
+ .biz-event-select {
18
+ max-width: 100%;
19
+ }
20
+ .biz-select-handle-content {
21
+ max-width: calc(100% - 19px);
22
+ }
23
+ }
24
+
25
+ .biz-attr-condition-group {
26
+ margin-top: 12px;
27
+ }
28
+
29
+ &-dimension {
30
+ width: 100px;
31
+ margin-left: 16px;
32
+ }
33
+ &-dropmenu,
34
+ &-submenu {
35
+ width: 120px;
36
+ }
37
+
38
+ &-icon {
39
+ margin-left: 16px;
40
+ .__icon();
41
+
42
+ &.shaixuan {
43
+ font-size: 20px !important;
44
+ }
45
+
46
+ &.delete {
47
+ font-size: 16px !important;
48
+ }
49
+ }
50
+ .biz-event-select.focus {
51
+ box-shadow: none;
52
+ }
53
+ }
@@ -1,110 +1,110 @@
1
- @import '../../assets/styles/inner.less';
2
-
3
- .biz-target-select {
4
- position: relative;
5
- display: flex;
6
- align-items: center;
7
- height: 32px;
8
- padding: 0;
9
- line-height: 32px;
10
- background-color: @background-color-base;
11
- border-color: @background-color-base;
12
- .__select-handle();
13
-
14
- &:hover {
15
- border-color: @primary-color;
16
- .biz-target-select-option-icon {
17
- display: inline-block;
18
- }
19
- }
20
- &:focus {
21
- background-color: #fff;
22
- .biz-select-handle-input {
23
- background-color: #fff;
24
- }
25
- }
26
-
27
- .biz-select-handle-input.middle {
28
- height: 30px;
29
- line-height: 30px;
30
- }
31
- .biz-event-select {
32
- flex: 1;
33
- }
34
-
35
- .biz-event-select-handle {
36
- flex: none;
37
- padding: 0;
38
- border: none;
39
- }
40
-
41
- &-option-icon {
42
- display: none;
43
- flex: none;
44
- width: 16px;
45
- height: @height-sm;
46
- margin-right: 4px;
47
- color: @text-color-secondary;
48
- line-height: @height-sm;
49
- text-align: center;
50
- border-radius: @border-radius-small;
51
-
52
- &:hover:not(.disabled) {
53
- .__default-hover;
54
- }
55
-
56
- &.disabled {
57
- .__default-disabled;
58
- }
59
- }
60
-
61
- &-del-icon:hover:not(.disabled) {
62
- .__error-hover();
63
- }
64
-
65
- &-menu {
66
- width: 200px;
67
- .__select-panel();
68
-
69
- &-item {
70
- .__select-option();
71
- span:first-child {
72
- margin-right: 15px;
73
- }
74
- }
75
- }
76
- &-divider {
77
- height: 0;
78
- margin: 8px;
79
- border-bottom: 1px solid @border-color-base;
80
- }
81
-
82
- &-modal {
83
- position: absolute;
84
- top: 45px;
85
- left: 0;
86
- z-index: 1000;
87
- width: 100%;
88
- min-width: 280px;
89
- .__select-panel();
90
- }
91
-
92
- &-tip {
93
- margin-top: 2px;
94
- margin-bottom: 12px;
95
- margin-left: 2px;
96
- font-size: 12px;
97
- }
98
-
99
- &-error {
100
- color: @error-color;
101
- }
102
-
103
- &-footer {
104
- text-align: right;
105
- }
106
-
107
- &-mr8 {
108
- margin-right: @margin-xs;
109
- }
110
- }
1
+ @import '../../assets/styles/inner.less';
2
+
3
+ .biz-target-select {
4
+ position: relative;
5
+ display: flex;
6
+ align-items: center;
7
+ height: 32px;
8
+ padding: 0;
9
+ line-height: 32px;
10
+ background-color: @background-color-base;
11
+ border-color: @background-color-base;
12
+ .__select-handle();
13
+
14
+ &:hover {
15
+ border-color: @primary-color;
16
+ .biz-target-select-option-icon {
17
+ display: inline-block;
18
+ }
19
+ }
20
+ &:focus {
21
+ background-color: #fff;
22
+ .biz-select-handle-input {
23
+ background-color: #fff;
24
+ }
25
+ }
26
+
27
+ .biz-select-handle-input.middle {
28
+ height: 30px;
29
+ line-height: 30px;
30
+ }
31
+ .biz-event-select {
32
+ flex: 1;
33
+ }
34
+
35
+ .biz-event-select-handle {
36
+ flex: none;
37
+ padding: 0;
38
+ border: none;
39
+ }
40
+
41
+ &-option-icon {
42
+ display: none;
43
+ flex: none;
44
+ width: 16px;
45
+ height: @height-sm;
46
+ margin-right: 4px;
47
+ color: @text-color-secondary;
48
+ line-height: @height-sm;
49
+ text-align: center;
50
+ border-radius: @border-radius-small;
51
+
52
+ &:hover:not(.disabled) {
53
+ .__default-hover;
54
+ }
55
+
56
+ &.disabled {
57
+ .__default-disabled;
58
+ }
59
+ }
60
+
61
+ &-del-icon:hover:not(.disabled) {
62
+ .__error-hover();
63
+ }
64
+
65
+ &-menu {
66
+ width: 200px;
67
+ .__select-panel();
68
+
69
+ &-item {
70
+ .__select-option();
71
+ span:first-child {
72
+ margin-right: 15px;
73
+ }
74
+ }
75
+ }
76
+ &-divider {
77
+ height: 0;
78
+ margin: 8px;
79
+ border-bottom: 1px solid @border-color-base;
80
+ }
81
+
82
+ &-modal {
83
+ position: absolute;
84
+ top: 45px;
85
+ left: 0;
86
+ z-index: 1000;
87
+ width: 100%;
88
+ min-width: 280px;
89
+ .__select-panel();
90
+ }
91
+
92
+ &-tip {
93
+ margin-top: 2px;
94
+ margin-bottom: 12px;
95
+ margin-left: 2px;
96
+ font-size: 12px;
97
+ }
98
+
99
+ &-error {
100
+ color: @error-color;
101
+ }
102
+
103
+ &-footer {
104
+ text-align: right;
105
+ }
106
+
107
+ &-mr8 {
108
+ margin-right: @margin-xs;
109
+ }
110
+ }
@@ -506,7 +506,6 @@ var CdpCondition = function CdpCondition(props) {
506
506
  }
507
507
  }, []);
508
508
  var onChangeCondition = function onChangeCondition(condition, index) {
509
- console.log('onChangeCondition', condition, index);
510
509
  var resData = _.cloneDeep(cdpConditions);
511
510
  resData[index] = _objectSpread({}, condition);
512
511
  onChange(dataId, resData);
@@ -38,7 +38,7 @@ var RunPeriodCondition = function RunPeriodCondition(props) {
38
38
  }
39
39
  function onOperatorChange(option) {
40
40
  var newData = {
41
- operator: option.value
41
+ operator: option === null || option === void 0 ? void 0 : option.value
42
42
  };
43
43
  if (newData.operator === 'absolute') {
44
44
  var endDate = moment().format('YYYY-MM-DD');
@@ -47,7 +47,7 @@ var PeriodCondition = function PeriodCondition(props) {
47
47
  }
48
48
  function onOperatorChange(option) {
49
49
  var newData = {
50
- operator: option.value
50
+ operator: option === null || option === void 0 ? void 0 : option.value
51
51
  };
52
52
  if (newData.operator === 'absolute') {
53
53
  var endDate = moment().format('YYYY-MM-DD');
@@ -34,7 +34,7 @@ var RunTimesCondition = function RunTimesCondition(props) {
34
34
  onChange = props.onChange;
35
35
  function onOperatorChange(data) {
36
36
  onChange(_objectSpread(_objectSpread({}, runTimes), {}, {
37
- operator: data.value
37
+ operator: data === null || data === void 0 ? void 0 : data.value
38
38
  }));
39
39
  }
40
40
  function onValueChange(e) {