@bit-sun/business-component 4.2.0-alpha.6.1 → 4.2.0-alpha.6.11
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/dist/components/Business/AddSelectBusiness/index.d.ts +4 -3
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +2 -1
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +2 -1
- package/dist/components/Business/BsLayouts/index.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +2 -1
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +15 -14
- package/dist/components/Business/CommodityEntry/index.d.ts +2 -1
- package/dist/components/Business/CommonAlert/index.d.ts +2 -1
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
- package/dist/components/Business/DetailPageWrapper/index.d.ts +12 -11
- package/dist/components/Business/HomePageWrapper/index.d.ts +2 -1
- package/dist/components/Business/ItemPropertySelector/index.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +2 -1
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +2 -1
- package/dist/components/Business/PropertyModal/index.d.ts +2 -1
- package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/StateFlow/index.d.ts +2 -1
- package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
- package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +2 -1
- package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/utils.d.ts +2 -1
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
- package/dist/components/Common/Section/index.d.ts +1 -1
- package/dist/components/Functional/AddSelect/index.d.ts +2 -1
- package/dist/components/Functional/AuthButton/index.d.ts +2 -1
- package/dist/components/Functional/DataImport/index.d.ts +3 -3
- package/dist/components/Functional/DataValidation/index.d.ts +4 -4
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +2 -1
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +2 -1
- package/dist/components/Functional/QueryMutipleSelect/index.d.ts +2 -1
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +3 -2
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/Formula.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +2 -1
- package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +2 -1
- package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +2 -1
- package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
- package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
- package/dist/index.esm.js +1385 -796
- package/dist/index.js +1385 -796
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/TableUtils.d.ts +19 -18
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +234 -38
- package/src/components/Business/StateFlow/index.css +126 -0
- package/src/components/Business/StateFlow/index.less +17 -17
- package/src/components/Business/columnSettingTable/index.tsx +7 -6
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +23 -22
- package/src/components/Functional/AddSelect/index.tsx +92 -0
- package/src/components/Functional/SearchSelect/index.css +274 -0
- package/src/components/Functional/SearchSelect/index.less +5 -5
- package/src/components/Functional/SearchSelect/index.tsx +5 -2
- package/src/components/Solution/RuleComponent/index.js +1 -0
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
.search_select .ant-select-selector {
|
|
2
|
+
height: 24px;
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
}
|
|
5
|
+
.search_select .ant-select-selector .ant-select-selection-overflow {
|
|
6
|
+
height: 40px;
|
|
7
|
+
flex-wrap: nowrap;
|
|
8
|
+
overflow-x: auto;
|
|
9
|
+
}
|
|
10
|
+
.search_select .ant-select-selector .ant-select-selection-overflow-item {
|
|
11
|
+
align-self: auto;
|
|
12
|
+
}
|
|
13
|
+
.search_select_show {
|
|
14
|
+
display: flex;
|
|
15
|
+
}
|
|
16
|
+
.search_select_show .ant-select-dropdown {
|
|
17
|
+
top: 24px !important;
|
|
18
|
+
width: calc(141%) !important;
|
|
19
|
+
}
|
|
20
|
+
.search_select_show .ant-select-clear {
|
|
21
|
+
right: 33px;
|
|
22
|
+
}
|
|
23
|
+
.search_select_show .ant-select-multiple.ant-select-show-arrow .ant-select-selector,
|
|
24
|
+
.search_select_show .ant-select-multiple.ant-select-allow-clear .ant-select-selector {
|
|
25
|
+
padding-right: 28px;
|
|
26
|
+
}
|
|
27
|
+
.search_select_show.search_select_show_list .ant-select-dropdown {
|
|
28
|
+
top: 24px !important;
|
|
29
|
+
width: calc(100% + 110px) !important;
|
|
30
|
+
}
|
|
31
|
+
.search_select_expand_button {
|
|
32
|
+
position: relative;
|
|
33
|
+
right: -11px;
|
|
34
|
+
width: 30px;
|
|
35
|
+
border-left: 1px solid #d9d9d9;
|
|
36
|
+
height: 24px;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
font-size: 14px;
|
|
39
|
+
font-weight: bolder;
|
|
40
|
+
}
|
|
41
|
+
.search_select_expand_button span {
|
|
42
|
+
position: absolute;
|
|
43
|
+
left: 50%;
|
|
44
|
+
top: 50%;
|
|
45
|
+
transform: translate(-50%, -50%);
|
|
46
|
+
}
|
|
47
|
+
.search_select_expand_button:hover {
|
|
48
|
+
background-color: #005cff;
|
|
49
|
+
color: #fff;
|
|
50
|
+
border-top-right-radius: 2px;
|
|
51
|
+
border-bottom-right-radius: 2px;
|
|
52
|
+
}
|
|
53
|
+
.search_select_expand_button_disabled:hover {
|
|
54
|
+
background-color: transparent;
|
|
55
|
+
color: rgba(0, 0, 0, 0.25);
|
|
56
|
+
cursor: not-allowed;
|
|
57
|
+
}
|
|
58
|
+
.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table {
|
|
59
|
+
font-family: MiSans-Regular;
|
|
60
|
+
font-weight: 400;
|
|
61
|
+
font-size: 12px;
|
|
62
|
+
}
|
|
63
|
+
.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table thead > tr > th {
|
|
64
|
+
color: #7F7F7F;
|
|
65
|
+
}
|
|
66
|
+
.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {
|
|
67
|
+
justify-content: center;
|
|
68
|
+
}
|
|
69
|
+
.search_select_dropdown_table .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table tbody > tr > td {
|
|
70
|
+
color: #333333;
|
|
71
|
+
}
|
|
72
|
+
.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column,
|
|
73
|
+
.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column {
|
|
74
|
+
visibility: hidden;
|
|
75
|
+
padding: 0;
|
|
76
|
+
margin: 0;
|
|
77
|
+
width: 0;
|
|
78
|
+
height: 0;
|
|
79
|
+
min-width: 0;
|
|
80
|
+
min-height: 0;
|
|
81
|
+
border: none;
|
|
82
|
+
}
|
|
83
|
+
.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-body > table > tbody > tr > td.ant-table-selection-column .ant-radio-wrapper,
|
|
84
|
+
.search_select_dropdown_table1 .ant-table.ant-table-bordered > .ant-table-container .ant-table-header > table > thead > tr > th.ant-table-selection-column .ant-radio-wrapper {
|
|
85
|
+
display: none;
|
|
86
|
+
}
|
|
87
|
+
.search_select_modal_wrapper .ant-modal {
|
|
88
|
+
top: 60px;
|
|
89
|
+
}
|
|
90
|
+
.search_select_modal_wrapper .ant-modal-header {
|
|
91
|
+
padding: 6px 0px 6px 16px;
|
|
92
|
+
}
|
|
93
|
+
.search_select_modal_wrapper .ant-modal-header .ant-modal-title {
|
|
94
|
+
height: 20px;
|
|
95
|
+
color: #000000;
|
|
96
|
+
line-height: 20px;
|
|
97
|
+
}
|
|
98
|
+
.search_select_modal_wrapper .ant-modal-close-x {
|
|
99
|
+
width: 32px;
|
|
100
|
+
height: 32px;
|
|
101
|
+
line-height: 32px;
|
|
102
|
+
}
|
|
103
|
+
.search_select_modal_wrapper .ant-modal-body {
|
|
104
|
+
padding: 0px;
|
|
105
|
+
background: #F3F3F3;
|
|
106
|
+
height: calc(100vh - 190px);
|
|
107
|
+
overflow: hidden;
|
|
108
|
+
}
|
|
109
|
+
.search_select_modal_wrapper .ant-modal-footer .ant-btn.ant-btn-default {
|
|
110
|
+
color: #005cff;
|
|
111
|
+
border-color: #005cff;
|
|
112
|
+
}
|
|
113
|
+
.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary,
|
|
114
|
+
.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {
|
|
115
|
+
background: #005cff;
|
|
116
|
+
border-color: #005cff;
|
|
117
|
+
}
|
|
118
|
+
.search_select_modal_wrapper .ant-modal-footer .ant-btn-primary[disabled] {
|
|
119
|
+
opacity: 0.5;
|
|
120
|
+
color: #fff;
|
|
121
|
+
}
|
|
122
|
+
.search_select_wrapper {
|
|
123
|
+
position: relative;
|
|
124
|
+
font-size: 14px;
|
|
125
|
+
}
|
|
126
|
+
.search_select_wrapper_topForm .select_list_columns {
|
|
127
|
+
width: 100%;
|
|
128
|
+
padding: 10px 6px 2px 16px;
|
|
129
|
+
background-color: #fff;
|
|
130
|
+
}
|
|
131
|
+
.search_select_wrapper_topForm .select_list_columns .ant-form {
|
|
132
|
+
padding: 0;
|
|
133
|
+
display: flex;
|
|
134
|
+
align-items: flex-start;
|
|
135
|
+
}
|
|
136
|
+
.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item,
|
|
137
|
+
.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-col .ant-space {
|
|
138
|
+
font-size: 12px !important;
|
|
139
|
+
margin-right: 0px !important;
|
|
140
|
+
margin-bottom: 8px !important;
|
|
141
|
+
}
|
|
142
|
+
.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row.ant-form-item-row {
|
|
143
|
+
background-color: #fafafa;
|
|
144
|
+
border: 0.8px solid #D9D9D9;
|
|
145
|
+
border-radius: 2px;
|
|
146
|
+
font-size: 12px;
|
|
147
|
+
}
|
|
148
|
+
.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row {
|
|
149
|
+
width: 100%;
|
|
150
|
+
}
|
|
151
|
+
.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label {
|
|
152
|
+
width: 110px;
|
|
153
|
+
order: 1;
|
|
154
|
+
}
|
|
155
|
+
.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-label label {
|
|
156
|
+
width: 100%;
|
|
157
|
+
text-align: left;
|
|
158
|
+
padding: 0 10px;
|
|
159
|
+
color: #333333;
|
|
160
|
+
font-size: 12px;
|
|
161
|
+
font-family: PingFangSC-Regular;
|
|
162
|
+
font-weight: 400;
|
|
163
|
+
}
|
|
164
|
+
.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control {
|
|
165
|
+
order: 2;
|
|
166
|
+
width: 100px;
|
|
167
|
+
}
|
|
168
|
+
.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper {
|
|
169
|
+
border: 0;
|
|
170
|
+
font-size: 12px;
|
|
171
|
+
background-color: #fafafa;
|
|
172
|
+
padding: 0 11px;
|
|
173
|
+
height: 24px;
|
|
174
|
+
}
|
|
175
|
+
.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-input-affix-wrapper .ant-input {
|
|
176
|
+
background-color: #fafafa !important;
|
|
177
|
+
border: 0;
|
|
178
|
+
font-size: 12px;
|
|
179
|
+
}
|
|
180
|
+
.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .ant-select-selector {
|
|
181
|
+
border: 0 !important;
|
|
182
|
+
background-color: #fafafa !important;
|
|
183
|
+
font-size: 12px;
|
|
184
|
+
}
|
|
185
|
+
.search_select_wrapper_topForm .select_list_columns .ant-form .ant-row .ant-form-item-control .query_input .ant-input {
|
|
186
|
+
background-color: #fafafa !important;
|
|
187
|
+
border: 0;
|
|
188
|
+
font-size: 12px;
|
|
189
|
+
}
|
|
190
|
+
.search_select_wrapper_topForm .select_list_columns .ant-form .ant-btn-primary {
|
|
191
|
+
background: #005cff;
|
|
192
|
+
}
|
|
193
|
+
.search_select_wrapper_topForm .select_list_columns .ant-form > .ant-row > .ant-col {
|
|
194
|
+
order: 2;
|
|
195
|
+
padding-right: 10px;
|
|
196
|
+
}
|
|
197
|
+
.search_select_wrapper_topForm .select_list_button_space {
|
|
198
|
+
margin-right: 10px;
|
|
199
|
+
}
|
|
200
|
+
.search_select_wrapper_bottomTable {
|
|
201
|
+
margin: 10px;
|
|
202
|
+
display: flex;
|
|
203
|
+
justify-content: space-between;
|
|
204
|
+
}
|
|
205
|
+
.search_select_wrapper_bottomTable_wrapLeft1,
|
|
206
|
+
.search_select_wrapper_bottomTable_wrapLeft2,
|
|
207
|
+
.search_select_wrapper_bottomTable_wrapRight {
|
|
208
|
+
background: #fff;
|
|
209
|
+
width: calc(50% - 5px);
|
|
210
|
+
}
|
|
211
|
+
.search_select_wrapper_bottomTable_wrapLeft1 .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper,
|
|
212
|
+
.search_select_wrapper_bottomTable_wrapLeft2 .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper,
|
|
213
|
+
.search_select_wrapper_bottomTable_wrapRight .ant-table.ant-table-bordered > .ant-table-container > .ant-table-header > table .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {
|
|
214
|
+
justify-content: center;
|
|
215
|
+
}
|
|
216
|
+
.search_select_wrapper_bottomTable_wrapLeft1 {
|
|
217
|
+
width: 100%;
|
|
218
|
+
}
|
|
219
|
+
.search_select_wrapper_bottomTable_wrapRight {
|
|
220
|
+
margin-left: 10px;
|
|
221
|
+
}
|
|
222
|
+
.search_select_wrapper_bottomTable .ant-tabs-nav {
|
|
223
|
+
margin: 0;
|
|
224
|
+
padding: 6px 18.5px;
|
|
225
|
+
}
|
|
226
|
+
.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-nav-wrap {
|
|
227
|
+
height: 28px;
|
|
228
|
+
font-size: 14px;
|
|
229
|
+
}
|
|
230
|
+
.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-tab {
|
|
231
|
+
padding: 4px 0;
|
|
232
|
+
}
|
|
233
|
+
.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-ink-bar {
|
|
234
|
+
left: 3px !important;
|
|
235
|
+
width: 40px !important;
|
|
236
|
+
background: #005cff;
|
|
237
|
+
}
|
|
238
|
+
.search_select_wrapper_bottomTable .ant-tabs-nav .ant-tabs-extra-content > span {
|
|
239
|
+
color: #005cff;
|
|
240
|
+
cursor: pointer;
|
|
241
|
+
}
|
|
242
|
+
.search_select_wrapper_bottomTable .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
|
|
243
|
+
color: #005cff;
|
|
244
|
+
}
|
|
245
|
+
.search_select_wrapper_bottomTable .ant-tabs-content-holder {
|
|
246
|
+
padding: 10px 10px 7px;
|
|
247
|
+
}
|
|
248
|
+
.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead > tr > th {
|
|
249
|
+
color: #7F7F7F;
|
|
250
|
+
}
|
|
251
|
+
.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table-thead .ant-table-selection .ant-checkbox-wrapper {
|
|
252
|
+
justify-content: center;
|
|
253
|
+
}
|
|
254
|
+
.search_select_wrapper_bottomTable .ant-tabs-content-holder .ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content .ant-table.ant-table-small .ant-table-tbody > tr > td {
|
|
255
|
+
color: #333333;
|
|
256
|
+
}
|
|
257
|
+
.search_select_wrapper_bottomTable .ant-checkbox-checked .ant-checkbox-inner {
|
|
258
|
+
color: #005cff;
|
|
259
|
+
background: #005cff;
|
|
260
|
+
}
|
|
261
|
+
.search_select_wrapper_bottomTable .ant-pagination-item-active a {
|
|
262
|
+
color: #005cff;
|
|
263
|
+
}
|
|
264
|
+
.search_select_wrapper_bottomTable .ant-pagination-item-active {
|
|
265
|
+
border-color: #005cff;
|
|
266
|
+
}
|
|
267
|
+
.searchSelectSpin > div {
|
|
268
|
+
height: 300px !important;
|
|
269
|
+
}
|
|
270
|
+
.searchSelectMaxTagToolTip .ant-tooltip-inner {
|
|
271
|
+
max-height: 72px;
|
|
272
|
+
overflow-x: auto;
|
|
273
|
+
padding: 0px;
|
|
274
|
+
}
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
.ant-modal-body {
|
|
136
136
|
padding: 0px;
|
|
137
137
|
background: #F3F3F3;
|
|
138
|
-
height: calc(100vh -
|
|
138
|
+
height: calc(100vh - 190px); // modal弹窗760 调整为700 适应小屏
|
|
139
139
|
overflow: hidden;
|
|
140
140
|
}
|
|
141
141
|
.ant-modal-footer {
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
.ant-row .ant-form-item-label {
|
|
186
186
|
width: 110px;
|
|
187
187
|
order: 1;
|
|
188
|
-
|
|
188
|
+
|
|
189
189
|
label{
|
|
190
190
|
width: 100%;
|
|
191
191
|
text-align: left;
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
color: #333333;
|
|
194
194
|
font-size: 12px;
|
|
195
195
|
font-family: PingFangSC-Regular;
|
|
196
|
-
font-weight: 400;
|
|
196
|
+
font-weight: 400;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
.ant-row .ant-form-item-control {
|
|
@@ -287,11 +287,11 @@
|
|
|
287
287
|
}
|
|
288
288
|
.ant-tabs-content-holder {
|
|
289
289
|
padding: 10px 10px 7px;
|
|
290
|
-
|
|
290
|
+
|
|
291
291
|
.ant-tabs-content .ant-table-wrapper .ant-table .ant-table-container .ant-table-content {
|
|
292
292
|
// max-height: 472px; // 空数据528px;非空数据因为有分页所以472px
|
|
293
293
|
// overflow: auto scroll !important; // 这样滑动会将表头滑走,使用table自带的scrolly 解决高度问题
|
|
294
|
-
|
|
294
|
+
|
|
295
295
|
.ant-table-thead > tr > th {
|
|
296
296
|
color: #7F7F7F;
|
|
297
297
|
}
|
|
@@ -32,6 +32,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
32
32
|
highestPopContainer = undefined,
|
|
33
33
|
fieldComponent,
|
|
34
34
|
onSaveCallback,
|
|
35
|
+
returnFormat = [],
|
|
35
36
|
selectBusinessType,
|
|
36
37
|
} = props;
|
|
37
38
|
const {
|
|
@@ -66,6 +67,8 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
66
67
|
const selectParamsKey = requestConfig?.filter || 'qp-codeAndName-like'
|
|
67
68
|
const selectParamsInitKey = requestConfig?.filterInit || selectParamsKey
|
|
68
69
|
const currentSelectProps = {
|
|
70
|
+
// 回显字段可自定义
|
|
71
|
+
optionLabelProp: "label",
|
|
69
72
|
...selectProps,
|
|
70
73
|
// 以下属性不可更改----设计配置项
|
|
71
74
|
showArrow: true,
|
|
@@ -73,7 +76,6 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
73
76
|
filterOption: false,
|
|
74
77
|
allowClear: true,
|
|
75
78
|
listHeight: 160,
|
|
76
|
-
optionLabelProp: "label",
|
|
77
79
|
autoClearSearchValue: false,
|
|
78
80
|
placement: 'bottomRight'
|
|
79
81
|
}
|
|
@@ -431,7 +433,8 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
431
433
|
|
|
432
434
|
const formaData = (value: any, source: any) => {
|
|
433
435
|
if (labelInValue) {
|
|
434
|
-
const
|
|
436
|
+
const getFromat = (format, val) => format.map(({key,value})=> ({[key]:val[value]}))
|
|
437
|
+
const formatResult = value.map((i: any) => (Object.assign({ key: i[mappingValueField] || i.key, label: i[mappingTextField] || i.label, value: i[mappingValueField] || i.value }, ...getFromat(returnFormat, i))))
|
|
435
438
|
onChange(selectMode ? formatResult : formatResult[0], value,source)
|
|
436
439
|
} else {
|
|
437
440
|
const formatResult = selectMode ? value.map((i: any) => i.value) : _.get(value[0], 'value')
|