@persagy2/meri-design
Version:
fork from meri-design and extend it.
7 lines • 2.74 kB
JavaScript
/*!
* @@persagy2/meri-design v1.4.9-extend.2
* (c) 2019-2020 xiongshuang
* Released under the MIT License.
* 2022-12-07 10:32:51
*/
var t,e;t=this,e=function(){return function(){"use strict";var t={d:function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{default:function(){return o}});var n=function(t,e,n,r,o,s,i,a){var p,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),s&&(c._scopeId="data-v-"+s),i?(p=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(i)},c._ssrRegister=p):o&&(p=a?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),p)if(c.functional){c._injectStyles=p;var u=c.render;c.render=function(t,e){return p.call(e),u(t,e)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,p):[p]}return{exports:t,options:c}}({name:"EmptyStatus",mixins:[{computed:{persagyImgServer:function(){return"string"==typeof this.meriDesignCustomImageServer?this.meriDesignCustomImageServer:"http://47.95.122.141:8200"}}}],props:{type:{type:String,default:""},custom:{type:Boolean,default:!1}},computed:{typeArr:function(){return["404","500","administration","collect","completed","content","data","download","graph","load","login","message","network","picture","remark","search","statement","table","waiting"]}}},(function(){var t=this,e=t._self._c;return e("div",{staticClass:"p-empty"},[t.custom?t._e():t._l(t.typeArr,(function(n){return e("link",{key:n,ref:"preload",refInFor:!0,attrs:{as:"image",href:"".concat(t.persagyImgServer,"/persagy_ui_kit/empty/").concat(n,".png")}})})),t._v(" "),e("img",{staticClass:"p-empty-img",attrs:{src:t.custom?t.type:"".concat(t.persagyImgServer,"/persagy_ui_kit/empty/").concat(t.type,".png")}}),t._v(" "),e("section",{staticClass:"p-empty-text"},[t.$slots.title?t._t("title"):t._e(),t._v(" "),t.$slots.text?t._t("text"):t._e(),t._v(" "),t.$slots.button?t._t("button"):t._e()],2)],2)}),[],!1,null,null,null),r=n.exports;r.install=function(t){return t.component(r.name,r)};var o=r;return e}()},"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("EmptyStatus",[],e):"object"==typeof exports?exports.EmptyStatus=e():t.EmptyStatus=e();