@onereach/ui-components 19.2.2 → 19.2.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.
Files changed (22) hide show
  1. package/dist/bundled/components/OrDataGridV3/OrDataGrid.js +1 -1
  2. package/dist/bundled/components/OrDataGridV3/OrDataGrid.vue.d.ts +1 -1
  3. package/dist/bundled/components/OrDataGridV3/index.js +1 -1
  4. package/dist/bundled/components/OrDataGridV3/styles.js +1 -1
  5. package/dist/bundled/components/OrDataGridV3/types.d.ts +1 -1
  6. package/dist/bundled/components/{OrDataGridV3-607bd571.js → OrDataGridV3-be67cf18.js} +10 -7
  7. package/dist/bundled/components/index.js +1 -1
  8. package/dist/bundled/index.js +1 -1
  9. package/dist/esm/components/index.js +1 -1
  10. package/dist/esm/components/or-data-grid-v3/OrDataGrid.vue.d.ts +1 -1
  11. package/dist/esm/components/or-data-grid-v3/index.js +7 -4
  12. package/dist/esm/components/or-data-grid-v3/partials/index.js +1 -1
  13. package/dist/esm/components/or-data-grid-v3/partials/or-data-grid-table-content-cell/OrDataGridTableContentCell.vue.d.ts +5 -5
  14. package/dist/esm/components/or-data-grid-v3/partials/or-data-grid-table-header-cell/OrDataGridTableHeaderCell.vue.d.ts +13 -7
  15. package/dist/esm/components/or-data-grid-v3/types.d.ts +1 -1
  16. package/dist/esm/{index-d3978799.js → index-388c8d61.js} +4 -4
  17. package/dist/esm/index.js +1 -1
  18. package/package.json +3 -3
  19. package/src/components/or-data-grid-v3/OrDataGrid.vue +2 -2
  20. package/src/components/or-data-grid-v3/partials/or-data-grid-table-content-cell/OrDataGridTableContentCell.vue +3 -3
  21. package/src/components/or-data-grid-v3/partials/or-data-grid-table-header-cell/OrDataGridTableHeaderCell.vue +2 -2
  22. package/src/components/or-data-grid-v3/types.ts +1 -1
@@ -1 +1 @@
1
- export { s as default } from '../OrDataGridV3-607bd571.js';
1
+ export { s as default } from '../OrDataGridV3-be67cf18.js';
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
41
41
  filteringModel: import("vue").WritableComputedRef<undefined>;
42
42
  searchingModel: import("vue").WritableComputedRef<import("../../types").ModelValue<string>>;
43
43
  sortingModel: import("vue").WritableComputedRef<import("../../types").ModelValue<{
44
- column: string | undefined;
44
+ column: string;
45
45
  direction: "asc" | "desc";
46
46
  }>>;
47
47
  pagingModel: import("vue").WritableComputedRef<import("../or-pagination-v3").PaginationModelValue>;
@@ -1 +1 @@
1
- export { D as DataGridVariant, s as OrDataGridV3 } from '../OrDataGridV3-607bd571.js';
1
+ export { D as DataGridVariant, s as OrDataGridV3 } from '../OrDataGridV3-be67cf18.js';
@@ -1 +1 @@
1
- export { a as DataGrid } from '../OrDataGridV3-607bd571.js';
1
+ export { a as DataGrid } from '../OrDataGridV3-be67cf18.js';
@@ -13,7 +13,7 @@ export type DataGridModelValue = ModelValue<{
13
13
  }>;
14
14
  export type DataGridItem<T extends DataModel> = T;
