@dataloop-ai/components 0.20.184 → 0.20.185

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.20.184",
3
+ "version": "0.20.185",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -178,10 +178,20 @@ export default defineComponent({
178
178
  return !!parentClassList?.contains('content')
179
179
  },
180
180
  hasHeader(): boolean {
181
- return !!this.$slots.header && !this.hideHeader
181
+ const slotKeys = Object.keys(this.$slots)
182
+ return (
183
+ !this.hideHeader &&
184
+ slotKeys.includes('header') &&
185
+ !!this.$slots.header
186
+ )
182
187
  },
183
188
  hasFooter(): boolean {
184
- return !!this.$slots.footer && !this.hideFooter
189
+ const slotKeys = Object.keys(this.$slots)
190
+ return (
191
+ !this.hideFooter &&
192
+ slotKeys.includes('footer') &&
193
+ !!this.$slots.footer
194
+ )
185
195
  }
186
196
  },
187
197
  watch: {