UNPKG

@xysfe/actui

Version:

A fantastic mobile ui lib implement by Vue

1 lines • 14 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/assets/mixins/visible.js")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/utils/create/index.js","@xysfe/actui/es/assets/mixins/visible.js"],e):"object"==typeof exports?exports.Loading=e(require("@xysfe/actui/es/assets/utils/create/index.js"),require("@xysfe/actui/es/assets/mixins/visible.js")):t.Loading=e(t["@xysfe/actui/es/assets/utils/create/index.js"],t["@xysfe/actui/es/assets/mixins/visible.js"])}("undefined"!=typeof self?self:this,function(t,e){return function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../es",e(e.s=845)}({26:function(e,i){e.exports=t},40:function(t,i){t.exports=e},7:function(t,e,i){"use strict";function n(t,e,i,n,o,r,s,a){t=t||{};var c=typeof t.default;"object"!==c&&"function"!==c||(t=t.default);var l="function"==typeof t?t.options:t;e&&(l.render=e,l.staticRenderFns=i,l._compiled=!0),n&&(l.functional=!0),r&&(l._scopeId=r);var u;if(s?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},l._ssrRegister=u):o&&(u=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),u)if(l.functional){l._injectStyles=u;var d=l.render;l.render=function(t,e){return u.call(e),d(t,e)}}else{var f=l.beforeCreate;l.beforeCreate=f?[].concat(f,u):[u]}return{exports:t,options:l}}e.a=n},802:function(t,e,i){"use strict";var n=i(847),o={};n.keys().forEach(function(t){var e=n(t);e=e.default||e;var i=e.name;i&&(o[i.toLowerCase()]=e)}),e.a={name:"ActLoading",functional:!0,props:{type:{type:String,default:"default"}},render:function(t,e){var i=e.props.type;return!i&&(i="default"),t(o[i.toLowerCase()],e.data,e.children)}}},803:function(t,e,i){"use strict";var n=i(40),o=i.n(n);e.a={name:"Cir1",mixins:[o.a],props:{size:{type:Number,default:40},thick:{type:Number,default:.4},color:{type:String,default:"#8c7fee"},bgcolor:{type:String,default:""},center:{type:Boolean,default:!0}},computed:{localThick:function(){return this.thick/2},loadingWidth:function(){return Math.floor(this.size*(1-2*this.localThick))},loadingHeight:function(){return this.loadingWidth},borderWidth:function(){return Math.floor(this.size*this.localThick)<=0?1:Math.floor(this.size*this.localThick)},styleObj:function(){return{width:this.loadingWidth+"px",height:this.loadingHeight+"px",borderWidth:this.borderWidth+"px",borderStyle:"solid",borderColor:"transparent currentColor transparent currentColor"}}}}},804:function(t,e,i){"use strict";var n=i(40),o=i.n(n);e.a={name:"Cir2",mixins:[o.a],props:{size:{type:Number,default:40},thick:{type:Number,default:.4},color:{type:String,default:"#8c7fee"},bgcolor:{type:String,default:""},center:{type:Boolean,default:!0}},computed:{localThick:function(){return this.thick/2},loadingWidth:function(){return Math.floor(this.size*(1-2*this.localThick))},loadingHeight:function(){return this.loadingWidth},borderWidth:function(){return Math.floor(this.size*this.localThick)<=0?1:Math.floor(this.size*this.localThick)},styleObj:function(){return{width:this.loadingWidth+"px",height:this.loadingHeight+"px",borderWidth:this.borderWidth+"px",borderStyle:"solid",borderColor:"transparent currentColor currentColor currentColor"}}}}},805:function(t,e,i){"use strict";var n=i(40),o=i.n(n);e.a={name:"Cir3",mixins:[o.a],props:{size:{type:Number,default:40},thick:{type:Number,default:.4},color:{type:String,default:"#8c7fee"},bgcolor:{type:String,default:""},center:{type:Boolean,default:!0}},computed:{localThick:function(){return this.thick/2},loadingWidth:function(){return Math.floor(this.size*(1-2*this.localThick))},loadingHeight:function(){return this.loadingWidth},borderWidth:function(){return Math.floor(this.size*this.localThick)<=0?1:Math.floor(this.size*this.localThick)},styleObj:function(){return{width:this.loadingWidth+"px",height:this.loadingHeight+"px",borderWidth:this.borderWidth+"px",borderStyle:"solid",borderColor:"currentColor transparent transparent transparent"}},maskStyle:function(){return{top:"-"+this.borderWidth+"px",right:"-"+this.borderWidth+"px",bottom:"-"+this.borderWidth+"px",left:"-"+this.borderWidth+"px",border:this.borderWidth+"px solid currentcolor"}}}}},806:function(t,e,i){"use strict";var n=i(40),o=i.n(n);e.a={name:"Cir4",mixins:[o.a],props:{size:{type:Number,default:40},color:{type:String,default:"#8c7fee"},bgcolor:{type:String,default:""},center:{type:Boolean,default:!0}},computed:{loadingWidth:function(){return Math.floor(.8*this.size)},loadingHeight:function(){return this.loadingWidth},styleObj:function(){return{fontSize:this.size+"px",width:this.loadingWidth+"px",height:this.loadingHeight+"px"}}}}},807:function(t,e,i){"use strict";var n=i(40),o=i.n(n);e.a={name:"Cir5",mixins:[o.a],props:{size:{type:Number,default:40},color:{type:String,default:"#8c7fee"},bgcolor:{type:String,default:""},center:{type:Boolean,default:!0}},computed:{loadingWidth:function(){return Math.floor(.8*this.size)},loadingHeight:function(){return this.loadingWidth},styleObj:function(){return{fontSize:this.size+"px",width:this.loadingWidth+"px",height:this.loadingHeight+"px"}}}}},808:function(t,e,i){"use strict";var n=i(40),o=i.n(n);e.a={name:"Default",mixins:[o.a],props:{size:{type:Number,default:40},color:{type:String,default:"#8c7fee"},bgcolor:{type:String,default:""},center:{type:Boolean,default:!0}}}},809:function(t,e,i){"use strict";var n=i(40),o=i.n(n);e.a={name:"Line",mixins:[o.a],props:{size:{type:Number,default:40},color:{type:String,default:"#8c7fee"},bgcolor:{type:String,default:""},center:{type:Boolean,default:!0}},computed:{loadingWidth:function(){return Math.floor(.2*this.size)},loadingHeight:function(){return Math.floor(.4*this.size)},styleObj:function(){return{fontSize:this.size+"px",width:this.loadingWidth+"px",height:this.loadingHeight+"px"}}}}},845:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(26),o=i.n(n),r=i(846);r.a.install=function(t){t.component(r.a.name,r.a),t.prototype.$createLoading=o()(r.a,t)},e.default=r.a},846:function(t,e,i){"use strict";var n=i(802),o=i(7),r=Object(o.a)(n.a,void 0,void 0,!1,null,null,null);r.options.__file="src\\components\\Loading\\src\\index.vue",e.a=r.exports},847:function(t,e,i){function n(t){return i(o(t))}function o(t){var e=r[t];if(!(e+1))throw new Error("Cannot find module '"+t+"'.");return e}var r={"./cir1-loading.vue":848,"./cir2-loading.vue":851,"./cir3-loading.vue":854,"./cir4-loading.vue":857,"./cir5-loading.vue":860,"./default-loading.vue":863,"./line-loading.vue":866};n.keys=function(){return Object.keys(r)},n.resolve=o,t.exports=n,n.id=847},848:function(t,e,i){"use strict";function n(t){a||i(849)}Object.defineProperty(e,"__esModule",{value:!0});var o=i(803),r=i(850),s=i(7),a=!1,c=n,l=Object(s.a)(o.a,r.a,r.b,!1,c,"data-v-027695fc",null);l.options.__file="src\\components\\Loading\\src\\cir1-loading.vue",e.default=l.exports},849:function(t,e){},850:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-loading",style:{backgroundColor:t.bgcolor}},[i("div",{staticClass:"act-loading-wrap",style:{width:t.size+"px",height:t.size+"px",color:t.color,margin:!0===t.center?"0 auto":"unset"}},[i("div",{ref:"loading",staticClass:"loading-cont-cir1",style:t.styleObj})])])},o=[];n._withStripped=!0},851:function(t,e,i){"use strict";function n(t){a||i(852)}Object.defineProperty(e,"__esModule",{value:!0});var o=i(804),r=i(853),s=i(7),a=!1,c=n,l=Object(s.a)(o.a,r.a,r.b,!1,c,"data-v-1e0cc706",null);l.options.__file="src\\components\\Loading\\src\\cir2-loading.vue",e.default=l.exports},852:function(t,e){},853:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-loading",style:{backgroundColor:t.bgcolor}},[i("div",{staticClass:"act-loading-wrap",style:{width:t.size+"px",height:t.size+"px",color:t.color,margin:!0===t.center?"0 auto":"unset"}},[i("div",{ref:"loading",staticClass:"loading-cont-cir2",style:t.styleObj})])])},o=[];n._withStripped=!0},854:function(t,e,i){"use strict";function n(t){a||i(855)}Object.defineProperty(e,"__esModule",{value:!0});var o=i(805),r=i(856),s=i(7),a=!1,c=n,l=Object(s.a)(o.a,r.a,r.b,!1,c,"data-v-4106ba04",null);l.options.__file="src\\components\\Loading\\src\\cir3-loading.vue",e.default=l.exports},855:function(t,e){},856:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-loading",style:{backgroundColor:t.bgcolor}},[i("div",{staticClass:"act-loading-wrap",style:{width:t.size+"px",height:t.size+"px",color:t.color,margin:!0===t.center?"0 auto":"unset"}},[i("div",{ref:"loading",staticClass:"loading-cont-cir3",style:t.styleObj},[i("div",{staticClass:"cir3-mask",style:t.maskStyle})])])])},o=[];n._withStripped=!0},857:function(t,e,i){"use strict";function n(t){a||i(858)}Object.defineProperty(e,"__esModule",{value:!0});var o=i(806),r=i(859),s=i(7),a=!1,c=n,l=Object(s.a)(o.a,r.a,r.b,!1,c,"data-v-6400ad02",null);l.options.__file="src\\components\\Loading\\src\\cir4-loading.vue",e.default=l.exports},858:function(t,e){},859:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-loading",style:{backgroundColor:t.bgcolor}},[i("div",{staticClass:"act-loading-wrap",style:{width:t.size+"px",height:t.size+"px",color:t.color,margin:!0===t.center?"0 auto":"unset"}},[i("div",{staticClass:"loading-cont-cir4",style:t.styleObj})])])},o=[];n._withStripped=!0},860:function(t,e,i){"use strict";function n(t){a||i(861)}Object.defineProperty(e,"__esModule",{value:!0});var o=i(807),r=i(862),s=i(7),a=!1,c=n,l=Object(s.a)(o.a,r.a,r.b,!1,c,"data-v-86faa000",null);l.options.__file="src\\components\\Loading\\src\\cir5-loading.vue",e.default=l.exports},861:function(t,e){},862:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-loading",style:{backgroundColor:t.bgcolor}},[i("div",{staticClass:"act-loading-wrap",style:{width:t.size+"px",height:t.size+"px",color:t.color,margin:!0===t.center?"0 auto":"unset"}},[i("div",{staticClass:"loading-cont-cir5",style:t.styleObj})])])},o=[];n._withStripped=!0},863:function(t,e,i){"use strict";function n(t){a||i(864)}Object.defineProperty(e,"__esModule",{value:!0});var o=i(808),r=i(865),s=i(7),a=!1,c=n,l=Object(s.a)(o.a,r.a,r.b,!1,c,"data-v-073ac538",null);l.options.__file="src\\components\\Loading\\src\\default-loading.vue",e.default=l.exports},864:function(t,e){},865:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-loading",style:{backgroundColor:t.bgcolor}},[i("div",{staticClass:"act-loading-wrap",style:{width:t.size+"px",height:t.size+"px",color:t.color,margin:!0===t.center?"0 auto":"unset"}},[i("svg",{attrs:{viewBox:"0 0 80 80"}},[i("path",{staticClass:"act-xysloading-path",attrs:{d:"M15 37 A25 25 0 0 1 65 40 L39 40 L39 65 L34 66",fill:"none",stroke:t.color,"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"8"}}),t._v(" "),i("path",{staticClass:"act-xysloading-path-oval-middle",attrs:{d:"M34 66 Q10 66 6 38",fill:"none",stroke:t.color,"stroke-linecap":"butt","stroke-width":"7"}}),t._v(" "),i("circle",{staticClass:"act-xysloading-circle",attrs:{cx:"40",cy:"40",r:"36",fill:"none",stroke:t.color,transform:"rotate(180,40,40)","stroke-linecap":"butt"}}),t._v(" "),i("path",{staticClass:"act-xysloading-path-oval-end",attrs:{d:"M40 77 Q15 80 15 37",fill:"none",stroke:t.color,"stroke-linecap":"butt","stroke-width":"7"}})])])])},o=[];n._withStripped=!0},866:function(t,e,i){"use strict";function n(t){a||i(867)}Object.defineProperty(e,"__esModule",{value:!0});var o=i(809),r=i(868),s=i(7),a=!1,c=n,l=Object(s.a)(o.a,r.a,r.b,!1,c,"data-v-4884e2ea",null);l.options.__file="src\\components\\Loading\\src\\line-loading.vue",e.default=l.exports},867:function(t,e){},868:function(t,e,i){"use strict";i.d(e,"a",function(){return n}),i.d(e,"b",function(){return o});var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{directives:[{name:"show",rawName:"v-show",value:t.isVisible,expression:"isVisible"}],staticClass:"act-loading",style:{backgroundColor:t.bgcolor}},[i("div",{staticClass:"act-loading-wrap",style:{width:t.size+"px",height:t.size+"px",color:t.color,margin:!0===t.center?"0 auto":"unset"}},[i("div",{staticClass:"loading-cont-line",style:t.styleObj})])])},o=[];n._withStripped=!0}})});