15
15
  export type DataGridColumn = {
16
- name?: string;
16
+ name: string;
17
17
  label?: string;
18
18
  width?: string;
19
19
  alignment?: 'start' | 'end' | 'center';
@@ -155,7 +155,7 @@ var script$c = defineComponent({
155
155
  default: false
156
156
  }
157
157
  },
158
- emits: ['update:model-value'],
158
+ emits: ['input'],
159
159
  expose: ['root'],
160
160
  setup(props, context) {
161
161
  // Refs & Styles
@@ -196,7 +196,7 @@ var script$c = defineComponent({
196
196
  const model = computed({
197
197
  get: () => props.modelValue,
198
198
  set: value => {
199
- context.emit('update:model-value', value);
199
+ context.emit('input', value);
200
200
  }
201
201
  });
202
202
  const control = computed(() => {
@@ -591,7 +591,7 @@ var script$6 = defineComponent({
591
591
  });
592
592
  // Methods
593
593
  function toggleSorting() {
594
- var _a;
594
+ var _a, _b;
595
595
  if (!((_a = props.features) === null || _a === void 0 ? void 0 : _a.sorting)) {
596
596
  return;
597
597
  }
@@ -605,7 +605,7 @@ var script$6 = defineComponent({
605
605
  throw new Error('[OrDataGridTableHeaderCell]: `column` must be specified.');
606
606
  }
607
607
  model.value = {
608
- column: props.column.name,
608
+ column: ((_b = props.column) === null || _b === void 0 ? void 0 : _b.name) || '_check',
609
609
  direction: 'asc'
610
610
  };
611
611
  }
@@ -1228,10 +1228,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1228
1228
  }, 1024 /* DYNAMIC_SLOTS */)) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, column => {
1229
1229
  return openBlock(), createBlock(_component_OrDataGridTableContentCell, {
1230
1230
  key: column.name,
1231
- modelValue: item[column.name],
1232
- "onUpdate:modelValue": [$event => item[column.name] = $event, $event => _ctx.$emit('update:item', item)],
1231
+ "model-value": item[column.name],
1233
1232
  column: column,
1234
1233
  features: _ctx.features,
1234
+ onInput: value => {
1235
+ item[column.name] = value;
1236
+ _ctx.$emit('update:item', item);
1237
+ },
1235
1238
  onFocusin: _cache[4] || (_cache[4] = $event => _ctx.scrollTo($event))
1236
1239
  }, {
1237
1240
  default: withCtx(() => [renderSlot(_ctx.$slots, column.name, {
@@ -1239,7 +1242,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1239
1242
  item: item
1240
1243
  }, () => [createTextVNode(toDisplayString(item[column.name]), 1 /* TEXT */)])]),
1241
1244
  _: 2 /* DYNAMIC */
1242
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["modelValue", "onUpdate:modelValue", "column", "features"]);
1245
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["model-value", "column", "features", "onInput"]);
1243
1246
  }), 128 /* KEYED_FRAGMENT */))]),
1244
1247
  _: 2 /* DYNAMIC */
1245
1248
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["variant", "selected"]);
@@ -24,7 +24,7 @@ export { s as OrCombinedInputV3 } from './OrCombinedInputV3-7aa0d255.js';
24
24
  export { s as OrConfirm } from './OrConfirm-3de90b03.js';
25
25
  export { C as ConfirmType, s as OrConfirmV3 } from './OrConfirmV3-82b876b1.js';
26
26
  export { default as OrContextMenuV3 } from './OrContextMenuV3/OrContextMenu.js';
27
- export { D as DataGridVariant, s as OrDataGridV3 } from './OrDataGridV3-607bd571.js';
27
+ export { D as DataGridVariant, s as OrDataGridV3 } from './OrDataGridV3-be67cf18.js';
28
28
  export { s as OrDateFormatV3 } from './OrDateFormatV3-7523e0b0.js';
29
29
  export { s as OrDatePickerV3 } from './OrDatePickerV3-3c11a0c8.js';
30
30
  export { s as OrDateRangePickerV3 } from './OrDateRangePickerV3-f13790a5.js';
@@ -16,7 +16,7 @@ export { s as OrCombinedInputV3 } from './components/OrCombinedInputV3-7aa0d255.
16
16
  export { s as OrConfirm } from './components/OrConfirm-3de90b03.js';
17
17
  export { C as ConfirmType, s as OrConfirmV3 } from './components/OrConfirmV3-82b876b1.js';
