lemon-ui-vue2
Version:
1 lines • 17.6 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("title-frame-five",[],e):"object"==typeof exports?exports["title-frame-five"]=e():t["title-frame-five"]=e()}(self,(()=>(()=>{var t={489:(t,e,r)=>{var n=r(7967).f,o=Function.prototype,i=/^\s*function ([^ (]*)/,c="name";c in o||r(1763)&&n(o,c,{configurable:!0,get:function(){try{return(""+this).match(i)[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),o=r(3344);t.exports=function(t){return function(e,r){var i,c,a=String(o(e)),l=n(r),s=a.length;return l<0||l>=s?t?"":void 0:(i=a.charCodeAt(l))<55296||i>56319||l+1===s||(c=a.charCodeAt(l+1))<56320||c>57343?t?a.charAt(l):i:t?a.slice(l,l+2):c-56320+(i-55296<<10)+65536}}},1485:(t,e,r)=>{var n=r(7087),o=Math.min;t.exports=function(t){return t>0?o(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),o=r(6094),i=r(3341),c=r(8859),a=r(5052),l="prototype",s=function(t,e,r){var u,g,h,d,f=t&s.F,p=t&s.G,v=t&s.S,x=t&s.P,y=t&s.B,W=p?n:v?n[e]||(n[e]={}):(n[e]||{})[l],H=p?o:o[e]||(o[e]={}),m=H[l]||(H[l]={});for(u in p&&(r=e),r)h=((g=!f&&W&&void 0!==W[u])?W:r)[u],d=y&&g?a(h,n):x&&"function"==typeof h?a(Function.call,h):h,W&&c(W,u,h,t&s.U),H[u]!=h&&i(H,u,d),x&&m[u]!=h&&(m[u]=h)};n.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,t.exports=s},2535:(t,e,r)=>{"use strict";var n=r(4848),o=RegExp.prototype.exec;t.exports=function(t,e){var r=t.exec;if("function"==typeof r){var i=r.call(t,e);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==n(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.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,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;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),o=r(1996);t.exports=r(1763)?function(t,e,r){return n.f(t,e,o(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),o=r(1485),i=r(8828),c=r(2535);r(9228)("match",1,(function(t,e,r,a){return[function(r){var n=t(this),o=null==r?void 0:r[e];return void 0!==o?o.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),s=String(this);if(!l.global)return c(l,s);var u=l.unicode;l.lastIndex=0;for(var g,h=[],d=0;null!==(g=c(l,s));){var f=String(g[0]);h[d]=f,""===f&&(l.lastIndex=i(s,o(l.lastIndex),u)),d++}return 0===d?null:h}]}))},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),o=r(7526),i="__core-js_shared__",c=o[i]||(o[i]={});(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),o=r(7574)("toStringTag"),i="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),o))?r:i?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,o){return t.call(e,r,n,o)}}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),o=r(7526).document,i=n(o)&&n(o.createElement);t.exports=function(t){return i?o.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"),o=r(4415),i=r(7526).Symbol,c="function"==typeof i;(t.exports=function(t){return n[t]||(n[t]=c&&i[t]||(c?i:o)("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),o=r(2956),i=r(3048),c=Object.defineProperty;e.f=r(1763)?Object.defineProperty:function(t,e,r){if(n(t),e=i(e,!0),n(r),o)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),o=r(8270),i=r(1485),c=r(7087),a=r(8828),l=r(2535),s=Math.max,u=Math.min,g=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g;r(9228)("replace",2,(function(t,e,r,f){return[function(n,o){var i=t(this),c=null==n?void 0:n[e];return void 0!==c?c.call(n,i,o):r.call(String(i),n,o)},function(t,e){var o=f(r,t,this,e);if(o.done)return o.value;var g=n(t),h=String(this),d="function"==typeof e;d||(e=String(e));var v=g.global;if(v){var x=g.unicode;g.lastIndex=0}for(var y=[];;){var W=l(g,h);if(null===W)break;if(y.push(W),!v)break;""===String(W[0])&&(g.lastIndex=a(h,i(g.lastIndex),x))}for(var H,m="",b=0,w=0;w<y.length;w++){W=y[w];for(var T=String(W[0]),S=s(u(c(W.index),h.length),0),C=[],E=1;E<W.length;E++)C.push(void 0===(H=W[E])?H:String(H));var F=W.groups;if(d){var k=[T].concat(C,S,h);void 0!==F&&k.push(F);var j=String(e.apply(void 0,k))}else j=p(T,h,S,C,F,e);S>=b&&(m+=h.slice(b,S)+j,b=S+T.length)}return m+h.slice(b)}];function p(t,e,n,i,c,a){var l=n+t.length,s=i.length,u=d;return void 0!==c&&(c=o(c),u=h),r.call(a,u,(function(r,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(l);case"<":a=c[o.slice(1,-1)];break;default:var u=+o;if(0===u)return r;if(u>s){var h=g(u/10);return 0===h?r:h<=s?void 0===i[h-1]?o.charAt(1):i[h-1]+o.charAt(1):r}a=i[u-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),o=r(3341),i=r(7917),c=r(4415)("src"),a=r(9461),l="toString",s=(""+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&&(i(r,"name")||o(r,"name",e)),t[e]!==r&&(l&&(i(r,c)||o(r,c,t[e]?""+t[e]:s.join(String(e)))),t===n?t[e]=r:a?t[e]?t[e]=r:o(t,e,r):(delete t[e],o(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),o=r(3341),i=r(9448),c=r(3344),a=r(7574),l=r(9600),s=a("species"),u=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),g=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 h=a(t),d=!i((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),f=d?!i((function(){var e=!1,r=/a/;return r.exec=function(){return e=!0,null},"split"===t&&(r.constructor={},r.constructor[s]=function(){return r}),r[h](""),!e})):void 0;if(!d||!f||"replace"===t&&!u||"split"===t&&!g){var p=/./[h],v=r(c,h,""[t],(function(t,e,r,n,o){return e.exec===l?d&&!o?{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),o(RegExp.prototype,h,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,o,i=r(1158),c=RegExp.prototype.exec,a=String.prototype.replace,l=c,s="lastIndex",u=(n=/a/,o=/b*/g,c.call(n,"a"),c.call(o,"a"),0!==n[s]||0!==o[s]),g=void 0!==/()??/.exec("")[1];(u||g)&&(l=function(t){var e,r,n,o,l=this;return g&&(r=new RegExp("^"+l.source+"$(?!\\s)",i.call(l))),u&&(e=l[s]),n=c.call(l,t),u&&n&&(l[s]=l.global?n.index+n[0].length:e),g&&n&&n.length>1&&a.call(n[0],r,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)})),n}),t.exports=l}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.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:"leTitleBoxFive",staticClass:"l-title-border-five",style:" width:".concat(t.getWidth,"px; height:").concat(t.getHeight,"px;")},[e("svg",{staticClass:"l-border-svg-cantainer",attrs:{width:t.getWidth,height:t.getHeight}},[e("defs",[e("linearGradient",{attrs:{id:"Gradient1"}},[e("stop",{attrs:{offset:"0%","stop-color":t.borderColor[0]}}),e("stop",{attrs:{offset:"50%","stop-color":t.borderColor[1]}}),e("stop",{attrs:{offset:"100%","stop-color":t.borderColor[0]}})],1),e("linearGradient",{attrs:{id:"Gradient2"}},[e("stop",{staticClass:"stop1",attrs:{offset:"0%","stop-color":t.borderColor[0]}}),e("stop",{staticClass:"stop2",attrs:{offset:"50%","stop-color":t.borderColor[1]}}),e("stop",{staticClass:"stop2",attrs:{offset:"100%","stop-color":t.borderColor[0],"stop-opacity":"0.8"}})],1),e("linearGradient",{attrs:{id:"Gradient3",x1:"0%",y1:"0%",x2:"0",y2:"100%"}},[e("stop",{attrs:{offset:"0%","stop-color":t.borderColor[0],"stop-opacity":"0.5"}}),e("stop",{attrs:{offset:"50%","stop-color":t.borderColor[0]}}),e("stop",{attrs:{offset:"100%","stop-color":t.borderColor[1]}})],1)],1),e("path",{attrs:{fill:"none",stroke:"url(#Gradient1)",d:"M 0 15 L 100 15 C 120,15 120,".concat(t.getHeight/2+10," 150,").concat(t.getHeight/2+10," L ").concat(t.getWidth/2-t.getTitleWidth/2-40,",").concat(t.getHeight/2+10," C ").concat(t.getWidth/2-t.getTitleWidth/2-20,",").concat(t.getHeight/2+10," ").concat(t.getWidth/2-t.getTitleWidth/2-10,",").concat(t.getHeight-5," ").concat(t.getWidth/2-t.getTitleWidth/2-12,",").concat(t.getHeight-10),"stroke-width":"2","stroke-linecap":"round"}}),e("path",{attrs:{fill:"none",stroke:"url(#Gradient2)",d:"M ".concat(t.getWidth/2-t.getTitleWidth/2-150,",").concat(t.getHeight/2," L ").concat(t.getWidth/2-t.getTitleWidth/2,",").concat(t.getHeight/2," C ").concat(t.getWidth/2-t.getTitleWidth/2+30,",").concat(t.getHeight/2," ").concat(t.getWidth/2-t.getTitleWidth/2+30,",").concat(t.getHeight-5," ").concat(t.getWidth/2-t.getTitleWidth/2+50,",").concat(t.getHeight-5," L").concat(t.getWidth/2-t.getTitleWidth/2+80,",").concat(t.getHeight-5),"stroke-width":"5","stroke-linecap":"round"}}),e("path",{attrs:{fill:"none",stroke:"url(#Gradient1)",d:"M ".concat(t.getWidth," 15 L ").concat(t.getWidth-100," 15 C ").concat(t.getWidth-120,",15 ").concat(t.getWidth-120,",").concat(t.getHeight/2+10," ").concat(t.getWidth-150,",").concat(t.getHeight/2+10," L ").concat(t.getWidth/2+t.getTitleWidth/2+40,",").concat(t.getHeight/2+10," C ").concat(t.getWidth/2+t.getTitleWidth/2+20,",").concat(t.getHeight/2+10," ").concat(t.getWidth/2+t.getTitleWidth/2+10,",").concat(t.getHeight-10," ").concat(t.getWidth/2+t.getTitleWidth/2+10,",").concat(t.getHeight-10),"stroke-width":"2","stroke-linecap":"round"}}),e("path",{attrs:{fill:"none",stroke:"url(#Gradient2)",d:"M ".concat(t.getWidth/2+t.getTitleWidth/2+150,",").concat(t.getHeight/2," L ").concat(t.getWidth/2+t.getTitleWidth/2,",").concat(t.getHeight/2," C ").concat(t.getWidth/2+t.getTitleWidth/2-30,",").concat(t.getHeight/2," ").concat(t.getWidth/2+t.getTitleWidth/2-30,",").concat(t.getHeight-5," ").concat(t.getWidth/2+t.getTitleWidth/2-50,",").concat(t.getHeight-5," L").concat(t.getWidth/2+t.getTitleWidth/2-80,",").concat(t.getHeight-5),"stroke-width":"5","stroke-linecap":"round"}}),e("polygon",{attrs:{fill:"url(#Gradient3)",points:"".concat(t.getWidth/2-50,",").concat(t.getHeight-10," ").concat(t.getWidth/2+50,",").concat(t.getHeight-10," ").concat(t.getWidth/2+55,",").concat(t.getHeight," ").concat(t.getWidth/2-55,",").concat(t.getHeight)}}),e("g",[e("polygon",{attrs:{fill:t.borderColor[0],points:"145,".concat(t.getHeight/2-20," 150,").concat(t.getHeight/2-15," 145,").concat(t.getHeight/2-10," 140,").concat(t.getHeight/2-15)}}),e("polygon",{attrs:{fill:t.borderColor[1],points:"160,".concat(t.getHeight/2-20," 165,").concat(t.getHeight/2-15," 160,").concat(t.getHeight/2-10," 155,").concat(t.getHeight/2-15)}}),e("polygon",{attrs:{fill:"red",points:"175,".concat(t.getHeight/2-20," 180,").concat(t.getHeight/2-15," 175,").concat(t.getHeight/2-10," 170,").concat(t.getHeight/2-15)}})]),e("g",[e("polygon",{attrs:{fill:t.borderColor[0],points:"".concat(t.getWidth-145,",").concat(t.getHeight/2-20," ").concat(t.getWidth-150,",").concat(t.getHeight/2-15," ").concat(t.getWidth-145,",").concat(t.getHeight/2-10," ").concat(t.getWidth-140,",").concat(t.getHeight/2-15)}}),e("polygon",{attrs:{fill:t.borderColor[1],points:"".concat(t.getWidth-160,",").concat(t.getHeight/2-20," ").concat(t.getWidth-165,",").concat(t.getHeight/2-15," ").concat(t.getWidth-160,",").concat(t.getHeight/2-10," ").concat(t.getWidth-155,",").concat(t.getHeight/2-15)}}),e("polygon",{attrs:{fill:"red",points:"".concat(t.getWidth-175,",").concat(t.getHeight/2-20," ").concat(t.getWidth-180,",").concat(t.getHeight/2-15," ").concat(t.getWidth-175,",").concat(t.getHeight/2-10," ").concat(t.getWidth-170,",").concat(t.getHeight/2-15)}})])])])};t._withStripped=!0,r(8305),r(4040);var e=function(t,e,r,n){var o=t.replace(/\d/g,""),i=parseFloat(t.match(/\d+/)[0]),c=null;if("rem"===o)c=parseFloat(getComputedStyle(document.documentElement).fontSize)*i;else if("em"===o){var a=e.parentNode;c=parseFloat(getComputedStyle(a).fontSize)*i}else"vw"===o||"vh"===o?c=i/100*("vw"===o?window.innerWidth||document.documentElement.clientWidth:window.innerHeight||document.documentElement.clientHeight):"%"===o?c=(("width"===r?e.parentNode.offsetWidth:e.parentNode.offsetHeight)*(i/100)).toFixed(2):"px"!==o&&""!==o||(c=i);return c<n&&console.error("lemonui:the Width or Height can't less than ".concat(n,"px")),c};r(3292);var o=function(t,e,r,n,o,i){var c,a=t;if(e&&(a.render=e,a.staticRenderFns=[],a._compiled=!0),i&&(a._scopeId="data-v-"+i),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 s=a.beforeCreate;a.beforeCreate=s?[].concat(s,c):[c]}return{exports:t,options:a}}({name:"LETitleBox5",props:{width:{type:String,default:"100vw"},height:{type:String,default:"80px"},titleWidth:{type:String,default:"500px"},backgroundColor:{type:String,default:"transparent"},borderColor:{type:Array,default:function(){return["#F1F3FE","#0D01F5"]}}},computed:{getWidth:function(){return e(this.width,this.$refs.leTitleBox,"width",1200)},getHeight:function(){return e(this.height,this.$refs.leTitleBox,"height",80)},getTitleWidth:function(){return e(this.titleWidth,this.$refs.leTitleBox,"width",100)}},data:function(){return{getWidth:0,getHeight:0,getTitleWidth:0,resizeHandler:null}},methods:{initSize:function(){var t=this;this.$nextTick((function(){t.$refs.leTitleBox&&(t.getWidth=e(t.width,t.$refs.leTitleBoxFive,"width",1200),t.getHeight=e(t.height,t.$refs.leTitleBoxFive,"height",80),t.getTitleWidth=e(t.titleWidth,t.$refs.leTitleBoxFive,"width",100))}))}},mounted:function(){var t,r,n,o=this;this.initSize(),this.resizeHandler=(t=function(){o.getWidth=e(o.width,o.$refs.leTitleBoxFive,"width",1200),o.getHeight=e(o.height,o.$refs.leTitleBoxFive,"height",80),o.getTitleWidth=e(o.titleWidth,o.$refs.leTitleBoxFive,"width",100)},r=null,n=0,function(){for(var e=this,o=arguments.length,i=new Array(o),c=0;c<o;c++)i[c]=arguments[c];var a=Date.now();a-n>1e3?(t.apply(this,i),n=a):(clearTimeout(r),r=setTimeout((function(){t.apply(e,i),n=a}),1e3))}),window.addEventListener("resize",this.resizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.resizeHandler)}},t,0,0,0,"5a5c7e68");const i=o.exports;i.install=function(t){t.component(i.name,i)};const c=i})(),n.default})()));