UNPKG

xxb-ui

Version:

A mobile terminal UI component library based on vue2.x

2 lines 1.45 kB
/*! xxb-ui v1.0.33 by XuGang (c) 2020 Licensed MIT */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("xxb-ui",[],t):"object"==typeof exports?exports["xxb-ui"]=t():e["xxb-ui"]=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return e[o].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=7)}({7:function(e,t,n){"use strict";!function(e){var t=e.document,n=t.documentElement,o="orientationchange"in e?"orientationchange":"resize",i=function e(){var t=n.getBoundingClientRect().width;return n.style.fontSize=2*Math.max(Math.min(t/750*20,11.2),8.55)+"px",e}();n.setAttribute("data-dpr",e.navigator.appVersion.match(/iphone/gi)?e.devicePixelRatio:1),/iP(hone|od|ad)/.test(e.navigator.userAgent)&&(t.documentElement.classList.add("ios"),parseInt(e.navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/)[1],10)>=8&&t.documentElement.classList.add("hairline")),t.addEventListener&&(e.addEventListener(o,i,!1),t.addEventListener("DOMContentLoaded",i,!1))}(window)}})});