@zgfe/business-lib 1.0.0-beta.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 (178) hide show
  1. package/README.md +12 -0
  2. package/es/analysisLayout/demo/index.d.ts +3 -0
  3. package/es/analysisLayout/demo/index.js +30 -0
  4. package/es/analysisLayout/demo/index.less +12 -0
  5. package/es/analysisLayout/index.d.ts +13 -0
  6. package/es/analysisLayout/index.js +153 -0
  7. package/es/analysisLayout/index.less +115 -0
  8. package/es/attributeSelector/data/env.d.ts +11 -0
  9. package/es/attributeSelector/data/env.js +181 -0
  10. package/es/attributeSelector/data/event.d.ts +237 -0
  11. package/es/attributeSelector/data/event.js +3483 -0
  12. package/es/attributeSelector/data/user.d.ts +22 -0
  13. package/es/attributeSelector/data/user.js +218 -0
  14. package/es/attributeSelector/demo/multi.d.ts +2 -0
  15. package/es/attributeSelector/demo/multi.js +39 -0
  16. package/es/attributeSelector/demo/multiForm.d.ts +2 -0
  17. package/es/attributeSelector/demo/multiForm.js +64 -0
  18. package/es/attributeSelector/demo/single.d.ts +2 -0
  19. package/es/attributeSelector/demo/single.js +43 -0
  20. package/es/attributeSelector/demo/singleForm.d.ts +2 -0
  21. package/es/attributeSelector/demo/singleForm.js +66 -0
  22. package/es/attributeSelector/group.d.ts +31 -0
  23. package/es/attributeSelector/group.js +225 -0
  24. package/es/attributeSelector/index.d.ts +110 -0
  25. package/es/attributeSelector/index.js +578 -0
  26. package/es/attributeSelector/index.less +172 -0
  27. package/es/chart/chartConfig.d.ts +28 -0
  28. package/es/chart/chartConfig.js +256 -0
  29. package/es/chart/color.d.ts +1 -0
  30. package/es/chart/color.js +1 -0
  31. package/es/chart/demo/bar.d.ts +2 -0
  32. package/es/chart/demo/bar.js +19 -0
  33. package/es/chart/demo/data.d.ts +11 -0
  34. package/es/chart/demo/data.js +37 -0
  35. package/es/chart/demo/index.d.ts +2 -0
  36. package/es/chart/demo/index.js +9 -0
  37. package/es/chart/demo/pie.d.ts +2 -0
  38. package/es/chart/demo/pie.js +30 -0
  39. package/es/chart/index.d.ts +63 -0
  40. package/es/chart/index.js +76 -0
  41. package/es/chart/index.less +38 -0
  42. package/es/chart/style/circle.svg +4 -0
  43. package/es/commonStyle/icon.less +147 -0
  44. package/es/commonStyle/index.less +171 -0
  45. package/es/commonStyle/select.less +101 -0
  46. package/es/commonStyle/theme.less +432 -0
  47. package/es/commonStyle/variable.less +124 -0
  48. package/es/datePicker/data.d.ts +9 -0
  49. package/es/datePicker/data.js +65 -0
  50. package/es/datePicker/demo/form.d.ts +2 -0
  51. package/es/datePicker/demo/form.js +53 -0
  52. package/es/datePicker/demo/index.d.ts +2 -0
  53. package/es/datePicker/demo/index.js +30 -0
  54. package/es/datePicker/index.d.ts +29 -0
  55. package/es/datePicker/index.js +207 -0
  56. package/es/datePicker/index.less +388 -0
  57. package/es/dialog/components/list.d.ts +15 -0
  58. package/es/dialog/components/list.js +57 -0
  59. package/es/dialog/components/selectToInput.d.ts +43 -0
  60. package/es/dialog/components/selectToInput.js +107 -0
  61. package/es/dialog/components/style/list.less +59 -0
  62. package/es/dialog/components/style/tab.less +61 -0
  63. package/es/dialog/components/tab.d.ts +9 -0
  64. package/es/dialog/components/tab.js +50 -0
  65. package/es/dialog/data/chart.d.ts +11 -0
  66. package/es/dialog/data/chart.js +62 -0
  67. package/es/dialog/demo/index.d.ts +2 -0
  68. package/es/dialog/demo/index.js +122 -0
  69. package/es/dialog/demo/index2.d.ts +2 -0
  70. package/es/dialog/demo/index2.js +79 -0
  71. package/es/dialog/demo/index3.d.ts +2 -0
  72. package/es/dialog/demo/index3.js +61 -0
  73. package/es/dialog/index.d.ts +68 -0
  74. package/es/dialog/index.js +188 -0
  75. package/es/dialog/style/index.less +70 -0
  76. package/es/eventSelector/cascade.less +120 -0
  77. package/es/eventSelector/demo/form.d.ts +2 -0
  78. package/es/eventSelector/demo/form.js +89 -0
  79. package/es/eventSelector/demo/index.d.ts +2 -0
  80. package/es/eventSelector/demo/index.js +69 -0
  81. package/es/eventSelector/demo/nodata.d.ts +2 -0
  82. package/es/eventSelector/demo/nodata.js +13 -0
  83. package/es/eventSelector/index.d.ts +27 -0
  84. package/es/eventSelector/index.js +390 -0
  85. package/es/eventSelector/type.d.ts +41 -0
  86. package/es/eventSelector/type.js +1 -0
  87. package/es/globalAttributes/demo/data/env.d.ts +11 -0
  88. package/es/globalAttributes/demo/data/env.js +181 -0
  89. package/es/globalAttributes/demo/data/event.d.ts +237 -0
  90. package/es/globalAttributes/demo/data/event.js +3483 -0
  91. package/es/globalAttributes/demo/data/user.d.ts +22 -0
  92. package/es/globalAttributes/demo/data/user.js +218 -0
  93. package/es/globalAttributes/demo/index.d.ts +2 -0
  94. package/es/globalAttributes/demo/index.js +50 -0
  95. package/es/globalAttributes/index.d.ts +46 -0
  96. package/es/globalAttributes/index.js +116 -0
  97. package/es/index.d.ts +23 -0
  98. package/es/index.js +25 -0
  99. package/es/multipleSelector/demo/index.d.ts +2 -0
  100. package/es/multipleSelector/demo/index.js +35 -0
  101. package/es/multipleSelector/index.d.ts +36 -0
  102. package/es/multipleSelector/index.js +109 -0
  103. package/es/multipleSelector/index.less +138 -0
  104. package/es/select/demo/index.d.ts +2 -0
  105. package/es/select/demo/index.js +22 -0
  106. package/es/select/index.d.ts +42 -0
  107. package/es/select/index.js +142 -0
  108. package/es/table/demo/data/color.d.ts +1 -0
  109. package/es/table/demo/data/color.js +1 -0
  110. package/es/table/demo/data/data.d.ts +11 -0
  111. package/es/table/demo/data/data.js +37 -0
  112. package/es/table/demo/data/table.d.ts +4 -0
  113. package/es/table/demo/data/table.js +37 -0
  114. package/es/table/demo/index.d.ts +3 -0
  115. package/es/table/demo/index.js +171 -0
  116. package/es/table/demo/index.less +8 -0
  117. package/es/table/demo/index2.d.ts +2 -0
  118. package/es/table/demo/index2.js +9 -0
  119. package/es/table/index.d.ts +32 -0
  120. package/es/table/index.js +80 -0
  121. package/es/table/index.less +102 -0
  122. package/es/targetConditionGroup/components/conditionGroup.d.ts +30 -0
  123. package/es/targetConditionGroup/components/conditionGroup.js +111 -0
  124. package/es/targetConditionGroup/components/conditionItem.d.ts +47 -0
  125. package/es/targetConditionGroup/components/conditionItem.js +259 -0
  126. package/es/targetConditionGroup/components/style/group.less +47 -0
  127. package/es/targetConditionGroup/components/style/index.less +16 -0
  128. package/es/targetConditionGroup/data/operates.d.ts +36 -0
  129. package/es/targetConditionGroup/data/operates.js +98 -0
  130. package/es/targetConditionGroup/demo/data/env.d.ts +11 -0
  131. package/es/targetConditionGroup/demo/data/env.js +181 -0
  132. package/es/targetConditionGroup/demo/data/event.d.ts +237 -0
  133. package/es/targetConditionGroup/demo/data/event.js +3483 -0
  134. package/es/targetConditionGroup/demo/data/user.d.ts +22 -0
  135. package/es/targetConditionGroup/demo/data/user.js +218 -0
  136. package/es/targetConditionGroup/demo/form.d.ts +2 -0
  137. package/es/targetConditionGroup/demo/form.js +96 -0
  138. package/es/targetConditionGroup/demo/index.d.ts +2 -0
  139. package/es/targetConditionGroup/demo/index.js +73 -0
  140. package/es/targetConditionGroup/demo/item.d.ts +2 -0
  141. package/es/targetConditionGroup/demo/item.js +5 -0
  142. package/es/targetConditionGroup/index.d.ts +53 -0
  143. package/es/targetConditionGroup/index.js +265 -0
  144. package/es/targetConditionGroup/index.less +65 -0
  145. package/es/targetConditionGroup/type.d.ts +50 -0
  146. package/es/targetConditionGroup/type.js +1 -0
  147. package/es/targetSelector/components/BizCascadeBox.d.ts +34 -0
  148. package/es/targetSelector/components/BizCascadeBox.js +213 -0
  149. package/es/targetSelector/components/BizEventNameEditBox.d.ts +20 -0
  150. package/es/targetSelector/components/BizEventNameEditBox.js +57 -0
  151. package/es/targetSelector/demo/form.d.ts +2 -0
  152. package/es/targetSelector/demo/form.js +133 -0
  153. package/es/targetSelector/demo/index.d.ts +2 -0
  154. package/es/targetSelector/demo/index.js +107 -0
  155. package/es/targetSelector/demo/nodata.d.ts +2 -0
  156. package/es/targetSelector/demo/nodata.js +13 -0
  157. package/es/targetSelector/index.d.ts +40 -0
  158. package/es/targetSelector/index.js +204 -0
  159. package/es/targetSelector/index.less +53 -0
  160. package/es/userGroup/demo/cluster.d.ts +3 -0
  161. package/es/userGroup/demo/cluster.js +102 -0
  162. package/es/userGroup/demo/index.d.ts +3 -0
  163. package/es/userGroup/demo/index.js +115 -0
  164. package/es/userGroup/demo/index.less +3 -0
  165. package/es/userGroup/index.d.ts +79 -0
  166. package/es/userGroup/index.js +134 -0
  167. package/es/userGroup/index.less +2 -0
  168. package/es/userGroup/userCluster.d.ts +63 -0
  169. package/es/userGroup/userCluster.js +254 -0
  170. package/es/utils/ajax.d.ts +7 -0
  171. package/es/utils/ajax.js +139 -0
  172. package/es/utils/index.d.ts +3 -0
  173. package/es/utils/index.js +3 -0
  174. package/es/utils/type.d.ts +54 -0
  175. package/es/utils/type.js +1 -0
  176. package/es/utils/util.d.ts +67 -0
  177. package/es/utils/util.js +204 -0
  178. package/package.json +55 -0
