@zgfe/business-lib 1.0.0-beta.4 → 1.0.1-beta.0
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 +32 -42
- package/es/analysisLayout/index.less +7 -5
- 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 +167 -0
- package/es/attrConditions/components/valuesList.d.ts +10 -0
- package/es/attrConditions/components/valuesList.js +186 -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 +184 -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/{multipleSelector → attributeSelector}/demo/index.d.ts +1 -0
- package/es/attributeSelector/demo/{singleForm.js → index.js} +42 -44
- package/es/attributeSelector/index.d.ts +4 -109
- package/es/attributeSelector/index.js +85 -527
- package/es/attributeSelector/listPanel.d.ts +4 -0
- package/es/attributeSelector/listPanel.js +206 -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/bar.js +2 -1
- package/es/chart/demo/pie.js +1 -0
- package/es/chart/index.d.ts +2 -80
- package/es/chart/index.js +27 -24
- 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} +46 -109
- 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 +130 -110
- package/es/commonStyle/select.less +1 -1
- package/es/commonStyle/theme.less +520 -470
- 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 +9 -0
- package/es/dialog/components/itemNode.js +107 -0
- package/es/dialog/components/list.d.ts +3 -13
- package/es/dialog/components/list.js +8 -7
- package/es/dialog/components/selectToInput.d.ts +4 -41
- package/es/dialog/components/selectToInput.js +109 -54
- 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 +60 -22
- package/es/dialog/demo/index2.js +14 -2
- package/es/dialog/index.d.ts +4 -65
- package/es/dialog/index.js +124 -108
- 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 -25
- package/es/eventSelector/index.js +91 -338
- package/es/eventSelector/listPanel.d.ts +4 -0
- package/es/eventSelector/listPanel.js +195 -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 +12 -10
- package/es/index.js +7 -10
- 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/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 -41
- package/es/select/index.js +166 -121
- 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/index2.js +45 -3
- package/es/{attributeSelector/demo/singleForm.d.ts → table/demo/index3.d.ts} +0 -0
- package/es/table/demo/index3.js +218 -0
- package/es/table/index.d.ts +4 -30
- package/es/table/index.js +19 -17
- 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 +3 -0
- package/es/targetConditionGroup/demo/group.js +127 -0
- package/es/targetConditionGroup/demo/index.js +41 -51
- package/es/targetConditionGroup/demo/styles/index.less +29 -0
- package/es/targetConditionGroup/index.d.ts +4 -51
- package/es/targetConditionGroup/index.js +187 -222
- 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 -39
- package/es/targetSelector/index.js +102 -169
- 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/{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 +58 -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 -76
- 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 -46
- package/es/globalAttributes/index.js +0 -117
- package/es/multipleSelector/index.d.ts +0 -36
- package/es/multipleSelector/index.js +0 -103
- 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 -111
- package/es/targetConditionGroup/components/conditionItem.d.ts +0 -47
- package/es/targetConditionGroup/components/conditionItem.js +0 -259
- 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/index.less +0 -64
- package/es/targetConditionGroup/type.d.ts +0 -50
- 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
package/es/table/index.less
DELETED
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
@import '../commonStyle/theme.less';
|
|
2
|
-
|
|
3
|
-
.ant-table {
|
|
4
|
-
color: @fontColor3;
|
|
5
|
-
border: 1px solid @borderColor;
|
|
6
|
-
border-radius: 10px;
|
|
7
|
-
|
|
8
|
-
.ant-table-container {
|
|
9
|
-
.ant-table-thead > tr > th {
|
|
10
|
-
color: #021429;
|
|
11
|
-
line-height: 16px;
|
|
12
|
-
background: @grayColor;
|
|
13
|
-
border: none;
|
|
14
|
-
|
|
15
|
-
&::before {
|
|
16
|
-
width: 0 !important;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&.ant-table-cell-fix-left-last {
|
|
20
|
-
border-right: 1px solid @borderColor;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.ant-table-tbody > tr:not(:last-child) > td {
|
|
25
|
-
border-bottom: 1px solid @borderColor;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.ant-table-tbody > tr > td {
|
|
29
|
-
line-height: 15px;
|
|
30
|
-
|
|
31
|
-
&.ant-table-cell-fix-left {
|
|
32
|
-
border-bottom: none;
|
|
33
|
-
|
|
34
|
-
&.ant-table-cell-fix-left-last {
|
|
35
|
-
border-right: 1px solid @borderColor;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.ant-table-tbody > tr.ant-table-row:hover > td,
|
|
43
|
-
.ant-table-tbody > tr > td.ant-table-cell-row-hover {
|
|
44
|
-
background: @hoverBgColor;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.biz-table-total {
|
|
48
|
-
color: @themeColor;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.biz-pagination {
|
|
52
|
-
.ant-select-item {
|
|
53
|
-
border-radius: 10px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.ant-select-arrow {
|
|
57
|
-
height: 12px;
|
|
58
|
-
margin-top: -6px;
|
|
59
|
-
font-size: 12px;
|
|
60
|
-
}
|
|
61
|
-
.ant-select-dropdown {
|
|
62
|
-
width: 100%;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.ant-select-item-option-active:not(.ant-select-item-option-disabled, .ant-select-item-option-selected) {
|
|
66
|
-
color: @themeColor;
|
|
67
|
-
background: @hoverBgColor;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.ant-select-focused:not(.ant-select-disabled).ant-select:not(.ant-select-customize-input)
|
|
71
|
-
.ant-select-selector,
|
|
72
|
-
.ant-select:not(.ant-select-disabled):hover .ant-select-selector {
|
|
73
|
-
color: @themeColor;
|
|
74
|
-
background: @hoverBgColor;
|
|
75
|
-
border-color: @themeColor;
|
|
76
|
-
box-shadow: none;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.ant-pagination-item {
|
|
80
|
-
color: @fontColor3;
|
|
81
|
-
font-weight: 400;
|
|
82
|
-
background: #fafafb;
|
|
83
|
-
border: none;
|
|
84
|
-
border-radius: 4px;
|
|
85
|
-
|
|
86
|
-
&.ant-pagination-item-active {
|
|
87
|
-
background: @themeColor;
|
|
88
|
-
|
|
89
|
-
a {
|
|
90
|
-
color: #fff;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
&:not(.ant-pagination-item-active):hover {
|
|
95
|
-
a {
|
|
96
|
-
color: @themeColor;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.ant-pagination-prev,
|
|
102
|
-
.ant-pagination-next {
|
|
103
|
-
.ant-pagination-item-link {
|
|
104
|
-
color: @fontColor3;
|
|
105
|
-
font-weight: 400;
|
|
106
|
-
background: #fafafb;
|
|
107
|
-
border: none;
|
|
108
|
-
border-radius: 4px;
|
|
109
|
-
|
|
110
|
-
&:hover {
|
|
111
|
-
color: @themeColor;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.ant-select:not(.ant-select-customize-input) {
|
|
117
|
-
.ant-select-selector {
|
|
118
|
-
&:hover {
|
|
119
|
-
color: @themeColor;
|
|
120
|
-
background: @hoverBgColor;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.ant-pagination-options-quick-jumper input {
|
|
126
|
-
padding: 6px 12px;
|
|
127
|
-
color: @fontColor2;
|
|
128
|
-
background-color: #fff;
|
|
129
|
-
background-image: none;
|
|
130
|
-
border: 1px solid @borderColor;
|
|
131
|
-
border-radius: @boxRadius;
|
|
132
|
-
|
|
133
|
-
&:focus {
|
|
134
|
-
background: #fff !important;
|
|
135
|
-
border-color: @themeColor !important;
|
|
136
|
-
box-shadow: 0 0 0 4px #e8efff !important;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ValueType } from '../type';
|
|
3
|
-
import './style/group.less';
|
|
4
|
-
interface ConditionGroupProps {
|
|
5
|
-
/**
|
|
6
|
-
* @description 默认值
|
|
7
|
-
* @description.zh-CN
|
|
8
|
-
* @default
|
|
9
|
-
*/
|
|
10
|
-
defaultValue?: ValueType;
|
|
11
|
-
/**
|
|
12
|
-
* @description 属性配置项
|
|
13
|
-
* @description.zh-CN
|
|
14
|
-
* @default
|
|
15
|
-
*/
|
|
16
|
-
options?: object;
|
|
17
|
-
/**
|
|
18
|
-
* @description 如果是事件属性,则传事件id,多个用逗号隔开
|
|
19
|
-
* @default -
|
|
20
|
-
*/
|
|
21
|
-
eventIds?: string | number;
|
|
22
|
-
/**
|
|
23
|
-
* @description 参数改变回调
|
|
24
|
-
* @description.zh-CN
|
|
25
|
-
* @default
|
|
26
|
-
*/
|
|
27
|
-
onChange?: (data: ValueType) => void;
|
|
28
|
-
}
|
|
29
|
-
declare const BizConditionGroup: React.FC<ConditionGroupProps>;
|
|
30
|
-
export default BizConditionGroup;
|
|
@@ -1,111 +0,0 @@
|
|
|
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 _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
8
|
-
|
|
9
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
10
|
-
|
|
11
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
12
|
-
|
|
13
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
14
|
-
|
|
15
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
16
|
-
|
|
17
|
-
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."); }
|
|
18
|
-
|
|
19
|
-
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); }
|
|
20
|
-
|
|
21
|
-
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; }
|
|
22
|
-
|
|
23
|
-
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; }
|
|
24
|
-
|
|
25
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
26
|
-
|
|
27
|
-
import React, { useEffect, useState } from 'react';
|
|
28
|
-
import BizConditionItem from './conditionItem';
|
|
29
|
-
import './style/group.less';
|
|
30
|
-
import util from '../../utils/util';
|
|
31
|
-
|
|
32
|
-
var BizConditionGroup = function BizConditionGroup(props) {
|
|
33
|
-
var _props$defaultValue = props.defaultValue,
|
|
34
|
-
defaultValue = _props$defaultValue === void 0 ? {
|
|
35
|
-
operator: 'and',
|
|
36
|
-
attrs: []
|
|
37
|
-
} : _props$defaultValue,
|
|
38
|
-
options = props.options,
|
|
39
|
-
eventIds = props.eventIds,
|
|
40
|
-
_onChange = props.onChange;
|
|
41
|
-
|
|
42
|
-
var _useState = useState(defaultValue.attrs || []),
|
|
43
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
44
|
-
attrs = _useState2[0],
|
|
45
|
-
setAttrs = _useState2[1];
|
|
46
|
-
|
|
47
|
-
var _useState3 = useState(defaultValue.operator || 'and'),
|
|
48
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
49
|
-
operate = _useState4[0],
|
|
50
|
-
setOperate = _useState4[1];
|
|
51
|
-
|
|
52
|
-
useEffect(function () {
|
|
53
|
-
if (util.equal(attrs, defaultValue.attrs)) return;
|
|
54
|
-
setAttrs(function () {
|
|
55
|
-
return defaultValue.attrs ? _toConsumableArray(defaultValue.attrs) : [];
|
|
56
|
-
});
|
|
57
|
-
}, [defaultValue]);
|
|
58
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
59
|
-
className: "biz-attr-group-container"
|
|
60
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
61
|
-
className: "biz-attr-group-operate"
|
|
62
|
-
}, attrs.length > 1 && /*#__PURE__*/React.createElement("div", {
|
|
63
|
-
className: "biz-attr-operate",
|
|
64
|
-
onClick: function onClick(e) {
|
|
65
|
-
e.stopPropagation();
|
|
66
|
-
var value = e.target.innerText === '且' ? 'and' : 'or';
|
|
67
|
-
setOperate(function () {
|
|
68
|
-
return value;
|
|
69
|
-
});
|
|
70
|
-
_onChange && _onChange({
|
|
71
|
-
operator: value,
|
|
72
|
-
attrs: attrs
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
76
|
-
className: operate === 'and' ? 'active' : ''
|
|
77
|
-
}, "\u4E14"), /*#__PURE__*/React.createElement("div", {
|
|
78
|
-
className: operate === 'or' ? 'active' : ''
|
|
79
|
-
}, "\u6216"))), /*#__PURE__*/React.createElement("div", {
|
|
80
|
-
className: "biz-attr-group-content"
|
|
81
|
-
}, attrs.map(function (item, index) {
|
|
82
|
-
return /*#__PURE__*/React.createElement(BizConditionItem, {
|
|
83
|
-
key: item.attrId || index,
|
|
84
|
-
options: options,
|
|
85
|
-
eventIds: eventIds,
|
|
86
|
-
defaultValue: item.data,
|
|
87
|
-
onDelete: function onDelete() {
|
|
88
|
-
setAttrs(function (data) {
|
|
89
|
-
data.splice(index, 1);
|
|
90
|
-
_onChange && _onChange({
|
|
91
|
-
operator: operate,
|
|
92
|
-
attrs: _toConsumableArray(data)
|
|
93
|
-
});
|
|
94
|
-
return _toConsumableArray(data);
|
|
95
|
-
});
|
|
96
|
-
},
|
|
97
|
-
onChange: function onChange(data) {
|
|
98
|
-
setAttrs(function (attr) {
|
|
99
|
-
attr[index].data = _objectSpread({}, data);
|
|
100
|
-
_onChange && _onChange({
|
|
101
|
-
operator: operate,
|
|
102
|
-
attrs: _toConsumableArray(attr)
|
|
103
|
-
});
|
|
104
|
-
return _toConsumableArray(attr);
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
})));
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
export default BizConditionGroup;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './style/index.less';
|
|
3
|
-
import { AttrItemType } from '../type';
|
|
4
|
-
import { EventMetaProps } from '../../utils/type';
|
|
5
|
-
interface ConditionItemProps {
|
|
6
|
-
/**
|
|
7
|
-
* @description 默认选项
|
|
8
|
-
* @description.zh-CN
|
|
9
|
-
* @default -
|
|
10
|
-
*/
|
|
11
|
-
defaultValue?: AttrItemType;
|
|
12
|
-
/**
|
|
13
|
-
* @description 属性的配置项
|
|
14
|
-
* @description.zh-CN
|
|
15
|
-
* @default -
|
|
16
|
-
*/
|
|
17
|
-
options?: EventMetaProps;
|
|
18
|
-
/**
|
|
19
|
-
* @description 如果是事件属性,则传事件id,多个用逗号隔开
|
|
20
|
-
* @default -
|
|
21
|
-
*/
|
|
22
|
-
eventIds?: string | number;
|
|
23
|
-
/**
|
|
24
|
-
* @description 软件id
|
|
25
|
-
* @default -
|
|
26
|
-
*/
|
|
27
|
-
appId?: Number;
|
|
28
|
-
/**
|
|
29
|
-
* @description 平台id
|
|
30
|
-
* @default -
|
|
31
|
-
*/
|
|
32
|
-
platform?: Number;
|
|
33
|
-
/**
|
|
34
|
-
* @description 选中 option 时,调用此函数
|
|
35
|
-
* @description.zh-CN
|
|
36
|
-
* @default
|
|
37
|
-
*/
|
|
38
|
-
onChange?: (data: object) => void;
|
|
39
|
-
/**
|
|
40
|
-
* @description 删除属性
|
|
41
|
-
* @description.zh-CN
|
|
42
|
-
* @default -
|
|
43
|
-
*/
|
|
44
|
-
onDelete?: () => void;
|
|
45
|
-
}
|
|
46
|
-
declare const BizConditionItem: React.FC<ConditionItemProps>;
|
|
47
|
-
export default BizConditionItem;
|
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
var _excluded = ["defaultValue", "eventIds", "appId", "platform", "options", "onChange", "onDelete"];
|
|
2
|
-
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
6
|
-
|
|
7
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
8
|
-
|
|
9
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
10
|
-
|
|
11
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
12
|
-
|
|
13
|
-
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; }
|
|
14
|
-
|
|
15
|
-
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; }
|
|
16
|
-
|
|
17
|
-
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; }
|
|
18
|
-
|
|
19
|
-
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
20
|
-
|
|
21
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
22
|
-
|
|
23
|
-
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."); }
|
|
24
|
-
|
|
25
|
-
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); }
|
|
26
|
-
|
|
27
|
-
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; }
|
|
28
|
-
|
|
29
|
-
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; }
|
|
30
|
-
|
|
31
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
32
|
-
|
|
33
|
-
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; }
|
|
34
|
-
|
|
35
|
-
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; }
|
|
36
|
-
|
|
37
|
-
import React, { useContext, useEffect, useState } from 'react';
|
|
38
|
-
import { Select } from 'antd';
|
|
39
|
-
import { stringOperate } from '../data/operates';
|
|
40
|
-
import './style/index.less';
|
|
41
|
-
import { BizAttributeSelector, BizGlobalDataContext, BizMultipleSelector } from '../..';
|
|
42
|
-
import IconFont from '../../components/iconFont';
|
|
43
|
-
import { ajax, util } from '../../utils';
|
|
44
|
-
|
|
45
|
-
var BizConditionItem = function BizConditionItem(props) {
|
|
46
|
-
var _props$defaultValue = props.defaultValue,
|
|
47
|
-
defaultValue = _props$defaultValue === void 0 ? {} : _props$defaultValue,
|
|
48
|
-
eventIds = props.eventIds,
|
|
49
|
-
appId = props.appId,
|
|
50
|
-
platform = props.platform,
|
|
51
|
-
options = props.options,
|
|
52
|
-
_onChange = props.onChange,
|
|
53
|
-
onDelete = props.onDelete,
|
|
54
|
-
res = _objectWithoutProperties(props, _excluded); // 筛选值下拉框内容
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
var _useState = useState([]),
|
|
58
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
59
|
-
conditionOptions = _useState2[0],
|
|
60
|
-
setConditionOptions = _useState2[1]; // 属性
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
var _useState3 = useState({}),
|
|
64
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
65
|
-
attr = _useState4[0],
|
|
66
|
-
setAttr = _useState4[1]; // 属性值
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
var _useState5 = useState(defaultValue.params || []),
|
|
70
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
71
|
-
condition = _useState6[0],
|
|
72
|
-
setCondition = _useState6[1]; // 条件式
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
var _useState7 = useState(defaultValue.operator || stringOperate[0].value),
|
|
76
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
77
|
-
operator = _useState8[0],
|
|
78
|
-
setOperator = _useState8[1]; // 软件信息
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
var _useContext = useContext(BizGlobalDataContext),
|
|
82
|
-
appInfo = _useContext.appInfo,
|
|
83
|
-
eventMeta = _useContext.eventMeta,
|
|
84
|
-
userProps = _useContext.userProps,
|
|
85
|
-
eventEnv = _useContext.eventEnv; // 初始化属性对象
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
useEffect(function () {
|
|
89
|
-
var attrOption = options || {
|
|
90
|
-
event: eventMeta,
|
|
91
|
-
user: userProps,
|
|
92
|
-
env: eventEnv
|
|
93
|
-
};
|
|
94
|
-
var eventOption = [];
|
|
95
|
-
var eventData = attrOption.event || []; // 取event中的attr列表
|
|
96
|
-
|
|
97
|
-
var _iterator = _createForOfIteratorHelper(eventData),
|
|
98
|
-
_step;
|
|
99
|
-
|
|
100
|
-
try {
|
|
101
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
102
|
-
var data = _step.value;
|
|
103
|
-
var eList = (data === null || data === void 0 ? void 0 : data.eventList) || [];
|
|
104
|
-
|
|
105
|
-
var _iterator2 = _createForOfIteratorHelper(eList),
|
|
106
|
-
_step2;
|
|
107
|
-
|
|
108
|
-
try {
|
|
109
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
110
|
-
var _event = _step2.value;
|
|
111
|
-
|
|
112
|
-
if (_event.event_id == eventIds) {
|
|
113
|
-
eventOption = eventOption.concat(_event.event_attrs);
|
|
114
|
-
break;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
if (!eventIds) {
|
|
118
|
-
eventOption = eventOption.concat(_event.event_attrs);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
} catch (err) {
|
|
122
|
-
_iterator2.e(err);
|
|
123
|
-
} finally {
|
|
124
|
-
_iterator2.f();
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
} catch (err) {
|
|
128
|
-
_iterator.e(err);
|
|
129
|
-
} finally {
|
|
130
|
-
_iterator.f();
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
var event = eventOption.find(function (item) {
|
|
134
|
-
return item.attr_id == defaultValue.attr_id;
|
|
135
|
-
});
|
|
136
|
-
var user = attrOption.user && attrOption.user.find(function (item) {
|
|
137
|
-
return item.alias_name === defaultValue.attr_name || item.text === defaultValue.attr_name;
|
|
138
|
-
});
|
|
139
|
-
var env = attrOption.env && attrOption.env.find(function (item) {
|
|
140
|
-
return item.text === defaultValue.attr_name;
|
|
141
|
-
});
|
|
142
|
-
var attrObj = event || user || env || {};
|
|
143
|
-
|
|
144
|
-
if (attrObj.operator) {
|
|
145
|
-
delete attrObj.operator;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
if (attrObj.params) {
|
|
149
|
-
delete attrObj.params;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
if (util.equal(attr, attrObj)) return;
|
|
153
|
-
setAttr(function () {
|
|
154
|
-
return _objectSpread({}, attrObj);
|
|
155
|
-
});
|
|
156
|
-
}, [defaultValue]); // 属性更改回调
|
|
157
|
-
|
|
158
|
-
useEffect(function () {
|
|
159
|
-
var requestData = {
|
|
160
|
-
app_id: (appInfo === null || appInfo === void 0 ? void 0 : appInfo.appId) || appId,
|
|
161
|
-
platform: (appInfo === null || appInfo === void 0 ? void 0 : appInfo.platform) || platform,
|
|
162
|
-
dimension_sub: attr.dimension_sub,
|
|
163
|
-
limit: 10000,
|
|
164
|
-
attr: attr.id,
|
|
165
|
-
v: operator || ''
|
|
166
|
-
};
|
|
167
|
-
ajax({
|
|
168
|
-
url: '/data/queryEsData.jsp',
|
|
169
|
-
data: requestData
|
|
170
|
-
}).then(function (res) {
|
|
171
|
-
var data = res.sources || [];
|
|
172
|
-
setConditionOptions(function () {
|
|
173
|
-
return _toConsumableArray(data);
|
|
174
|
-
});
|
|
175
|
-
}).catch(function () {
|
|
176
|
-
setConditionOptions(function () {
|
|
177
|
-
return [];
|
|
178
|
-
});
|
|
179
|
-
}); // 清空条件值
|
|
180
|
-
|
|
181
|
-
setCondition(function () {
|
|
182
|
-
return [];
|
|
183
|
-
});
|
|
184
|
-
}, [attr]);
|
|
185
|
-
return /*#__PURE__*/React.createElement(BizAttributeSelector, _objectSpread(_objectSpread({}, res), {}, {
|
|
186
|
-
defaultValue: attr,
|
|
187
|
-
eventIds: String(eventIds),
|
|
188
|
-
options: options,
|
|
189
|
-
onChange: function onChange(attr, attr2) {
|
|
190
|
-
var data = {};
|
|
191
|
-
|
|
192
|
-
if (_typeof(attr) === 'object') {
|
|
193
|
-
data = _objectSpread({}, attr);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
if (_typeof(attr2) === 'object') {
|
|
197
|
-
data = _objectSpread({}, attr2);
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
setAttr(function () {
|
|
201
|
-
return _objectSpread({}, data);
|
|
202
|
-
});
|
|
203
|
-
|
|
204
|
-
var data2 = _objectSpread(_objectSpread({}, data), {}, {
|
|
205
|
-
operator: operator,
|
|
206
|
-
params: _toConsumableArray(condition)
|
|
207
|
-
});
|
|
208
|
-
|
|
209
|
-
_onChange && _onChange(data2);
|
|
210
|
-
},
|
|
211
|
-
onDelete: onDelete,
|
|
212
|
-
showDeleteIcon: true,
|
|
213
|
-
responseType: 'object'
|
|
214
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
215
|
-
className: "biz-condition-value-container"
|
|
216
|
-
}, /*#__PURE__*/React.createElement(Select, {
|
|
217
|
-
options: stringOperate,
|
|
218
|
-
defaultValue: operator,
|
|
219
|
-
className: "biz-condition-operate biz-borderless ".concat(!Object.keys(attr).length ? 'no-active' : ''),
|
|
220
|
-
dropdownClassName: "small",
|
|
221
|
-
fieldNames: {
|
|
222
|
-
label: 'name',
|
|
223
|
-
value: 'value'
|
|
224
|
-
},
|
|
225
|
-
suffixIcon: /*#__PURE__*/React.createElement(IconFont, {
|
|
226
|
-
className: "biz-icon1",
|
|
227
|
-
type: 'icon-xiangxia'
|
|
228
|
-
}),
|
|
229
|
-
onChange: function onChange(operate) {
|
|
230
|
-
setOperator(function () {
|
|
231
|
-
return operate;
|
|
232
|
-
});
|
|
233
|
-
|
|
234
|
-
var data = _objectSpread(_objectSpread({}, attr), {}, {
|
|
235
|
-
operator: operate,
|
|
236
|
-
params: _toConsumableArray(condition)
|
|
237
|
-
});
|
|
238
|
-
|
|
239
|
-
_onChange && _onChange(data);
|
|
240
|
-
}
|
|
241
|
-
}), /*#__PURE__*/React.createElement(BizMultipleSelector, {
|
|
242
|
-
options: conditionOptions,
|
|
243
|
-
defaultValue: condition,
|
|
244
|
-
onChange: function onChange(condition) {
|
|
245
|
-
setCondition(function () {
|
|
246
|
-
return _toConsumableArray(condition);
|
|
247
|
-
});
|
|
248
|
-
|
|
249
|
-
var data = _objectSpread(_objectSpread({}, attr), {}, {
|
|
250
|
-
operator: operator,
|
|
251
|
-
params: _toConsumableArray(condition)
|
|
252
|
-
});
|
|
253
|
-
|
|
254
|
-
_onChange && _onChange(data);
|
|
255
|
-
}
|
|
256
|
-
})));
|
|
257
|
-
};
|
|
258
|
-
|
|
259
|
-
export default BizConditionItem;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
@import '../../../commonStyle/variable.less';
|
|
2
|
-
|
|
3
|
-
.biz-attr-group-container {
|
|
4
|
-
display: flex;
|
|
5
|
-
.biz-attr-group-content {
|
|
6
|
-
flex: 1;
|
|
7
|
-
.biz-select-cotainer:nth-last-child(1) {
|
|
8
|
-
margin-bottom: 0;
|
|
9
|
-
}
|
|
10
|
-
&:nth-child(:first-child) {
|
|
11
|
-
height: 300px;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
.biz-attr-group-operate {
|
|
15
|
-
position: relative;
|
|
16
|
-
width: 1px;
|
|
17
|
-
margin-right: 16px;
|
|
18
|
-
margin-left: 8px;
|
|
19
|
-
background: #ecedf0;
|
|
20
|
-
.biz-attr-operate {
|
|
21
|
-
position: absolute;
|
|
22
|
-
top: 50%;
|
|
23
|
-
left: 50%;
|
|
24
|
-
width: 16px;
|
|
25
|
-
border-radius: 3px;
|
|
26
|
-
transform: translate(-50%, -50%);
|
|
27
|
-
div {
|
|
28
|
-
width: 16px;
|
|
29
|
-
height: 16px;
|
|
30
|
-
font-size: 12px;
|
|
31
|
-
line-height: 16px;
|
|
32
|
-
text-align: center;
|
|
33
|
-
cursor: pointer;
|
|
34
|
-
.box-hover();
|
|
35
|
-
&:nth-child(:first-child) {
|
|
36
|
-
border-radius: 2px 2px 0px 0px;
|
|
37
|
-
}
|
|
38
|
-
&:nth-last-child(1) {
|
|
39
|
-
border-radius: 0px 0px 2px 2px;
|
|
40
|
-
}
|
|
41
|
-
&.active {
|
|
42
|
-
.box-active();
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
.biz-condition-value-container {
|
|
2
|
-
display: flex;
|
|
3
|
-
width: 100%;
|
|
4
|
-
margin-top: 2px;
|
|
5
|
-
|
|
6
|
-
.biz-condition-operate {
|
|
7
|
-
width: 88px !important;
|
|
8
|
-
margin-right: 8px;
|
|
9
|
-
// background: #f6f6f6;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
.no-active {
|
|
13
|
-
.ant-select-selector {
|
|
14
|
-
color: #9797af;
|
|
15
|
-
}
|
|
16
|
-
}
|