@tmagic/table 1.7.10 → 1.7.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.
@@ -90,7 +90,8 @@ var Table_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
90
90
  width: item.width ?? (item.selection ? 40 : void 0),
91
91
  prop: item.prop,
92
92
  type,
93
- selectable: item.selectable
93
+ selectable: item.selectable,
94
+ sortable: item.sortable
94
95
  },
95
96
  cell: type === "selection" ? void 0 : ({ row, $index }) => cellRender(item, {
96
97
  row,
@@ -1368,7 +1368,8 @@
1368
1368
  * @param {Array} [entries] The key-value pairs to cache.
1369
1369
  */
1370
1370
  function Stack(entries) {
1371
- this.size = (this.__data__ = new ListCache(entries)).size;
1371
+ var data = this.__data__ = new ListCache(entries);
1372
+ this.size = data.size;
1372
1373
  }
1373
1374
  Stack.prototype.clear = stackClear;
1374
1375
  Stack.prototype["delete"] = stackDelete;
@@ -2328,7 +2329,8 @@
2328
2329
  width: item.width ?? (item.selection ? 40 : void 0),
2329
2330
  prop: item.prop,
2330
2331
  type,
2331
- selectable: item.selectable
2332
+ selectable: item.selectable,
2333
+ sortable: item.sortable
2332
2334
  },
2333
2335
  cell: type === "selection" ? void 0 : ({ row, $index }) => cellRender(item, {
2334
2336
  row,
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.7.10",
2
+ "version": "1.7.11",
3
3
  "name": "@tmagic/table",
4
4
  "type": "module",
5
5
  "sideEffects": [
@@ -43,11 +43,11 @@
43
43
  "@types/lodash-es": "^4.17.4"
44
44
  },
45
45
  "peerDependencies": {
46
- "vue": "^3.5.24",
47
- "typescript": "^6.0.2",
48
- "@tmagic/design": "1.7.10",
49
- "@tmagic/form": "1.7.10",
50
- "@tmagic/utils": "1.7.10"
46
+ "vue": "^3.5.33",
47
+ "typescript": "^6.0.3",
48
+ "@tmagic/design": "1.7.11",
49
+ "@tmagic/utils": "1.7.11",
50
+ "@tmagic/form": "1.7.11"
51
51
  },
52
52
  "peerDependenciesMeta": {
53
53
  "typescript": {
package/src/Table.vue CHANGED
@@ -139,6 +139,7 @@ const tableColumns = computed(() =>
139
139
  prop: item.prop,
140
140
  type,
141
141
  selectable: item.selectable,
142
+ sortable: item.sortable,
142
143
  },
143
144
  cell: type === 'selection' ? undefined : ({ row, $index }: any) => cellRender(item, { row, $index }),
144
145
  };
package/types/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { App } from "vue";
2
- import * as _vue_runtime_core0 from "@vue/runtime-core";
2
+ import * as _$_vue_runtime_core0 from "@vue/runtime-core";
3
3
  import { FormConfig, FormValue } from "@tmagic/form";
4
4
 
5
5
  //#region temp/packages/table/src/schema.d.ts
@@ -86,11 +86,11 @@ type __VLS_Props = {
86
86
  rowkeyName?: string; /** 是否带有纵向边框 */
87
87
  border?: boolean;
88
88
  };
89
- declare const __VLS_export: _vue_runtime_core0.DefineComponent<__VLS_Props, {
89
+ declare const __VLS_export: _$_vue_runtime_core0.DefineComponent<__VLS_Props, {
90
90
  toggleRowSelection: (row: any, selected: boolean) => void;
91
91
  toggleRowExpansion: (row: any, expanded: boolean) => void;
92
92
  clearSelection: () => void;
93
- }, {}, {}, {}, _vue_runtime_core0.ComponentOptionsMixin, _vue_runtime_core0.ComponentOptionsMixin, {
93
+ }, {}, {}, {}, _$_vue_runtime_core0.ComponentOptionsMixin, _$_vue_runtime_core0.ComponentOptionsMixin, {
94
94
  select: (...args: any[]) => void;
95
95
  "sort-change": (...args: any[]) => void;
96
96
  "expand-change": (...args: any[]) => void;
@@ -99,7 +99,7 @@ declare const __VLS_export: _vue_runtime_core0.DefineComponent<__VLS_Props, {
99
99
  "after-action-cancel": (...args: any[]) => void;
100
100
  "select-all": (...args: any[]) => void;
101
101
  "selection-change": (...args: any[]) => void;
102
- }, string, _vue_runtime_core0.PublicProps, Readonly<__VLS_Props> & Readonly<{
102
+ }, string, _$_vue_runtime_core0.PublicProps, Readonly<__VLS_Props> & Readonly<{
103
103
  onSelect?: ((...args: any[]) => any) | undefined;
104
104
  "onSort-change"?: ((...args: any[]) => any) | undefined;
105
105
  "onExpand-change"?: ((...args: any[]) => any) | undefined;
@@ -114,7 +114,7 @@ declare const __VLS_export: _vue_runtime_core0.DefineComponent<__VLS_Props, {
114
114
  border: boolean;
115
115
  defaultExpandAll: boolean;
116
116
  showHeader: boolean;
117
- }, {}, {}, {}, string, _vue_runtime_core0.ComponentProvideOptions, false, {}, any>;
117
+ }, {}, {}, {}, string, _$_vue_runtime_core0.ComponentProvideOptions, false, {}, any>;
118
118
  declare const _default: typeof __VLS_export;
119
119
  //#endregion
120
120
  //#region temp/packages/table/src/utils.d.ts