vuewordclouds
v2.1.1
Published
Generates a cloud out of the words.
Downloads
5
Maintainers
Readme
VueWordClouds
this is upgrade version form vuewordcloud 主要目的是兼容了ie内核,原版本请参考vuewordcloud 原因是由于之前的代码中globalthis 不兼容ie ,所以修改里如下代码使其兼容it
index.js
import VueWordClouds from './VueWordClouds'; var getGlobal = function () { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } throw new Error('unable to locate global object'); };
var globals = getGlobal();
{ let {window} = globals; if (window) { let {Vue} = window; if (Vue) { Vue.component(VueWordClouds.name, VueWordClouds); } } }
export default VueWordClouds;