@dataloop-ai/components 0.19.22 → 0.19.23

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataloop-ai/components",
3
- "version": "0.19.22",
3
+ "version": "0.19.23",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -17,7 +17,7 @@
17
17
  <slot />
18
18
  <span
19
19
  class="th-icons"
20
- :style="{ top: props?.dense ? '5px' : '10px' }"
20
+ :style="{ top: isDense ? '5px' : '10px' }"
21
21
  >
22
22
  <dl-icon
23
23
  v-if="hasHint"
@@ -87,6 +87,15 @@ export default defineComponent({
87
87
  return !!props.props?.col?.hint
88
88
  })
89
89
 
90
+ const isDense = computed(() => {
91
+ // @ts-ignore
92
+ return (
93
+ !!props.props?.dense ||
94
+ !!props.dense ||
95
+ !!props.props?.col?.dense
96
+ )
97
+ })
98
+
90
99
  const column = computed(() => {
91
100
  let col: any
92
101
  const name = vm.vnode.key as string
@@ -110,7 +119,8 @@ export default defineComponent({
110
119
  isSortable: false,
111
120
  hasEllipsis: false,
112
121
  onClick: onClickFn,
113
- hasHint
122
+ hasHint,
123
+ isDense
114
124
  }
115
125
  }
116
126
 
@@ -140,6 +150,7 @@ export default defineComponent({
140
150
 
141
151
  return {
142
152
  hasHint,
153
+ isDense,
143
154
  isSortable: !hasOptionalProps.value
144
155
  ? false
145
156
  : column?.value?.sortable ?? false,