@dataloop-ai/components 0.18.138 → 0.18.139
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
|
@@ -47,10 +47,12 @@
|
|
|
47
47
|
</div>
|
|
48
48
|
</button>
|
|
49
49
|
<dl-tooltip
|
|
50
|
-
v-if="tooltip"
|
|
50
|
+
v-if="tooltip || hasTooltipSlot"
|
|
51
51
|
style="pointer-events: auto"
|
|
52
52
|
>
|
|
53
|
-
|
|
53
|
+
<slot name="tooltip">
|
|
54
|
+
{{ tooltip }}
|
|
55
|
+
</slot>
|
|
54
56
|
</dl-tooltip>
|
|
55
57
|
</div>
|
|
56
58
|
</template>
|
|
@@ -273,6 +275,9 @@ export default defineComponent({
|
|
|
273
275
|
hasContent(): boolean {
|
|
274
276
|
return !!this.$slots.default || this.hasLabel
|
|
275
277
|
},
|
|
278
|
+
hasTooltipSlot(): boolean {
|
|
279
|
+
return !!this.$slots.tooltip
|
|
280
|
+
},
|
|
276
281
|
cssButtonVars(): Record<string, string> {
|
|
277
282
|
let colors: Record<string, string> = {}
|
|
278
283
|
|