@bildvitta/quasar-ui-asteroid 3.17.0-beta.10 → 3.17.0-beta.11

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@bildvitta/quasar-ui-asteroid",
3
3
  "description": "Asteroid",
4
- "version": "3.17.0-beta.10",
4
+ "version": "3.17.0-beta.11",
5
5
  "author": "Bild & Vitta <systemteam@bild.com.br>",
6
6
  "license": "MIT",
7
7
  "main": "dist/asteroid.cjs.min.js",
@@ -14,8 +14,8 @@
14
14
  </div>
15
15
 
16
16
  <slot name="actions">
17
- <div class="q-mt-xs text-right">
18
- <component :is="actionsComponent.is" v-if="hasActionsSection" v-bind="actionsComponent.props" />
17
+ <div v-if="hasActionsSection" class="q-mt-xs text-right">
18
+ <component :is="actionsComponent.is" v-if="hasActionsComponent" v-bind="actionsComponent.props" />
19
19
  </div>
20
20
  </slot>
21
21
  </div>
@@ -29,7 +29,7 @@
29
29
 
30
30
  <div v-if="!hasLabelSection" class="justify-end row">
31
31
  <slot name="actions">
32
- <component :is="actionsComponent.is" v-if="hasActionsSection" v-bind="actionsComponent.props" />
32
+ <component :is="actionsComponent.is" v-if="hasActionsComponent" v-bind="actionsComponent.props" />
33
33
  </slot>
34
34
  </div>
35
35
  </div>
@@ -136,10 +136,12 @@ const actionsComponent = computed(() => {
136
136
  return component.true
137
137
  })
138
138
 
139
- const hasActionsSection = computed(() => {
140
- return !!slots.actions || hasDefaultButton.value || hasDefaultActionsMenu.value || hasDefaultFilters.value
139
+ const hasActionsComponent = computed(() => {
140
+ return hasDefaultButton.value || hasDefaultActionsMenu.value || hasDefaultFilters.value
141
141
  })
142
142
 
143
+ const hasActionsSection = computed(() => !!slots.actions || hasActionsComponent.value)
144
+
143
145
  const hasBadges = computed(() => !!props.badges.length)
144
146
  const hasLabel = computed(() => !!Object.keys(props.labelProps).length)
145
147
  const hasDefaultButton = computed(() => !!Object.keys(props.buttonProps).length)