@zgfe/business-lib 1.0.0-beta.6 → 1.0.3
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 +4 -1
- package/es/analysisLayout/index.d.ts +1 -28
- package/es/analysisLayout/index.js +38 -48
- package/es/analysisLayout/index.less +1 -1
- package/es/assets/styles/chunks.less +143 -0
- package/es/assets/styles/inner.less +3 -0
- package/es/assets/styles/resetAntd.less +398 -0
- package/es/assets/styles/variable.less +21 -0
- package/es/assets/theme.d.ts +5 -0
- package/es/assets/theme.js +4 -0
- package/es/attrConditions/components/operateList.d.ts +8 -0
- package/es/attrConditions/components/operateList.js +83 -0
- package/es/attrConditions/components/stringList.d.ts +9 -0
- package/es/attrConditions/components/stringList.js +168 -0
- package/es/attrConditions/components/valuesList.d.ts +10 -0
- package/es/attrConditions/components/valuesList.js +188 -0
- package/es/{attributeSelector/demo/multi.d.ts → attrConditions/demo/group.d.ts} +0 -0
- package/es/attrConditions/demo/group.js +82 -0
- package/es/{globalAttributes → attrConditions}/demo/index.d.ts +0 -0
- package/es/{datePicker/demo/form.js → attrConditions/demo/index.js} +43 -23
- package/es/attrConditions/group.d.ts +5 -0
- package/es/attrConditions/group.js +183 -0
- package/es/attrConditions/index.d.ts +6 -0
- package/es/attrConditions/index.js +160 -0
- package/es/attrConditions/styles/group.less +49 -0
- package/es/attrConditions/styles/index.less +94 -0
- package/es/attrConditions/types.d.ts +63 -0
- package/es/attrConditions/types.js +19 -0
- package/es/attrConditions/utils/operates.d.ts +16 -0
- package/es/attrConditions/utils/operates.js +67 -0
- package/es/attributeSelector/demo/index.d.ts +3 -0
- package/es/attributeSelector/demo/{singleForm.js → index.js} +42 -44
- package/es/attributeSelector/index.d.ts +4 -111
- package/es/attributeSelector/index.js +88 -543
- package/es/attributeSelector/listPanel.d.ts +4 -0
- package/es/attributeSelector/listPanel.js +208 -0
- package/es/attributeSelector/option.d.ts +15 -0
- package/es/attributeSelector/option.js +53 -0
- package/es/attributeSelector/styles/index.less +100 -0
- package/es/attributeSelector/types.d.ts +79 -0
- package/es/attributeSelector/types.js +15 -0
- package/es/attributeSelector/util.d.ts +7 -0
- package/es/attributeSelector/util.js +69 -0
- package/es/chart/demo/pie.js +1 -0
- package/es/chart/index.d.ts +2 -96
- package/es/chart/index.js +28 -35
- package/es/chart/styles/index.less +50 -0
- package/es/chart/types.d.ts +46 -0
- package/es/chart/{type.js → types.js} +0 -0
- package/es/chart/util/{chartConfig.d.ts → chartOptionConfig.d.ts} +4 -35
- package/es/chart/util/{chartConfig.js → chartOptionConfig.js} +45 -111
- package/es/chart/util/formatData.d.ts +3 -7
- package/es/chart/util/formatData.js +47 -26
- package/es/chart/util/formatOption.d.ts +2 -1
- package/es/chart/util/formatOption.js +22 -9
- package/es/chart/util/mapUtil.d.ts +3 -3
- package/es/chart/util/mapUtil.js +9 -19
- package/es/commonStyle/icon.less +116 -112
- package/es/commonStyle/select.less +1 -1
- package/es/commonStyle/theme.less +520 -473
- package/es/components/iconFont.js +4 -2
- package/es/context/index.d.ts +16 -0
- package/es/context/index.js +3 -0
- package/es/datePicker/datePicker.d.ts +10 -0
- package/es/datePicker/datePicker.js +115 -0
- package/es/datePicker/demo/index.d.ts +1 -0
- package/es/datePicker/demo/index.js +9 -2
- package/es/datePicker/index.d.ts +4 -27
- package/es/datePicker/index.js +72 -148
- package/es/datePicker/styles/index.less +48 -0
- package/es/datePicker/types.d.ts +24 -0
- package/es/{eventSelector/type.js → datePicker/types.js} +0 -0
- package/es/datePicker/utils.d.ts +6 -0
- package/es/datePicker/utils.js +70 -0
- package/es/dialog/components/itemNode.d.ts +10 -0
- package/es/dialog/components/itemNode.js +109 -0
- package/es/dialog/components/list.d.ts +3 -13
- package/es/dialog/components/list.js +15 -12
- package/es/dialog/components/selectToInput.d.ts +4 -48
- package/es/dialog/components/selectToInput.js +74 -80
- package/es/dialog/components/styles/handle.less +39 -0
- package/es/dialog/components/styles/list.less +60 -0
- package/es/dialog/components/styles/tab.less +55 -0
- package/es/dialog/components/tab.d.ts +3 -7
- package/es/dialog/components/tab.js +57 -19
- package/es/dialog/data/{chart.d.ts → data.d.ts} +9 -0
- package/es/dialog/data/{chart.js → data.js} +11 -0
- package/es/dialog/demo/index.d.ts +23 -0
- package/es/dialog/demo/index.js +34 -3
- package/es/dialog/demo/index2.js +14 -2
- package/es/dialog/index.d.ts +4 -97
- package/es/dialog/index.js +54 -109
- package/es/dialog/styles/index.less +11 -0
- package/es/dialog/types.d.ts +77 -0
- package/es/{targetConditionGroup/type.js → dialog/types.js} +0 -0
- package/es/eventSelector/demo/index.js +26 -44
- package/es/eventSelector/index.d.ts +4 -30
- package/es/eventSelector/index.js +90 -416
- package/es/eventSelector/listPanel.d.ts +4 -0
- package/es/eventSelector/listPanel.js +197 -0
- package/es/eventSelector/option.d.ts +17 -0
- package/es/eventSelector/option.js +54 -0
- package/es/eventSelector/styles/index.less +77 -0
- package/es/eventSelector/types.d.ts +31 -0
- package/es/eventSelector/types.js +1 -0
- package/es/index.d.ts +14 -11
- package/es/index.js +9 -11
- package/es/{attributeSelector/data → mock}/env.d.ts +0 -0
- package/es/{attributeSelector/data → mock}/env.js +0 -0
- package/es/{attributeSelector/data → mock}/event.d.ts +0 -0
- package/es/{attributeSelector/data → mock}/event.js +0 -0
- package/es/{attributeSelector/data → mock}/user.d.ts +0 -0
- package/es/{attributeSelector/data → mock}/user.js +0 -0
- package/es/{multipleSelector → searchInput}/demo/index.d.ts +0 -0
- package/es/searchInput/demo/index.js +5 -0
- package/es/searchInput/index.d.ts +8 -0
- package/es/searchInput/index.js +31 -0
- package/es/{attributeSelector/demo/multiForm.d.ts → select/demo/group.d.ts} +0 -0
- package/es/{globalAttributes/demo/index.js → select/demo/group.js} +49 -31
- package/es/select/demo/index.js +49 -21
- package/es/{attributeSelector/demo/single.d.ts → select/demo/multiple.d.ts} +0 -0
- package/es/{multipleSelector/demo/index.js → select/demo/multiple.js} +55 -12
- package/es/select/handle.d.ts +5 -0
- package/es/select/handle.js +119 -0
- package/es/select/index.d.ts +4 -49
- package/es/select/index.js +168 -122
- package/es/select/option.d.ts +4 -0
- package/es/select/option.js +59 -0
- package/es/select/overlay.d.ts +4 -0
- package/es/select/overlay.js +154 -0
- package/es/select/styles/handle.less +111 -0
- package/es/select/styles/index.less +99 -0
- package/es/select/types.d.ts +65 -0
- package/es/select/types.js +1 -0
- package/es/table/demo/data/table.js +1 -1
- package/es/table/demo/index.d.ts +1 -1
- package/es/table/demo/index.js +9 -8
- package/es/table/demo/index3.js +9 -18
- package/es/table/index.d.ts +4 -30
- package/es/table/index.js +30 -26
- package/es/table/styles/index.less +5 -0
- package/es/table/type.d.ts +10 -0
- package/es/table/type.js +1 -0
- package/es/targetConditionGroup/components/targetDimension.d.ts +8 -0
- package/es/targetConditionGroup/components/targetDimension.js +153 -0
- package/es/targetConditionGroup/data/operates.d.ts +8 -24
- package/es/targetConditionGroup/data/operates.js +26 -69
- package/es/targetConditionGroup/demo/group.d.ts +1 -0
- package/es/targetConditionGroup/demo/group.js +108 -23
- package/es/targetConditionGroup/demo/index.js +34 -34
- package/es/targetConditionGroup/demo/styles/index.less +29 -0
- package/es/targetConditionGroup/index.d.ts +4 -57
- package/es/targetConditionGroup/index.js +177 -274
- package/es/targetConditionGroup/styles/index.less +25 -0
- package/es/targetConditionGroup/types.d.ts +32 -0
- package/es/targetConditionGroup/types.js +1 -0
- package/es/targetSelector/demo/index.d.ts +1 -0
- package/es/targetSelector/demo/index.js +29 -71
- package/es/targetSelector/editBox.d.ts +8 -0
- package/es/targetSelector/{components/BizEventNameEditBox.js → editBox.js} +49 -24
- package/es/targetSelector/index.d.ts +5 -55
- package/es/targetSelector/index.js +103 -214
- package/es/targetSelector/optionIcon.d.ts +9 -0
- package/es/targetSelector/optionIcon.js +24 -0
- package/es/targetSelector/optionMenu.d.ts +7 -0
- package/es/targetSelector/optionMenu.js +38 -0
- package/es/targetSelector/styles/index.less +88 -0
- package/es/targetSelector/types.d.ts +18 -0
- package/es/targetSelector/types.js +1 -0
- package/es/userCondition/conditionTypeList.d.ts +10 -0
- package/es/userCondition/conditionTypeList.js +43 -0
- package/es/userCondition/conditionWrap.d.ts +7 -0
- package/es/userCondition/conditionWrap.js +18 -0
- package/es/userCondition/conditions/eventCondition.d.ts +8 -0
- package/es/userCondition/conditions/eventCondition.js +104 -0
- package/es/userCondition/conditions/periodCondition.d.ts +11 -0
- package/es/userCondition/conditions/periodCondition.js +156 -0
- package/es/userCondition/conditions/propCondition.d.ts +11 -0
- package/es/userCondition/conditions/propCondition.js +147 -0
- package/es/userCondition/conditions/runTimesCondition.d.ts +9 -0
- package/es/userCondition/conditions/runTimesCondition.js +78 -0
- package/es/userCondition/conditions/styles/eventCondition.less +49 -0
- package/es/userCondition/conditions/styles/periodCondition.less +14 -0
- package/es/userCondition/conditions/styles/propCondition.less +36 -0
- package/es/userCondition/conditions/styles/runTimesCondition.less +16 -0
- package/es/{attributeSelector/demo/singleForm.d.ts → userCondition/demo/index.d.ts} +0 -0
- package/es/userCondition/demo/index.js +97 -0
- package/es/userCondition/index.d.ts +7 -0
- package/es/userCondition/index.js +146 -0
- package/es/userCondition/orConditions.d.ts +5 -0
- package/es/userCondition/orConditions.js +202 -0
- package/es/userCondition/relationLabel.d.ts +6 -0
- package/es/userCondition/relationLabel.js +12 -0
- package/es/userCondition/styles/conditionTypeList.less +31 -0
- package/es/userCondition/styles/conditionWrap.less +14 -0
- package/es/userCondition/styles/index.less +13 -0
- package/es/userCondition/styles/orConditions.less +16 -0
- package/es/userCondition/styles/relationLabel.less +18 -0
- package/es/userCondition/types.d.ts +79 -0
- package/es/userCondition/types.js +1 -0
- package/es/userCondition/util.d.ts +2 -0
- package/es/userCondition/util.js +54 -0
- package/es/{datePicker/demo/form.d.ts → userGroup/demo/group.d.ts} +0 -0
- package/es/{targetConditionGroup/demo/form.js → userGroup/demo/group.js} +68 -72
- package/es/userGroup/demo/index.d.ts +0 -1
- package/es/userGroup/demo/index.js +5 -62
- package/es/userGroup/index.d.ts +3 -77
- package/es/userGroup/index.js +60 -108
- package/es/userGroup/styles/index.less +20 -0
- package/es/userGroup/types.d.ts +15 -0
- package/es/userGroup/types.js +1 -0
- package/es/utils/ajax.js +5 -20
- package/es/utils/type.d.ts +42 -44
- package/es/utils/util.d.ts +1 -35
- package/es/utils/util.js +27 -57
- package/package.json +11 -4
- package/es/attributeSelector/demo/multi.js +0 -39
- package/es/attributeSelector/demo/multiForm.js +0 -64
- package/es/attributeSelector/demo/single.js +0 -43
- package/es/attributeSelector/group.d.ts +0 -31
- package/es/attributeSelector/group.js +0 -225
- package/es/attributeSelector/index.less +0 -172
- package/es/chart/index.less +0 -38
- package/es/chart/style/circle.svg +0 -4
- package/es/chart/type.d.ts +0 -22
- package/es/datePicker/data.d.ts +0 -9
- package/es/datePicker/data.js +0 -65
- package/es/datePicker/index.less +0 -364
- package/es/dialog/components/style/list.less +0 -59
- package/es/dialog/components/style/tab.less +0 -61
- package/es/dialog/style/index.less +0 -86
- package/es/eventSelector/demo/form.d.ts +0 -2
- package/es/eventSelector/demo/form.js +0 -89
- package/es/eventSelector/demo/nodata.d.ts +0 -2
- package/es/eventSelector/demo/nodata.js +0 -13
- package/es/eventSelector/index.less +0 -121
- package/es/eventSelector/type.d.ts +0 -41
- package/es/globalAttributes/demo/data/env.d.ts +0 -11
- package/es/globalAttributes/demo/data/env.js +0 -181
- package/es/globalAttributes/demo/data/event.d.ts +0 -237
- package/es/globalAttributes/demo/data/event.js +0 -3483
- package/es/globalAttributes/demo/data/user.d.ts +0 -22
- package/es/globalAttributes/demo/data/user.js +0 -218
- package/es/globalAttributes/index.d.ts +0 -47
- package/es/globalAttributes/index.js +0 -112
- package/es/multipleSelector/index.d.ts +0 -36
- package/es/multipleSelector/index.js +0 -131
- package/es/multipleSelector/index.less +0 -136
- package/es/table/demo/index.less +0 -8
- package/es/table/index.less +0 -139
- package/es/targetConditionGroup/components/conditionGroup.d.ts +0 -30
- package/es/targetConditionGroup/components/conditionGroup.js +0 -112
- package/es/targetConditionGroup/components/conditionItem.d.ts +0 -47
- package/es/targetConditionGroup/components/conditionItem.js +0 -232
- package/es/targetConditionGroup/components/style/group.less +0 -47
- package/es/targetConditionGroup/components/style/index.less +0 -16
- package/es/targetConditionGroup/demo/data/env.d.ts +0 -11
- package/es/targetConditionGroup/demo/data/env.js +0 -181
- package/es/targetConditionGroup/demo/data/event.d.ts +0 -237
- package/es/targetConditionGroup/demo/data/event.js +0 -3483
- package/es/targetConditionGroup/demo/data/user.d.ts +0 -22
- package/es/targetConditionGroup/demo/data/user.js +0 -218
- package/es/targetConditionGroup/demo/form.d.ts +0 -2
- package/es/targetConditionGroup/demo/item.d.ts +0 -2
- package/es/targetConditionGroup/demo/item.js +0 -5
- package/es/targetConditionGroup/group.d.ts +0 -56
- package/es/targetConditionGroup/group.js +0 -204
- package/es/targetConditionGroup/index.less +0 -76
- package/es/targetConditionGroup/type.d.ts +0 -95
- package/es/targetSelector/components/BizCascadeBox.d.ts +0 -34
- package/es/targetSelector/components/BizCascadeBox.js +0 -213
- package/es/targetSelector/components/BizEventNameEditBox.d.ts +0 -20
- package/es/targetSelector/demo/form.d.ts +0 -2
- package/es/targetSelector/demo/form.js +0 -133
- package/es/targetSelector/demo/nodata.d.ts +0 -2
- package/es/targetSelector/demo/nodata.js +0 -13
- package/es/targetSelector/index.less +0 -28
- package/es/userGroup/demo/cluster.d.ts +0 -3
- package/es/userGroup/demo/cluster.js +0 -102
- package/es/userGroup/demo/index.less +0 -3
- package/es/userGroup/index.less +0 -2
- package/es/userGroup/userCluster.d.ts +0 -63
- package/es/userGroup/userCluster.js +0 -255
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { BizAnalysisLayout } from '@zgfe/business-lib';
|
|
3
|
+
import { Button } from 'antd';
|
|
3
4
|
import './index.less';
|
|
4
5
|
|
|
5
6
|
var LeftContent = function LeftContent() {
|
|
6
7
|
return /*#__PURE__*/React.createElement("div", {
|
|
7
8
|
className: "left-content"
|
|
8
|
-
}, "left"
|
|
9
|
+
}, "left", /*#__PURE__*/React.createElement(Button, {
|
|
10
|
+
type: "primary"
|
|
11
|
+
}, "\u6309\u94AE"));
|
|
9
12
|
};
|
|
10
13
|
|
|
11
14
|
var Footer = function Footer() {
|
|
@@ -1,40 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './index.less';
|
|
3
3
|
declare type AnalysisLayoutProps = {
|
|
4
|
-
/**
|
|
5
|
-
* @description 右侧内容模块
|
|
6
|
-
* @default -
|
|
7
|
-
*/
|
|
8
4
|
children?: React.ReactNode;
|
|
9
|
-
/**
|
|
10
|
-
* @description 左侧内容模块
|
|
11
|
-
* @default -
|
|
12
|
-
*/
|
|
13
5
|
leftPanel?: React.ReactNode;
|
|
14
|
-
/**
|
|
15
|
-
* @description 左侧底部内容模块
|
|
16
|
-
* @default -
|
|
17
|
-
*/
|
|
18
6
|
leftHandle?: React.ReactNode;
|
|
19
|
-
/**
|
|
20
|
-
* @description 是否固定
|
|
21
|
-
* @default false
|
|
22
|
-
*/
|
|
23
7
|
isFixed?: boolean | false;
|
|
24
|
-
|
|
25
|
-
* @description 左侧默认宽度
|
|
26
|
-
* @default 580
|
|
27
|
-
*/
|
|
8
|
+
className?: string;
|
|
28
9
|
defaultLeftWidth?: number;
|
|
29
|
-
/**
|
|
30
|
-
* @description 左侧最小宽度
|
|
31
|
-
* @default 320
|
|
32
|
-
*/
|
|
33
10
|
minWidthOfLeft?: number;
|
|
34
|
-
/**
|
|
35
|
-
* @description 左侧最大宽度
|
|
36
|
-
* @default 320
|
|
37
|
-
*/
|
|
38
11
|
maxWidthOfLeft?: number;
|
|
39
12
|
};
|
|
40
13
|
declare const BizAnalysisLayout: React.FC<AnalysisLayoutProps>;
|
|
@@ -21,12 +21,10 @@ var BizAnalysisLayout = function BizAnalysisLayout(props) {
|
|
|
21
21
|
leftHandle = props.leftHandle,
|
|
22
22
|
_props$isFixed = props.isFixed,
|
|
23
23
|
isFixed = _props$isFixed === void 0 ? false : _props$isFixed,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
_props$maxWidthOfLeft = props.maxWidthOfLeft,
|
|
29
|
-
maxWidthOfLeft = _props$maxWidthOfLeft === void 0 ? 580 : _props$maxWidthOfLeft;
|
|
24
|
+
defaultLeftWidth = props.defaultLeftWidth,
|
|
25
|
+
minWidthOfLeft = props.minWidthOfLeft,
|
|
26
|
+
maxWidthOfLeft = props.maxWidthOfLeft,
|
|
27
|
+
className = props.className;
|
|
30
28
|
|
|
31
29
|
var _useState = useState(defaultLeftWidth),
|
|
32
30
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -40,62 +38,53 @@ var BizAnalysisLayout = function BizAnalysisLayout(props) {
|
|
|
40
38
|
|
|
41
39
|
var initX = 0;
|
|
42
40
|
var isDrag = false;
|
|
41
|
+
useEffect(function () {
|
|
42
|
+
return function () {
|
|
43
|
+
document.removeEventListener('mouseup', onMouseUp);
|
|
44
|
+
};
|
|
45
|
+
}, []);
|
|
43
46
|
|
|
44
|
-
var
|
|
45
|
-
var target = e.target || e.srcElement;
|
|
46
|
-
// 对象相对于版面或由 offsetParent 左侧位置
|
|
47
|
-
|
|
47
|
+
var onMouseDown = function onMouseDown(e) {
|
|
48
|
+
var target = e.target || e.srcElement;
|
|
48
49
|
initX = e.clientX - target.offsetLeft;
|
|
49
50
|
isDrag = !isDrag;
|
|
50
|
-
document.addEventListener('mousemove',
|
|
51
|
-
document.addEventListener('mouseup',
|
|
51
|
+
document.addEventListener('mousemove', onMouseMove);
|
|
52
|
+
document.addEventListener('mouseup', onMouseUp);
|
|
52
53
|
};
|
|
53
54
|
|
|
54
|
-
var
|
|
55
|
+
var onMouseMove = function onMouseMove(e) {
|
|
55
56
|
if (isDrag) {
|
|
56
57
|
var x = e.clientX - initX;
|
|
57
58
|
|
|
58
59
|
if (x < minWidthOfLeft) {
|
|
59
|
-
// 小于最小宽度,等于最小宽度
|
|
60
|
-
// 小于250时,收起
|
|
61
60
|
if (x < 250) {
|
|
62
61
|
setShowLeft(false);
|
|
63
62
|
x = 56;
|
|
64
63
|
isDrag = false;
|
|
65
64
|
} else {
|
|
66
|
-
x = minWidthOfLeft;
|
|
65
|
+
x = minWidthOfLeft || 320;
|
|
67
66
|
}
|
|
68
67
|
}
|
|
69
68
|
|
|
70
|
-
if (x > maxWidthOfLeft) x = maxWidthOfLeft;
|
|
69
|
+
if (x > maxWidthOfLeft) x = maxWidthOfLeft || 580;
|
|
71
70
|
setWidth(x);
|
|
72
71
|
}
|
|
73
72
|
};
|
|
74
73
|
|
|
75
|
-
var
|
|
74
|
+
var onMouseUp = function onMouseUp() {
|
|
76
75
|
isDrag = false;
|
|
77
|
-
document.removeEventListener('mousemove',
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
useEffect(function () {
|
|
81
|
-
return function () {
|
|
82
|
-
// 相当于destroy,移除mouseup监听
|
|
83
|
-
document.removeEventListener('mouseup', handleMouseUp);
|
|
84
|
-
};
|
|
85
|
-
}, []); // 展开左侧内容
|
|
86
|
-
|
|
87
|
-
var toOpen = function toOpen() {
|
|
88
|
-
setShowLeft(true);
|
|
89
|
-
setWidth(maxWidthOfLeft);
|
|
76
|
+
document.removeEventListener('mousemove', onMouseMove);
|
|
90
77
|
};
|
|
91
78
|
|
|
92
|
-
|
|
93
|
-
setShowLeft(
|
|
94
|
-
|
|
95
|
-
|
|
79
|
+
function onCollapse() {
|
|
80
|
+
setShowLeft(function (show) {
|
|
81
|
+
setWidth(show ? 56 : minWidthOfLeft);
|
|
82
|
+
return !show;
|
|
83
|
+
});
|
|
84
|
+
}
|
|
96
85
|
|
|
97
86
|
return /*#__PURE__*/React.createElement("div", {
|
|
98
|
-
className: "biz-layout-container"
|
|
87
|
+
className: "biz-layout-container ".concat(className)
|
|
99
88
|
}, /*#__PURE__*/React.createElement("div", {
|
|
100
89
|
className: "biz-layout-left",
|
|
101
90
|
style: {
|
|
@@ -113,34 +102,30 @@ var BizAnalysisLayout = function BizAnalysisLayout(props) {
|
|
|
113
102
|
}, leftPanel)), /*#__PURE__*/React.createElement("div", {
|
|
114
103
|
className: "biz-layout-bottom"
|
|
115
104
|
}, leftHandle)), showLeft ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
116
|
-
title:
|
|
117
|
-
return '折叠筛选面板';
|
|
118
|
-
},
|
|
105
|
+
title: "\u6298\u53E0\u7B5B\u9009\u9762\u677F",
|
|
119
106
|
color: "#242541",
|
|
120
|
-
key:
|
|
107
|
+
key: "pickup"
|
|
121
108
|
}, /*#__PURE__*/React.createElement("div", {
|
|
122
109
|
className: "biz-layout-pickup",
|
|
123
|
-
onClick:
|
|
110
|
+
onClick: onCollapse
|
|
124
111
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
125
112
|
className: "biz-layout-pickup-icon",
|
|
126
113
|
type: 'icon-zhedie'
|
|
127
114
|
}))) : /*#__PURE__*/React.createElement(Tooltip, {
|
|
128
|
-
title:
|
|
129
|
-
return '展开筛选面板';
|
|
130
|
-
},
|
|
115
|
+
title: "\u5C55\u5F00\u7B5B\u9009\u9762\u677F",
|
|
131
116
|
placement: "right",
|
|
132
117
|
color: "#242541",
|
|
133
|
-
key:
|
|
118
|
+
key: "open"
|
|
134
119
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
135
120
|
className: "biz-layout-open",
|
|
136
|
-
onClick:
|
|
137
|
-
type:
|
|
121
|
+
onClick: onCollapse,
|
|
122
|
+
type: "icon-zhankai"
|
|
138
123
|
})), /*#__PURE__*/React.createElement("div", {
|
|
139
124
|
className: "biz-layout-handler",
|
|
140
125
|
style: {
|
|
141
126
|
pointerEvents: !isFixed && showLeft ? 'auto' : 'none'
|
|
142
127
|
},
|
|
143
|
-
onMouseDown:
|
|
128
|
+
onMouseDown: onMouseDown
|
|
144
129
|
})), /*#__PURE__*/React.createElement("div", {
|
|
145
130
|
className: "biz-layout-right",
|
|
146
131
|
style: {
|
|
@@ -151,4 +136,9 @@ var BizAnalysisLayout = function BizAnalysisLayout(props) {
|
|
|
151
136
|
}, children)));
|
|
152
137
|
};
|
|
153
138
|
|
|
139
|
+
BizAnalysisLayout.defaultProps = {
|
|
140
|
+
defaultLeftWidth: 320,
|
|
141
|
+
minWidthOfLeft: 320,
|
|
142
|
+
maxWidthOfLeft: 580
|
|
143
|
+
};
|
|
154
144
|
export default BizAnalysisLayout;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
// !!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
2
|
+
// 用于存放公共样式片段,公共样式不可直接当做class来使用
|
|
3
|
+
// 所有代码片段,命名以双下划线为前缀
|
|
4
|
+
// !!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
5
|
+
@import './variable.less';
|
|
6
|
+
|
|
7
|
+
// 通用hover样式,适用于下拉选项等
|
|
8
|
+
.__default-hover {
|
|
9
|
+
color: @primary-color;
|
|
10
|
+
background: @primary-1;
|
|
11
|
+
border-color: @primary-color;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// focus 样式
|
|
16
|
+
.__default-focused {
|
|
17
|
+
background-color: #fff;
|
|
18
|
+
border-color: @primary-color;
|
|
19
|
+
box-shadow: 0 0 0 4px @primary-1;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// 下拉组件操作栏样式
|
|
23
|
+
.__select-handle {
|
|
24
|
+
padding: @padding-xss;
|
|
25
|
+
border: 1px solid @border-color-base;
|
|
26
|
+
border-radius: @border-radius-small;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// 下拉组件展开panel样式
|
|
30
|
+
.__select-panel {
|
|
31
|
+
padding: @padding-xs;
|
|
32
|
+
background-color: #fff;
|
|
33
|
+
border-radius: @border-radius-normal;
|
|
34
|
+
box-shadow: @box-shadow-base;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// 下拉选项样式
|
|
38
|
+
.__select-option {
|
|
39
|
+
height: @option-height;
|
|
40
|
+
padding: 0 @padding-sm;
|
|
41
|
+
line-height: @option-height;
|
|
42
|
+
border-radius: @border-radius-normal;
|
|
43
|
+
.__default-overflow();
|
|
44
|
+
|
|
45
|
+
&:hover {
|
|
46
|
+
.__default-hover();
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.active {
|
|
50
|
+
color: #fff;
|
|
51
|
+
background: @primary-color;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&.disabled {
|
|
55
|
+
color: @disabled-color;
|
|
56
|
+
cursor: not-allowed;
|
|
57
|
+
|
|
58
|
+
&:hover {
|
|
59
|
+
background: none;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// 暂无数据样式,目前用于下拉框
|
|
65
|
+
.__select-nodata {
|
|
66
|
+
height: @option-height;
|
|
67
|
+
padding: 0 16px;
|
|
68
|
+
line-height: @option-height;
|
|
69
|
+
border-radius: @border-radius-normal;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// 危险操作hover样式
|
|
73
|
+
.__error-hover {
|
|
74
|
+
color: @error-color;
|
|
75
|
+
font-size: @font-size-lg;
|
|
76
|
+
background-color: @red-2;
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// 按钮禁用状态
|
|
81
|
+
.__default-disabled {
|
|
82
|
+
color: @disabled-color;
|
|
83
|
+
cursor: not-allowed;
|
|
84
|
+
|
|
85
|
+
&:hover {
|
|
86
|
+
background-color: none;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// 禁用状态
|
|
91
|
+
.__disable {
|
|
92
|
+
color: @disabled-color;
|
|
93
|
+
background-color: @disabled-bg;
|
|
94
|
+
cursor: not-allowed;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// 超过长度用...表示
|
|
98
|
+
.__default-overflow {
|
|
99
|
+
overflow: hidden;
|
|
100
|
+
white-space: nowrap;
|
|
101
|
+
text-overflow: ellipsis;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// 下拉框默认样式
|
|
105
|
+
.__select-default {
|
|
106
|
+
height: @height-lg;
|
|
107
|
+
line-height: @height-lg;
|
|
108
|
+
background-color: @background-color-base;
|
|
109
|
+
border: 1px solid @background-color-base;
|
|
110
|
+
border-radius: @border-radius-small;
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
.__default-overflow();
|
|
113
|
+
|
|
114
|
+
&:hover:not(.disable) {
|
|
115
|
+
background-color: @background-color-base;
|
|
116
|
+
border-color: @primary-color;
|
|
117
|
+
box-shadow: none;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&.active:not(.disable) {
|
|
121
|
+
background-color: @white;
|
|
122
|
+
border-color: @primary-color;
|
|
123
|
+
box-shadow: @box-shadow-form;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// 下拉框常用样式
|
|
128
|
+
.__select-normal-secondary {
|
|
129
|
+
height: @height-base;
|
|
130
|
+
line-height: @height-base;
|
|
131
|
+
background-color: @white;
|
|
132
|
+
border: 1px solid @border-color-base;
|
|
133
|
+
border-radius: @border-radius-small;
|
|
134
|
+
|
|
135
|
+
&:not(.disable) {
|
|
136
|
+
&:hover,
|
|
137
|
+
&.active {
|
|
138
|
+
.__default-hover();
|
|
139
|
+
border-color: @border-color-base;
|
|
140
|
+
box-shadow: none;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|