sprintify-ui 0.0.187 → 0.0.189

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.
@@ -44,21 +44,17 @@ export default defineComponent({
44
44
  default: false,
45
45
  type: Boolean,
46
46
  },
47
- visible: {
48
- default: true,
49
- type: Boolean,
50
- },
51
47
  clickable: {
52
48
  default: true,
53
49
  type: Boolean,
54
50
  },
55
51
  toggle: {
56
52
  type: Boolean,
57
- default: true,
53
+ default: false,
58
54
  },
59
- optional: {
55
+ toggleDefault: {
60
56
  type: Boolean,
61
- default: false,
57
+ default: true,
62
58
  },
63
59
  customSort: {
64
60
  default: undefined,
@@ -104,6 +100,12 @@ export default defineComponent({
104
100
  },
105
101
  },
106
102
  created() {
103
+ if (this.toggle && !this.customKey) {
104
+ throw new Error(
105
+ 'BaseTableColumn: customKey props is required when toggle props is true'
106
+ );
107
+ }
108
+
107
109
  if (this.customKey) {
108
110
  this.newKey = this.customKey + '';
109
111
  } else {
@@ -109,10 +109,9 @@ export interface BaseTableColumn {
109
109
  position: 'left' | 'right';
110
110
  searchable: boolean;
111
111
  sortable: boolean;
112
- visible: boolean;
113
112
  clickable: boolean;
114
113
  toggle: boolean;
115
- optional: boolean;
114
+ toggleDefault: boolean;
116
115
  width: number;
117
116
  style: {
118
117
  width: undefined | number;