@tmagic/tdesign-vue-next-adapter 1.7.2 → 1.7.3

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.
@@ -690,6 +690,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
690
690
  sorter: item.props?.sortable,
691
691
  align: item.props?.align
692
692
  };
693
+ if (item.props.type === "selection") {
694
+ column.type = "multiple";
695
+ }
693
696
  if (item.cell) {
694
697
  column.cell = (h, { row, rowIndex }) => {
695
698
  return item.cell?.({ row, $index: rowIndex });
@@ -693,6 +693,9 @@
693
693
  sorter: item.props?.sortable,
694
694
  align: item.props?.align
695
695
  };
696
+ if (item.props.type === "selection") {
697
+ column.type = "multiple";
698
+ }
696
699
  if (item.cell) {
697
700
  column.cell = (h, { row, rowIndex }) => {
698
701
  return item.cell?.({ row, $index: rowIndex });
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.7.2",
2
+ "version": "1.7.3",
3
3
  "name": "@tmagic/tdesign-vue-next-adapter",
4
4
  "type": "module",
5
5
  "main": "dist/tmagic-tdesign-vue-next-adapter.umd.cjs",
@@ -38,7 +38,7 @@
38
38
  "tdesign-vue-next": "^1.17.1",
39
39
  "vue": "^3.5.24",
40
40
  "typescript": "^5.9.3",
41
- "@tmagic/design": "1.7.2"
41
+ "@tmagic/design": "1.7.3"
42
42
  },
43
43
  "peerDependenciesMeta": {
44
44
  "typescript": {
package/src/Table.vue CHANGED
@@ -60,6 +60,10 @@ const tableColumns = computed(() => {
60
60
  align: item.props?.align,
61
61
  };
62
62
 
63
+ if (item.props.type === 'selection') {
64
+ column.type = 'multiple';
65
+ }
66
+
63
67
  // 处理自定义单元格渲染
64
68
  if (item.cell) {
65
69
  column.cell = (h: any, { row, rowIndex }: any) => {