import Vue from 'vue'
import { toAddressTH, hideMoreText, toBig, toRegularNumber, AIsBiggerThanB } from '@/utils/common.js'
import { sleep} from '@/utils/tools.js'
import storageKeyConfig from '@/utils/data/storageKeyConfig'
import storage from '@/utils/storage';
import value from '@/utils/data/value';







// 全局方法
Vue.prototype.$formateLength = (length) => {
  return (length - 0)  * 0.0521 + 'vmax';
}


Vue.prototype.$formateLengthToPx = (length, type=1) => {
    let clientWidth = document.documentElement.clientWidth;
    let  value = (length * clientWidth)  * 0.000521;
    return  type == 1 ? value+ 'px' : value;
  }

Vue.prototype.$toBig = toBig;
Vue.prototype.$toRegularNumber = toRegularNumber;
Vue.prototype.$toAddressTH = toAddressTH;
Vue.prototype.$hideMoreText = hideMoreText;
Vue.prototype.$storage = storage;
Vue.prototype.$sleep = sleep;
Vue.prototype.$AIsBiggerThanB = AIsBiggerThanB;




// 全局属性
Vue.prototype.$storageKeyConfig = storageKeyConfig;
Vue.prototype.$value = value;




