weiyun-ui
Version:
UI library For Vue
2 lines • 6.65 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("wy-empty",[],e):"object"==typeof exports?exports["wy-empty"]=e():t["wy-empty"]=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=590)}({2: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)},24:function(t,e,n){var r=n(6);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")}},27:function(t,e,n){"use strict";function r(t,e,n,r,o,i,u,f){var c,s="function"==typeof t?t.options:t;if(e&&(s.render=e,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),u?(c=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(u)},s._ssrRegister=c):o&&(c=f?function(){o.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(s.functional){s._injectStyles=c;var a=s.render;s.render=function(t,e){return c.call(e),a(t,e)}}else{var p=s.beforeCreate;s.beforeCreate=p?[].concat(p,c):[c]}return{exports:t,options:s}}n.d(e,"a",(function(){return r}))},31:function(t,e,n){var r=n(7).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(4)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},33:function(t,e,n){var r=n(6),o=n(2).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},386:function(t,e,n){},4:function(t,e,n){t.exports=!n(8)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},41:function(t,e,n){t.exports=!n(4)&&!n(8)((function(){return 7!=Object.defineProperty(n(33)("div"),"a",{get:function(){return 7}}).a}))},455:function(t,e,n){"use strict";n(386)},5:function(t,e,n){var r=n(6);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},590:function(t,e,n){"use strict";n.r(e);n(31);var r=function(){var t=this._self._c;return t("div",{staticClass:"wy-empty"},[t("div",{staticClass:"wy-empty__img"},[this.imgSrc?t("img",{attrs:{src:this.imgSrc}}):t("svg",{attrs:{width:"180",height:"135",viewBox:"0 0 180 135",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M140.535 24.5586H47.322V101.548H140.535V24.5586Z",fill:"#D6DAE1"}}),t("path",{attrs:{d:"M64.6525 25.7891L52.8576 77.1075C52.2559 79.7792 47.6705 91.5498 45.5042 93.4034L120.785 110.409C120.785 110.409 125.394 108.194 128.74 93.3791L140.427 42.6866L64.6525 25.7891Z",fill:"#EFF2F4"}}),t("path",{attrs:{d:"M77 33.2008C75.7098 33.2007 74.4357 32.9145 73.2695 32.3628C72.1032 31.8112 71.0738 31.0078 70.2553 30.0105C69.4368 29.0132 68.8496 27.8468 68.5361 26.5953C68.2225 25.3438 68.1903 24.0384 68.4419 22.773C68.7785 21.0803 69.6095 19.5256 70.8298 18.3053C72.0502 17.085 73.605 16.2541 75.2976 15.9177C76.563 15.666 77.8685 15.698 79.12 16.0115C80.3715 16.3249 81.538 16.912 82.5353 17.7305C83.5326 18.549 84.336 19.5784 84.8877 20.7447C85.4393 21.911 85.7255 23.1851 85.7255 24.4753V24.8245M108.714 33.2008C107.424 33.2007 106.149 32.9145 104.983 32.3628C103.817 31.8112 102.788 31.0078 101.969 30.0105C101.151 29.0132 100.563 27.8468 100.25 26.5953C99.9362 25.3438 99.9041 24.0384 100.156 22.773C100.492 21.0803 101.323 19.5256 102.544 18.3053C103.764 17.085 105.319 16.2541 107.011 15.9177C108.277 15.666 109.582 15.698 110.834 16.0115C112.085 16.3249 113.252 16.912 114.249 17.7305C115.246 18.549 116.05 19.5784 116.601 20.7447C117.153 21.911 117.439 23.1851 117.439 24.4753V24.8245",stroke:"#231815","stroke-width":"1.7568","stroke-miterlimit":"10"}}),t("path",{attrs:{d:"M84.1005 52.587L72.7546 50.0508L70.5388 59.9638L81.8847 62.5L84.1005 52.587ZM103.575 56.9344L92.2284 54.3982L90.0126 64.3117L101.359 66.8479L103.575 56.9344Z",fill:"white"}}),t("path",{attrs:{d:"M122.49 61.1612L111.143 58.625L108.927 68.5385L120.274 71.0742L122.49 61.1612Z",fill:"#20C6B1"}}),t("path",{attrs:{d:"M118.373 79.5948L107.027 77.0586L104.811 86.9721L116.157 89.5078L118.373 79.5948Z",fill:"white"}}),t("path",{attrs:{d:"M48.1637 118.35L41.7251 110.575L83.6196 74.3243L90.0587 82.1111L48.1637 118.35ZM92.4779 69.4504L96.7502 74.6137L98.7963 68.1386L98.4836 67.6328L92.4779 69.4504Z",fill:"#20C6B1"}}),t("path",{attrs:{d:"M85.0036 71.0401L99.0368 67.5742L93.7412 80.9694M77.2055 86.5539L39.1499 119.506",stroke:"#231815","stroke-width":"2.5029","stroke-miterlimit":"10"}})])]),this.emptyText?t("div",{staticClass:"my-empty__text"},[this._v(this._s(this.emptyText))]):t("div",{staticClass:"my-empty__text"},[this._t("default")],2)])};r._withStripped=!0;var o={name:"wy-empty",props:{imgSrc:{type:String,default:""},emptyText:{type:String,default:""}}},i=(n(455),n(27)),u=Object(i.a)(o,r,[],!1,null,"25e13324",null).exports;u.install=function(t){t.component(u.name,u)};e.default=u},6:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},7:function(t,e,n){var r=n(5),o=n(41),i=n(24),u=Object.defineProperty;e.f=n(4)?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}},8:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}}}).default}));
//# sourceMappingURL=index.js.map