18
18
  export { default as OrContextMenuV3 } from './components/OrContextMenuV3/OrContextMenu.js';
19
- export { D as DataGridVariant, s as OrDataGridV3 } from './components/OrDataGridV3-607bd571.js';
19
+ export { D as DataGridVariant, s as OrDataGridV3 } from './components/OrDataGridV3-be67cf18.js';
20
20
  export { s as OrDateFormatV3 } from './components/OrDateFormatV3-7523e0b0.js';
21
21
  export { s as OrDateRangePickerV3 } from './components/OrDateRangePickerV3-f13790a5.js';
22
22
  export { s as OrDateTimeFormatV3 } from './components/OrDateTimeFormatV3-9318ab89.js';
@@ -33,7 +33,7 @@ export { OrConfirm } from './or-confirm/index.js';
33
33
  export { ConfirmType, OrConfirmV3 } from './or-confirm-v3/index.js';
34
34
  export { OrContextMenuV3 } from './or-context-menu-v3/index.js';
35
35
  export { OrDataGridV3 } from './or-data-grid-v3/index.js';
36
- export { D as DataGridVariant } from '../index-d3978799.js';
36
+ export { D as DataGridVariant } from '../index-388c8d61.js';
37
37
  export { OrDateFormatV3 } from './or-date-format-v3/index.js';
38
38
  export { OrDatePickerV3 } from './or-date-picker-v3/index.js';
39
39
  export { OrDateRangePickerV3 } from './or-date-range-picker-v3/index.js';
@@ -41,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
41
41
  filteringModel: import("vue").WritableComputedRef<undefined>;
42
42
  searchingModel: import("vue").WritableComputedRef<import("../../types").ModelValue<string>>;
43
43
  sortingModel: import("vue").WritableComputedRef<import("../../types").ModelValue<{
44
- column: string | undefined;
44
+ column: string;
45
45
  direction: "asc" | "desc";
46
46
  }>>;
47
47
  pagingModel: import("vue").WritableComputedRef<import("../or-pagination-v3").PaginationModelValue>;
@@ -5,7 +5,7 @@ import { OrSearchV3 as script$h } from '../or-search-v3/index.js';
5
5
  import '../or-skeleton-v3/or-skeleton-circle-v3/index.js';
6
6
  import '../or-skeleton-v3/or-skeleton-rect-v3/index.js';
7
7
  import { OrSkeletonTextV3 as script$i } from '../or-skeleton-v3/or-skeleton-text-v3/index.js';
8
- import { s as script$2, a as script$3, b as script$4, c as script$5, d as script$6, e as script$7, f as script$8, g as script$9, h as script$a, i as script$b, j as script$c, k as script$d, l as script$e, m as script$f, D as DataGridVariant } from '../../index-d3978799.js';
8
+ import { s as script$2, a as script$3, b as script$4, c as script$5, d as script$6, e as script$7, f as script$8, g as script$9, h as script$a, i as script$b, j as script$c, k as script$d, l as script$e, m as script$f, D as DataGridVariant } from '../../index-388c8d61.js';
9
9
  import '../../useIdAttribute-1a4eafac.js';
10
10
  import '../../types/index.js';
11
11
  import '../../include-a6208502.js';
@@ -431,10 +431,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
431
431
  }, 1024 /* DYNAMIC_SLOTS */)) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.columns, column => {
432
432
  return openBlock(), createBlock(_component_OrDataGridTableContentCell, {
433
433
  key: column.name,
434
- modelValue: item[column.name],
435
- "onUpdate:modelValue": [$event => item[column.name] = $event, $event => _ctx.$emit('update:item', item)],
434
+ "model-value": item[column.name],
436
435
  column: column,
437
436
  features: _ctx.features,
437
+ onInput: value => {
438
+ item[column.name] = value;
439
+ _ctx.$emit('update:item', item);
440
+ },
438
441
  onFocusin: _cache[4] || (_cache[4] = $event => _ctx.scrollTo($event))
439
442
  }, {
440
443
  default: withCtx(() => [renderSlot(_ctx.$slots, column.name, {
@@ -442,7 +445,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
442
445
  item: item
443
446
  }, () => [createTextVNode(toDisplayString(item[column.name]), 1 /* TEXT */)])]),
444
447
  _: 2 /* DYNAMIC */
445
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["modelValue", "onUpdate:modelValue", "column", "features"]);
448
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["model-value", "column", "features", "onInput"]);
446
449
  }), 128 /* KEYED_FRAGMENT */))]),
