vue-apexcharts
Advanced tools
Comparing version 1.3.6 to 1.4.0
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('apexcharts/dist/apexcharts.common'), require('apexcharts')) : | ||
typeof define === 'function' && define.amd ? define(['apexcharts/dist/apexcharts.common', 'apexcharts'], factory) : | ||
(global.VueApexCharts = factory(global.ApexCharts,global.ApexCharts)); | ||
}(this, (function (ApexCharts,ApexCharts$1) { 'use strict'; | ||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('apexcharts')) : | ||
typeof define === 'function' && define.amd ? define(['apexcharts'], factory) : | ||
(global.VueApexCharts = factory(global.ApexCharts)); | ||
}(this, (function (ApexCharts) { 'use strict'; | ||
ApexCharts = ApexCharts && ApexCharts.hasOwnProperty('default') ? ApexCharts['default'] : ApexCharts; | ||
ApexCharts$1 = ApexCharts$1 && ApexCharts$1.hasOwnProperty('default') ? ApexCharts$1['default'] : ApexCharts$1; | ||
@@ -227,12 +226,12 @@ function _typeof(obj) { | ||
var VueApexCharts = ApexChartsComponent; | ||
window.ApexCharts = ApexCharts$1; | ||
window.ApexCharts = ApexCharts; | ||
VueApexCharts.install = function (Vue) { | ||
//adding a global method or property | ||
Vue.ApexCharts = ApexCharts$1; | ||
window.ApexCharts = ApexCharts$1; // add the instance method | ||
Vue.ApexCharts = ApexCharts; | ||
window.ApexCharts = ApexCharts; // add the instance method | ||
Object.defineProperty(Vue.prototype, '$apexcharts', { | ||
get: function get() { | ||
return ApexCharts$1; | ||
return ApexCharts; | ||
} | ||
@@ -239,0 +238,0 @@ }); |
{ | ||
"name": "vue-apexcharts", | ||
"version": "1.3.6", | ||
"version": "1.4.0", | ||
"description": "Vue.js wrapper for ApexCharts", | ||
@@ -5,0 +5,0 @@ "main": "dist/vue-apexcharts.js", |
@@ -1,2 +0,2 @@ | ||
import ApexCharts from 'apexcharts/dist/apexcharts.common' | ||
import ApexCharts from 'apexcharts' | ||
@@ -3,0 +3,0 @@ export default { |
54826
573