vue-no-ssr.min.js 785 B

1234567
  1. /*!
  2. * vue-no-ssr v1.1.1
  3. * (c) 2018-present egoist <0x142857@gmail.com>
  4. * Released under the MIT License.
  5. */
  6. !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o():"function"==typeof define&&define.amd?define(o):e.NoSSR=o()}(this,function(){"use strict";return{name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,o){var n=o.parent,t=o.slots,r=o.props,d=t(),l=d.default;void 0===l&&(l=[]);var a=d.placeholder;return n._isMounted?l:(n.$once("hook:mounted",function(){n.$forceUpdate()}),r.placeholderTag&&(r.placeholder||a)?e(r.placeholderTag,{class:["no-ssr-placeholder"]},r.placeholder||a):l.length>0?l.map(function(){return e(!1)}):e(!1))}}});
  7. //# sourceMappingURL=vue-no-ssr.min.js.map