UNPKG

eeeeeeuuuu-ui

Version:

uView UI,是uni-app生态优秀的UI框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水

12 lines (11 loc) 2.94 kB
require('../../../app.js'); (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uview-ui/components/u-navbar/u-navbar"],{"811d":function(t,e,n){"use strict";n.r(e);var i,a={uIcon:function(){return n.e("uview-ui/components/u-icon/u-icon").then(n.bind(null,"ece6"))}},l=function(){var t=this,e=t.$createElement,n=(t._self._c,t.__get_style([t.navbarStyle])),i=t.__get_style([t.navbarInnerStyle]),a=t.isBack&&t.backText?t.__get_style([t.backTextStyle]):null,l=t.title?t.__get_style([t.titleStyle]):null,u=t.isFixed&&!t.immersive?Number(t.navbarHeight):null;t.$mp.data=Object.assign({},{$root:{s0:n,s1:i,s2:a,s3:l,m0:u}})},u=[],r=n("9597"),o=r["a"],c=(n("8d74c"),n("f0c5")),s=Object(c["a"])(o,l,u,!1,null,"32e3a068",null,!1,a,i);e["default"]=s.exports},"8d74c":function(t,e,n){"use strict";var i=n("9507"),a=n.n(i);a.a},9507:function(t,e,n){},9597:function(t,e,n){"use strict";(function(t){let n=t.getSystemInfoSync(),i={};i=t.getMenuButtonBoundingClientRect(),e["a"]={name:"u-navbar",props:{height:{type:[String,Number],default:""},backIconColor:{type:String,default:"#606266"},backIconName:{type:String,default:"nav-back"},backIconSize:{type:[String,Number],default:"44"},backText:{type:String,default:""},backTextStyle:{type:Object,default(){return{color:"#606266"}}},title:{type:String,default:""},titleWidth:{type:[String,Number],default:"250"},titleColor:{type:String,default:"#606266"},titleSize:{type:[String,Number],default:32},isBack:{type:[Boolean,String],default:!0},background:{type:Object,default(){return{background:"#ffffff"}}},isFixed:{type:Boolean,default:!0},immersive:{type:Boolean,default:!1},borderBottom:{type:Boolean,default:!0},zIndex:{type:[String,Number],default:""},customBack:{type:Function,default:null}},data(){return{menuButtonInfo:i,statusBarHeight:n.statusBarHeight}},computed:{navbarInnerStyle(){let t={};t.height=this.navbarHeight+"px";let e=n.windowWidth-i.left;return t.marginRight=e+"px",t},navbarStyle(){let t={};return t.zIndex=this.zIndex?this.zIndex:this.$u.zIndex.navbar,Object.assign(t,this.background),t},titleStyle(){let e={},a=n.windowWidth-i.left;return e.left=(n.windowWidth-t.upx2px(this.titleWidth))/2+"px",e.right=a-(n.windowWidth-t.upx2px(this.titleWidth))/2+a+"px",e.width=t.upx2px(this.titleWidth)+"px",e},navbarHeight(){let t="ios"==n.platform?44:48;return this.height?this.height:t}},created(){},methods:{goBack(){"function"===typeof this.customBack?this.customBack.bind(this.$u.$parent.call(this))():t.navigateBack()}}}}).call(this,n("543d")["default"])}}]); ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([ 'uview-ui/components/u-navbar/u-navbar-create-component', { 'uview-ui/components/u-navbar/u-navbar-create-component':(function(module, exports, __webpack_require__){ __webpack_require__('543d')['createComponent'](__webpack_require__("811d")) }) }, [['uview-ui/components/u-navbar/u-navbar-create-component']] ]);