@xysfe/actui
Version:
A fantastic mobile ui lib implement by Vue
1 lines • 13.5 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@xysfe/actui/es/assets/utils/helpers.js"),require("@xysfe/actui/es/assets/utils/assign.js"),require("@xysfe/actui/es/assets/utils/app.js")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/utils/helpers.js","@xysfe/actui/es/assets/utils/assign.js","@xysfe/actui/es/assets/utils/app.js"],e):"object"==typeof exports?exports["assets/mixins/poster-layer.js"]=e(require("@xysfe/actui/es/assets/utils/helpers.js"),require("@xysfe/actui/es/assets/utils/assign.js"),require("@xysfe/actui/es/assets/utils/app.js")):t["assets/mixins/poster-layer.js"]=e(t["@xysfe/actui/es/assets/utils/helpers.js"],t["@xysfe/actui/es/assets/utils/assign.js"],t["@xysfe/actui/es/assets/utils/app.js"])}("undefined"!=typeof self?self:this,function(t,e,n){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../es",e(e.s=888)}({0:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},1:function(t,e,n){var r=n(28)("wks"),o=n(25),i=n(0).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},11:function(t,e,n){var r=n(45),o=n(19);t.exports=function(t){return r(o(t))}},15:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},18:function(t,e){t.exports={}},19:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},2:function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},20:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},21:function(t,e){t.exports=!0},22:function(t,e,n){var r=n(28)("keys"),o=n(25);t.exports=function(t){return r[t]||(r[t]=o(t))}},23:function(t,e,n){var r=n(0),o=n(2),i=n(33),u=n(4),s=n(5),c=function(t,e,n){var f,a,p,l=t&c.F,h=t&c.G,y=t&c.S,v=t&c.P,d=t&c.B,x=t&c.W,g=h?o:o[e]||(o[e]={}),b=g.prototype,j=h?r:y?r[e]:(r[e]||{}).prototype;h&&(n=e);for(f in n)(a=!l&&j&&void 0!==j[f])&&s(g,f)||(p=a?j[f]:n[f],g[f]=h&&"function"!=typeof j[f]?n[f]:d&&a?i(p,r):x&&j[f]==p?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(p):v&&"function"==typeof p?i(Function.call,p):p,v&&((g.virtual||(g.virtual={}))[f]=p,t&c.R&&b&&!b[f]&&u(b,f,p)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},24:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},25:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},26:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},276:function(t,e,n){t.exports={default:n(277),__esModule:!0}},277:function(t,e,n){n(70),n(66),t.exports=n(278)},278:function(t,e,n){var r=n(6),o=n(95);t.exports=n(2).getIterator=function(t){var e=o(t);if("function"!=typeof e)throw TypeError(t+" is not iterable!");return r(e.call(t))}},28:function(t,e,n){var r=n(2),o=n(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(21)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},29:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},3:function(t,e,n){t.exports=!n(15)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},30:function(t,e,n){var r=n(7),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},31:function(t,e,n){var r=n(44),o=n(29);t.exports=Object.keys||function(t){return r(t,o)}},32:function(t,e,n){var r=n(9).f,o=n(5),i=n(1)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},33:function(t,e,n){var r=n(34);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},34:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},37:function(t,e,n){var r=n(19);t.exports=function(t){return Object(r(t))}},38:function(t,e,n){var r=n(7);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},4:function(t,e,n){var r=n(9),o=n(26);t.exports=n(3)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},42:function(e,n){e.exports=t},44:function(t,e,n){var r=n(5),o=n(11),i=n(52)(!1),u=n(22)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),c=0,f=[];for(n in s)n!=u&&r(s,n)&&f.push(n);for(;e.length>c;)r(s,n=e[c++])&&(~i(f,n)||f.push(n));return f}},45:function(t,e,n){var r=n(24);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},46:function(t,e,n){var r=n(20),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},47:function(t,e,n){t.exports=!n(3)&&!n(15)(function(){return 7!=Object.defineProperty(n(30)("div"),"a",{get:function(){return 7}}).a})},48:function(t,e,n){"use strict";var r=n(21),o=n(23),i=n(54),u=n(4),s=n(18),c=n(68),f=n(32),a=n(69),p=n(1)("iterator"),l=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,y,v,d,x){c(n,e,y);var g,b,j,m=function(t){if(!l&&t in w)return w[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",O="values"==v,_=!1,w=t.prototype,L=w[p]||w["@@iterator"]||v&&w[v],A=L||m(v),T=v?O?m("entries"):A:void 0,M="Array"==e?w.entries||L:L;if(M&&(j=a(M.call(new t)))!==Object.prototype&&j.next&&(f(j,S,!0),r||"function"==typeof j[p]||u(j,p,h)),O&&L&&"values"!==L.name&&(_=!0,A=function(){return L.call(this)}),r&&!x||!l&&!_&&w[p]||u(w,p,A),s[e]=A,s[S]=h,v)if(g={values:O?A:m("values"),keys:d?A:m("keys"),entries:T},x)for(b in g)b in w||i(w,b,g[b]);else o(o.P+o.F*(l||_),e,g);return g}},5:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},50:function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},52:function(t,e,n){var r=n(11),o=n(46),i=n(53);t.exports=function(t){return function(e,n,u){var s,c=r(e),f=o(c.length),a=i(u,f);if(t&&n!=n){for(;f>a;)if((s=c[a++])!=s)return!0}else for(;f>a;a++)if((t||a in c)&&c[a]===n)return t||a||0;return!t&&-1}}},53:function(t,e,n){var r=n(20),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},54:function(t,e,n){t.exports=n(4)},55:function(t,e,n){var r=n(6),o=n(62),i=n(29),u=n(22)("IE_PROTO"),s=function(){},c=function(){var t,e=n(30)("iframe"),r=i.length;for(e.style.display="none",n(50).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=r(t),n=new s,s.prototype=null,n[u]=t):n=c(),void 0===e?n:o(n,e)}},6:function(t,e,n){var r=n(7);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},62:function(t,e,n){var r=n(9),o=n(6),i=n(31);t.exports=n(3)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),s=u.length,c=0;s>c;)r.f(t,n=u[c++],e[n]);return t}},66:function(t,e,n){"use strict";var r=n(67)(!0);n(48)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},67:function(t,e,n){var r=n(20),o=n(19);t.exports=function(t){return function(e,n){var i,u,s=String(o(e)),c=r(n),f=s.length;return c<0||c>=f?t?"":void 0:(i=s.charCodeAt(c),i<55296||i>56319||c+1===f||(u=s.charCodeAt(c+1))<56320||u>57343?t?s.charAt(c):i:t?s.slice(c,c+2):u-56320+(i-55296<<10)+65536)}}},68:function(t,e,n){"use strict";var r=n(55),o=n(26),i=n(32),u={};n(4)(u,n(1)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:o(1,n)}),i(t,e+" Iterator")}},69:function(t,e,n){var r=n(5),o=n(37),i=n(22)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},7:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},70:function(t,e,n){n(71);for(var r=n(0),o=n(4),i=n(18),u=n(1)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var f=s[c],a=r[f],p=a&&a.prototype;p&&!p[u]&&o(p,u,f),i[f]=i.Array}},71:function(t,e,n){"use strict";var r=n(72),o=n(73),i=n(18),u=n(11);t.exports=n(48)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},72:function(t,e){t.exports=function(){}},73:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},78:function(t,e,n){var r=n(24),o=n(1)("toStringTag"),i="Arguments"==r(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=Object(t),o))?n:i?r(e):"Object"==(s=r(e))&&"function"==typeof e.callee?"Arguments":s}},82:function(t,n){t.exports=e},888:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(276),o=n.n(r),i=n(42),u=(n.n(i),n(82)),s=n.n(u),c=n(889);n.n(c);e.default={data:function(){return{imgData:""}},props:{title:{type:[String,Object],default:""},desc:{type:[String,Object],default:""},showDesc:{type:Boolean,default:!0},options:{type:Object,required:!0,default:function(){return{}}},showArrow:{type:[String,Boolean],default:""},shareInfo:{type:Object,default:function(){return{}}},leftbtn:{type:[Object,String],default:""},rightbtn:{type:[Object,String],default:""},ignoreAppBtn:{type:Boolean,default:!1},loading:{type:Object,default:function(){return{}}},opacity:{type:[String,Number],default:.7},themeColor:{type:String,default:"#ffe96f"},zIndex:{type:[String,Number],default:999}},computed:{_title:function(){return Object(i.isString)(this.title)?{txt:this.title||"点击右上角分享链接",color:this.themeColor}:this.title},_desc:function(){return Object(i.isString)(this.desc)?{txt:this.desc||"也可长按图片,保存分享",color:"#ffffff"}:this.desc},_options:function(){return this.options},_shareInfo:function(){for(var t=this,e=s()({},this.shareInfo),n=["succ","fail","unsupport"],r=n,i=Array.isArray(r),u=0,r=i?r:o()(r);;){var c;if(i){if(u>=r.length)break;c=r[u++]}else{if(u=r.next(),u.done)break;c=u.value}var f=c;e[f]=function(e){return function(){t.hide(),e&&e(t)}}(e[f])}return e.type||(e.type="webpage"),e.imgData=this.imgData,e.url||(e.url=location.href),e},_btn:function(){var t=this,e=void 0,n={txt:"返回",color:"#fff",bgcolor:"",handle:function(e){t.hide()}},r={txt:"分享好友",color:"#000",bgcolor:"#fff",handle:function(e){Object(c.appShare)("friend",t._shareInfo)}},o={txt:"分享朋友圈",color:"#000",bgcolor:"#fff",handle:function(e){Object(c.appShare)("timeline",t._shareInfo)}};return i.ua.isApp&&!0!==this.ignoreAppBtn?(r=s()(r,this.leftbtn||{}),o=s()(o,this.rightbtn||{}),e=[r,o]):(n=s()(n,this.rightbtn||this.leftbtn||{}),e=[n]),e},_loading:function(){var t={type:"",size:40,color:this.themeColor};return s()(t,this.loading)},_showArrow:function(){return Object(i.isString)(this.showArrow)?!(!i.ua.isWx&&!i.ua.isApp):this.showArrow}}}},889:function(t,e){t.exports=n},9:function(t,e,n){var r=n(6),o=n(47),i=n(38),u=Object.defineProperty;e.f=n(3)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},95:function(t,e,n){var r=n(78),o=n(1)("iterator"),i=n(18);t.exports=n(2).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}}})});