@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "4.0.12-alpha.17",
3
+ "version": "4.0.12-alpha.18",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -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
  }