123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- import mixin from './tool/mixin/mixin.js'
- import dayjs from './tool/function/dayjs/index'
- import util from './tool/function/util'
- import guid from './tool/function/guid.js'
- import sleep from './tool/function/sleep.js'
- import randomArray from './tool/function/randomArray.js'
- import deepClone from './tool/function/deepClone.js'
- import deepMerge from './tool/function/deepMerge.js'
- import test from './tool/function/test.js'
- import random from './tool/function/random.js'
- import trim from './tool/function/trim.js'
- import toast from './tool/function/toast.js'
- import getParent from './tool/function/getParent.js'
- import getParentAttr from './tool/function/getParentAttr.js'
- import getParentAls from './tool/function/getParentAls.js'
- import upload from './tool/function/upload.js'
- import preview from './tool/function/preview.js'
- import {objToString} from './tool/function/objToString.js'
- import calendar from './tool/function/calendar.js'
- import HandwritingSelf from './tool/function/signBoard.js'
- import choujiang from './tool/function/choujianggailv.js'
- import config from './tool/config/config.js'
- import store from './tool/store/tm-vuetify'
- import vx from './tool/function/vuex.js'
- import theme from './tool/function/theme.js'
- import request from './tool/request/index'
- const $tm = {
-
- sleep,
- request,
- objToString,
- dayjs:dayjs.dayjs,
- guid,
- upload,
- preview,
- randomArray,
- test,
- random,
- deepClone,
- deepMerge,
- getParent,
- getParentAttr,
- getParentAls,
- trim,
- toast,
- config,
- calendar,
- HandwritingSelf,
- choujiang,
- vx:new vx(store),
- theme,
- u: util,
- }
- uni.$tm = $tm
- const install = Vue => {
- Vue.mixin(mixin)
- Vue.prototype.$tm = {...$tm}
-
-
-
- }
- export default {
- install
- }
|