@bit-sun/business-component 4.0.12-alpha.17 → 4.0.12-alpha.18
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/index.esm.js +403 -441
- package/dist/index.js +404 -442
- package/package.json +1 -1
- package/src/components/Functional/SearchSelect/index.tsx +3 -3
package/package.json
CHANGED
|
@@ -374,7 +374,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
374
374
|
textShowText,
|
|
375
375
|
textShowKey: item[mappingTextShowKeyField || mappingValueField],
|
|
376
376
|
value: item[mappingValueField],
|
|
377
|
-
keyIndex: index + 1,
|
|
377
|
+
keyIndex: type != 1 ? ((queryParams?.currentPage - 1) * queryParams?.pageSize + index + 1) : (index+1),
|
|
378
378
|
};
|
|
379
379
|
})
|
|
380
380
|
: Array.isArray(res) &&
|
|
@@ -399,14 +399,14 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
|
|
|
399
399
|
textShowText,
|
|
400
400
|
textShowKey: item[mappingTextShowKeyField || mappingValueField],
|
|
401
401
|
value: item[mappingValueField],
|
|
402
|
-
keyIndex: index + 1,
|
|
402
|
+
keyIndex: type != 1 ? ((queryParams?.currentPage - 1) * queryParams?.pageSize + index + 1) : (index+1),
|
|
403
403
|
};
|
|
404
404
|
})
|
|
405
405
|
: [];
|
|
406
406
|
}
|
|
407
407
|
// 补充搜索项--选中的数据添加到数据源中去
|
|
408
408
|
const currentSRKs = getCurrentSRKs(selectMode,labelInValue,value)
|
|
409
|
-
if(currentSRKs?.length && currentSRKs?.some(s=> !source?.find(r=> r.value==s))) {
|
|
409
|
+
if(type === 1 && currentSRKs?.length && currentSRKs?.some(s=> !source?.find(r=> r.value==s))) {
|
|
410
410
|
const selectedOption = items.filter(option => currentSRKs?.includes(option.value))||[];
|
|
411
411
|
source = (source||[]).concat(selectedOption)
|
|
412
412
|
}
|