From 64d62fedcd9f8dc777ac5fc5e512293c017ac699 Mon Sep 17 00:00:00 2001 From: graphieros Date: Fri, 8 Mar 2024 07:12:25 +0100 Subject: [PATCH] Added @selectDatpoint emit event on all mini charts --- package-lock.json | 4 ++-- package.json | 2 +- src/App.vue | 25 ++++++++++++++++++++++++ src/components/vue-ui-sparkbar.vue | 8 +++++++- src/components/vue-ui-sparkhistogram.vue | 7 +++++++ src/components/vue-ui-sparkline.vue | 6 +++++- src/components/vue-ui-sparkstackbar.vue | 9 ++++++++- types/vue-data-ui.d.ts | 25 ++++++++++++++++++++++++ 8 files changed, 80 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index cfcc4f32..5e6bacad 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "vue-data-ui", - "version": "2.0.8", + "version": "2.0.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "vue-data-ui", - "version": "2.0.8", + "version": "2.0.9", "license": "MIT", "devDependencies": { "@vitejs/plugin-vue": "^4.2.3", diff --git a/package.json b/package.json index 180b6f32..82caefad 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "vue-data-ui", "private": false, - "version": "2.0.9", + "version": "2.0.10", "type": "module", "description": "A user-empowering data visualization Vue components library", "keywords": [ diff --git a/src/App.vue b/src/App.vue index d65f85ae..630da730 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2453,6 +2453,22 @@ const moleculeConfig = ref({ } }) +function selectSparklineDatapoint({ datapoint, index }) { + console.log({datapoint, index }) +} + +function selectSparkbarDatapoint({ datapoint, index }) { + console.log({ datapoint, index }) +} + +function selectStackbarDatapoint({ datapoint, index }) { + console.log({ datapoint, index }) +} + +function selectHistoDatapoint({ datapoint, index }) { + console.log({ datapoint, index }) +} +