@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.
- package/README.md +12 -0
- package/es/analysisLayout/demo/index.d.ts +3 -0
- package/es/analysisLayout/demo/index.js +30 -0
- package/es/analysisLayout/demo/index.less +12 -0
- package/es/analysisLayout/index.d.ts +13 -0
- package/es/analysisLayout/index.js +153 -0
- package/es/analysisLayout/index.less +115 -0
- package/es/attributeSelector/data/env.d.ts +11 -0
- package/es/attributeSelector/data/env.js +181 -0
- package/es/attributeSelector/data/event.d.ts +237 -0
- package/es/attributeSelector/data/event.js +3483 -0
- package/es/attributeSelector/data/user.d.ts +22 -0
- package/es/attributeSelector/data/user.js +218 -0
- package/es/attributeSelector/demo/multi.d.ts +2 -0
- package/es/attributeSelector/demo/multi.js +39 -0
- package/es/attributeSelector/demo/multiForm.d.ts +2 -0
- package/es/attributeSelector/demo/multiForm.js +64 -0
- package/es/attributeSelector/demo/single.d.ts +2 -0
- package/es/attributeSelector/demo/single.js +43 -0
- package/es/attributeSelector/demo/singleForm.d.ts +2 -0
- package/es/attributeSelector/demo/singleForm.js +66 -0
- package/es/attributeSelector/group.d.ts +31 -0
- package/es/attributeSelector/group.js +225 -0
- package/es/attributeSelector/index.d.ts +110 -0
- package/es/attributeSelector/index.js +578 -0
- package/es/attributeSelector/index.less +172 -0
- package/es/chart/chartConfig.d.ts +28 -0
- package/es/chart/chartConfig.js +256 -0
- package/es/chart/color.d.ts +1 -0
- package/es/chart/color.js +1 -0
- package/es/chart/demo/bar.d.ts +2 -0
- package/es/chart/demo/bar.js +19 -0
- package/es/chart/demo/data.d.ts +11 -0
- package/es/chart/demo/data.js +37 -0
- package/es/chart/demo/index.d.ts +2 -0
- package/es/chart/demo/index.js +9 -0
- package/es/chart/demo/pie.d.ts +2 -0
- package/es/chart/demo/pie.js +30 -0
- package/es/chart/index.d.ts +63 -0
- package/es/chart/index.js +76 -0
- package/es/chart/index.less +38 -0
- package/es/chart/style/circle.svg +4 -0
- package/es/commonStyle/icon.less +147 -0
- package/es/commonStyle/index.less +171 -0
- package/es/commonStyle/select.less +101 -0
- package/es/commonStyle/theme.less +432 -0
- package/es/commonStyle/variable.less +124 -0
- package/es/datePicker/data.d.ts +9 -0
- package/es/datePicker/data.js +65 -0
- package/es/datePicker/demo/form.d.ts +2 -0
- package/es/datePicker/demo/form.js +53 -0
- package/es/datePicker/demo/index.d.ts +2 -0
- package/es/datePicker/demo/index.js +30 -0
- package/es/datePicker/index.d.ts +29 -0
- package/es/datePicker/index.js +207 -0
- package/es/datePicker/index.less +388 -0
- package/es/dialog/components/list.d.ts +15 -0
- package/es/dialog/components/list.js +57 -0
- package/es/dialog/components/selectToInput.d.ts +43 -0
- package/es/dialog/components/selectToInput.js +107 -0
- package/es/dialog/components/style/list.less +59 -0
- package/es/dialog/components/style/tab.less +61 -0
- package/es/dialog/components/tab.d.ts +9 -0
- package/es/dialog/components/tab.js +50 -0
- package/es/dialog/data/chart.d.ts +11 -0
- package/es/dialog/data/chart.js +62 -0
- package/es/dialog/demo/index.d.ts +2 -0
- package/es/dialog/demo/index.js +122 -0
- package/es/dialog/demo/index2.d.ts +2 -0
- package/es/dialog/demo/index2.js +79 -0
- package/es/dialog/demo/index3.d.ts +2 -0
- package/es/dialog/demo/index3.js +61 -0
- package/es/dialog/index.d.ts +68 -0
- package/es/dialog/index.js +188 -0
- package/es/dialog/style/index.less +70 -0
- package/es/eventSelector/cascade.less +120 -0
- package/es/eventSelector/demo/form.d.ts +2 -0
- package/es/eventSelector/demo/form.js +89 -0
- package/es/eventSelector/demo/index.d.ts +2 -0
- package/es/eventSelector/demo/index.js +69 -0
- package/es/eventSelector/demo/nodata.d.ts +2 -0
- package/es/eventSelector/demo/nodata.js +13 -0
- package/es/eventSelector/index.d.ts +27 -0
- package/es/eventSelector/index.js +390 -0
- package/es/eventSelector/type.d.ts +41 -0
- package/es/eventSelector/type.js +1 -0
- package/es/globalAttributes/demo/data/env.d.ts +11 -0
- package/es/globalAttributes/demo/data/env.js +181 -0
- package/es/globalAttributes/demo/data/event.d.ts +237 -0
- package/es/globalAttributes/demo/data/event.js +3483 -0
- package/es/globalAttributes/demo/data/user.d.ts +22 -0
- package/es/globalAttributes/demo/data/user.js +218 -0
- package/es/globalAttributes/demo/index.d.ts +2 -0
- package/es/globalAttributes/demo/index.js +50 -0
- package/es/globalAttributes/index.d.ts +46 -0
- package/es/globalAttributes/index.js +116 -0
- package/es/index.d.ts +23 -0
- package/es/index.js +25 -0
- package/es/multipleSelector/demo/index.d.ts +2 -0
- package/es/multipleSelector/demo/index.js +35 -0
- package/es/multipleSelector/index.d.ts +36 -0
- package/es/multipleSelector/index.js +109 -0
- package/es/multipleSelector/index.less +138 -0
- package/es/select/demo/index.d.ts +2 -0
- package/es/select/demo/index.js +22 -0
- package/es/select/index.d.ts +42 -0
- package/es/select/index.js +142 -0
- package/es/table/demo/data/color.d.ts +1 -0
- package/es/table/demo/data/color.js +1 -0
- package/es/table/demo/data/data.d.ts +11 -0
- package/es/table/demo/data/data.js +37 -0
- package/es/table/demo/data/table.d.ts +4 -0
- package/es/table/demo/data/table.js +37 -0
- package/es/table/demo/index.d.ts +3 -0
- package/es/table/demo/index.js +171 -0
- package/es/table/demo/index.less +8 -0
- package/es/table/demo/index2.d.ts +2 -0
- package/es/table/demo/index2.js +9 -0
- package/es/table/index.d.ts +32 -0
- package/es/table/index.js +80 -0
- package/es/table/index.less +102 -0
- package/es/targetConditionGroup/components/conditionGroup.d.ts +30 -0
- package/es/targetConditionGroup/components/conditionGroup.js +111 -0
- package/es/targetConditionGroup/components/conditionItem.d.ts +47 -0
- package/es/targetConditionGroup/components/conditionItem.js +259 -0
- package/es/targetConditionGroup/components/style/group.less +47 -0
- package/es/targetConditionGroup/components/style/index.less +16 -0
- package/es/targetConditionGroup/data/operates.d.ts +36 -0
- package/es/targetConditionGroup/data/operates.js +98 -0
- package/es/targetConditionGroup/demo/data/env.d.ts +11 -0
- package/es/targetConditionGroup/demo/data/env.js +181 -0
- package/es/targetConditionGroup/demo/data/event.d.ts +237 -0
- package/es/targetConditionGroup/demo/data/event.js +3483 -0
- package/es/targetConditionGroup/demo/data/user.d.ts +22 -0
- package/es/targetConditionGroup/demo/data/user.js +218 -0
- package/es/targetConditionGroup/demo/form.d.ts +2 -0
- package/es/targetConditionGroup/demo/form.js +96 -0
- package/es/targetConditionGroup/demo/index.d.ts +2 -0
- package/es/targetConditionGroup/demo/index.js +73 -0
- package/es/targetConditionGroup/demo/item.d.ts +2 -0
- package/es/targetConditionGroup/demo/item.js +5 -0
- package/es/targetConditionGroup/index.d.ts +53 -0
- package/es/targetConditionGroup/index.js +265 -0
- package/es/targetConditionGroup/index.less +65 -0
- package/es/targetConditionGroup/type.d.ts +50 -0
- package/es/targetConditionGroup/type.js +1 -0
- package/es/targetSelector/components/BizCascadeBox.d.ts +34 -0
- package/es/targetSelector/components/BizCascadeBox.js +213 -0
- package/es/targetSelector/components/BizEventNameEditBox.d.ts +20 -0
- package/es/targetSelector/components/BizEventNameEditBox.js +57 -0
- package/es/targetSelector/demo/form.d.ts +2 -0
- package/es/targetSelector/demo/form.js +133 -0
- package/es/targetSelector/demo/index.d.ts +2 -0
- package/es/targetSelector/demo/index.js +107 -0
- package/es/targetSelector/demo/nodata.d.ts +2 -0
- package/es/targetSelector/demo/nodata.js +13 -0
- package/es/targetSelector/index.d.ts +40 -0
- package/es/targetSelector/index.js +204 -0
- package/es/targetSelector/index.less +53 -0
- package/es/userGroup/demo/cluster.d.ts +3 -0
- package/es/userGroup/demo/cluster.js +102 -0
- package/es/userGroup/demo/index.d.ts +3 -0
- package/es/userGroup/demo/index.js +115 -0
- package/es/userGroup/demo/index.less +3 -0
- package/es/userGroup/index.d.ts +79 -0
- package/es/userGroup/index.js +134 -0
- package/es/userGroup/index.less +2 -0
- package/es/userGroup/userCluster.d.ts +63 -0
- package/es/userGroup/userCluster.js +254 -0
- package/es/utils/ajax.d.ts +7 -0
- package/es/utils/ajax.js +139 -0
- package/es/utils/index.d.ts +3 -0
- package/es/utils/index.js +3 -0
- package/es/utils/type.d.ts +54 -0
- package/es/utils/type.js +1 -0
- package/es/utils/util.d.ts +67 -0
- package/es/utils/util.js +204 -0
- package/package.json +55 -0
package/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BizAnalysisLayout } from 'business-lib';
|
|
3
|
+
import './index.less';
|
|
4
|
+
|
|
5
|
+
var LeftContent = function LeftContent() {
|
|
6
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
7
|
+
className: "left-content"
|
|
8
|
+
}, "left");
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
var Footer = function Footer() {
|
|
12
|
+
return /*#__PURE__*/React.createElement("div", null, "@footer");
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
var RightContent = function RightContent() {
|
|
16
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h1", null, "right"));
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
var LayoutDemo = function LayoutDemo() {
|
|
20
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
21
|
+
className: "root"
|
|
22
|
+
}, /*#__PURE__*/React.createElement(BizAnalysisLayout, {
|
|
23
|
+
leftPanel: /*#__PURE__*/React.createElement(LeftContent, null),
|
|
24
|
+
leftHandle: /*#__PURE__*/React.createElement(Footer, null)
|
|
25
|
+
}, /*#__PURE__*/React.createElement(RightContent, null)));
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export default (function () {
|
|
29
|
+
return /*#__PURE__*/React.createElement(LayoutDemo, null);
|
|
30
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
declare type AnalysisLayoutProps = {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
leftPanel?: React.ReactNode;
|
|
6
|
+
leftHandle?: React.ReactNode;
|
|
7
|
+
isFixed?: boolean | false;
|
|
8
|
+
defaultLeftWidth?: number;
|
|
9
|
+
minWidthOfLeft?: number;
|
|
10
|
+
maxWidthOfLeft?: number;
|
|
11
|
+
};
|
|
12
|
+
declare const BizAnalysisLayout: React.FC<AnalysisLayoutProps>;
|
|
13
|
+
export default BizAnalysisLayout;
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
|
|
3
|
+
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."); }
|
|
4
|
+
|
|
5
|
+
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); }
|
|
6
|
+
|
|
7
|
+
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; }
|
|
8
|
+
|
|
9
|
+
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; }
|
|
10
|
+
|
|
11
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
12
|
+
|
|
13
|
+
import React, { useEffect, useState } from 'react';
|
|
14
|
+
import { createFromIconfontCN } from '@ant-design/icons';
|
|
15
|
+
import './index.less';
|
|
16
|
+
import { Tooltip } from 'antd';
|
|
17
|
+
var IconFont = createFromIconfontCN({
|
|
18
|
+
scriptUrl: '//at.alicdn.com/t/font_422162_1fpms355rmq.js'
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
var BizAnalysisLayout = function BizAnalysisLayout(props) {
|
|
22
|
+
var children = props.children,
|
|
23
|
+
leftPanel = props.leftPanel,
|
|
24
|
+
leftHandle = props.leftHandle,
|
|
25
|
+
_props$isFixed = props.isFixed,
|
|
26
|
+
isFixed = _props$isFixed === void 0 ? false : _props$isFixed,
|
|
27
|
+
_props$defaultLeftWid = props.defaultLeftWidth,
|
|
28
|
+
defaultLeftWidth = _props$defaultLeftWid === void 0 ? 580 : _props$defaultLeftWid,
|
|
29
|
+
_props$minWidthOfLeft = props.minWidthOfLeft,
|
|
30
|
+
minWidthOfLeft = _props$minWidthOfLeft === void 0 ? 320 : _props$minWidthOfLeft,
|
|
31
|
+
_props$maxWidthOfLeft = props.maxWidthOfLeft,
|
|
32
|
+
maxWidthOfLeft = _props$maxWidthOfLeft === void 0 ? 580 : _props$maxWidthOfLeft;
|
|
33
|
+
|
|
34
|
+
var _useState = useState(defaultLeftWidth),
|
|
35
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
36
|
+
width = _useState2[0],
|
|
37
|
+
setWidth = _useState2[1];
|
|
38
|
+
|
|
39
|
+
var _useState3 = useState(true),
|
|
40
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
41
|
+
showLeft = _useState4[0],
|
|
42
|
+
setShowLeft = _useState4[1];
|
|
43
|
+
|
|
44
|
+
var initX = 0;
|
|
45
|
+
var isDrag = false;
|
|
46
|
+
|
|
47
|
+
var handleMouseDown = function handleMouseDown(e) {
|
|
48
|
+
var target = e.target || e.srcElement; // clientX: 相对文档的水平坐标
|
|
49
|
+
// 对象相对于版面或由 offsetParent 左侧位置
|
|
50
|
+
|
|
51
|
+
initX = e.clientX - target.offsetLeft;
|
|
52
|
+
isDrag = !isDrag;
|
|
53
|
+
document.addEventListener('mousemove', handleMouseMove);
|
|
54
|
+
document.addEventListener('mouseup', handleMouseUp);
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
var handleMouseMove = function handleMouseMove(e) {
|
|
58
|
+
if (isDrag) {
|
|
59
|
+
var x = e.clientX - initX;
|
|
60
|
+
|
|
61
|
+
if (x < minWidthOfLeft) {
|
|
62
|
+
// 小于最小宽度,等于最小宽度
|
|
63
|
+
// 小于250时,收起
|
|
64
|
+
if (x < 250) {
|
|
65
|
+
setShowLeft(false);
|
|
66
|
+
x = 56;
|
|
67
|
+
isDrag = false;
|
|
68
|
+
} else {
|
|
69
|
+
x = minWidthOfLeft;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if (x > maxWidthOfLeft) x = maxWidthOfLeft;
|
|
74
|
+
setWidth(x);
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
var handleMouseUp = function handleMouseUp() {
|
|
79
|
+
isDrag = false;
|
|
80
|
+
document.removeEventListener('mousemove', handleMouseMove);
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
useEffect(function () {
|
|
84
|
+
return function () {
|
|
85
|
+
// 相当于destroy,移除mouseup监听
|
|
86
|
+
document.removeEventListener('mouseup', handleMouseUp);
|
|
87
|
+
};
|
|
88
|
+
}, []); // 展开左侧内容
|
|
89
|
+
|
|
90
|
+
var toOpen = function toOpen() {
|
|
91
|
+
setShowLeft(true);
|
|
92
|
+
setWidth(maxWidthOfLeft);
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
var toPickup = function toPickup() {
|
|
96
|
+
setShowLeft(false);
|
|
97
|
+
setWidth(56);
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
101
|
+
className: "biz-layout-container"
|
|
102
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
103
|
+
className: "biz-layout-left",
|
|
104
|
+
style: {
|
|
105
|
+
width: "".concat(width, "px")
|
|
106
|
+
}
|
|
107
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
108
|
+
className: "biz-layout-content",
|
|
109
|
+
style: {
|
|
110
|
+
display: showLeft ? 'block' : 'none'
|
|
111
|
+
}
|
|
112
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
113
|
+
className: "biz-layout-panel"
|
|
114
|
+
}, leftPanel), /*#__PURE__*/React.createElement("div", {
|
|
115
|
+
className: "biz-layout-bottom"
|
|
116
|
+
}, leftHandle)), showLeft ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
117
|
+
title: function title() {
|
|
118
|
+
return '折叠筛选面板';
|
|
119
|
+
},
|
|
120
|
+
color: "#242541",
|
|
121
|
+
key: 'pickup'
|
|
122
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
123
|
+
className: "biz-layout-pickup",
|
|
124
|
+
onClick: toPickup
|
|
125
|
+
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
126
|
+
className: "biz-layout-pickup-icon",
|
|
127
|
+
type: 'icon-zhedie'
|
|
128
|
+
}))) : /*#__PURE__*/React.createElement(Tooltip, {
|
|
129
|
+
title: function title() {
|
|
130
|
+
return '展开筛选面板';
|
|
131
|
+
},
|
|
132
|
+
placement: "right",
|
|
133
|
+
color: "#242541",
|
|
134
|
+
key: 'open'
|
|
135
|
+
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
136
|
+
className: "biz-layout-open",
|
|
137
|
+
onClick: toOpen,
|
|
138
|
+
type: 'icon-zhankai'
|
|
139
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
140
|
+
className: "biz-layout-handler",
|
|
141
|
+
style: {
|
|
142
|
+
pointerEvents: !isFixed && showLeft ? 'auto' : 'none'
|
|
143
|
+
},
|
|
144
|
+
onMouseDown: handleMouseDown
|
|
145
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
146
|
+
className: "biz-layout-right",
|
|
147
|
+
style: {
|
|
148
|
+
width: "calc(100% - ".concat(width, "px)")
|
|
149
|
+
}
|
|
150
|
+
}, children));
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
export default BizAnalysisLayout;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
@import '../commonStyle/index.less';
|
|
2
|
+
|
|
3
|
+
.biz-layout-container {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: flex;
|
|
6
|
+
width: 100%;
|
|
7
|
+
min-width: 1440px;
|
|
8
|
+
height: 100%;
|
|
9
|
+
min-height: 900px;
|
|
10
|
+
|
|
11
|
+
.biz-layout-left {
|
|
12
|
+
position: relative;
|
|
13
|
+
display: flex;
|
|
14
|
+
background-color: #fff;
|
|
15
|
+
|
|
16
|
+
.biz-layout-content {
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 100%;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.biz-layout-handler {
|
|
22
|
+
position: absolute;
|
|
23
|
+
right: 0;
|
|
24
|
+
bottom: 0;
|
|
25
|
+
width: 1px;
|
|
26
|
+
height: 100%;
|
|
27
|
+
background: #ecedf0;
|
|
28
|
+
transform: matrix(-1, 0, 0, 1, 0, 0);
|
|
29
|
+
cursor: ew-resize;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.biz-layout-panel {
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
width: 100%;
|
|
35
|
+
height: calc(100% - 30px);
|
|
36
|
+
padding: @searchPadding;
|
|
37
|
+
overflow: auto;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.biz-layout-bottom {
|
|
41
|
+
position: absolute;
|
|
42
|
+
bottom: 0;
|
|
43
|
+
left: 0;
|
|
44
|
+
width: 100%;
|
|
45
|
+
height: 30px;
|
|
46
|
+
font-size: 12px;
|
|
47
|
+
line-height: 30px;
|
|
48
|
+
text-align: center;
|
|
49
|
+
background-color: #fff;
|
|
50
|
+
border-top: @boxBorder;
|
|
51
|
+
|
|
52
|
+
.biz-layout-expand {
|
|
53
|
+
color: @fontColor;
|
|
54
|
+
font-size: 16px;
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
|
|
57
|
+
&:hover {
|
|
58
|
+
color: rgb(22, 93, 255, 0.1);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.biz-layout-right {
|
|
65
|
+
box-sizing: border-box;
|
|
66
|
+
min-width: 600px;
|
|
67
|
+
padding: @contentPadding;
|
|
68
|
+
overflow: auto;
|
|
69
|
+
background-color: #fff;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.biz-layout-pickup {
|
|
74
|
+
position: absolute;
|
|
75
|
+
right: -40px;
|
|
76
|
+
bottom: 20px;
|
|
77
|
+
z-index: 10;
|
|
78
|
+
box-sizing: border-box;
|
|
79
|
+
width: 40px;
|
|
80
|
+
height: 40px;
|
|
81
|
+
padding-right: 2px;
|
|
82
|
+
padding-bottom: 6px;
|
|
83
|
+
font-size: 24px;
|
|
84
|
+
text-align: center;
|
|
85
|
+
background: #ffffff;
|
|
86
|
+
border: @boxBorder;
|
|
87
|
+
border-top-right-radius: 20px;
|
|
88
|
+
border-bottom-right-radius: 20px;
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
|
|
91
|
+
.biz-layout-pickup-icon {
|
|
92
|
+
color: @layoutIconColor;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&:hover {
|
|
96
|
+
color: @hoverColor;
|
|
97
|
+
background-color: @hoverBgColor;
|
|
98
|
+
|
|
99
|
+
.biz-layout-pickup-icon {
|
|
100
|
+
color: @hoverColor;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.biz-layout-open {
|
|
106
|
+
position: absolute;
|
|
107
|
+
bottom: 20px;
|
|
108
|
+
left: 16px;
|
|
109
|
+
color: @layoutIconColor;
|
|
110
|
+
font-size: 24px;
|
|
111
|
+
|
|
112
|
+
&:hover {
|
|
113
|
+
color: @hoverColor;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
export default [{
|
|
2
|
+
dimension_sub: 'browser_brand',
|
|
3
|
+
value_dict: false,
|
|
4
|
+
name: 'browser_brand',
|
|
5
|
+
id: 0,
|
|
6
|
+
text: '浏览器品牌',
|
|
7
|
+
category: 'fixed',
|
|
8
|
+
type: 1,
|
|
9
|
+
alias_name: null
|
|
10
|
+
}, {
|
|
11
|
+
dimension_sub: 'browser_version',
|
|
12
|
+
value_dict: false,
|
|
13
|
+
name: 'browser_version',
|
|
14
|
+
id: 0,
|
|
15
|
+
text: '浏览器版本',
|
|
16
|
+
category: 'fixed',
|
|
17
|
+
type: 2,
|
|
18
|
+
alias_name: null
|
|
19
|
+
}, {
|
|
20
|
+
dimension_sub: 'website',
|
|
21
|
+
value_dict: false,
|
|
22
|
+
name: 'website',
|
|
23
|
+
id: 0,
|
|
24
|
+
text: '来源域名',
|
|
25
|
+
category: 'fixed',
|
|
26
|
+
type: 1,
|
|
27
|
+
alias_name: null
|
|
28
|
+
}, {
|
|
29
|
+
dimension_sub: 'platform',
|
|
30
|
+
value_dict: false,
|
|
31
|
+
name: 'platform',
|
|
32
|
+
id: 0,
|
|
33
|
+
text: '平台',
|
|
34
|
+
category: 'fixed',
|
|
35
|
+
type: 1,
|
|
36
|
+
alias_name: null
|
|
37
|
+
}, {
|
|
38
|
+
dimension_sub: 'referer_url',
|
|
39
|
+
value_dict: false,
|
|
40
|
+
name: 'referer_url',
|
|
41
|
+
id: 0,
|
|
42
|
+
text: '来源URL',
|
|
43
|
+
category: 'fixed',
|
|
44
|
+
type: 1,
|
|
45
|
+
alias_name: null
|
|
46
|
+
}, {
|
|
47
|
+
dimension_sub: 'current_url',
|
|
48
|
+
value_dict: false,
|
|
49
|
+
name: 'current_url',
|
|
50
|
+
id: 0,
|
|
51
|
+
text: '当前URL',
|
|
52
|
+
category: 'fixed',
|
|
53
|
+
type: 1,
|
|
54
|
+
alias_name: null
|
|
55
|
+
}, {
|
|
56
|
+
dimension_sub: 'country',
|
|
57
|
+
value_dict: false,
|
|
58
|
+
name: 'country',
|
|
59
|
+
id: 0,
|
|
60
|
+
text: '国家',
|
|
61
|
+
category: 'fixed',
|
|
62
|
+
type: 1,
|
|
63
|
+
alias_name: null
|
|
64
|
+
}, {
|
|
65
|
+
dimension_sub: 'area',
|
|
66
|
+
value_dict: false,
|
|
67
|
+
name: 'area',
|
|
68
|
+
id: 0,
|
|
69
|
+
text: '省份',
|
|
70
|
+
category: 'fixed',
|
|
71
|
+
type: 1,
|
|
72
|
+
alias_name: null
|
|
73
|
+
}, {
|
|
74
|
+
dimension_sub: 'city',
|
|
75
|
+
value_dict: false,
|
|
76
|
+
name: 'city',
|
|
77
|
+
id: 0,
|
|
78
|
+
text: '城市',
|
|
79
|
+
category: 'fixed',
|
|
80
|
+
type: 1,
|
|
81
|
+
alias_name: null
|
|
82
|
+
}, {
|
|
83
|
+
dimension_sub: 'os',
|
|
84
|
+
value_dict: false,
|
|
85
|
+
name: 'os',
|
|
86
|
+
id: 0,
|
|
87
|
+
text: '操作系统',
|
|
88
|
+
category: 'fixed',
|
|
89
|
+
type: 1,
|
|
90
|
+
alias_name: null
|
|
91
|
+
}, {
|
|
92
|
+
dimension_sub: 'ov',
|
|
93
|
+
value_dict: false,
|
|
94
|
+
name: 'ov',
|
|
95
|
+
id: 0,
|
|
96
|
+
text: '系统版本',
|
|
97
|
+
category: 'fixed',
|
|
98
|
+
type: 2,
|
|
99
|
+
alias_name: null
|
|
100
|
+
}, {
|
|
101
|
+
dimension_sub: 'resolution_h',
|
|
102
|
+
value_dict: false,
|
|
103
|
+
name: 'resolution_h',
|
|
104
|
+
id: 0,
|
|
105
|
+
text: '屏幕高度',
|
|
106
|
+
category: 'fixed',
|
|
107
|
+
type: 2,
|
|
108
|
+
alias_name: null
|
|
109
|
+
}, {
|
|
110
|
+
dimension_sub: 'resolution_l',
|
|
111
|
+
value_dict: false,
|
|
112
|
+
name: 'resolution_l',
|
|
113
|
+
id: 0,
|
|
114
|
+
text: '屏幕宽度',
|
|
115
|
+
category: 'fixed',
|
|
116
|
+
type: 2,
|
|
117
|
+
alias_name: null
|
|
118
|
+
}, {
|
|
119
|
+
dimension_sub: 'first_referer_url',
|
|
120
|
+
value_dict: false,
|
|
121
|
+
name: 'first_referer_url',
|
|
122
|
+
id: 0,
|
|
123
|
+
text: '初始来源URL',
|
|
124
|
+
category: 'fixed',
|
|
125
|
+
type: 1,
|
|
126
|
+
alias_name: null
|
|
127
|
+
}, {
|
|
128
|
+
dimension_sub: 'ip',
|
|
129
|
+
value_dict: false,
|
|
130
|
+
name: 'ip',
|
|
131
|
+
id: 0,
|
|
132
|
+
text: 'IP',
|
|
133
|
+
category: 'fixed',
|
|
134
|
+
type: 1,
|
|
135
|
+
alias_name: null
|
|
136
|
+
}, {
|
|
137
|
+
dimension_sub: 'utm_source',
|
|
138
|
+
value_dict: false,
|
|
139
|
+
name: 'utm_source',
|
|
140
|
+
id: 0,
|
|
141
|
+
text: 'utm_source',
|
|
142
|
+
category: 'fixed',
|
|
143
|
+
type: 1,
|
|
144
|
+
alias_name: null
|
|
145
|
+
}, {
|
|
146
|
+
dimension_sub: 'utm_medium',
|
|
147
|
+
value_dict: false,
|
|
148
|
+
name: 'utm_medium',
|
|
149
|
+
id: 0,
|
|
150
|
+
text: 'utm_medium',
|
|
151
|
+
category: 'fixed',
|
|
152
|
+
type: 1,
|
|
153
|
+
alias_name: null
|
|
154
|
+
}, {
|
|
155
|
+
dimension_sub: 'utm_campaign',
|
|
156
|
+
value_dict: false,
|
|
157
|
+
name: 'utm_campaign',
|
|
158
|
+
id: 0,
|
|
159
|
+
text: 'utm_campaign',
|
|
160
|
+
category: 'fixed',
|
|
161
|
+
type: 1,
|
|
162
|
+
alias_name: null
|
|
163
|
+
}, {
|
|
164
|
+
dimension_sub: 'utm_content',
|
|
165
|
+
value_dict: false,
|
|
166
|
+
name: 'utm_content',
|
|
167
|
+
id: 0,
|
|
168
|
+
text: 'utm_content',
|
|
169
|
+
category: 'fixed',
|
|
170
|
+
type: 1,
|
|
171
|
+
alias_name: null
|
|
172
|
+
}, {
|
|
173
|
+
dimension_sub: 'utm_term',
|
|
174
|
+
value_dict: false,
|
|
175
|
+
name: 'utm_term',
|
|
176
|
+
id: 0,
|
|
177
|
+
text: 'utm_term',
|
|
178
|
+
category: 'fixed',
|
|
179
|
+
type: 1,
|
|
180
|
+
alias_name: null
|
|
181
|
+
}];
|