1234567891011121314151617181920212223242526272829303132333435363738394041 |
- import Newly from "./Newly";
- import RoseCon from './RoseCon'
- import TrendCon from "./TrendCon";
- import PieCon from './PieCon'
- import CityRank from "./CityRank";
- import wordCloud from "./wordCloud";
- import test from "./test";
- const components = {
- RoseCon,
- PieCon,
- TrendCon,
- Newly,
- CityRank,
- wordCloud,
- test,
- };
- const install = (Vue = {}) => {
- if (install.installed) return;
- Object.keys(components).forEach(component => {
- Vue.component(components[component].name, components[component]);
- });
- install.installed = true;
- };
- install.installed = false;
- if (typeof window !== "undefined" && window.Vue) {
- install(window.Vue);
- install.installed = true;
- }
- const Vcomp = {
- ...components,
- install
- };
- export default Vcomp
|