UNPKG

meri-design

Version:

基于vue框架的ui库

7 lines 13.9 kB
/*! * @meri-design v2.2.19-beta10 * (c) 2019-2022 YuShu-Web * Released under the MIT License. * 2025-01-14 15:25:40 */ var t,e;t=this,e=function(t){return function(){var e={55057:function(t,e,n){var r=n(27989);t.exports=r},24803:function(t,e,n){t.exports=n(31051)},31051:function(t,e,n){var r=n(55057);t.exports=r},24883:function(t,e,n){var r=n(57475),o=n(69826),i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not a function")}},96059:function(t,e,n){var r=n(10941),o=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw i(o(t)+" is not an object")}},93765:function(t,e,n){var r=n(95329);t.exports=r([].slice)},82532:function(t,e,n){var r=n(95329),o=r({}.toString),i=r("".slice);t.exports=function(t){return i(o(t),8,-1)}},32029:function(t,e,n){var r=n(55746),o=n(65988),i=n(31887);t.exports=r?function(t,e,n){return o.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},31887:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},75609:function(t,e,n){var r=n(21899),o=Object.defineProperty;t.exports=function(t,e){try{o(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},55746:function(t,e,n){var r=n(95981);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},61333:function(t,e,n){var r=n(21899),o=n(10941),i=r.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},2861:function(t,e,n){var r=n(626);t.exports=r("navigator","userAgent")||""},53385:function(t,e,n){var r,o,i=n(21899),u=n(2861),c=i.process,s=i.Deno,a=c&&c.versions||s&&s.version,f=a&&a.v8;f&&(o=(r=f.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&u&&(!(r=u.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=u.match(/Chrome\/(\d+)/))&&(o=+r[1]),t.exports=o},76887:function(t,e,n){"use strict";var r=n(21899),o=n(79730),i=n(95329),u=n(57475),c=n(49677).f,s=n(37252),a=n(54058),f=n(86843),p=n(32029),l=n(90953),v=function(t){var e=function(n,r,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,i)}return o(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var n,o,d,y,h,b,m,g,x=t.target,w=t.global,j=t.stat,O=t.proto,_=w?r:j?r[x]:(r[x]||{}).prototype,S=w?a:a[x]||p(a,x,{})[x],T=S.prototype;for(d in e)n=!s(w?d:x+(j?".":"#")+d,t.forced)&&_&&l(_,d),h=S[d],n&&(b=t.dontCallGetSet?(g=c(_,d))&&g.value:_[d]),y=n&&b?b:e[d],n&&typeof h==typeof y||(m=t.bind&&n?f(y,r):t.wrap&&n?v(y):O&&u(y)?i(y):y,(t.sham||y&&y.sham||h&&h.sham)&&p(m,"sham",!0),p(S,d,m),O&&(l(a,o=x+"Prototype")||p(a,o,{}),p(a[o],d,y),t.real&&T&&!T[d]&&p(T,d,y)))}},95981:function(t){t.exports=function(t){try{return!!t()}catch(e){return!0}}},79730:function(t,e,n){var r=n(18285),o=Function.prototype,i=o.apply,u=o.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?u.bind(i):function(){return u.apply(i,arguments)})},86843:function(t,e,n){var r=n(95329),o=n(24883),i=n(18285),u=r(r.bind);t.exports=function(t,e){return o(t),void 0===e?t:i?u(t,e):function(){return t.apply(e,arguments)}}},18285:function(t,e,n){var r=n(95981);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},78834:function(t,e,n){var r=n(18285),o=Function.prototype.call;t.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},95329:function(t,e,n){var r=n(18285),o=Function.prototype,i=o.bind,u=o.call,c=r&&i.bind(u,u);t.exports=r?function(t){return t&&c(t)}:function(t){return t&&function(){return u.apply(t,arguments)}}},626:function(t,e,n){var r=n(54058),o=n(21899),i=n(57475),u=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?u(r[t])||u(o[t]):r[t]&&r[t][e]||o[t]&&o[t][e]}},14229:function(t,e,n){var r=n(24883);t.exports=function(t,e){var n=t[e];return null==n?void 0:r(n)}},21899:function(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},90953:function(t,e,n){var r=n(95329),o=n(89678),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},2840:function(t,e,n){var r=n(55746),o=n(95981),i=n(61333);t.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},37026:function(t,e,n){var r=n(95329),o=n(95981),i=n(82532),u=Object,c=r("".split);t.exports=o((function(){return!u("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?c(t,""):u(t)}:u},57475:function(t){t.exports=function(t){return"function"==typeof t}},37252:function(t,e,n){var r=n(95981),o=n(57475),i=/#|\.prototype\./,u=function(t,e){var n=s[c(t)];return n==f||n!=a&&(o(e)?r(e):!!e)},c=u.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=u.data={},a=u.NATIVE="N",f=u.POLYFILL="P";t.exports=u},10941:function(t,e,n){var r=n(57475);t.exports=function(t){return"object"==typeof t?null!==t:r(t)}},82529:function(t){t.exports=!0},56664:function(t,e,n){var r=n(626),o=n(57475),i=n(7046),u=n(32302),c=Object;t.exports=u?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&i(e.prototype,c(t))}},72497:function(t,e,n){var r=n(53385),o=n(95981);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},65988:function(t,e,n){var r=n(55746),o=n(2840),i=n(83937),u=n(96059),c=n(83894),s=TypeError,a=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p="enumerable",l="configurable",v="writable";e.f=r?i?function(t,e,n){if(u(t),e=c(e),u(n),"function"==typeof t&&"prototype"===e&&"value"in n&&v in n&&!n.writable){var r=f(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:l in n?n.configurable:r.configurable,enumerable:p in n?n.enumerable:r.enumerable,writable:!1})}return a(t,e,n)}:a:function(t,e,n){if(u(t),e=c(e),u(n),o)try{return a(t,e,n)}catch(r){}if("get"in n||"set"in n)throw s("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},49677:function(t,e,n){var r=n(55746),o=n(78834),i=n(36760),u=n(31887),c=n(74529),s=n(83894),a=n(90953),f=n(2840),p=Object.getOwnPropertyDescriptor;e.f=r?p:function(t,e){if(t=c(t),e=s(e),f)try{return p(t,e)}catch(n){}if(a(t,e))return u(!o(i.f,t,e),t[e])}},7046:function(t,e,n){var r=n(95329);t.exports=r({}.isPrototypeOf)},36760:function(t,e){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},39811:function(t,e,n){var r=n(78834),o=n(57475),i=n(10941),u=TypeError;t.exports=function(t,e){var n,c;if("string"===e&&o(n=t.toString)&&!i(c=r(n,t)))return c;if(o(n=t.valueOf)&&!i(c=r(n,t)))return c;if("string"!==e&&o(n=t.toString)&&!i(c=r(n,t)))return c;throw u("Can't convert object to primitive value")}},54058:function(t){t.exports={}},48219:function(t){var e=TypeError;t.exports=function(t){if(null==t)throw e("Can't call method on "+t);return t}},37620:function(t,e,n){var r=n(21899),o=n(79730),i=n(57475),u=n(2861),c=n(93765),s=n(18348),a=/MSIE .\./.test(u),f=r.Function,p=function(t){return a?function(e,n){var r=s(arguments.length,1)>2,u=i(e)?e:f(e),a=r?c(arguments,2):void 0;return t(r?function(){o(u,this,a)}:u,n)}:t};t.exports={setTimeout:p(r.setTimeout),setInterval:p(r.setInterval)}},63030:function(t,e,n){var r=n(21899),o=n(75609),i="__core-js_shared__",u=r[i]||o(i,{});t.exports=u},68726:function(t,e,n){var r=n(82529),o=n(63030);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.23.4",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.4/LICENSE",source:"https://github.com/zloirock/core-js"})},74529:function(t,e,n){var r=n(37026),o=n(48219);t.exports=function(t){return r(o(t))}},89678:function(t,e,n){var r=n(48219),o=Object;t.exports=function(t){return o(r(t))}},46935:function(t,e,n){var r=n(78834),o=n(10941),i=n(56664),u=n(14229),c=n(39811),s=n(99813),a=TypeError,f=s("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var n,s=u(t,f);if(s){if(void 0===e&&(e="default"),n=r(s,t,e),!o(n)||i(n))return n;throw a("Can't convert object to primitive value")}return void 0===e&&(e="number"),c(t,e)}},83894:function(t,e,n){var r=n(46935),o=n(56664);t.exports=function(t){var e=r(t,"string");return o(e)?e:e+""}},69826:function(t){var e=String;t.exports=function(t){try{return e(t)}catch(n){return"Object"}}},99418:function(t,e,n){var r=n(95329),o=0,i=Math.random(),u=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+u(++o+i,36)}},32302:function(t,e,n){var r=n(72497);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},83937:function(t,e,n){var r=n(55746),o=n(95981);t.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},18348:function(t){var e=TypeError;t.exports=function(t,n){if(t<n)throw e("Not enough arguments");return t}},99813:function(t,e,n){var r=n(21899),o=n(68726),i=n(90953),u=n(99418),c=n(72497),s=n(32302),a=o("wks"),f=r.Symbol,p=f&&f.for,l=s?f:f&&f.withoutSetter||u;t.exports=function(t){if(!i(a,t)||!c&&"string"!=typeof a[t]){var e="Symbol."+t;c&&i(f,t)?a[t]=f[t]:a[t]=s&&p?p(e):l(e)}return a[t]}},79229:function(t,e,n){var r=n(76887),o=n(21899),i=n(37620).setInterval;r({global:!0,bind:!0,forced:o.setInterval!==i},{setInterval:i})},17749:function(t,e,n){var r=n(76887),o=n(21899),i=n(37620).setTimeout;r({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},71249:function(t,e,n){n(79229),n(17749)},27989:function(t,e,n){n(71249);var r=n(54058);t.exports=r.setTimeout},80676:function(e){"use strict";e.exports=t},9938:function(t,e,n){t.exports=n(24803)}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};return function(){"use strict";r.r(o),r.d(o,{default:function(){return v}});var t=r(9938),e=r.n(t),n=r(80676),i=r.n(n),u=t=>{if(!t)return;if(t._isDestroyed)return;t.$destroy();const e=t.$el;e&&e.parentNode.removeChild(e)};function c(t,e,n,r,o,i,u,c){var s,a="function"==typeof t?t.options:t;if(e&&(a.render=e,a.staticRenderFns=n,a._compiled=!0),r&&(a.functional=!0),i&&(a._scopeId="data-v-"+i),u?(s=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(u)},a._ssrRegister=s):o&&(s=c?function(){o.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:o),s)if(a.functional){a._injectStyles=s;var f=a.render;a.render=function(t,e){return s.call(e),f(t,e)}}else{var p=a.beforeCreate;a.beforeCreate=p?[].concat(p,s):[s]}return{exports:t,options:a}}var s=c({name:"TipBox",props:{title:{type:String,default:""}}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"m-pop-tip"},[t._v(t._s(t.title))])}),[],!1,null,null,null).exports,a=()=>!!window.ActiveXObject||"ActiveXObject"in window,f=()=>{const t=document.createElement("div");t.style.cssText="position:absolute;top:-1000px;width:100px;height:100px;overflow:hidden;opacity:0;";const e=document.body.appendChild(t).clientWidth;t.style.overflowY="scroll";const n=t.clientWidth;a()?t.removeNode(!0):t.remove();const r=e-n;return r<6?6:r},p=t=>{const{tag:e,title:n}=t,r=document.body;let o=new(i().extend(s))({propsData:{title:n}});return o=o.$mount(),o.tag=e,o.dom=r,o.remove=()=>u(o),o.resetPosition=()=>{const{innerWidth:t,pageXOffset:i}=window,{left:u,width:c}=e.getBoundingClientRect(),s=f(),{width:a,height:p}=(t=>{const e=document.createElement("div");e.className="m-pop-tip",e.textContent=t,document.body.appendChild(e);const{clientWidth:n,clientHeight:r}=e;return document.body.removeChild(e),{width:n+2,height:r+2}})(n);let l=0;if(a===t)i>0&&(l=0);else if(0===u)l=0;else{const e=t-u,n=u+c/2,r=a/2;l=n<r?0:a<=c?a<=e?n-r:t-a:n>=r?t-n<=r?t-a-s:n-r:0}const{Y:v,P:d}=((t,e,n)=>{const{clientHeight:r}=e,{pageYOffset:o}=window,{top:i,height:u}=t.getBoundingClientRect();let c,s=!0;const a=i-4;return a>=n?(c=a-n+o,s=!1):c=r-(i+u+4)>=n?i+u+4+o:r-n+o,{Y:c,P:s}})(e,r,p);o.position=d,o.$el.style.top=`${v}px`,o.$el.style.left=`${l}px`},r.appendChild(o.$el),o},l=c({name:"PopTip",props:{title:{type:String,default:""}},methods:{enter(t){this.timer&&clearTimeout(this.timer),this.timer=e()((()=>{const{title:e}=this;this.tip=p({tag:t.target,title:e}),this.tip.resetPosition()}),300)},leave(){var t;this.timer&&clearTimeout(this.timer),null===(t=this.tip)||void 0===t||t.remove()}},beforeDestroy(){this.leave()}},(function(){var t=this,e=t.$createElement;return(t._self._c||e)("span",{on:{mouseenter:t.enter,mouseleave:t.leave,mouseup:t.leave}},[t._t("default")],2)}),[],!1,null,null,null).exports;l.install=t=>t.component(l.name,l);var v=l}(),o}()},"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define("PopTip",["vue"],e):"object"==typeof exports?exports.PopTip=e(require("vue")):t.PopTip=e(t.Vue);