Skip to content

Commit 67836e4

Browse files
committed
VueUiWheel add exposed methods
1 parent 9bc51cf commit 67836e4

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
![GitHub issues](https://img.shields.io/github/issues/graphieros/vue-data-ui)
1515
![NPM](https://img.shields.io/npm/l/vue-data-ui)
1616
![npm](https://img.shields.io/npm/dt/vue-data-ui)
17-
![Static Badge](https://img.shields.io/badge/components-27-green)
17+
![Static Badge](https://img.shields.io/badge/components-28-green)
1818

1919
[Interactive documentation](https://vue-data-ui.graphieros.com/)
2020

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue-data-ui",
33
"private": false,
4-
"version": "1.9.25",
4+
"version": "1.9.26",
55
"type": "module",
66
"description": "A user-empowering data visualization Vue components library",
77
"keywords": [

src/components/vue-ui-wheel.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@ function generateImage() {
134134
}, 100)
135135
}
136136
137+
defineExpose({
138+
generatePdf,
139+
generateImage
140+
});
141+
137142
</script>
138143

139144
<template>
@@ -208,6 +213,7 @@ function generateImage() {
208213
:fill="wheelConfig.style.chart.layout.wheel.ticks.gradient.show ? shiftHue(wheelConfig.style.chart.layout.wheel.ticks.activeColor, activeValue / 100 * (wheelConfig.style.chart.layout.wheel.ticks.gradient.shiftHueIntensity / 100)) : wheelConfig.style.chart.layout.wheel.ticks.activeColor"
209214
text-anchor="middle"
210215
:font-weight="wheelConfig.style.chart.layout.percentage.bold ? 'bold' : 'normal'"
216+
style="font-variant-numeric:tabluar-nums"
211217
>
212218
{{ Number(activeValue.toFixed(wheelConfig.style.chart.layout.percentage.rounding)).toLocaleString() }}%
213219
</text>

0 commit comments

Comments
 (0)