UNPKG

tian-yan-yan

Version:

一套不算好用的组件

33 lines (22 loc) 579 B
// 基础组件 import {ui} from "./components"; // 公共方法 import {utils} from "./utils"; // 产品依赖的基础数据 import {tyWindowGlobalData} from "./utils/windowGlobalData"; window.tyWindowGlobalData = tyWindowGlobalData() const install = function (Vue){ // 如果安装过就忽略 if(install.installed) return; ui.forEach(component =>{ Vue.component(component.name, component) }) utils(Vue) } if(typeof window !== 'undefined' && window.Vue) { install(window.Vue); } export default { install, ...ui, }