Skip to content

Commit 4260517

Browse files
committed
Fix - VueUiStackbar - Add missing content for tooltip-before & tooltip-after scoped slots
1 parent a5880b0 commit 4260517

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@
107107
"vitest": "^3.1.1",
108108
"vue": "^3.5.13"
109109
}
110-
}
110+
}

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ const components = ref([ //------|
120120
* Modify the index to display a component
121121
* [0] = VueUiXy
122122
*/
123-
const selectedComponent = ref(components.value[26]);
123+
const selectedComponent = ref(components.value[45]);
124124
125125
/**
126126
* Legacy testing arena where some non chart components can be tested

src/components/vue-ui-stackbar.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,13 @@ function useTooltip(seriesIndex) {
616616
}
617617
});
618618
619+
dataTooltipSlot.value = {
620+
datapoint,
621+
seriesIndex,
622+
config: FINAL_CONFIG.value,
623+
series: formattedDataset.value
624+
}
625+
619626
const sum = datapoint.map(d => Math.abs(d.value)).reduce((a, b) => a + b, 0);
620627
621628
if (isFunction(customFormat) && functionReturnsString(() => customFormat({

0 commit comments

Comments
 (0)