UNPKG

6.41 kBJavaScriptView Raw
1module.exports=function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=299)}({0:function(t,e){t.exports=function(t,e,r,n,o,a){var s,i=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(s=t,i=t.default);var p="function"==typeof i?i.options:i;e&&(p.render=e.render,p.staticRenderFns=e.staticRenderFns,p._compiled=!0),r&&(p.functional=!0),o&&(p._scopeId=o);var c;if(a?(c=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__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},p._ssrRegister=c):n&&(c=n),c){var u=p.functional,f=u?p.render:p.beforeCreate;u?(p._injectStyles=c,p.render=function(t,e){return c.call(e),f(t,e)}):p.beforeCreate=f?[].concat(f,c):[c]}return{esModule:s,exports:i,options:p}}},102:function(t,e,r){"use strict";var n=r(5),o=r(4);e.a={name:"XNav",componentName:"XNav",components:{Flexbox:n.Flexbox,FlexboxItem:n.FlexboxItem,Arrow:o.a},props:{to:{},type:{type:String,default:"default"},isBack:{type:Boolean,default:!0},onBack:{type:Function,default:function(t,e){e&&t.$router?t.$router.push(e):history.back()}},backText:{type:String,default:""},arrow:{type:Object,default:function(){return{size:"0.24rem",color:"#666",primaryColor:"#fff"}}},titleCenter:{type:Boolean}}}},13:function(t,e,r){"use strict";var n=r(6),o=r(14),a=r(0),s=a(n.a,o.a,!1,null,null,null);e.a=s.exports},14:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement;return(t._self._c||e)(t.tag,{tag:"component",class:t.classes},[t._t("default")],2)},o=[],a={render:n,staticRenderFns:o};e.a=a},15:function(t,e,r){"use strict";var n=r(7),o=r(16),a=r(0),s=a(n.a,o.a,!1,null,null,null);e.a=s.exports},16:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement;return(t._self._c||e)(t.tag,{tag:"component",staticClass:"vx-flexbox--item",style:t.styles},[t._t("default")],2)},o=[],a={render:n,staticRenderFns:o};e.a=a},198:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(102),o=r(199),a=r(0),s=a(n.a,o.a,!0,null,null,null);e.default=s.exports},199:function(t,e,r){"use strict";var n=function(t,e){var r=e._c;return r("div",e._g(e._b({class:["vx-nav","vx-nav--"+e.props.type,{"is-back-text":!!e.props.backText},{"is-title-center":e.props.titleCenter},e.data.staticClass],style:e.data.staticStyle&&e.data.style?[e.data.staticStyle,e.data.style]:e.data.staticStyle||e.data.style},"div",e.data.attrs,!1),e.listeners),[r("flexbox",{staticClass:"vx-nav--inner",attrs:{align:"center",gutter:0}},[e.props.isBack?r("button",{class:["vx-nav--button","vx-nav--back"],on:{click:function(t){e.props.onBack(e.parent,e.props.to)}}},[r("arrow",{attrs:{direction:"left",color:"primary"===e.props.type?e.props.arrow.primaryColor:e.props.arrow.color,size:e.props.arrow.size}}),e.backText?r("span",[e._v(e._s(e.props.backText))]):e._e()],1):e._e(),e.$slots.append&&e.props.titleCenter?e._l(Object.keys(e.$slots.append).length-(e.props.isBack?1:0),function(t,e){return r("div",{key:e,staticClass:"vx-nav--button"})}):e._e(),e._t("prepend"),r("flexbox-item",{class:["vx-nav--title"]},[e.$slots.title?e._t("title"):[e._v(e._s(e.data.attrs.title))]],2),e.props.titleCenter?[e.props.isBack&&!e.$slots.append?r("div",{staticClass:"vx-nav--button"}):e._t("append")]:e._t("append")],2),e._t("default")],2)},o=[],a={render:n,staticRenderFns:o};e.a=a},299:function(t,e,r){t.exports=r(198)},3:function(t,e,r){"use strict";e.a={name:"Arrow",componentName:"Arrow",functional:!0,props:{direction:{type:String,default:"right"},size:{type:String,default:"0.18rem"},color:{type:String,default:"rgba(153, 153, 153, 0.6)"},tag:{type:String,default:"i"}}}},4:function(t,e,r){"use strict";var n=r(3),o=r(9),a=r(0),s=a(n.a,o.a,!0,null,null,null);e.a=s.exports},5:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(13),o=r(15);r.d(e,"Flexbox",function(){return n.a}),r.d(e,"FlexboxItem",function(){return o.a})},6:function(t,e,r){"use strict";var n={direction:{column:"flexbox--column"},wrap:{wrap:"flexbox--wrap"},justify:{center:"flexbox--content-center"},align:{center:"flexbox--align-center"}};e.a={name:"Flexbox",componentName:"Flexbox",props:{direction:{type:String,default:"normal"},wrap:{type:String,default:"normal"},justify:{type:String,default:"normal"},align:{type:String,default:"normal"},gutter:{type:Number,default:8},tag:{type:String,default:"div"}},computed:{classes:function(){var t=["vx-flexbox"];for(var e in n)this[e]&&n[e][this[e]]&&t.push("vx-"+n[e][this[e]]);return t}}}},7:function(t,e,r){"use strict";e.a={name:"FlexboxItem",componentName:"FlexboxItem",props:{flex:{type:[String,Number],default:1},order:{type:Number},tag:{type:String,default:"div"}},computed:{styles:function(){var t="number"==typeof this.$parent.gutter?this.$parent.gutter+"px":this.$parent.gutter;return"\n margin-left: "+t+";\n margin-right: "+t+";\n -ms-flex: "+this.flex+";\n -webkit-box-flex: "+this.flex+";\n -moz-box-flex: "+this.flex+";\n -webkit-flex: "+this.flex+";\n -moz-flex: "+this.flex+";\n flex: "+this.flex+";\n min-width: 0;\n order:"+this.order+"\n "}}}},9:function(t,e,r){"use strict";var n=function(t,e){return(0,e._c)(e.props.tag,e._g(e._b({tag:"component",class:["vx-arrow",e.data.staticClass,e.data.class],style:[Object.assign({display:"inline-block",borderWidth:"1px",borderStyle:"solid",verticalAlign:"middle",boxSizing:"border-box",transform:"rotate(45deg)",height:e.props.size,width:e.props.size,borderColor:{up:e.props.color+" transparent transparent "+e.props.color,right:e.props.color+" "+e.props.color+" transparent transparent",down:"transparent "+e.props.color+" "+e.props.color+" transparent",left:"transparent transparent "+e.props.color+" "+e.props.color}[e.props.direction]},e.data.style)]},"component",e.data.attrs,!1),e.listeners))},o=[],a={render:n,staticRenderFns:o};e.a=a}});
\No newline at end of file