2.1.1 • Published 5 years ago

vuewordclouds v2.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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;

demo

Try it out!