@zgfe/business-lib 1.0.0-beta.1 → 1.0.0-beta.2
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.
- package/es/analysisLayout/demo/index.js +1 -1
- package/es/analysisLayout/index.js +1 -4
- package/es/analysisLayout/index.less +2 -1
- package/es/assets/iconfont/iconfont.css +123 -0
- package/es/assets/iconfont/iconfont.js +46 -0
- package/es/assets/iconfont/iconfont.json +198 -0
- package/es/assets/iconfont/iconfont.ttf +0 -0
- package/es/assets/iconfont/iconfont.woff +0 -0
- package/es/assets/iconfont/iconfont.woff2 +0 -0
- package/es/attributeSelector/demo/multi.js +1 -1
- package/es/attributeSelector/demo/multiForm.js +1 -1
- package/es/attributeSelector/demo/single.js +1 -1
- package/es/attributeSelector/demo/singleForm.js +1 -1
- package/es/attributeSelector/group.js +1 -1
- package/es/attributeSelector/index.js +2 -1
- package/es/attributeSelector/index.less +2 -2
- package/es/chart/chartConfig.d.ts +20 -5
- package/es/chart/chartConfig.js +169 -117
- package/es/chart/demo/bar.js +8 -12
- package/es/chart/demo/data/data.d.ts +8 -0
- package/es/chart/demo/data/data.js +28 -0
- package/es/chart/demo/index.js +6 -5
- package/es/chart/demo/pie.js +5 -22
- package/es/chart/index.d.ts +28 -12
- package/es/chart/index.js +94 -17
- package/es/chart/util/format.d.ts +4 -0
- package/es/chart/util/format.js +61 -0
- package/es/commonStyle/icon.less +32 -5
- package/es/commonStyle/index.less +3 -171
- package/es/commonStyle/select.less +3 -12
- package/es/commonStyle/theme.less +80 -39
- package/es/commonStyle/variable.less +5 -2
- package/es/components/iconFont.d.ts +5 -0
- package/es/components/iconFont.js +30 -0
- package/es/datePicker/demo/form.js +1 -1
- package/es/datePicker/demo/index.js +1 -1
- package/es/datePicker/index.js +8 -15
- package/es/datePicker/index.less +4 -28
- package/es/dialog/components/list.js +1 -1
- package/es/dialog/components/selectToInput.js +12 -1
- package/es/dialog/components/style/list.less +1 -1
- package/es/dialog/components/style/tab.less +2 -2
- package/es/dialog/components/tab.js +1 -1
- package/es/dialog/demo/index.js +1 -1
- package/es/dialog/demo/index2.js +20 -2
- package/es/dialog/demo/index3.js +1 -1
- package/es/dialog/style/index.less +7 -1
- package/es/eventSelector/demo/form.js +1 -1
- package/es/eventSelector/demo/index.js +1 -1
- package/es/eventSelector/demo/nodata.js +1 -1
- package/es/eventSelector/index.d.ts +1 -1
- package/es/eventSelector/index.js +3 -13
- package/es/eventSelector/{cascade.less → index.less} +2 -1
- package/es/globalAttributes/demo/index.js +1 -1
- package/es/globalAttributes/index.js +2 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -4
- package/es/multipleSelector/demo/index.js +1 -1
- package/es/multipleSelector/index.js +2 -8
- package/es/multipleSelector/index.less +23 -25
- package/es/select/demo/index.js +32 -4
- package/es/select/index.d.ts +2 -1
- package/es/select/index.js +30 -8
- package/es/select/index.less +1 -0
- package/es/table/demo/index.js +1 -1
- package/es/table/demo/index2.js +1 -1
- package/es/table/index.js +1 -1
- package/es/table/index.less +78 -41
- package/es/targetConditionGroup/components/conditionItem.js +3 -3
- package/es/targetConditionGroup/components/style/group.less +1 -1
- package/es/targetConditionGroup/components/style/index.less +1 -1
- package/es/targetConditionGroup/demo/form.js +1 -1
- package/es/targetConditionGroup/demo/index.js +1 -1
- package/es/targetConditionGroup/index.js +2 -1
- package/es/targetConditionGroup/index.less +1 -2
- package/es/targetSelector/components/BizCascadeBox.d.ts +1 -1
- package/es/targetSelector/components/BizCascadeBox.js +1 -1
- package/es/targetSelector/demo/form.js +1 -1
- package/es/targetSelector/demo/index.js +1 -1
- package/es/targetSelector/demo/nodata.js +1 -1
- package/es/targetSelector/index.js +1 -2
- package/es/targetSelector/index.less +1 -26
- package/es/userGroup/demo/cluster.js +1 -1
- package/es/userGroup/demo/index.js +1 -1
- package/es/userGroup/index.js +1 -2
- package/es/userGroup/index.less +1 -1
- package/es/userGroup/userCluster.js +2 -1
- package/package.json +1 -1
- package/es/chart/demo/data.d.ts +0 -11
- package/es/chart/demo/data.js +0 -37
|
@@ -8,8 +8,10 @@
|
|
|
8
8
|
&.small {
|
|
9
9
|
.ant-select-selector {
|
|
10
10
|
height: @inputHeight;
|
|
11
|
+
line-height: @inputHeight;
|
|
11
12
|
|
|
12
|
-
.ant-select-selection-item
|
|
13
|
+
.ant-select-selection-item,
|
|
14
|
+
.ant-select-selection-placeholder {
|
|
13
15
|
line-height: @inputHeight;
|
|
14
16
|
}
|
|
15
17
|
}
|
|
@@ -20,7 +22,8 @@
|
|
|
20
22
|
height: @inputHeightNormal;
|
|
21
23
|
line-height: @inputHeightNormal;
|
|
22
24
|
|
|
23
|
-
.ant-select-selection-item
|
|
25
|
+
.ant-select-selection-item,
|
|
26
|
+
.ant-select-selection-placeholder {
|
|
24
27
|
line-height: @inputHeightNormal;
|
|
25
28
|
}
|
|
26
29
|
}
|
|
@@ -29,8 +32,10 @@
|
|
|
29
32
|
&.large {
|
|
30
33
|
.ant-select-selector {
|
|
31
34
|
height: @inputHeightLarge;
|
|
35
|
+
line-height: @inputHeightLarge;
|
|
32
36
|
|
|
33
|
-
.ant-select-selection-item
|
|
37
|
+
.ant-select-selection-item,
|
|
38
|
+
.ant-select-selection-placeholder {
|
|
34
39
|
line-height: @inputHeightLarge;
|
|
35
40
|
}
|
|
36
41
|
}
|
|
@@ -54,6 +59,35 @@
|
|
|
54
59
|
}
|
|
55
60
|
}
|
|
56
61
|
|
|
62
|
+
&:not(.ant-select-customize-input).biz-borderless {
|
|
63
|
+
.ant-select-selector {
|
|
64
|
+
background-color: @grayColor;
|
|
65
|
+
border-color: @grayColor;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.ant-select-arrow {
|
|
69
|
+
display: none;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&.ant-select-focused:not(.ant-select-disabled, .biz-borderless),
|
|
73
|
+
&:not(.ant-select-disabled, .ant-select-customize-input, .biz-borderless):hover {
|
|
74
|
+
.ant-select-selector {
|
|
75
|
+
color: @themeColor;
|
|
76
|
+
background: @hoverBgColor;
|
|
77
|
+
border-color: @hoverBgColor;
|
|
78
|
+
box-shadow: none;
|
|
79
|
+
|
|
80
|
+
.ant-select-selection-item {
|
|
81
|
+
color: @themeColor;
|
|
82
|
+
|
|
83
|
+
span {
|
|
84
|
+
color: @themeColor;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
57
91
|
&:not(.ant-select-customize-input) .ant-select-selector {
|
|
58
92
|
padding: @inputPadding;
|
|
59
93
|
background-color: #fff;
|
|
@@ -66,19 +100,23 @@
|
|
|
66
100
|
&.ant-select-borderless:hover,
|
|
67
101
|
&.ant-select-borderless.ant-select-focused:not(.ant-select-disabled) {
|
|
68
102
|
.ant-select-selector {
|
|
69
|
-
color: @themeColor
|
|
103
|
+
color: @themeColor;
|
|
70
104
|
background: @hoverBgColor;
|
|
71
105
|
border-color: transparent;
|
|
72
106
|
box-shadow: none;
|
|
73
107
|
|
|
74
108
|
.ant-select-selection-item {
|
|
75
109
|
color: @themeColor;
|
|
110
|
+
|
|
111
|
+
span {
|
|
112
|
+
color: @themeColor;
|
|
113
|
+
}
|
|
76
114
|
}
|
|
77
115
|
}
|
|
78
116
|
|
|
79
117
|
.ant-select-arrow {
|
|
80
118
|
display: inline-block;
|
|
81
|
-
color: @themeColor;
|
|
119
|
+
color: @themeColor !important;
|
|
82
120
|
}
|
|
83
121
|
}
|
|
84
122
|
}
|
|
@@ -96,22 +134,22 @@
|
|
|
96
134
|
|
|
97
135
|
/* Select-下拉框样式重构 */
|
|
98
136
|
.ant-select-dropdown {
|
|
99
|
-
width: @dropdownWidth
|
|
100
|
-
max-height: @dropdownHeight
|
|
101
|
-
padding: @dropdownPadding;
|
|
102
|
-
border-radius: @boxRadius2;
|
|
103
|
-
box-shadow: @boxShadow;
|
|
137
|
+
width: @dropdownWidth;
|
|
138
|
+
max-height: @dropdownHeight;
|
|
139
|
+
padding: @dropdownPadding !important;
|
|
140
|
+
border-radius: @boxRadius2 !important;
|
|
141
|
+
box-shadow: @boxShadow !important;
|
|
104
142
|
|
|
105
143
|
&.small {
|
|
106
|
-
width: @dropdownWidth2
|
|
144
|
+
width: @dropdownWidth2;
|
|
107
145
|
}
|
|
108
146
|
}
|
|
109
147
|
|
|
110
148
|
.ant-dropdown-menu {
|
|
111
149
|
width: @dropdownWidth2;
|
|
112
|
-
padding: @dropdownPadding;
|
|
113
|
-
border-radius: @boxRadius2;
|
|
114
|
-
box-shadow: @boxShadow;
|
|
150
|
+
padding: @dropdownPadding !important;
|
|
151
|
+
border-radius: @boxRadius2 !important;
|
|
152
|
+
box-shadow: @boxShadow !important;
|
|
115
153
|
}
|
|
116
154
|
|
|
117
155
|
.ant-dropdown.large {
|
|
@@ -155,19 +193,19 @@
|
|
|
155
193
|
.ant-dropdown-menu-item,
|
|
156
194
|
.ant-dropdown-menu-submenu-vertical,
|
|
157
195
|
.ant-cascader-menu-item {
|
|
158
|
-
height: @selectItemHeight;
|
|
159
|
-
padding: @selectItemPadding;
|
|
196
|
+
height: @selectItemHeight !important;
|
|
197
|
+
padding: @selectItemPadding !important;
|
|
160
198
|
color: @fontColor;
|
|
161
199
|
font-weight: @fontWeight;
|
|
162
200
|
font-size: @fontSize;
|
|
163
201
|
line-height: 20px;
|
|
164
|
-
border-radius: @boxRadius2;
|
|
202
|
+
border-radius: @boxRadius2 !important;
|
|
165
203
|
}
|
|
166
204
|
|
|
167
205
|
.ant-select-item-option-active:not(.ant-select-item-option-disabled),
|
|
168
206
|
.ant-cascader-menu-item:not(.ant-cascader-menu-item-disabled, .ant-cascader-menu-item-active):hover {
|
|
169
|
-
color: @hoverColor;
|
|
170
|
-
background-color: @hoverBgColor;
|
|
207
|
+
color: @hoverColor !important;
|
|
208
|
+
background-color: @hoverBgColor !important;
|
|
171
209
|
|
|
172
210
|
.biz-icon {
|
|
173
211
|
color: @hoverColor;
|
|
@@ -176,9 +214,9 @@
|
|
|
176
214
|
|
|
177
215
|
.ant-select-item-option-selected:not(.ant-select-item-option-disabled),
|
|
178
216
|
.ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled) {
|
|
179
|
-
color: @activeColor;
|
|
180
|
-
font-weight: @fontWeight;
|
|
181
|
-
background-color: @activeBgColor;
|
|
217
|
+
color: @activeColor !important;
|
|
218
|
+
font-weight: @fontWeight !important;
|
|
219
|
+
background-color: @activeBgColor !important;
|
|
182
220
|
|
|
183
221
|
.biz-icon {
|
|
184
222
|
color: @activeColor;
|
|
@@ -186,7 +224,7 @@
|
|
|
186
224
|
}
|
|
187
225
|
|
|
188
226
|
.ant-select-item-option-disabled {
|
|
189
|
-
color: @disableColor;
|
|
227
|
+
color: @disableColor !important;
|
|
190
228
|
background: #fff;
|
|
191
229
|
}
|
|
192
230
|
|
|
@@ -197,8 +235,8 @@
|
|
|
197
235
|
}
|
|
198
236
|
|
|
199
237
|
.ant-cascader-menu-item-active:not(.ant-cascader-menu-item-disabled):hover {
|
|
200
|
-
color: @activeColor;
|
|
201
|
-
background-color: @activeBgColor;
|
|
238
|
+
color: @activeColor !important;
|
|
239
|
+
background-color: @activeBgColor !important;
|
|
202
240
|
}
|
|
203
241
|
|
|
204
242
|
.ant-dropdown-menu-item {
|
|
@@ -219,11 +257,11 @@
|
|
|
219
257
|
/* input-search/clear */
|
|
220
258
|
|
|
221
259
|
.ant-input-affix-wrapper {
|
|
222
|
-
height: 40px;
|
|
223
|
-
line-height: 40px;
|
|
224
|
-
background-color: @grayColor;
|
|
225
|
-
border-color: transparent;
|
|
226
|
-
border-radius: @boxRadius;
|
|
260
|
+
height: 40px !important;
|
|
261
|
+
line-height: 40px !important;
|
|
262
|
+
background-color: @grayColor !important;
|
|
263
|
+
border-color: transparent !important;
|
|
264
|
+
border-radius: @boxRadius !important;
|
|
227
265
|
|
|
228
266
|
&.biz-search-box {
|
|
229
267
|
margin-bottom: 12px;
|
|
@@ -233,23 +271,23 @@
|
|
|
233
271
|
.ant-input {
|
|
234
272
|
height: 100%;
|
|
235
273
|
padding: 0;
|
|
236
|
-
background-color: transparent;
|
|
274
|
+
background-color: transparent !important;
|
|
237
275
|
border: none;
|
|
238
276
|
outline: none;
|
|
239
277
|
box-shadow: none;
|
|
240
278
|
}
|
|
241
279
|
|
|
242
280
|
&:not(.ant-input-affix-wrapper-disabled):hover {
|
|
243
|
-
background-color: #fff;
|
|
244
|
-
border-color: @themeColor;
|
|
245
|
-
box-shadow: 0 0 0 4px #e8efff;
|
|
281
|
+
background-color: #fff !important;
|
|
282
|
+
border-color: @themeColor !important;
|
|
283
|
+
box-shadow: 0 0 0 4px #e8efff !important;
|
|
246
284
|
}
|
|
247
285
|
|
|
248
286
|
&:focus,
|
|
249
287
|
&.ant-input-affix-wrapper-focused {
|
|
250
|
-
background: #fff;
|
|
251
|
-
border-color: @themeColor;
|
|
252
|
-
box-shadow: 0 0 0 4px #e8efff;
|
|
288
|
+
background: #fff !important;
|
|
289
|
+
border-color: @themeColor !important;
|
|
290
|
+
box-shadow: 0 0 0 4px #e8efff !important;
|
|
253
291
|
}
|
|
254
292
|
|
|
255
293
|
.ant-input-suffix span {
|
|
@@ -303,8 +341,7 @@
|
|
|
303
341
|
}
|
|
304
342
|
}
|
|
305
343
|
|
|
306
|
-
.biz-
|
|
307
|
-
// .ant-form-vertical .ant-form-item-label {
|
|
344
|
+
.biz-title {
|
|
308
345
|
margin-bottom: 12px;
|
|
309
346
|
padding: 0 !important;
|
|
310
347
|
color: @titleColor;
|
|
@@ -430,3 +467,7 @@
|
|
|
430
467
|
.ant-radio-button-wrapper-checked:not([class*=' ant-radio-button-wrapper-disabled']).ant-radio-button-wrapper:first-child {
|
|
431
468
|
border-right-color: @themeColor;
|
|
432
469
|
}
|
|
470
|
+
|
|
471
|
+
.mb-12 {
|
|
472
|
+
margin-bottom: 12px;
|
|
473
|
+
}
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
/* 下拉框外框 */
|
|
76
76
|
@dropdownPadding: 8px;
|
|
77
77
|
/* padding */
|
|
78
|
-
@
|
|
79
|
-
@
|
|
78
|
+
@searchPadding: 24px;
|
|
79
|
+
@contentPadding: 32px;
|
|
80
80
|
@inputPadding: 0px 8px;
|
|
81
81
|
/* 边框圆角 */
|
|
82
82
|
@boxRadius: 4px;
|
|
@@ -115,6 +115,9 @@
|
|
|
115
115
|
.biz-icon {
|
|
116
116
|
color: @activeColor;
|
|
117
117
|
}
|
|
118
|
+
.biz-light-height {
|
|
119
|
+
color: #fff;
|
|
120
|
+
}
|
|
118
121
|
}
|
|
119
122
|
|
|
120
123
|
.box-disabled {
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
var _excluded = ["className", "type"];
|
|
2
|
+
|
|
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
|
+
|
|
5
|
+
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; }
|
|
6
|
+
|
|
7
|
+
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; }
|
|
8
|
+
|
|
9
|
+
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; }
|
|
10
|
+
|
|
11
|
+
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; }
|
|
12
|
+
|
|
13
|
+
import React, { useMemo } from 'react';
|
|
14
|
+
import '../assets/iconfont/iconfont.css';
|
|
15
|
+
|
|
16
|
+
var IconFont = function IconFont(props) {
|
|
17
|
+
var _props$className = props.className,
|
|
18
|
+
className = _props$className === void 0 ? '' : _props$className,
|
|
19
|
+
type = props.type,
|
|
20
|
+
rest = _objectWithoutProperties(props, _excluded);
|
|
21
|
+
|
|
22
|
+
var iconClassName = useMemo(function () {
|
|
23
|
+
return "bsicon ".concat(className, " bs").concat(type);
|
|
24
|
+
}, [className, type]);
|
|
25
|
+
return /*#__PURE__*/React.createElement("span", _objectSpread({
|
|
26
|
+
className: iconClassName
|
|
27
|
+
}, rest));
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export default IconFont;
|
|
@@ -12,7 +12,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
12
12
|
|
|
13
13
|
import React, { useState } from 'react';
|
|
14
14
|
import { Button, Form } from 'antd';
|
|
15
|
-
import { BizDatePicker } from 'business-lib';
|
|
15
|
+
import { BizDatePicker } from '@zgfe/business-lib';
|
|
16
16
|
export default (function () {
|
|
17
17
|
var _Form$useForm = Form.useForm(),
|
|
18
18
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
@@ -10,7 +10,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
10
10
|
|
|
11
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
12
|
|
|
13
|
-
import { BizDatePicker } from 'business-lib';
|
|
13
|
+
import { BizDatePicker } from '@zgfe/business-lib';
|
|
14
14
|
import React, { useState } from 'react';
|
|
15
15
|
export default (function () {
|
|
16
16
|
var _useState = useState({}),
|
package/es/datePicker/index.js
CHANGED
|
@@ -16,15 +16,16 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
16
16
|
|
|
17
17
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
18
18
|
|
|
19
|
-
import { DatePicker
|
|
19
|
+
import { DatePicker } from 'antd';
|
|
20
20
|
import React, { useEffect, useState } from 'react';
|
|
21
|
-
import
|
|
21
|
+
import IconFont from '../components/iconFont';
|
|
22
22
|
import { dateType, dateList } from './data';
|
|
23
23
|
import util from '../utils/util';
|
|
24
24
|
import './index.less';
|
|
25
25
|
import moment from 'moment';
|
|
26
26
|
import 'moment/locale/zh-cn';
|
|
27
27
|
import locale from 'antd/es/date-picker/locale/zh_CN';
|
|
28
|
+
import BizSelect from '../select';
|
|
28
29
|
var RangePicker = DatePicker.RangePicker;
|
|
29
30
|
|
|
30
31
|
var BizDatePicker = function BizDatePicker(props) {
|
|
@@ -137,17 +138,13 @@ var BizDatePicker = function BizDatePicker(props) {
|
|
|
137
138
|
|
|
138
139
|
return /*#__PURE__*/React.createElement("div", {
|
|
139
140
|
className: "biz-date-container"
|
|
140
|
-
}, /*#__PURE__*/React.createElement(
|
|
141
|
-
className: "biz-
|
|
142
|
-
}, /*#__PURE__*/React.createElement(Select, {
|
|
141
|
+
}, /*#__PURE__*/React.createElement(BizSelect, {
|
|
142
|
+
className: "biz-date-type",
|
|
143
143
|
defaultValue: currentType,
|
|
144
144
|
options: dateType,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
showArrow: false,
|
|
148
|
-
bordered: false,
|
|
145
|
+
dropdownSize: "small",
|
|
146
|
+
size: "small",
|
|
149
147
|
onChange: function onChange(operate) {
|
|
150
|
-
console.log(operate);
|
|
151
148
|
setCurrentType(function () {
|
|
152
149
|
return operate;
|
|
153
150
|
});
|
|
@@ -155,10 +152,7 @@ var BizDatePicker = function BizDatePicker(props) {
|
|
|
155
152
|
return dateList[operate][0];
|
|
156
153
|
});
|
|
157
154
|
}
|
|
158
|
-
}), /*#__PURE__*/React.createElement(
|
|
159
|
-
className: "biz-select-zhankai",
|
|
160
|
-
type: 'icon-xiangxia'
|
|
161
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
155
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
162
156
|
className: "biz-date-list"
|
|
163
157
|
}, dateList[currentType].map(function (item, index) {
|
|
164
158
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -179,7 +173,6 @@ var BizDatePicker = function BizDatePicker(props) {
|
|
|
179
173
|
dropdownClassName: "biz-date-ant-picker",
|
|
180
174
|
locale: locale,
|
|
181
175
|
showToday: false,
|
|
182
|
-
// mode={'date'}
|
|
183
176
|
disabledDate: disabledDate,
|
|
184
177
|
placement: 'bottomRight',
|
|
185
178
|
placeholder: "\u81EA\u5B9A\u4E49",
|
package/es/datePicker/index.less
CHANGED
|
@@ -1,29 +1,11 @@
|
|
|
1
|
-
@import '../commonStyle/
|
|
1
|
+
@import '../commonStyle/variable.less';
|
|
2
2
|
|
|
3
3
|
.biz-date-container {
|
|
4
4
|
display: flex;
|
|
5
5
|
justify-content: flex-start;
|
|
6
6
|
|
|
7
|
-
.biz-
|
|
8
|
-
flex: none;
|
|
7
|
+
.biz-date-type {
|
|
9
8
|
width: 88px;
|
|
10
|
-
border: 1px solid #ecedf0;
|
|
11
|
-
|
|
12
|
-
.biz-date-type {
|
|
13
|
-
width: 88px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.biz-select-zhankai {
|
|
17
|
-
display: block;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.ant-select-single.ant-select-open {
|
|
21
|
-
&,
|
|
22
|
-
& + .biz-select-zhankai,
|
|
23
|
-
.ant-select-selection-item {
|
|
24
|
-
.box-hover();
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
9
|
}
|
|
28
10
|
|
|
29
11
|
.biz-date-list {
|
|
@@ -65,14 +47,6 @@
|
|
|
65
47
|
}
|
|
66
48
|
}
|
|
67
49
|
|
|
68
|
-
.biz-date-dropdown {
|
|
69
|
-
.ant-select-item {
|
|
70
|
-
height: 32px;
|
|
71
|
-
padding: 6px 8px;
|
|
72
|
-
font-weight: 400;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
50
|
.biz-date-picker {
|
|
77
51
|
position: relative;
|
|
78
52
|
|
|
@@ -98,6 +72,7 @@
|
|
|
98
72
|
text-align: center;
|
|
99
73
|
cursor: pointer;
|
|
100
74
|
}
|
|
75
|
+
|
|
101
76
|
.ant-picker-suffix {
|
|
102
77
|
color: @iconColor;
|
|
103
78
|
}
|
|
@@ -113,6 +88,7 @@
|
|
|
113
88
|
input {
|
|
114
89
|
color: @themeColor;
|
|
115
90
|
}
|
|
91
|
+
|
|
116
92
|
.ant-picker-suffix {
|
|
117
93
|
color: @themeColor;
|
|
118
94
|
}
|
|
@@ -11,7 +11,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
11
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
12
|
|
|
13
13
|
import React, { useEffect, useState } from 'react';
|
|
14
|
-
import
|
|
14
|
+
import IconFont from '../../components/iconFont';
|
|
15
15
|
import { typeMenus } from '../data/chart';
|
|
16
16
|
import './style/list.less';
|
|
17
17
|
|
|
@@ -23,7 +23,8 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
23
23
|
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; }
|
|
24
24
|
|
|
25
25
|
import React, { useEffect, useState } from 'react';
|
|
26
|
-
import { BizSelect
|
|
26
|
+
import { BizSelect } from '../..';
|
|
27
|
+
import IconFont from '../../components/iconFont';
|
|
27
28
|
import { Input } from 'antd';
|
|
28
29
|
import '../style/index.less';
|
|
29
30
|
|
|
@@ -50,7 +51,17 @@ var BizSelectToInput = function BizSelectToInput(props) {
|
|
|
50
51
|
selectValue = _useState4[0],
|
|
51
52
|
setSelectValue = _useState4[1];
|
|
52
53
|
|
|
54
|
+
var _useState5 = useState(true),
|
|
55
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
56
|
+
isFirst = _useState6[0],
|
|
57
|
+
setIsFirst = _useState6[1];
|
|
58
|
+
|
|
53
59
|
useEffect(function () {
|
|
60
|
+
if (isFirst) {
|
|
61
|
+
setIsFirst(false);
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
|
|
54
65
|
onChangeType && onChangeType(isSelect);
|
|
55
66
|
|
|
56
67
|
if (isSelect) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import '../../../commonStyle/
|
|
1
|
+
@import '../../../commonStyle/variable.less';
|
|
2
2
|
|
|
3
3
|
.biz-tab-container {
|
|
4
4
|
display: flex;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
.biz-icon {
|
|
17
17
|
margin-right: 7px;
|
|
18
|
-
color: @
|
|
18
|
+
color: @fontColor3;
|
|
19
19
|
font-size: 18px;
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -11,7 +11,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
11
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
12
|
|
|
13
13
|
import React, { useState } from 'react';
|
|
14
|
-
import
|
|
14
|
+
import IconFont from '../../components/iconFont';
|
|
15
15
|
import { chartTypes } from '../data/chart';
|
|
16
16
|
import './style/tab.less';
|
|
17
17
|
|
package/es/dialog/demo/index.js
CHANGED
|
@@ -17,7 +17,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
17
17
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
18
18
|
|
|
19
19
|
import React, { useState } from 'react';
|
|
20
|
-
import { BizDialog } from 'business-lib';
|
|
20
|
+
import { BizDialog } from '@zgfe/business-lib';
|
|
21
21
|
import { Button } from 'antd';
|
|
22
22
|
var options = ['分类一', '分类二', '分类三'];
|
|
23
23
|
var chartTypes = ['趋势图', '汇总图', '地图'];
|
package/es/dialog/demo/index2.js
CHANGED
|
@@ -17,7 +17,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
17
17
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
18
18
|
|
|
19
19
|
import React, { useState } from 'react';
|
|
20
|
-
import { BizDialog } from 'business-lib';
|
|
20
|
+
import { BizDialog } from '@zgfe/business-lib';
|
|
21
21
|
import { Button } from 'antd';
|
|
22
22
|
var options = ['分类一', '分类二', '分类三'];
|
|
23
23
|
var fields = [{
|
|
@@ -37,9 +37,27 @@ var fields = [{
|
|
|
37
37
|
required: true,
|
|
38
38
|
message: '请输入场景名称'
|
|
39
39
|
}]
|
|
40
|
+
}, {
|
|
41
|
+
label: '测试',
|
|
42
|
+
name: 'test',
|
|
43
|
+
type: 'select',
|
|
44
|
+
options: [{
|
|
45
|
+
label: '测试一',
|
|
46
|
+
value: 'test1'
|
|
47
|
+
}, {
|
|
48
|
+
label: '测试二',
|
|
49
|
+
value: 'test2'
|
|
50
|
+
}, {
|
|
51
|
+
label: '测试三',
|
|
52
|
+
value: 'test3'
|
|
53
|
+
}],
|
|
54
|
+
rules: [{
|
|
55
|
+
required: true,
|
|
56
|
+
message: '请选择测试'
|
|
57
|
+
}]
|
|
40
58
|
}];
|
|
41
59
|
var formData = {
|
|
42
|
-
|
|
60
|
+
test: 'test2'
|
|
43
61
|
};
|
|
44
62
|
export default (function () {
|
|
45
63
|
var _useState = useState(false),
|
package/es/dialog/demo/index3.js
CHANGED
|
@@ -17,7 +17,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
17
17
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
18
18
|
|
|
19
19
|
import React, { useState } from 'react';
|
|
20
|
-
import { BizDialog } from 'business-lib';
|
|
20
|
+
import { BizDialog } from '@zgfe/business-lib';
|
|
21
21
|
import { Button } from 'antd';
|
|
22
22
|
var fields = [{
|
|
23
23
|
label: '创建指标',
|
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
.biz-dialog {
|
|
22
22
|
.ant-select:not(.ant-select-customize-input) {
|
|
23
23
|
.ant-select-selector {
|
|
24
|
+
height: @inputHeightNormal;
|
|
25
|
+
line-height: @inputHeightNormal;
|
|
24
26
|
background-color: @grayColor;
|
|
25
27
|
border-color: @grayColor;
|
|
26
28
|
}
|
|
@@ -39,9 +41,13 @@
|
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
43
|
|
|
42
|
-
.ant-form-item-label > label {
|
|
44
|
+
&.ant-form-horizontal .ant-form-item-label > label {
|
|
43
45
|
height: 40px;
|
|
44
46
|
}
|
|
47
|
+
&.ant-form-vertical .ant-form-item-label {
|
|
48
|
+
margin-bottom: 12px;
|
|
49
|
+
color: @titleColor;
|
|
50
|
+
}
|
|
45
51
|
}
|
|
46
52
|
|
|
47
53
|
.ant-modal-footer {
|
|
@@ -12,7 +12,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
12
12
|
|
|
13
13
|
import { Button, Form } from 'antd';
|
|
14
14
|
import React, { useState } from 'react';
|
|
15
|
-
import { BizEventSelector } from 'business-lib';
|
|
15
|
+
import { BizEventSelector } from '@zgfe/business-lib';
|
|
16
16
|
var cascadeOptions = [{
|
|
17
17
|
value: 1,
|
|
18
18
|
label: '整体',
|
|
@@ -11,7 +11,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
11
11
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
12
|
|
|
13
13
|
import React, { useState } from 'react';
|
|
14
|
-
import { BizEventSelector } from 'business-lib';
|
|
14
|
+
import { BizEventSelector } from '@zgfe/business-lib';
|
|
15
15
|
var cascadeOptions = [{
|
|
16
16
|
value: 1,
|
|
17
17
|
label: '整体',
|
|
@@ -33,10 +33,11 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
33
33
|
*/
|
|
34
34
|
import { Input, List, Skeleton } from 'antd';
|
|
35
35
|
import React, { useContext, useEffect, useRef, useState } from 'react';
|
|
36
|
-
import './cascade.less';
|
|
37
36
|
import InfiniteScroll from 'react-infinite-scroll-component';
|
|
38
|
-
import { BizGlobalDataContext
|
|
37
|
+
import { BizGlobalDataContext } from '..';
|
|
38
|
+
import IconFont from '../components/iconFont';
|
|
39
39
|
import { util } from '../utils';
|
|
40
|
+
import './index.less';
|
|
40
41
|
|
|
41
42
|
var BizEventSelector = function BizEventSelector(props) {
|
|
42
43
|
var aliasName = props.aliasName,
|
|
@@ -272,17 +273,6 @@ var BizEventSelector = function BizEventSelector(props) {
|
|
|
272
273
|
setEventData([].concat(_toConsumableArray(eventData), _toConsumableArray(arr)));
|
|
273
274
|
};
|
|
274
275
|
|
|
275
|
-
var setHeighLight = function setHeighLight(value) {
|
|
276
|
-
if (!searchValue) return value; // const num = value.indexOf(searchValue)
|
|
277
|
-
// const c = num > -1 ? value.substr(num, searchValue.length) : ''
|
|
278
|
-
// console.log(num,c)
|
|
279
|
-
|
|
280
|
-
var val = "<span style=\"color:#FF6600;\">".concat(searchValue, "</span>");
|
|
281
|
-
var regS = new RegExp(searchValue, 'gi');
|
|
282
|
-
console.log('regS', regS, searchValue, val);
|
|
283
|
-
return value.replace(regS, val);
|
|
284
|
-
};
|
|
285
|
-
|
|
286
276
|
return /*#__PURE__*/React.createElement("div", {
|
|
287
277
|
className: "biz-select-cotainer biz-select-hover",
|
|
288
278
|
ref: cascadeRef
|