447
450
  _: 2 /* DYNAMIC */
448
451
  }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["variant", "selected"]);
@@ -1,4 +1,4 @@
1
- export { s as OrDataGridFooter, a as OrDataGridHeader, b as OrDataGridTable, c as OrDataGridTableContent, d as OrDataGridTableContentCell, e as OrDataGridTableContentRow, f as OrDataGridTableFooter, g as OrDataGridTableFooterCell, h as OrDataGridTableFooterRow, i as OrDataGridTableHeader, j as OrDataGridTableHeaderCell, k as OrDataGridTableHeaderRow, l as OrDataGridTablePlaceholder, m as OrDataGridToolbar } from '../../../index-d3978799.js';
1
+ export { s as OrDataGridFooter, a as OrDataGridHeader, b as OrDataGridTable, c as OrDataGridTableContent, d as OrDataGridTableContentCell, e as OrDataGridTableContentRow, f as OrDataGridTableFooter, g as OrDataGridTableFooterCell, h as OrDataGridTableFooterRow, i as OrDataGridTableHeader, j as OrDataGridTableHeaderCell, k as OrDataGridTableHeaderRow, l as OrDataGridTablePlaceholder, m as OrDataGridToolbar } from '../../../index-388c8d61.js';
2
2
  import 'vue';
3
3
  import '../../or-checkbox-v3/index.js';
4
4
  import '../../../useIdAttribute-1a4eafac.js';
@@ -6,7 +6,7 @@ declare const _default: import("vue").DefineComponent<{
6
6
  default: undefined;
7
7
  };
8
8
  column: {
9
- type: PropType<DataGridColumn>;
9
+ type: PropType<Omit<DataGridColumn, "name">>;
10
10
  default: undefined;
11
11
  };
