UNPKG

@df8080/vue2-ui

Version:

🎨 一个基于 Vue 2 的 UI 组件库,目前主要面向微信小程序开发场景,也适用于其他移动端项目。

35 lines (31 loc) 722 B
import { cosThumbnail, cosImageView2 } from './cos' import debounce from './debounce' import throttle from './throttle' import * as calc from './calc' import * as data from './data' import * as dom from './dom' import * as file from './file' import * as format from './format' import * as is from './is' import { UniConfirm, UniToast, UniCopy } from './uniCallback2Promise' const $utils = { cosThumbnail, cosImageView2, debounce, throttle, ...calc, ...data, ...dom, ...file, ...format, ...is, } const install = (Vue) => { Vue.prototype.$utils = $utils Vue.prototype.$UniConfirm = UniConfirm Vue.prototype.$UniToast = UniToast Vue.prototype.$UniCopy = UniCopy } export default { install, }