diff --git a/package.json b/package.json
index fb9b5c0..00d56a7 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "vue-ellipse-progress",
- "version": "1.2.0",
+ "version": "1.3.0-beta.0",
"private": false,
"description": "A Vue.js component to create beautiful animated circular progress bars",
"main": "./dist/vue-ellipse-progress.umd.min.js",
diff --git a/src/App.vue b/src/App.vue
index 2cbc62d..ceeecbd 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -41,26 +41,20 @@
-->
-
- /200
- Some Caption
+
+
-
@@ -72,6 +66,7 @@ export default {
components: { VueEllipseProgress },
data: () => ({
line: "round",
+ price: "",
circles: [
{ progress: 50, color: "red" },
{ progress: 50, color: "red", half: true, angle: -90 },
@@ -139,6 +134,18 @@ export default {
},
},
methods: {
+ formattedPrice(value) {
+ return new Intl.NumberFormat("de-DE", { style: "currency", currency: "EUR" }).format(value);
+ },
+ customFormatter({ currentValue /* start, end, startTime, previousCountStepValue, elapsed, currentRawValue */ }) {
+ this.price = new Intl.NumberFormat("fr-FR").format(currentValue);
+ // console.log(this.price, currentValue, currentRawValue, previousCountStepValue, start, end, startTime, elapsed);
+ return `My ${this.price} Format`;
+ /* return `
+ ${this.price.slice(0, this.price.indexOf(","))}
+ ${this.price.slice(this.price.indexOf(","), this.price.length)}
+ `; */
+ },
updateProgress() {
this.progress = parseFloat(Math.floor(Math.random() * 100).toFixed(2));
},
diff --git a/src/components/Counter.vue b/src/components/Counter.vue
index 1482164..a776af8 100644
--- a/src/components/Counter.vue
+++ b/src/components/Counter.vue
@@ -1,5 +1,12 @@
- {{ formattedValue }}
+
+
+
+
+ {{ customFormattedValue }}
+
+ {{ formattedValue }}
+