12
12
  features: {
@@ -26,13 +26,13 @@ declare const _default: import("vue").DefineComponent<{
26
26
  type: "number" | "text" | "rating" | "select" | "checkbox" | "switch" | "date" | "time" | "datetime" | "tags";
27
27
  options?: import("../../../or-select-v3").SelectItem[] | undefined;
28
28
  } | undefined>;
29
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:model-value"[], "update:model-value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
29
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "input"[], "input", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
30
30
  modelValue: {
31
31
  type: PropType<any>;
32
32
  default: undefined;
33
33
  };
34
34
  column: {
35
- type: PropType<DataGridColumn>;
35
+ type: PropType<Omit<DataGridColumn, "name">>;
36
36
  default: undefined;
37
37
  };
38
38
  features: {
@@ -44,10 +44,10 @@ declare const _default: import("vue").DefineComponent<{
44
44
  default: boolean;
45
45
  };
46
46
  }>> & {
47
- "onUpdate:model-value"?: ((...args: any[]) => any) | undefined;
47
+ onInput?: ((...args: any[]) => any) | undefined;
48
48
  }, {
49
49
  modelValue: any;
50
- column: DataGridColumn;
50
+ column: Omit<DataGridColumn, "name">;
51
51
  features: DataGridFeatures;
52
52
  override: boolean;
53
53
  }, {}>;
@@ -3,13 +3,15 @@ import { DataGridColumn, DataGridFeatures } from '../../types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
4
  modelValue: {
5
5
  type: PropType<import("../../../..").ModelValue<{
6
- column: string | undefined;
6
+ column: string;
7
7
  direction: "asc" | "desc";
8
8
  }>>;
9
9
  default: undefined;
10
10
  };
11
11
  column: {
12
- type: PropType<DataGridColumn>;
12
+ type: PropType<Omit<DataGridColumn, "name"> & {
13
+ name?: string | undefined;
14
+ }>;
13
15
  default: undefined;
14
16
  };
15
17
  features: {
@@ -21,20 +23,22 @@ declare const _default: import("vue").DefineComponent<{
21
23
  rootStyles: import("vue").ComputedRef<string[]>;
22
24
  rootInlineStyles: import("vue").ComputedRef<Partial<CSSStyleDeclaration>>;
23
25
  model: import("vue").WritableComputedRef<import("../../../..").ModelValue<{
24
- column: string | undefined;
26
+ column: string;
25
27
  direction: "asc" | "desc";
26
28
  }>>;
27
29
  toggleSorting: () => void;
28
30
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:scrollOffset" | "remove:scrollOffset")[], "update:modelValue" | "update:scrollOffset" | "remove:scrollOffset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
29
31
  modelValue: {
30
32
  type: PropType<import("../../../..").ModelValue<{
31
- column: string | undefined;
33
+ column: string;
32
34
  direction: "asc" | "desc";
33
35
  }>>;
34
36
  default: undefined;
35
37
  };
36
38
  column: {
37
- type: PropType<DataGridColumn>;
39
+ type: PropType<Omit<DataGridColumn, "name"> & {
40
+ name?: string | undefined;
41
+ }>;
38
42
  default: undefined;
39
43
  };
40
44
  features: {
@@ -47,10 +51,12 @@ declare const _default: import("vue").DefineComponent<{
47
51
  "onRemove:scrollOffset"?: ((...args: any[]) => any) | undefined;
48
52
  }, {
49
53
  modelValue: import("../../../..").ModelValue<{
50
- column: string | undefined;
54
+ column: string;
51
55
  direction: "asc" | "desc";
52
56
  }>;
53
- column: DataGridColumn;
57
+ column: Omit<DataGridColumn, "name"> & {
58
+ name?: string | undefined;
59
+ };
54
60
  features: DataGridFeatures;
55
61
  }, {}>;
56
62
  export default _default;
@@ -13,7 +13,7 @@ export type DataGridModelValue = ModelValue<{
13
13
  }>;
14
14
  export type DataGridItem<T extends DataModel> = T;
15
15
  export type DataGridColumn = {
16
- name?: string;
16
+ name: string;
17
17
  label?: string;
18
18
  width?: string;
19
19
  alignment?: 'start' | 'end' | 'center';
@@ -154,7 +154,7 @@ var script$b = defineComponent({
154
154
  default: false
155
155
  }
156
156
  },
157
- emits: ['update:model-value'],
157
+ emits: ['input'],
158
158
  expose: ['root'],
159
159
  setup(props, context) {
160
160
  // Refs & Styles
@@ -195,7 +195,7 @@ var script$b = defineComponent({
195
195
  const model = computed({
196
196
  get: () => props.modelValue,
197
197
  set: value => {
198
- context.emit('update:model-value', value);
198
+ context.emit('input', value);
199
199
  }
200
200
  });
201
201
  const control = computed(() => {
@@ -590,7 +590,7 @@ var script$5 = defineComponent({
590
590
  });
591
591
  // Methods
592
592
  function toggleSorting() {
593
- var _a;
593
+ var _a, _b;
594
594
  if (!((_a = props.features) === null || _a === void 0 ? void 0 : _a.sorting)) {
595
595
  return;
596
596
  }
@@ -604,7 +604,7 @@ var script$5 = defineComponent({
604
604
  throw new Error('[OrDataGridTableHeaderCell]: `column` must be specified.');
605
605
  }
606
606
  model.value = {
607
- column: props.column.name,
607
+ column: ((_b = props.column) === null || _b === void 0 ? void 0 : _b.name) || '_check',
608
608
  direction: 'asc'
609
609
  };
610
610
  }
package/dist/esm/index.js CHANGED
@@ -33,7 +33,7 @@ export { OrConfirm } from './components/or-confirm/index.js';
33
33
  export { ConfirmType, OrConfirmV3 } from './components/or-confirm-v3/index.js';
34
34
  export { OrContextMenuV3 } from './components/or-context-menu-v3/index.js';
35
35
  export { OrDataGridV3 } from './components/or-data-grid-v3/index.js';
36
- export { D as DataGridVariant } from './index-d3978799.js';
36
+ export { D as DataGridVariant } from './index-388c8d61.js';
37
37
  export { OrDateFormatV3 } from './components/or-date-format-v3/index.js';
38
38
  export { OrDatePickerV3 } from './components/or-date-picker-v3/index.js';
39
39
  export { OrDateRangePickerV3 } from './components/or-date-range-picker-v3/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "19.2.2",
3
+ "version": "19.2.3",
4
4
  "npmUnpacked": "4.15.2",
5
5
  "description": "Vue components library for v3",
6
6
  "sideEffects": false,
@@ -33,7 +33,7 @@
33
33
  "@codemirror/view": "^6",
34
34
  "@floating-ui/dom": "1.5.3",
35
35
  "@lezer/highlight": "*",
36
- "@onereach/styles": "^19.2.2",
36
+ "@onereach/styles": "^19.2.3",
37
37
  "@splidejs/splide": "4.0.6",
38
38
  "@tiptap/core": "2.0.3",
39
39
  "@tiptap/extension-blockquote": "2.0.3",
@@ -141,5 +141,5 @@
141
141
  },
142
142
  "./package.json": "./package.json"
143
143
  },
144
- "gitHead": "7d8b579b6b21d7cad63889a24f581abe0ff0a527"
144
+ "gitHead": "d9164cd9f00d2f85eca5cefb0dc4f6e89c2e0d1d"
145
145
  }
@@ -119,10 +119,10 @@
119
119
  <OrDataGridTableContentCell
120
120
  v-for="column of columns"
121
121
  :key="column.name"
122
- v-model="item[column.name]"
122
+ :model-value="item[column.name]"
123
123
  :column="column"
124
124
  :features="features"
125
- @update:model-value="$emit('update:item', item)"
125
+ @input="value => { item[column.name] = value; $emit('update:item', item);}"
126
126
  @focusin="scrollTo($event)"
127
127
  >
128
128
  <slot
@@ -133,7 +133,7 @@ export default defineComponent({
133
133
  },
134
134
 
135
135
  column: {
136
- type: Object as PropType<DataGridColumn>,
136
+ type: Object as PropType<Omit<DataGridColumn, 'name'>>,
137
137
  default: undefined,
138
138
  },
139
139
 
@@ -149,7 +149,7 @@ export default defineComponent({
149
149
  },
150
150
 
151
151
  emits: [
152
- 'update:model-value',
152
+ 'input',
153
153
  ],
154
154
 
155
155
  expose: [
@@ -203,7 +203,7 @@ export default defineComponent({
203
203
  get: () => props.modelValue,
204
204
 
205
205
  set: (value) => {
206
- context.emit('update:model-value', value);
206
+ context.emit('input', value);
207
207
  },
208
208
  });
209
209
 
@@ -41,7 +41,7 @@ export default defineComponent({
41
41
  },
42
42
 
43
43
  column: {
44
- type: Object as PropType<DataGridColumn>,
44
+ type: Object as PropType<Omit<DataGridColumn, 'name'> & {name?: string;}>,
45
45
  default: undefined,
46
46
  },
47
47
 
@@ -137,7 +137,7 @@ export default defineComponent({
137
137
  }
138
138
 
139
139
  model.value = {
140
- column: props.column.name,
140
+ column: props.column?.name || '_check',
141
141
  direction: 'asc',
142
142
  };
143
143
  }
@@ -21,7 +21,7 @@ export type DataGridModelValue = ModelValue<{
21
21
  export type DataGridItem<T extends DataModel> = T;
22
22
 
23
23
  export type DataGridColumn = {
24
- name?: string;
24
+ name: string;
25
25
  label?: string;
26
26
 
27
27
  width?: string;