@dataloop-ai/components 0.13.9 → 0.13.10

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.13.9",
3
+ "version": "0.13.10",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -40,7 +40,7 @@
40
40
  </template>
41
41
 
42
42
  <script lang="ts">
43
- import { defineComponent } from 'vue-demi'
43
+ import { computed, defineComponent } from 'vue-demi'
44
44
  import { DlButton } from '../DlButton'
45
45
 
46
46
  export default defineComponent({
@@ -55,13 +55,10 @@ export default defineComponent({
55
55
  hasBackButton: Boolean
56
56
  },
57
57
  emits: ['onClose'],
58
- computed: {
59
- hasTitle() {
60
- return !!this.title || this.$slots.title
61
- },
62
- hasSubtitle() {
63
- return !!this.subtitle || this.$slots.subtitle
64
- }
58
+ setup(props, { slots }) {
59
+ const hasTitle = computed(() => !!props.title || !!slots.title)
60
+ const hasSubtitle = computed(() => !!props.subtitle || !!slots.subtitle)
61
+ return { hasTitle, hasSubtitle }
65
62
  }
66
63
  })
67
64
  </script>