@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
|
@@ -178,10 +178,20 @@ export default defineComponent({
|
|
|
178
178
|
return !!parentClassList?.contains('content')
|
|
179
179
|
},
|
|
180
180
|
hasHeader(): boolean {
|
|
181
|
-
|
|
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
|
-
|
|
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: {
|