@@ -0,0 +1,76 @@
1
+ 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; }
2
+
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
+
5
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+
7
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+
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
+
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
+
13
+ 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; }
14
+
15
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
16
+
17
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
18
+
19
+ import React, { useEffect, useState } from 'react';
20
+ import ReactEChartsCore from 'echarts-for-react/lib/core';
21
+ import * as echarts from 'echarts';
22
+ import { getChartOption } from './chartConfig';
23
+
24
+ var BizChart = function BizChart(props) {
25
+ var _props$type = props.type,
26
+ type = _props$type === void 0 ? 'line' : _props$type,
27
+ option = props.option,
28
+ data = props.data,
29
+ _props$sameColor = props.sameColor,
30
+ sameColor = _props$sameColor === void 0 ? true : _props$sameColor,
31
+ tooltipFormatter = props.tooltipFormatter,
32
+ xAxisFormatter = props.xAxisFormatter,
33
+ yAxisFormatter = props.yAxisFormatter,
34
+ valueUnit = props.valueUnit,
35
+ legendPosition = props.legendPosition,
36
+ legendOrient = props.legendOrient;
37
+
38
+ var _useState = useState({}),
39
+ _useState2 = _slicedToArray(_useState, 2),
40
+ chartOption = _useState2[0],
41
+ setChartOption = _useState2[1];
42
+
43
+ useEffect(function () {
44
+ var eOption = getChartOption(type, data === null || data === void 0 ? void 0 : data.xData, data === null || data === void 0 ? void 0 : data.seriesData, sameColor, legendPosition, legendOrient);
45
+
46
+ if (tooltipFormatter) {
47
+ eOption.tooltip.formatter = tooltipFormatter;
48
+ }
49
+
50
+ if (xAxisFormatter) {
51
+ eOption.xAxis.axisLabel.formatter = xAxisFormatter;
52
+ }
53
+
54
+ if (yAxisFormatter) {
55
+ eOption.yAxis.axisLabel.formatter = yAxisFormatter;
56
+ }
57
+
58
+ if (valueUnit) {
59
+ eOption.yAxis.name = valueUnit;
60
+ }
61
+
62
+ console.log('option>>>', eOption);
63
+ setChartOption(function () {
64
+ return _objectSpread({}, eOption);
65
+ });
66
+ }, [data, type]);
67
+ return /*#__PURE__*/React.createElement(ReactEChartsCore, {
68
+ echarts: echarts,
69
+ option: chartOption,
70
+ notMerge: true,
71
+ lazyUpdate: true,
72
+ theme: 'theme_name'
73
+ });
74
+ };
75
+
76
+ export default BizChart;
@@ -0,0 +1,38 @@
1
+ .biz-chart-tooltip {
2
+ padding: 8;
3
+ background-color: 'rgba(250, 251, 253, 0.8)';
4
+ border-color: 'transparent';
5
+ backdrop-filter: blur(4px);
6
+ .biz-chart-tooltip-title {
7
+ color: #021429;
8
+ font-weight: 600;
9
+ font-size: 12px;
10
+ line-height: 17px;
11
+ }
12
+
13
+ .biz-chart-tooltip-item {
14
+ display: flex;
15
+ align-items: center;
16
+ justify-content: space-between;
17
+ height: 24px;
18
+ margin: 4px 0px;
19
+ padding: 0 8px;
20
+ font-size: 12px;
21
+ background: #ffffff;
22
+ border-radius: 4px;
23
+ box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.04);
24
+
25
+ .biz-chart-tooltip-content {
26
+ color: #5f6085;
27
+ font-weight: 400;
28
+ span {
29
+ margin-right: 8px;
30
+ }
31
+ }
32
+ .biz-chart-tooltip-value {
33
+ margin-left: 8px;
34
+ color: #021429;
35
+ font-weight: 500;
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,4 @@
1
+ <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <circle cx="5.99951" cy="6" r="6" fill="white"/>
3
+ <circle cx="5.99951" cy="6" r="4" fill="#F8BC3B"/>
4
+ </svg>
@@ -0,0 +1,147 @@
1
+ @import './index.less';
2
+
3
+ .biz-icon-add {
4
+ width: fit-content;
5
+ padding: 2px;
6
+ color: @titleColor;
7
+ font-weight: 400;
8
+ font-size: 14px;
9
+ line-height: 20px;
10
+ cursor: pointer;
11
+
12
+ &:hover {
13
+ color: @hoverColor;
14
+ background: @hoverBgColor;
15
+ border-radius: 3px;
16
+
17
+ span {
18
+ color: @hoverColor;
19
+ }
20
+ }
21
+
22
+ .biz-icon-text {
23
+ margin-left: 6px;
24
+ }
25
+ }
26
+
27
+ .biz-icon {
28
+ color: @fontColor3;
29
+ font-size: 16px;
30
+ }
31
+
32
+ .biz-input-icon {
33
+ color: #5f6085;
34
+ font-size: 18px;
35
+ }
36
+
37
+ .biz-options {
38
+ display: flex;
39
+ }
40
+
41
+ .biz-option-icon {
42
+ display: none;
43
+ width: 24px;
44
+ height: 32px;
45
+ padding-right: 1px;
46
+ color: @iconColor;
47
+ font-size: 15px;
48
+ line-height: 32px;
49
+ text-align: center;
50
+ background-color: #fff;
51
+ border-radius: 4px;
52
+ cursor: pointer;
53
+
54
+ &:hover {
55
+ color: @hoverColor;
56
+ background-color: @hoverBgColor;
57
+ }
58
+
59
+ &.biz-option-icon-delete:hover {
60
+ color: @deleteHoverColor;
61
+ background-color: @deleteHoverBgColor;
62
+ }
63
+ }
64
+
65
+ .biz-btn,
66
+ .ant-btn {
67
+ height: auto;
68
+ padding: 10px 24px;
69
+ font-weight: 400;
70
+ font-size: 14px;
71
+ line-height: 20px;
72
+ border-radius: 4px;
73
+ cursor: pointer;
74
+ }
75
+
76
+ .biz-btn-primary,
77
+ .ant-btn-primary {
78
+ color: #fff;
79
+ background: #165dff;
80
+ border: none;
81
+
82
+ &:hover,
83
+ &:active {
84
+ background: #85adfc;
85
+ }
86
+ &:focus {
87
+ background: #1451db;
88
+ }
89
+
90
+ &:disabled {
91
+ color: #cacdd4;
92
+ background: #f6f6f6;
93
+ }
94
+ }
95
+
96
+ .biz-btn-default,
97
+ .ant-btn-default {
98
+ color: #242541;
99
+ background: #f6f6f6;
100
+ border: none;
101
+
102
+ &:hover,
103
+ &:focus {
104
+ color: #242541;
105
+ background: #cacdd4;
106
+ }
107
+
108
+ &:active {
109
+ color: #242541;
110
+ background: #94a6ce;
111
+ }
112
+
113
+ &:disabled {
114
+ color: #cacdd4;
115
+ background: #f6f6f6;
116
+ }
117
+ }
118
+
119
+ .biz-btn-text {
120
+ color: #021429;
121
+
122
+ &:hover {
123
+ background: #f6f6f6;
124
+ }
125
+
126
+ &:active {
127
+ background: #cacdd4;
128
+ }
129
+
130
+ &:disabled {
131
+ color: #cacdd4;
132
+ }
133
+ }
134
+
135
+ .biz-btn-line {
136
+ box-sizing: border-box;
137
+ color: #5f6085;
138
+ background: #ffffff;
139
+ border: 1px solid #ecedf0;
140
+ border-radius: 4px;
141
+
142
+ &:hover {
143
+ color: #165dff;
144
+ background: #e8efff;
145
+ border-color: #165dff;
146
+ }
147
+ }
@@ -0,0 +1,171 @@
1
+ /** 全局变量 **/
2
+ @themeColor: #165dff;
3
+ /* 字体颜色 */
4
+ @fontColor: #021429;
5
+ /* 中性色/次要-信息2 */
6
+ @fontColor2: #242541;
7
+ /* 中性色/次要-信息3 */
8
+ @fontColor3: #5f6085;
9
+ /* 图标颜色 */
10
+ @iconColor: #5f6085;
11
+ /* layout icon颜色 */
12
+ @layoutIconColor: #242541;
13
+ /* 标题颜色 */
14
+ @titleColor: #5f6085;
15
+ /* 灰色*/
16
+ @grayColor: #f6f6f6;
17
+ @disableColor: #cacdd4;
18
+ /* 边框圆角 */
19
+ @boxRadius: 4px;
20
+ /* 特殊圆角 */
21
+ @specialRadius: 10px;
22
+ /* icon圆角 */
23
+ @iconRadius: 3px;
24
+ /* hover背景色 */
25
+ @hoverBgColor: #e8efff;
26
+ /* 中性色/gray-8背景色 */
27
+ @grayBgColor: #fafafb;
28
+ /* hover字体颜色 */
29
+ @hoverColor: #165dff;
30
+ /* active背景色 */
31
+ @activeBgColor: #165dff;
32
+ /* active字体颜色 */
33
+ @activeColor: #ffffff;
34
+ /* 删除hover背景色 */
35
+ @deleteHoverBgColor: #fed5d1;
36
+ /* 删除hover字体色 */
37
+ @deleteHoverColor: #fb5547;
38
+ /* 按钮 */
39
+ @btnPrimaryBgColor: #165dff;
40
+ @btnPrimaryFontColor: #ffffff;
41
+
42
+ /* 字体大小 */
43
+ @fontSize: 14px;
44
+ /* 图标大小 */
45
+ @iconSize: 16px;
46
+ /* 字体weight */
47
+ @fontWeight: 400;
48
+ /* border */
49
+ @boxBorder: 1px solid #ecedf0;
50
+ @borderColor: #ecedf0;
51
+ /* padding */
52
+ @searchPadding: 24px;
53
+ @contentPadding: 32px;
54
+ /*下拉框宽度*/
55
+ @dropdownWidth: 284px;
56
+ /* 分析维度, 关系 */
57
+ @dropdownWidth2: 120px;
58
+ /*更多操作*/
59
+ @dropdownWidth3: 200px;
60
+ /* 指标下拉框= 200+284*/
61
+ @dropdownHeight: 400px;
62
+
63
+ /* 下拉框外框 */
64
+ @dropdownPadding: 8px;
65
+ /*下拉选项*/
66
+ @dropdownItemPadding: 14px 8px;
67
+ /**/
68
+ @selectItemHeight: 48px;
69
+ /*级联二级选择项*/
70
+ @selectItem2Height: 40px;
71
+ /*级联二级内边距*/
72
+ @selectItem2Padding: 8px 10px;
73
+
74
+ .boxBg {
75
+ color: @fontColor;
76
+ background-color: #fff;
77
+ &:hover:not(.box-active, .box-disabled) {
78
+ color: @hoverColor;
79
+ background-color: @hoverBgColor;
80
+ .biz-icon {
81
+ color: @hoverColor;
82
+ }
83
+ }
84
+ }
85
+ .box-hover {
86
+ color: @hoverColor;
87
+ background-color: @hoverBgColor;
88
+ .biz-icon {
89
+ color: @hoverColor;
90
+ }
91
+ }
92
+ .box-active {
93
+ color: @activeColor !important;
94
+ background-color: @activeBgColor;
95
+ .biz-icon {
96
+ color: @activeColor;
97
+ }
98
+ }
99
+ .box-disabled {
100
+ color: @fontColor !important;
101
+ background-color: #f5f5f5;
102
+ cursor: not-allowed !important;
103
+ }
104
+ .biz-search {
105
+ box-sizing: border-box;
106
+ padding: 4px;
107
+ background: #f6f6f6;
108
+ border-radius: @specialRadius;
109
+ &:hover,
110
+ &.active {
111
+ background-color: @hoverBgColor;
112
+ .biz-search-box {
113
+ background-color: #fff;
114
+ border-color: #165dff;
115
+ }
116
+ }
117
+ .biz-search-box {
118
+ height: 40px;
119
+ background: #f6f6f6;
120
+ border-color: #f6f6f6;
121
+ border-radius: @specialRadius;
122
+ box-shadow: none;
123
+
124
+ input {
125
+ background: transparent;
126
+ }
127
+ .ant-input {
128
+ border: none;
129
+ }
130
+ &.small {
131
+ height: 32px;
132
+ }
133
+ }
134
+ }
135
+
136
+ .mb-12 {
137
+ margin-bottom: 12px;
138
+ }
139
+
140
+ /*滚动条凹槽的颜色,还可以设置边框属性 */
141
+ ::-webkit-scrollbar-track-piece {
142
+ background-color: #fff;
143
+ -webkit-border-radius: 10px;
144
+ -moz-border-radius: 10px;
145
+ border-radius: 10px;
146
+ }
147
+
148
+ /*滚动条的宽度*/
149
+ ::-webkit-scrollbar {
150
+ width: 10px;
151
+ height: 10px;
152
+ }
153
+
154
+ /*滚动条的设置*/
155
+ ::-webkit-scrollbar-thumb {
156
+ background-color: #cacdd4;
157
+ background-clip: padding-box;
158
+ border: 2px solid #fff;
159
+ -webkit-border-radius: 10px;
160
+ -moz-border-radius: 10px;
161
+ border-radius: 10px;
162
+ }
163
+
164
+ /*滚动条鼠标移上去*/
165
+ ::-webkit-scrollbar-thumb:hover {
166
+ // background-color: #bbb;
167
+ }
168
+ ::-webkit-scrollbar-track-piece {
169
+ width: 6px;
170
+ height: 6px;
171
+ }
@@ -0,0 +1,101 @@
1
+ @import './index.less';
2
+ @import './theme.less';
3
+
4
+ /* 标题 */
5
+
6
+ /*下拉框样式重写*/
7
+ // .biz-select {
8
+ // width: 100%;
9
+ // color: @fontColor;
10
+ // }
11
+
12
+ /*文本框样式*/
13
+ .biz-select-cotainer {
14
+ position: relative;
15
+ display: flex;
16
+ flex: 1;
17
+ flex-wrap: wrap;
18
+ align-items: center;
19
+ box-sizing: border-box;
20
+ margin-bottom: 12px;
21
+ padding: 4px;
22
+ color: #021429;
23
+ border: @boxBorder;
24
+ border-radius: @boxRadius;
25
+
26
+ &:hover {
27
+ .biz-option-icon {
28
+ display: block;
29
+ }
30
+ }
31
+ }
32
+
33
+ /*下拉框的文本框样式*/
34
+
35
+ .biz-select-content {
36
+ position: relative;
37
+ display: flex;
38
+ flex: 1;
39
+ height: 100%;
40
+ color: @fontColor;
41
+ border-radius: 4px;
42
+ cursor: pointer;
43
+
44
+ &:not(.biz-gray-select):hover {
45
+ color: @hoverColor;
46
+ background-color: @hoverBgColor;
47
+
48
+ .biz-select-zhankai {
49
+ display: block;
50
+ }
51
+
52
+ span {
53
+ color: @hoverColor;
54
+ }
55
+ }
56
+
57
+ .biz-input {
58
+ flex: 1;
59
+ box-sizing: border-box;
60
+ height: 32px;
61
+ padding: 6px 8px;
62
+ line-height: 20px;
63
+ border-radius: @boxRadius;
64
+ .boxBg();
65
+
66
+ &.biz-bg-gray {
67
+ background: @grayColor;
68
+ }
69
+ }
70
+ }
71
+
72
+ .biz-select-zhankai {
73
+ position: absolute;
74
+ top: 9px;
75
+ right: 10px;
76
+ display: none;
77
+ color: @iconColor;
78
+ font-size: @iconSize;
79
+ }
80
+
81
+ .biz-select-nodata {
82
+ position: absolute;
83
+ top: 42px;
84
+ left: -4px;
85
+ z-index: 9999;
86
+ box-sizing: border-box;
87
+ width: 268px;
88
+ min-width: 322px;
89
+ height: 48px;
90
+ padding-left: 16px;
91
+ color: @fontColor;
92
+ font-size: @fontSize;
93
+ line-height: 48px;
94
+ background: #ffffff;
95
+ border-radius: @specialRadius;
96
+ box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
97
+ }
98
+
99
+ .ant-select-item-empty {
100
+ color: @fontColor;
101
+ }