@zeit-ui/vue
Version:
A popular UI framework for Vue
2 lines • 3.67 kB
JavaScript
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["row"]=e():t["row"]=e()})("undefined"!==typeof self?self:this,(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="fb15")}({"0959":function(t,e,n){"use strict";var r=n("d00a"),o=n.n(r);o.a},d00a:function(t,e,n){},f6fd:function(t,e){(function(t){var e="currentScript",n=t.getElementsByTagName("script");e in t||Object.defineProperty(t,e,{get:function(){try{throw new Error}catch(r){var t,e=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in n)if(n[t].src==e||"interactive"==n[t].readyState)return n[t];return null}}})})(document)},fb15:function(t,e,n){"use strict";var r;(n.r(e),"undefined"!==typeof window)&&(n("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/))&&(n.p=r[1]));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",t._g({staticClass:"zi-row",class:t.classes,style:t.styles},t.$listeners),[t._t("default")],2)},i=[],u=function(t){return function(e){return!!Array.isArray(t)&&!!t.find((function(t){return t===e}))}},s={name:"zi-row",props:{gutter:[Number,String],justify:{type:String,default:"start",validator:u(["start","end","center","space-around","space-between"])},align:{type:String,default:"top",validator:u(["top","middle","bottom"])}},computed:{safeGutter:function(){return void 0===this.gutter||"number"===typeof this.gutter?this.gutter:Number.isNaN(+this.gutter)?(console.error("zi-row: [gutter] expected a number."),0):+this.gutter},styles:function(){var t={};return this.gutter&&(t.marginLeft="-".concat(this.gutter/2,"px"),t.marginRight=t.marginLeft),t},classes:function(){var t="";return"start"!==this.justify&&(t+=" zi-justify-".concat(this.justify)),"top"!==this.align&&(t+=" zi-align-".concat(this.align)),t}}},a=s;n("0959");function c(t,e,n,r,o,i,u,s){var a,c="function"===typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),u?(a=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(u)},c._ssrRegister=a):o&&(a=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),a)if(c.functional){c._injectStyles=a;var f=c.render;c.render=function(t,e){return a.call(e),f(t,e)}}else{var l=c.beforeCreate;c.beforeCreate=l?[].concat(l,a):[a]}return{exports:t,options:c}}var f=c(a,o,i,!1,null,null,null),l=f.exports;l.install=function(t){t.component(l.name,l)};var d=l;e["default"]=d}})["default"]}));
//# sourceMappingURL=row.umd.min.js.map