lemon-ui-vue2
Version:
1 lines • 16.3 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("frame-four",[],e):"object"==typeof exports?exports["frame-four"]=e():t["frame-four"]=e()}(self,(()=>(()=>{var t={489:(t,e,r)=>{var n=r(7967).f,i=Function.prototype,o=/^\s*function ([^ (]*)/,c="name";c in i||r(1763)&&n(i,c,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},1158:(t,e,r)=>{"use strict";var n=r(4228);t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},1212:(t,e,r)=>{var n=r(7087),i=r(3344);t.exports=function(t){return function(e,r){var o,c,a=String(i(e)),l=n(r),u=a.length;return l<0||l>=u?t?"":void 0:(o=a.charCodeAt(l))<55296||o>56319||l+1===u||(c=a.charCodeAt(l+1))<56320||c>57343?t?a.charAt(l):o:t?a.slice(l,l+2):c-56320+(o-55296<<10)+65536}}},1485:(t,e,r)=>{var n=r(7087),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},1763:(t,e,r)=>{t.exports=!r(9448)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},1996:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},2127:(t,e,r)=>{var n=r(7526),i=r(6094),o=r(3341),c=r(8859),a=r(5052),l="prototype",u=function(t,e,r){var g,h,s,f,d=t&u.F,p=t&u.G,v=t&u.S,x=t&u.P,y=t&u.B,T=p?n:v?n[e]||(n[e]={}):(n[e]||{})[l],m=p?i:i[e]||(i[e]={}),H=m[l]||(m[l]={});for(g in p&&(r=e),r)s=((h=!d&&T&&void 0!==T[g])?T:r)[g],f=y&&h?a(s,n):x&&"function"==typeof s?a(Function.call,s):s,T&&c(T,g,s,t&u.U),m[g]!=s&&o(m,g,f),x&&H[g]!=s&&(H[g]=s)};n.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},2535:(t,e,r)=>{"use strict";var n=r(4848),i=RegExp.prototype.exec;t.exports=function(t,e){var r=t.exec;if("function"==typeof r){var o=r.call(t,e);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},2750:t=>{t.exports=!1},2956:(t,e,r)=>{t.exports=!r(1763)&&!r(9448)((function(){return 7!=Object.defineProperty(r(6034)("div"),"a",{get:function(){return 7}}).a}))},3048:(t,e,r)=>{var n=r(3305);t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},3292:(t,e,r)=>{var n=r(2127);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},3305:t=>{t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},3341:(t,e,r)=>{var n=r(7967),i=r(1996);t.exports=r(1763)?function(t,e,r){return n.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},3344:t=>{t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},3387:t=>{t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},4040:(t,e,r)=>{"use strict";var n=r(4228),i=r(1485),o=r(8828),c=r(2535);r(9228)("match",1,(function(t,e,r,a){return[function(r){var n=t(this),i=null==r?void 0:r[e];return void 0!==i?i.call(r,n):new RegExp(r)[e](String(n))},function(t){var e=a(r,t,this);if(e.done)return e.value;var l=n(t),u=String(this);if(!l.global)return c(l,u);var g=l.unicode;l.lastIndex=0;for(var h,s=[],f=0;null!==(h=c(l,u));){var d=String(h[0]);s[f]=d,""===d&&(l.lastIndex=o(u,i(l.lastIndex),g)),f++}return 0===f?null:s}]}))},4116:(t,e,r)=>{"use strict";var n=r(9600);r(2127)({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},4228:(t,e,r)=>{var n=r(3305);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},4415:t=>{var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},4556:(t,e,r)=>{var n=r(6094),i=r(7526),o="__core-js_shared__",c=i[o]||(i[o]={});(t.exports=function(t,e){return c[t]||(c[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r(2750)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},4848:(t,e,r)=>{var n=r(5089),i=r(7574)("toStringTag"),o="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,r,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?r:o?n(e):"Object"==(c=n(e))&&"function"==typeof e.callee?"Arguments":c}},5052:(t,e,r)=>{var n=r(3387);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},5089:t=>{var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},6034:(t,e,r)=>{var n=r(3305),i=r(7526).document,o=n(i)&&n(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},6094:t=>{var e=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},7087:t=>{var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},7526:t=>{var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},7574:(t,e,r)=>{var n=r(4556)("wks"),i=r(4415),o=r(7526).Symbol,c="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=c&&o[t]||(c?o:i)("Symbol."+t))}).store=n},7917:t=>{var e={}.hasOwnProperty;t.exports=function(t,r){return e.call(t,r)}},7967:(t,e,r)=>{var n=r(4228),i=r(2956),o=r(3048),c=Object.defineProperty;e.f=r(1763)?Object.defineProperty:function(t,e,r){if(n(t),e=o(e,!0),n(r),i)try{return c(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},8270:(t,e,r)=>{var n=r(3344);t.exports=function(t){return Object(n(t))}},8305:(t,e,r)=>{"use strict";var n=r(4228),i=r(8270),o=r(1485),c=r(7087),a=r(8828),l=r(2535),u=Math.max,g=Math.min,h=Math.floor,s=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g;r(9228)("replace",2,(function(t,e,r,d){return[function(n,i){var o=t(this),c=null==n?void 0:n[e];return void 0!==c?c.call(n,o,i):r.call(String(o),n,i)},function(t,e){var i=d(r,t,this,e);if(i.done)return i.value;var h=n(t),s=String(this),f="function"==typeof e;f||(e=String(e));var v=h.global;if(v){var x=h.unicode;h.lastIndex=0}for(var y=[];;){var T=l(h,s);if(null===T)break;if(y.push(T),!v)break;""===String(T[0])&&(h.lastIndex=a(s,o(h.lastIndex),x))}for(var m,H="",W=0,b=0;b<y.length;b++){T=y[b];for(var w=String(T[0]),S=u(g(c(T.index),s.length),0),F=[],C=1;C<T.length;C++)F.push(void 0===(m=T[C])?m:String(m));var E=T.groups;if(f){var _=[w].concat(F,S,s);void 0!==E&&_.push(E);var j=String(e.apply(void 0,_))}else j=p(w,s,S,F,E,e);S>=W&&(H+=s.slice(W,S)+j,W=S+w.length)}return H+s.slice(W)}];function p(t,e,n,o,c,a){var l=n+t.length,u=o.length,g=f;return void 0!==c&&(c=i(c),g=s),r.call(a,g,(function(r,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(l);case"<":a=c[i.slice(1,-1)];break;default:var g=+i;if(0===g)return r;if(g>u){var s=h(g/10);return 0===s?r:s<=u?void 0===o[s-1]?i.charAt(1):o[s-1]+i.charAt(1):r}a=o[g-1]}return void 0===a?"":a}))}}))},8828:(t,e,r)=>{"use strict";var n=r(1212)(!0);t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},8859:(t,e,r)=>{var n=r(7526),i=r(3341),o=r(7917),c=r(4415)("src"),a=r(9461),l="toString",u=(""+a).split(l);r(6094).inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,r,a){var l="function"==typeof r;l&&(o(r,"name")||i(r,"name",e)),t[e]!==r&&(l&&(o(r,c)||i(r,c,t[e]?""+t[e]:u.join(String(e)))),t===n?t[e]=r:a?t[e]?t[e]=r:i(t,e,r):(delete t[e],i(t,e,r)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[c]||a.call(this)}))},9228:(t,e,r)=>{"use strict";r(4116);var n=r(8859),i=r(3341),o=r(9448),c=r(3344),a=r(7574),l=r(9600),u=a("species"),g=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),h=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2===r.length&&"a"===r[0]&&"b"===r[1]}();t.exports=function(t,e,r){var s=a(t),f=!o((function(){var e={};return e[s]=function(){return 7},7!=""[t](e)})),d=f?!o((function(){var e=!1,r=/a/;return r.exec=function(){return e=!0,null},"split"===t&&(r.constructor={},r.constructor[u]=function(){return r}),r[s](""),!e})):void 0;if(!f||!d||"replace"===t&&!g||"split"===t&&!h){var p=/./[s],v=r(c,s,""[t],(function(t,e,r,n,i){return e.exec===l?f&&!i?{done:!0,value:p.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}})),x=v[0],y=v[1];n(String.prototype,t,x),i(RegExp.prototype,s,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},9448:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},9461:(t,e,r)=>{t.exports=r(4556)("native-function-to-string",Function.toString)},9600:(t,e,r)=>{"use strict";var n,i,o=r(1158),c=RegExp.prototype.exec,a=String.prototype.replace,l=c,u="lastIndex",g=(n=/a/,i=/b*/g,c.call(n,"a"),c.call(i,"a"),0!==n[u]||0!==i[u]),h=void 0!==/()??/.exec("")[1];(g||h)&&(l=function(t){var e,r,n,i,l=this;return h&&(r=new RegExp("^"+l.source+"$(?!\\s)",o.call(l))),g&&(e=l[u]),n=c.call(l,t),g&&n&&(l[u]=l.global?n.index+n[0].length:e),h&&n&&n.length>1&&a.call(n[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)})),n}),t.exports=l}},e={};function r(n){var i=e[n];if(void 0!==i)return i.exports;var o=e[n]={exports:{}};return t[n](o,o.exports,r),o.exports}r.d=(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.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var n={};return(()=>{"use strict";r.d(n,{default:()=>c}),r(489);var t=function(){var t=this,e=t._self._c;return e("div",{ref:"leFrameBoxFour",staticClass:"l-border-box-four",style:"width:".concat(t.getWidth,"px; height:").concat(t.getHeight,"px;")},[e("svg",{staticClass:"l-border-svg-container",attrs:{width:t.getWidth,height:t.getHeight}},[e("defs",[e("filter",{attrs:{id:"filterId",height:"150%",width:"150%",x:"-20%",y:"-20%"}},[e("feMorphology",{attrs:{operator:"dilate",radius:"0.1",in:"SourceAlpha",result:"thicken"}}),e("feGaussianBlur",{attrs:{in:"thicken",stdDeviation:"3",result:"blurred"}}),e("feFlood",{attrs:{"flood-color":t.borderColor[0],result:"glowColor"}}),e("feComposite",{attrs:{in:"glowColor",in2:"blurred",operator:"in",result:"softGlowColored"}}),e("feMerge",[e("feMergeNode",{attrs:{in:"softGlowColored"}}),e("feMergeNode",{attrs:{in:"SourceGraphic"}})],1)],1)]),e("polygon",{attrs:{fill:t.backgroundColor,stroke:t.borderColor[0],points:"".concat(t.getWidth/2,",15 ").concat(t.getWidth/2-t.getTitleWidth/2+t.getTitleHeight/2,",15 ").concat(t.getWidth/2-t.getTitleWidth/2,",").concat(t.getTitleHeight/2+15," ").concat(t.getWidth/2-t.getTitleWidth/2+t.getTitleHeight/2,",").concat(t.getTitleHeight+15," ").concat(t.getWidth/2+t.getTitleWidth/2-t.getTitleHeight/2,",").concat(t.getTitleHeight+15," ").concat(t.getWidth/2+t.getTitleWidth/2,",").concat(t.getTitleHeight/2+15," ").concat(t.getWidth/2+t.getTitleWidth/2-t.getTitleHeight/2,",15")}}),e("polygon",{attrs:{filter:"url(#filterId)",fill:t.backgroundColor,stroke:t.borderColor[0],points:"".concat(t.getWidth/2-t.getTitleWidth/2+t.getTitleHeight/2,",").concat(t.getTitleHeight+19," ").concat(t.getWidth/2+t.getTitleWidth/2-t.getTitleHeight/2,",").concat(t.getTitleHeight+19," ").concat(t.getWidth/2+t.getTitleWidth/2+5,",").concat(t.getTitleHeight/2+15," ").concat(t.getWidth-10,",").concat(t.getTitleHeight/2+15," ").concat(t.getWidth,",").concat(t.getTitleHeight/2+25," ").concat(t.getWidth,",").concat(t.getHeight-20," ").concat(t.getWidth-10,",").concat(t.getHeight-10," ").concat(t.getWidth/2+t.getTitleWidth/2-t.getTitleHeight+10,",").concat(t.getHeight-10," ").concat(t.getWidth/2+t.getTitleWidth/2-t.getTitleHeight,",").concat(t.getHeight-20," ").concat(t.getWidth/2-t.getTitleWidth/2+t.getTitleHeight+10,",").concat(t.getHeight-20," ").concat(t.getWidth/2-t.getTitleWidth/2+t.getTitleHeight,",").concat(t.getHeight-10," 10,").concat(t.getHeight-10," 0,").concat(t.getHeight-20," 0,").concat(t.getTitleHeight/2+25," 10,").concat(t.getTitleHeight/2+15," ").concat(t.getWidth/2-t.getTitleWidth/2-5,",").concat(t.getTitleHeight/2+15)}}),e("polyline",{attrs:{fill:"transparent","stroke-width":"1",stroke:t.borderColor[1],points:"".concat(t.getWidth,",").concat(t.getHeight-10," ").concat(t.getWidth-10,",").concat(t.getHeight," ").concat(t.getWidth/2+t.getTitleWidth/2-t.getTitleHeight+10,",").concat(t.getHeight," ").concat(t.getWidth/2+t.getTitleWidth/2-t.getTitleHeight,",").concat(t.getHeight-10," ").concat(t.getWidth/2-t.getTitleWidth/2+t.getTitleHeight+10,",").concat(t.getHeight-10," ").concat(t.getWidth/2-t.getTitleWidth/2+t.getTitleHeight,",").concat(t.getHeight," 10,").concat(t.getHeight," 0,").concat(t.getHeight-10," ")}}),e("polyline",{attrs:{fill:"transparent","stroke-width":"1",stroke:t.borderColor[1],points:"0,".concat(t.getTitleHeight/2+20," 10,").concat(t.getTitleHeight/2+10," ").concat(t.getWidth/2-t.getTitleWidth/2-2,",").concat(t.getTitleHeight/2+10," ").concat(t.getWidth/2-t.getTitleWidth/2+t.getTitleHeight/2-2,",10 ").concat(t.getWidth/2+t.getTitleWidth/2-t.getTitleHeight/2+2,",10 ").concat(t.getWidth/2+t.getTitleWidth/2+2,",").concat(t.getTitleHeight/2+10," ").concat(t.getWidth-10,",").concat(t.getTitleHeight/2+10," ").concat(t.getWidth,",").concat(t.getTitleHeight/2+20)}})]),e("div",{staticClass:"border-box-content"},[t._t("default")],2)])};t._withStripped=!0,r(8305),r(4040);var e=function(t,e,r,n){var i=t.replace(/\d/g,""),o=parseFloat(t.match(/\d+/)[0]),c=null;if("rem"===i)c=parseFloat(getComputedStyle(document.documentElement).fontSize)*o;else if("em"===i){var a=e.parentNode;c=parseFloat(getComputedStyle(a).fontSize)*o}else"vw"===i||"vh"===i?c=o/100*("vw"===i?window.innerWidth||document.documentElement.clientWidth:window.innerHeight||document.documentElement.clientHeight):"%"===i?c=(("width"===r?e.parentNode.offsetWidth:e.parentNode.offsetHeight)*(o/100)).toFixed(2):"px"!==i&&""!==i||(c=o);return c<n&&console.error("lemonui:the Width or Height can't less than ".concat(n,"px")),c};r(3292);var i=function(t,e,r,n,i,o){var c,a=t;if(e&&(a.render=e,a.staticRenderFns=[],a._compiled=!0),o&&(a._scopeId="data-v-"+o),c)if(a.functional){a._injectStyles=c;var l=a.render;a.render=function(t,e){return c.call(e),l(t,e)}}else{var u=a.beforeCreate;a.beforeCreate=u?[].concat(u,c):[c]}return{exports:t,options:a}}({name:"LEBorderBox4",props:{width:{type:String,default:"400px"},height:{type:String,default:"300px"},titleWidth:{type:String,default:"200px"},titleHeight:{type:String,default:"50px"},borderColor:{type:Array,default:function(){return["white","#82D7F5"]}},backgroundColor:{type:String,default:"transparent"}},data:function(){return{getWidth:0,getHeight:0,getTitleWidth:0,getTitleHeight:0,resizeHandler:null}},methods:{initSize:function(){var t=this;this.$nextTick((function(){t.$refs.leFrameBoxFour&&(t.getWidth=e(t.width,t.$refs.leFrameBoxFour,"width"),t.getHeight=e(t.height,t.$refs.leFrameBoxFour,"height"),t.getTitleWidth=e(t.titleWidth,t.$refs.leFrameBoxFour,"width",50),t.getTitleHeight=e(t.titleHeight,t.$refs.leFrameBoxFour,"height",50))}))}},mounted:function(){var t,r,n,i=this;this.initSize(),this.resizeHandler=(t=function(){i.getWidth=e(i.width,i.$refs.leFrameBoxFour,"width"),i.getHeight=e(i.height,i.$refs.leFrameBoxFour,"height"),i.getTitleWidth=e(i.titleWidth,i.$refs.leFrameBoxFour,"width",50),i.getTitleHeight=e(i.titleHeight,i.$refs.leFrameBoxFour,"height",50)},r=null,n=0,function(){for(var e=this,i=arguments.length,o=new Array(i),c=0;c<i;c++)o[c]=arguments[c];var a=Date.now();a-n>1e3?(t.apply(this,o),n=a):(clearTimeout(r),r=setTimeout((function(){t.apply(e,o),n=a}),1e3))}),window.addEventListener("resize",this.resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.resizeHandler)}},t,0,0,0,"67042f2c");const o=i.exports;o.install=function(t){t.component(o.name,o)};const c=o})(),n.default})()));