@gx-design-vue/pro-table 0.1.13 → 0.1.15

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.
@@ -27783,9 +27783,10 @@ function useRowSelection(rowKey, rowSelection) {
27783
27783
  const selectRowKey = (record, selected) => {
27784
27784
  if (rowKey.value) {
27785
27785
  if (selected) {
27786
- if (record == null ? void 0 : record[rowKey.value]) {
27786
+ if ((record == null ? void 0 : record[rowKey.value]) && !selectedKey.value.includes(record[rowKey.value])) {
27787
27787
  selectedKey.value.push(record[rowKey.value]);
27788
- selectedItem.value.push(record);
27788
+ if (!selectedItem.value.map((item) => item[rowKey.value]).includes(record[rowKey.value]))
27789
+ selectedItem.value.push(record);
27789
27790
  }
27790
27791
  } else {
27791
27792
  selectedKey.value = selectedKey.value.filter((item) => item !== record[rowKey.value]);
@@ -27804,7 +27805,8 @@ function useRowSelection(rowKey, rowSelection) {
27804
27805
  if (selectedKey.value.every((el) => el !== (item == null ? void 0 : item[rowKey.value]))) {
27805
27806
  if (item == null ? void 0 : item[rowKey.value]) {
27806
27807
  selectedKey.value.push(item[rowKey.value]);
27807
- selectedItem.value.push(item);
27808
+ if (!selectedItem.value.map((el) => el[rowKey.value]).includes(item[rowKey.value]))
27809
+ selectedItem.value.push(item);
27808
27810
  }
27809
27811
  }
27810
27812
  return item;
@@ -27832,7 +27834,8 @@ function useRowSelection(rowKey, rowSelection) {
27832
27834
  const notIncludes = selectedKey.value.filter((item) => !itemsKeys.includes(item));
27833
27835
  dataList.forEach((item) => {
27834
27836
  if (notIncludes.includes(item[rowKey.value])) {
27835
- selectedItem.value.push(cloneDeep(item));
27837
+ if (!selectedItem.value.map((el) => el[rowKey.value]).includes(item[rowKey.value]))
27838
+ selectedItem.value.push(cloneDeep(item));
27836
27839
  }
27837
27840
  });
27838
27841
  }
@@ -29792,7 +29795,7 @@ const GProTable = defineComponent({
29792
29795
  };
29793
29796
  const getBindValues = computed(() => {
29794
29797
  return omit$1({
29795
- ...attrs,
29798
+ ...(omit$1(attrs), ["class", "style", "id"]),
29796
29799
  ...props2,
29797
29800
  virtualScroll: needVirtualScroll.value,
29798
29801
  size: unref(sizeRef),