@zgfe/business-lib 1.2.71-hxd.22 → 1.2.71-hxd.25
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/AUMFormulaTarget/components/formula/index.js +10 -10
- package/es/AUMFormulaTarget/components/formula/util.js +6 -6
- package/es/AUMFormulaTarget/components/formulaItem/index.js +23 -23
- package/es/AUMFormulaTarget/components/panel/cdpCshCondition.js +50 -50
- package/es/AUMFormulaTarget/components/panel/index.js +30 -30
- package/es/AUMFormulaTarget/components/panel/index.less +269 -269
- package/es/AUMFormulaTarget/components/panel/item.js +22 -22
- package/es/AUMFormulaTarget/components/symbol/index.js +5 -5
- package/es/AUMFormulaTarget/demo/group.js +13 -13
- package/es/AUMFormulaTarget/index.js +11 -11
- package/es/addToPanel/components/addPanel.js +5 -5
- package/es/addToPanel/components/numberChart.js +5 -5
- package/es/addToPanel/components/styleList.js +5 -5
- package/es/addToPanel/components/wholeChart.js +5 -5
- package/es/addToPanel/demo/edit.js +7 -7
- package/es/addToPanel/demo/index.js +7 -7
- package/es/addToPanel/index.js +21 -21
- package/es/addToScene/demo/index.js +7 -7
- package/es/addToScene/index.js +8 -8
- package/es/assets/colorIcon/iconfont.json +555 -555
- package/es/assets/demo/dropdown.js +5 -5
- package/es/assets/demo/input.js +5 -5
- package/es/assets/styles/resetAntd.less +568 -568
- package/es/assets/styles/variable.less +21 -21
- package/es/assets/theme.js +1 -1
- package/es/attrCondition/group.js +4 -4
- package/es/attrCondition/index.js +11 -11
- package/es/attrCondition/styles/index.less +101 -101
- package/es/attrCondition/useAttrCondition.js +7 -7
- package/es/attrCondition/useConditionGroup.js +8 -8
- package/es/attrConditions/components/operateList.js +10 -10
- package/es/attrConditions/components/stringList.js +22 -21
- package/es/attrConditions/components/valuesList.js +5 -5
- package/es/attrConditions/demo/group.js +7 -7
- package/es/attrConditions/demo/index.js +5 -5
- package/es/attrConditions/group.js +3 -3
- package/es/attributeSelector/demo/disable.js +5 -5
- package/es/attributeSelector/demo/extra.js +5 -5
- package/es/attributeSelector/demo/funnel.js +5 -5
- package/es/attributeSelector/demo/index.js +5 -5
- package/es/attributeSelector/index.js +15 -15
- package/es/attributeSelector/listPanel.js +119 -116
- package/es/chart/demo/index.js +5 -5
- package/es/chart/demo/line_bar_stack.js +21 -21
- package/es/chart/demo/stack.js +5 -5
- package/es/chart/index.js +11 -11
- package/es/chart/styles/index.less +113 -113
- package/es/chart/util/chartOptionConfig.js +6 -6
- package/es/chart/util/data/china.js +1 -1
- package/es/chart/util/formatData.js +6 -6
- package/es/chart/util/mapUtil.js +11 -11
- package/es/constants/common.js +5 -5
- package/es/cycleTime/demo/hour.js +5 -5
- package/es/cycleTime/index.js +16 -16
- package/es/cycleTime/month.js +7 -7
- package/es/dataSetGroup/index.js +5 -5
- package/es/dataSetGroup/overlay.js +10 -10
- package/es/datePicker/datePicker.js +8 -8
- package/es/datePicker/demo/customType.js +5 -5
- package/es/datePicker/demo/day.js +5 -5
- package/es/datePicker/demo/index.js +5 -5
- package/es/datePicker/index.js +19 -19
- package/es/datePicker/shortcut.js +5 -5
- package/es/datePickerV2/datePicker.js +8 -8
- package/es/datePickerV2/demo/customType.js +5 -5
- package/es/datePickerV2/demo/day.js +5 -5
- package/es/datePickerV2/demo/index.js +5 -5
- package/es/datePickerV2/index.js +22 -22
- package/es/datePickerV2/popoverContent.js +10 -10
- package/es/datePickerV2/shortcut.js +7 -7
- package/es/datePickerV2/styles/index.less +194 -194
- package/es/demoWrapper/content.js +37 -37
- package/es/demoWrapper/index.js +15 -15
- package/es/dialog/demo/index.js +5 -5
- package/es/dialog/index.js +6 -6
- package/es/dnd/demo/data.js +5 -5
- package/es/dnd/demo/handle.js +5 -5
- package/es/dnd/index.js +11 -10
- package/es/dnd/item.js +5 -5
- package/es/empty/index.js +6 -6
- package/es/eventSelector/demo/index.js +5 -5
- package/es/eventSelector/demo/multiple.js +5 -5
- package/es/eventSelector/index.js +7 -7
- package/es/eventSelector/listPanel.js +33 -33
- package/es/eventSelector/option.js +3 -3
- package/es/eventSelector/styles/index.less +127 -127
- package/es/formulaTarget/components/formula/index.js +7 -7
- package/es/formulaTarget/components/formula/index.less +76 -76
- package/es/formulaTarget/components/formula/util.js +6 -6
- package/es/formulaTarget/components/formulaItem/index.js +21 -21
- package/es/formulaTarget/components/panel/index.js +32 -32
- package/es/formulaTarget/components/panel/item.js +10 -10
- package/es/formulaTarget/components/symbol/index.js +5 -5
- package/es/formulaTarget/demo/group.js +13 -13
- package/es/formulaTarget/index.js +25 -25
- package/es/hooks/useBizStore.js +35 -35
- package/es/hooks/useChanged.js +5 -5
- package/es/hooks/useSubject.js +5 -5
- package/es/icon/iconFont.js +8 -8
- package/es/layout/analysisLayout/index.js +8 -8
- package/es/layout/columnLayout/demo/data.js +9 -9
- package/es/layout/columnLayout/demo/index.js +5 -5
- package/es/layout/columnLayout/demo/panel.js +5 -5
- package/es/layout/columnLayout/index.js +10 -10
- package/es/layout/optionTitle/components/btnMenu/demo.js +2 -2
- package/es/layout/optionTitle/components/btnMenu/index.js +6 -6
- package/es/layout/optionTitle/components/changePanelModal/index.js +14 -14
- package/es/layout/optionTitle/components/changePanelModal/panelItem.js +10 -10
- package/es/layout/optionTitle/components/changePanelModal/styles/index.less +92 -92
- package/es/layout/optionTitle/components/title/demo.js +5 -5
- package/es/layout/optionTitle/components/title/index.js +11 -11
- package/es/layout/optionTitle/demo/index.js +5 -5
- package/es/layout/optionTitle/demo/layout.js +5 -5
- package/es/layout/optionTitle/demo/panelCreate.js +5 -5
- package/es/layout/optionTitle/index.js +21 -17
- package/es/layout/optionTitle/layout.js +9 -9
- package/es/loginForm/index.js +5 -5
- package/es/platformSelector/index.js +5 -5
- package/es/platformSelector/styles/index.less +26 -26
- package/es/productCondition/conditionTypeList.js +2 -2
- package/es/productCondition/conditions/cdpCshCondition.js +45 -45
- package/es/productCondition/conditions/eventCondition.js +8 -8
- package/es/productCondition/conditions/order/runPeriodCondition.js +6 -6
- package/es/productCondition/conditions/order/runTimesCondition.js +13 -13
- package/es/productCondition/conditions/periodCondition.js +8 -8
- package/es/productCondition/conditions/propCondition.js +14 -14
- package/es/productCondition/conditions/runTimesCondition.js +6 -6
- package/es/productCondition/conditions/styles/periodCondition.less +26 -26
- package/es/productCondition/conditions/textDesc.js +6 -6
- package/es/productCondition/conditions/timeDimension.js +18 -18
- package/es/productCondition/demo/business.js +5 -5
- package/es/productCondition/demo/index.js +5 -5
- package/es/productCondition/index.js +17 -17
- package/es/productCondition/orConditions.js +8 -8
- package/es/productCondition/relationLabel.js +2 -2
- package/es/productCondition/styles/conditionTypeList.less +32 -32
- package/es/productCondition/styles/relationLabel.less +19 -19
- package/es/productCondition/util.js +6 -6
- package/es/quickDatePicker/demo/index.js +11 -11
- package/es/quickDatePicker/index.js +27 -27
- package/es/quickDatePicker/styles/index.less +141 -141
- package/es/select/demo/children.js +5 -5
- package/es/select/demo/group.js +5 -5
- package/es/select/demo/index.js +5 -5
- package/es/select/demo/loading.js +5 -5
- package/es/select/demo/multiple.js +5 -5
- package/es/select/handle.js +12 -12
- package/es/select/index.js +17 -16
- package/es/select/option.js +13 -13
- package/es/select/overlay.js +17 -16
- package/es/select/styles/handle.less +206 -206
- package/es/select/styles/index.less +131 -131
- package/es/socket/demo/demo.js +8 -8
- package/es/socket/index.js +26 -23
- package/es/subjectWrapper/index.js +13 -13
- package/es/table/demo/index.js +15 -15
- package/es/table/demo/index2.js +5 -5
- package/es/table/demo/index3.js +8 -8
- package/es/table/index.js +8 -8
- package/es/targetConditionGroup/components/targetDimension.js +61 -57
- package/es/targetConditionGroup/demo/group.js +13 -13
- package/es/targetConditionGroup/demo/index.js +5 -5
- package/es/targetConditionGroup/index.js +32 -32
- package/es/targetSelector/demo/index.js +5 -5
- package/es/targetSelector/editBox.js +5 -5
- package/es/targetSelector/index.js +7 -7
- package/es/targetSelector/styles/index.less +142 -142
- package/es/userCondition/conditionTypeList.js +11 -11
- package/es/userCondition/conditions/business/operatorCondition.js +15 -15
- package/es/userCondition/conditions/business/paramsCondition.js +10 -10
- package/es/userCondition/conditions/businessCondition.js +15 -15
- package/es/userCondition/conditions/cdpCondition.js +27 -27
- package/es/userCondition/conditions/cdpCshCondition.js +45 -45
- package/es/userCondition/conditions/dataAttribute.js +11 -11
- package/es/userCondition/conditions/eventCondition.js +17 -17
- package/es/userCondition/conditions/order/runPeriodCondition.js +6 -6
- package/es/userCondition/conditions/order/runTimesCondition.js +13 -13
- package/es/userCondition/conditions/periodCondition.js +10 -10
- package/es/userCondition/conditions/propCondition.js +16 -16
- package/es/userCondition/conditions/runTimesCondition.js +6 -6
- package/es/userCondition/conditions/styles/eventCondition.less +71 -71
- package/es/userCondition/conditions/styles/periodCondition.less +32 -32
- package/es/userCondition/conditions/styles/textDesc.less +16 -16
- package/es/userCondition/conditions/tagsCondition.js +11 -11
- package/es/userCondition/conditions/textDesc.js +14 -14
- package/es/userCondition/conditions/timeDimension.js +18 -18
- package/es/userCondition/demo/business.js +5 -5
- package/es/userCondition/demo/index.js +5 -5
- package/es/userCondition/index.js +46 -45
- package/es/userCondition/orConditions.js +8 -8
- package/es/userCondition/relationLabel.js +2 -2
- package/es/userCondition/styles/conditionTypeList.less +32 -32
- package/es/userCondition/styles/relationLabel.less +19 -19
- package/es/userCondition/util.js +6 -6
- package/es/userGroup/demo/group.js +13 -13
- package/es/userGroup/demo/index.js +7 -7
- package/es/userGroup/index.js +10 -9
- package/es/userGroup/overlay.js +15 -15
- package/es/userGroup/styles/index.less +199 -199
- package/es/userGroupHeader/index.js +10 -10
- package/es/userGroupHeader/styles/index.less +50 -50
- package/es/userTagsSelector/cascaderOverlay.js +27 -27
- package/es/userTagsSelector/components/tagList/index.js +5 -5
- package/es/userTagsSelector/demo/index.js +5 -5
- package/es/userTagsSelector/groups/index.js +5 -5
- package/es/userTagsSelector/index.js +13 -13
- package/es/userTagsSelector/multipleCheckPanel/index.js +5 -5
- package/es/userTagsSelector/styles/index.less +20 -20
- package/es/utils/ajax.js +50 -47
- package/es/utils/demo/interruption.js +5 -5
- package/es/utils/eventApi.js +58 -50
- package/es/utils/type.js +6 -6
- package/package.json +2 -2
|
@@ -1,141 +1,141 @@
|
|
|
1
|
-
@import '../../assets/styles/inner.less';
|
|
2
|
-
|
|
3
|
-
.biz-quick-date-picker-wrap {
|
|
4
|
-
position: relative;
|
|
5
|
-
display: inline-block;
|
|
6
|
-
height: 34px;
|
|
7
|
-
padding: 4px 8px;
|
|
8
|
-
background: #fafafb;
|
|
9
|
-
border: 1px solid #fafafb;
|
|
10
|
-
border-radius: 4px;
|
|
11
|
-
&-tip {
|
|
12
|
-
position: absolute;
|
|
13
|
-
top: 4px;
|
|
14
|
-
left: 8px;
|
|
15
|
-
z-index: 2;
|
|
16
|
-
border-radius: 2px;
|
|
17
|
-
}
|
|
18
|
-
.ant-picker-range-arrow {
|
|
19
|
-
display: none !important;
|
|
20
|
-
}
|
|
21
|
-
.ant-picker-focused {
|
|
22
|
-
box-shadow: none !important;
|
|
23
|
-
}
|
|
24
|
-
> :nth-child(1) {
|
|
25
|
-
float: left;
|
|
26
|
-
height: 24px;
|
|
27
|
-
margin-right: 8px;
|
|
28
|
-
padding: 2px 8px;
|
|
29
|
-
color: @primary-color;
|
|
30
|
-
vertical-align: middle;
|
|
31
|
-
background: #e8efff;
|
|
32
|
-
}
|
|
33
|
-
.ant-picker {
|
|
34
|
-
padding: 0;
|
|
35
|
-
vertical-align: middle;
|
|
36
|
-
border: none;
|
|
37
|
-
border-radius: 0 !important;
|
|
38
|
-
.ant-picker-clear {
|
|
39
|
-
right: 0;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
.ant-picker:not(.disabled):hover {
|
|
43
|
-
.ant-picker-input > input,
|
|
44
|
-
.ant-picker-range-separator {
|
|
45
|
-
color: #021429 !important;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
&-content {
|
|
49
|
-
float: left;
|
|
50
|
-
.ant-picker-panel-container {
|
|
51
|
-
display: flex;
|
|
52
|
-
flex-direction: row-reverse;
|
|
53
|
-
border-radius: 8px;
|
|
54
|
-
.ant-picker-footer {
|
|
55
|
-
width: auto;
|
|
56
|
-
min-width: auto;
|
|
57
|
-
border-bottom: 1px solid #e8efff;
|
|
58
|
-
box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
&-options {
|
|
62
|
-
width: 170px;
|
|
63
|
-
padding-bottom: 25px;
|
|
64
|
-
color: #67727f;
|
|
65
|
-
ol,
|
|
66
|
-
li {
|
|
67
|
-
margin: 0;
|
|
68
|
-
padding: 0;
|
|
69
|
-
list-style: none;
|
|
70
|
-
list-style-type: none;
|
|
71
|
-
}
|
|
72
|
-
&-defaultOptions,
|
|
73
|
-
&-customOptions {
|
|
74
|
-
> :nth-child(1),
|
|
75
|
-
> :nth-child(2) {
|
|
76
|
-
display: flex;
|
|
77
|
-
flex-wrap: wrap;
|
|
78
|
-
justify-content: space-between;
|
|
79
|
-
margin-top: 16px;
|
|
80
|
-
padding-bottom: 4px;
|
|
81
|
-
border-bottom: 1px solid #ecedf0;
|
|
82
|
-
li {
|
|
83
|
-
width: 81px;
|
|
84
|
-
height: 24px;
|
|
85
|
-
margin-bottom: 8px;
|
|
86
|
-
line-height: 24px;
|
|
87
|
-
text-align: center;
|
|
88
|
-
background: #fafafb;
|
|
89
|
-
border-radius: 24px;
|
|
90
|
-
cursor: pointer;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
> :nth-child(2) {
|
|
94
|
-
margin-top: 14px;
|
|
95
|
-
li {
|
|
96
|
-
border-radius: 2px;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
.customTime {
|
|
101
|
-
display: flex;
|
|
102
|
-
justify-content: space-between;
|
|
103
|
-
width: 100%;
|
|
104
|
-
height: 32px;
|
|
105
|
-
margin-top: 12px;
|
|
106
|
-
padding: 0 12px;
|
|
107
|
-
line-height: 32px;
|
|
108
|
-
background: #fafafb;
|
|
109
|
-
border-radius: 2px;
|
|
110
|
-
> :first-child {
|
|
111
|
-
transform: rotate(180deg);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
.active,
|
|
115
|
-
li.active {
|
|
116
|
-
color: @primary-color;
|
|
117
|
-
background: #e8efff;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.biz-quick-date-picker-wrap:not(.disabled):hover {
|
|
124
|
-
border: 1px solid @primary-color;
|
|
125
|
-
}
|
|
126
|
-
.biz-quick-date-picker-wrap.focus {
|
|
127
|
-
border: 1px solid @primary-color;
|
|
128
|
-
box-shadow: 0 0 0 4px #f0f7ff;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.clearfix:after {
|
|
132
|
-
display: block;
|
|
133
|
-
clear: both;
|
|
134
|
-
height: 0;
|
|
135
|
-
content: '';
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.clearfix {
|
|
139
|
-
/* 触发 hasLayout */
|
|
140
|
-
zoom: 1;
|
|
141
|
-
}
|
|
1
|
+
@import '../../assets/styles/inner.less';
|
|
2
|
+
|
|
3
|
+
.biz-quick-date-picker-wrap {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: inline-block;
|
|
6
|
+
height: 34px;
|
|
7
|
+
padding: 4px 8px;
|
|
8
|
+
background: #fafafb;
|
|
9
|
+
border: 1px solid #fafafb;
|
|
10
|
+
border-radius: 4px;
|
|
11
|
+
&-tip {
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: 4px;
|
|
14
|
+
left: 8px;
|
|
15
|
+
z-index: 2;
|
|
16
|
+
border-radius: 2px;
|
|
17
|
+
}
|
|
18
|
+
.ant-picker-range-arrow {
|
|
19
|
+
display: none !important;
|
|
20
|
+
}
|
|
21
|
+
.ant-picker-focused {
|
|
22
|
+
box-shadow: none !important;
|
|
23
|
+
}
|
|
24
|
+
> :nth-child(1) {
|
|
25
|
+
float: left;
|
|
26
|
+
height: 24px;
|
|
27
|
+
margin-right: 8px;
|
|
28
|
+
padding: 2px 8px;
|
|
29
|
+
color: @primary-color;
|
|
30
|
+
vertical-align: middle;
|
|
31
|
+
background: #e8efff;
|
|
32
|
+
}
|
|
33
|
+
.ant-picker {
|
|
34
|
+
padding: 0;
|
|
35
|
+
vertical-align: middle;
|
|
36
|
+
border: none;
|
|
37
|
+
border-radius: 0 !important;
|
|
38
|
+
.ant-picker-clear {
|
|
39
|
+
right: 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
.ant-picker:not(.disabled):hover {
|
|
43
|
+
.ant-picker-input > input,
|
|
44
|
+
.ant-picker-range-separator {
|
|
45
|
+
color: #021429 !important;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
&-content {
|
|
49
|
+
float: left;
|
|
50
|
+
.ant-picker-panel-container {
|
|
51
|
+
display: flex;
|
|
52
|
+
flex-direction: row-reverse;
|
|
53
|
+
border-radius: 8px;
|
|
54
|
+
.ant-picker-footer {
|
|
55
|
+
width: auto;
|
|
56
|
+
min-width: auto;
|
|
57
|
+
border-bottom: 1px solid #e8efff;
|
|
58
|
+
box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
&-options {
|
|
62
|
+
width: 170px;
|
|
63
|
+
padding-bottom: 25px;
|
|
64
|
+
color: #67727f;
|
|
65
|
+
ol,
|
|
66
|
+
li {
|
|
67
|
+
margin: 0;
|
|
68
|
+
padding: 0;
|
|
69
|
+
list-style: none;
|
|
70
|
+
list-style-type: none;
|
|
71
|
+
}
|
|
72
|
+
&-defaultOptions,
|
|
73
|
+
&-customOptions {
|
|
74
|
+
> :nth-child(1),
|
|
75
|
+
> :nth-child(2) {
|
|
76
|
+
display: flex;
|
|
77
|
+
flex-wrap: wrap;
|
|
78
|
+
justify-content: space-between;
|
|
79
|
+
margin-top: 16px;
|
|
80
|
+
padding-bottom: 4px;
|
|
81
|
+
border-bottom: 1px solid #ecedf0;
|
|
82
|
+
li {
|
|
83
|
+
width: 81px;
|
|
84
|
+
height: 24px;
|
|
85
|
+
margin-bottom: 8px;
|
|
86
|
+
line-height: 24px;
|
|
87
|
+
text-align: center;
|
|
88
|
+
background: #fafafb;
|
|
89
|
+
border-radius: 24px;
|
|
90
|
+
cursor: pointer;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
> :nth-child(2) {
|
|
94
|
+
margin-top: 14px;
|
|
95
|
+
li {
|
|
96
|
+
border-radius: 2px;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
.customTime {
|
|
101
|
+
display: flex;
|
|
102
|
+
justify-content: space-between;
|
|
103
|
+
width: 100%;
|
|
104
|
+
height: 32px;
|
|
105
|
+
margin-top: 12px;
|
|
106
|
+
padding: 0 12px;
|
|
107
|
+
line-height: 32px;
|
|
108
|
+
background: #fafafb;
|
|
109
|
+
border-radius: 2px;
|
|
110
|
+
> :first-child {
|
|
111
|
+
transform: rotate(180deg);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
.active,
|
|
115
|
+
li.active {
|
|
116
|
+
color: @primary-color;
|
|
117
|
+
background: #e8efff;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.biz-quick-date-picker-wrap:not(.disabled):hover {
|
|
124
|
+
border: 1px solid @primary-color;
|
|
125
|
+
}
|
|
126
|
+
.biz-quick-date-picker-wrap.focus {
|
|
127
|
+
border: 1px solid @primary-color;
|
|
128
|
+
box-shadow: 0 0 0 4px #f0f7ff;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.clearfix:after {
|
|
132
|
+
display: block;
|
|
133
|
+
clear: both;
|
|
134
|
+
height: 0;
|
|
135
|
+
content: '';
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.clearfix {
|
|
139
|
+
/* 触发 hasLayout */
|
|
140
|
+
zoom: 1;
|
|
141
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
2
|
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."); }
|
|
3
|
-
function _unsupportedIterableToArray(
|
|
4
|
-
function _arrayLikeToArray(
|
|
5
|
-
function _iterableToArrayLimit(
|
|
6
|
-
function _arrayWithHoles(
|
|
3
|
+
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); }
|
|
4
|
+
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; }
|
|
5
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React, { useState } from 'react';
|
|
8
8
|
import { BizSelect } from '@zgfe/business-lib';
|
|
9
9
|
import { Button } from 'antd';
|
package/es/select/demo/group.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
2
|
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."); }
|
|
3
|
-
function _unsupportedIterableToArray(
|
|
4
|
-
function _arrayLikeToArray(
|
|
5
|
-
function _iterableToArrayLimit(
|
|
6
|
-
function _arrayWithHoles(
|
|
3
|
+
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); }
|
|
4
|
+
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; }
|
|
5
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React, { useState } from 'react';
|
|
8
8
|
import { BizSelect, IconFont } from '@zgfe/business-lib';
|
|
9
9
|
import { Button } from 'antd';
|
package/es/select/demo/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
2
|
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."); }
|
|
3
|
-
function _unsupportedIterableToArray(
|
|
4
|
-
function _arrayLikeToArray(
|
|
5
|
-
function _iterableToArrayLimit(
|
|
6
|
-
function _arrayWithHoles(
|
|
3
|
+
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); }
|
|
4
|
+
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; }
|
|
5
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React, { useState } from 'react';
|
|
8
8
|
import { BizSelect } from '@zgfe/business-lib';
|
|
9
9
|
import { Button } from 'antd';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
2
|
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."); }
|
|
3
|
-
function _unsupportedIterableToArray(
|
|
4
|
-
function _arrayLikeToArray(
|
|
5
|
-
function _iterableToArrayLimit(
|
|
6
|
-
function _arrayWithHoles(
|
|
3
|
+
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); }
|
|
4
|
+
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; }
|
|
5
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React, { useEffect, useState } from 'react';
|
|
8
8
|
import { BizSelect } from '@zgfe/business-lib';
|
|
9
9
|
var stringOperate = Array(10).fill(1).map(function (_item, index) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
2
|
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."); }
|
|
3
|
-
function _unsupportedIterableToArray(
|
|
4
|
-
function _arrayLikeToArray(
|
|
5
|
-
function _iterableToArrayLimit(
|
|
6
|
-
function _arrayWithHoles(
|
|
3
|
+
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); }
|
|
4
|
+
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; }
|
|
5
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React, { useState } from 'react';
|
|
8
8
|
import { BizSelect } from '@zgfe/business-lib';
|
|
9
9
|
var stringOperate = [{
|
package/es/select/handle.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
2
|
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."); }
|
|
3
|
-
function _unsupportedIterableToArray(
|
|
4
|
-
function _arrayLikeToArray(
|
|
5
|
-
function _iterableToArrayLimit(
|
|
6
|
-
function _arrayWithHoles(
|
|
3
|
+
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); }
|
|
4
|
+
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; }
|
|
5
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import { Input, Tag, Tooltip } from 'antd';
|
|
8
8
|
import { FormItemInputContext } from 'antd/es/form/context';
|
|
9
9
|
import React, { useContext, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
@@ -121,10 +121,10 @@ var SelectHandle = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
121
121
|
}, /*#__PURE__*/React.createElement("div", {
|
|
122
122
|
className: "".concat(classPrefix, "-tag-label")
|
|
123
123
|
}, item[aliasField || ''] || item[labelField])));
|
|
124
|
-
}) : !focus ?
|
|
124
|
+
}) : !focus ? /*#__PURE__*/React.createElement("span", {
|
|
125
125
|
className: "".concat(classPrefix, "-holder"),
|
|
126
126
|
onClick: onClick
|
|
127
|
-
}, placeholder || '请选择')
|
|
127
|
+
}, placeholder || '请选择') : '', /*#__PURE__*/React.createElement(Input, {
|
|
128
128
|
ref: inputRef,
|
|
129
129
|
autoFocus: focus,
|
|
130
130
|
disabled: props.disable,
|
|
@@ -152,11 +152,11 @@ var SelectHandle = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
152
152
|
className: "".concat(classPrefix, "-content")
|
|
153
153
|
}, /*#__PURE__*/React.createElement("span", {
|
|
154
154
|
className: "".concat(classPrefix, "-content-label")
|
|
155
|
-
}, showSelectIcon && ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.icon) &&
|
|
155
|
+
}, showSelectIcon && ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.icon) && /*#__PURE__*/React.createElement("span", {
|
|
156
156
|
className: "".concat(classPrefix, "-icon")
|
|
157
|
-
}, props.value.icon)
|
|
157
|
+
}, props.value.icon), props.children || props.label || (optionData === null || optionData === void 0 ? void 0 : optionData[aliasField || '']) || (optionData === null || optionData === void 0 ? void 0 : optionData[labelField]) || /*#__PURE__*/React.createElement("span", {
|
|
158
158
|
className: "".concat(classPrefix, "-holder")
|
|
159
|
-
}, placeholder || '请选择')
|
|
159
|
+
}, placeholder || '请选择'), extraLabel || '')), /*#__PURE__*/React.createElement("div", {
|
|
160
160
|
className: "".concat(classPrefix, "-content-icon-list"),
|
|
161
161
|
style: onSelectDelete ? {
|
|
162
162
|
width: 50
|
|
@@ -164,7 +164,7 @@ var SelectHandle = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
164
164
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
165
165
|
className: "".concat(classPrefix, "-expand-icon").concat(props.open ? ' open' : ''),
|
|
166
166
|
type: 'xiangxia'
|
|
167
|
-
}), onSelectDelete &&
|
|
167
|
+
}), onSelectDelete && /*#__PURE__*/React.createElement("div", {
|
|
168
168
|
className: "".concat(classPrefix, "-content-icon-qingchu-box"),
|
|
169
169
|
onClick: function onClick(e) {
|
|
170
170
|
e.stopPropagation();
|
|
@@ -173,6 +173,6 @@ var SelectHandle = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
173
173
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
174
174
|
className: "".concat(classPrefix, "-content-icon-qingchu"),
|
|
175
175
|
type: 'qingchu'
|
|
176
|
-
}))))
|
|
176
|
+
}))));
|
|
177
177
|
});
|
|
178
178
|
export default SelectHandle;
|
package/es/select/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
function _typeof(
|
|
1
|
+
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); }
|
|
2
2
|
var _excluded = ["overlayWidth", "minDropdownWidth", "labelField", "aliasField", "keyField", "enableClear"];
|
|
3
|
-
function ownKeys(
|
|
4
|
-
function _objectSpread(
|
|
5
|
-
function _defineProperty(
|
|
6
|
-
function _toPropertyKey(
|
|
7
|
-
function _toPrimitive(
|
|
8
|
-
function _slicedToArray(
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
+
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; }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
9
9
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
10
|
-
function _unsupportedIterableToArray(
|
|
11
|
-
function _arrayLikeToArray(
|
|
12
|
-
function _iterableToArrayLimit(
|
|
13
|
-
function _arrayWithHoles(
|
|
14
|
-
function _objectWithoutProperties(
|
|
15
|
-
function _objectWithoutPropertiesLoose(
|
|
10
|
+
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); }
|
|
11
|
+
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; }
|
|
12
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
13
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
|
+
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; }
|
|
15
|
+
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; }
|
|
16
16
|
import { Dropdown } from 'antd';
|
|
17
17
|
import React, { useEffect, useRef, useState } from 'react';
|
|
18
18
|
import SelectHandle from './handle';
|
|
@@ -126,6 +126,7 @@ var BizSelect = function BizSelect(props) {
|
|
|
126
126
|
props.onVisibleChange && props.onVisibleChange(flag);
|
|
127
127
|
};
|
|
128
128
|
var onCreate = function onCreate(val) {
|
|
129
|
+
var _data;
|
|
129
130
|
if (!props.enableCreate) return;
|
|
130
131
|
if (current) {
|
|
131
132
|
var flag = true;
|
|
@@ -136,7 +137,7 @@ var BizSelect = function BizSelect(props) {
|
|
|
136
137
|
});
|
|
137
138
|
if (!flag) return;
|
|
138
139
|
}
|
|
139
|
-
var data =
|
|
140
|
+
var data = (_data = {}, _defineProperty(_data, keyField, val), _defineProperty(_data, labelField, val), _data);
|
|
140
141
|
var originData = current || [];
|
|
141
142
|
originData.push(data);
|
|
142
143
|
setCurrent(originData);
|
|
@@ -182,7 +183,7 @@ var BizSelect = function BizSelect(props) {
|
|
|
182
183
|
className: "".concat(classPrefix, "-handle ").concat(props.className ? props.className : ''),
|
|
183
184
|
ref: selectRef,
|
|
184
185
|
id: selectId
|
|
185
|
-
}, props.children ? props.children :
|
|
186
|
+
}, props.children ? props.children : /*#__PURE__*/React.createElement(SelectHandle, {
|
|
186
187
|
ref: boxRef,
|
|
187
188
|
value: current,
|
|
188
189
|
labelField: labelField,
|
|
@@ -207,7 +208,7 @@ var BizSelect = function BizSelect(props) {
|
|
|
207
208
|
onCreate: onCreate,
|
|
208
209
|
onVisible: onVisible,
|
|
209
210
|
disableItemList: props.disableItemList
|
|
210
|
-
})))
|
|
211
|
+
})));
|
|
211
212
|
};
|
|
212
213
|
BizSelect.defaultProps = {
|
|
213
214
|
labelField: 'label',
|
package/es/select/option.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _slicedToArray(
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
2
|
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."); }
|
|
3
|
-
function _unsupportedIterableToArray(
|
|
4
|
-
function _arrayLikeToArray(
|
|
5
|
-
function _iterableToArrayLimit(
|
|
6
|
-
function _arrayWithHoles(
|
|
3
|
+
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); }
|
|
4
|
+
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; }
|
|
5
|
+
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import { Tooltip } from 'antd';
|
|
8
8
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
9
9
|
import { classPrefix } from '.';
|
|
@@ -25,13 +25,13 @@ export var SelectAll = function SelectAll(props) {
|
|
|
25
25
|
return /*#__PURE__*/React.createElement("div", {
|
|
26
26
|
className: "".concat(classPrefix, "-option ").concat(classPrefix, "-option-multiple ").concat(classPrefix, "-option-all").concat(checkCode === 2 ? ' active' : ''),
|
|
27
27
|
onClick: onClick
|
|
28
|
-
}, checkCode === 2 ?
|
|
28
|
+
}, checkCode === 2 ? /*#__PURE__*/React.createElement(IconFont, {
|
|
29
29
|
className: "".concat(classPrefix, "-checkbox ").concat(classPrefix, "-checked"),
|
|
30
30
|
type: 'a-Property1xuanzhong'
|
|
31
|
-
})
|
|
31
|
+
}) : /*#__PURE__*/React.createElement(IconFont, {
|
|
32
32
|
className: "".concat(classPrefix, "-checkbox ").concat(classPrefix, "-check"),
|
|
33
33
|
type: 'a-Property1moren'
|
|
34
|
-
})
|
|
34
|
+
}), checkCode === 1 ? /*#__PURE__*/React.createElement("div", {
|
|
35
35
|
className: "".concat(classPrefix, "-checkbox-indeterminate")
|
|
36
36
|
}) : null, "\u5168\u9009");
|
|
37
37
|
};
|
|
@@ -88,19 +88,19 @@ var SelectOption = function SelectOption(props) {
|
|
|
88
88
|
}, /*#__PURE__*/React.createElement("div", {
|
|
89
89
|
className: "".concat(classPrefix, "-option ").concat(multiple ? classPrefix + '-option-multiple' : '', " ").concat(checked ? 'active' : '', " ").concat(disabled ? 'disabled' : ''),
|
|
90
90
|
onClick: onClick
|
|
91
|
-
}, multiple && (checked ?
|
|
91
|
+
}, multiple && (checked ? /*#__PURE__*/React.createElement(IconFont, {
|
|
92
92
|
className: "".concat(classPrefix, "-checkbox ").concat(classPrefix, "-checked"),
|
|
93
93
|
type: 'a-Property1xuanzhong'
|
|
94
|
-
})
|
|
94
|
+
}) : /*#__PURE__*/React.createElement(IconFont, {
|
|
95
95
|
className: "".concat(classPrefix, "-checkbox ").concat(classPrefix, "-check"),
|
|
96
96
|
type: 'a-Property1moren'
|
|
97
|
-
}))
|
|
97
|
+
})), (option === null || option === void 0 ? void 0 : option.icon) && /*#__PURE__*/React.createElement("span", {
|
|
98
98
|
className: "".concat(classPrefix, "-option-icon")
|
|
99
99
|
}, option === null || option === void 0 ? void 0 : option.icon), /*#__PURE__*/React.createElement("span", {
|
|
100
100
|
className: "".concat(classPrefix, "-option-label"),
|
|
101
101
|
ref: optionRef
|
|
102
|
-
}, renderLabel(option)), !disabled &&
|
|
102
|
+
}, renderLabel(option)), !disabled && /*#__PURE__*/React.createElement("span", {
|
|
103
103
|
className: "".concat(classPrefix, "-option-btn")
|
|
104
|
-
}, props.extra && props.extra(option))))
|
|
104
|
+
}, props.extra && props.extra(option))));
|
|
105
105
|
};
|
|
106
106
|
export default SelectOption;
|