1 |
- !function(){function t(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function n(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==e)return;var a,r,i=[],o=!0,l=!1;try{for(e=e.call(t);!(o=(a=e.next()).done)&&(i.push(a.value),!n||i.length!==n);o=!0);}catch(v){l=!0,r=v}finally{try{o||null==e.return||e.return()}finally{if(l)throw r}}return i}(t,n)||function(t,n){if(!t)return;if("string"==typeof t)return e(t,n);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return e(t,n)}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,a=new Array(n);e<n;e++)a[e]=t[e];return a}var a=document.createElement("style");a.innerHTML=":root{--van-nav-bar-height: 1.22667rem;--van-nav-bar-background-color: var(--van-background-color-light);--van-nav-bar-arrow-size: .42667rem;--van-nav-bar-icon-color: var(--van-primary-color);--van-nav-bar-text-color: var(--van-primary-color);--van-nav-bar-title-font-size: var(--van-font-size-lg);--van-nav-bar-title-text-color: var(--van-text-color);--van-nav-bar-z-index: 1}.van-nav-bar{position:relative;z-index:var(--van-nav-bar-z-index);line-height:var(--van-line-height-lg);text-align:center;background:var(--van-nav-bar-background-color);-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-nav-bar--fixed{position:fixed;top:0;left:0;width:100%}.van-nav-bar--safe-area-inset-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.van-nav-bar .van-icon{color:var(--van-nav-bar-icon-color)}.van-nav-bar__content{position:relative;display:flex;align-items:center;height:var(--van-nav-bar-height)}.van-nav-bar__arrow{margin-right:var(--van-padding-base);font-size:var(--van-nav-bar-arrow-size)}.van-nav-bar__title{max-width:60%;margin:0 auto;color:var(--van-nav-bar-title-text-color);font-weight:var(--van-font-weight-bold);font-size:var(--van-nav-bar-title-font-size)}.van-nav-bar__left,.van-nav-bar__right{position:absolute;top:0;bottom:0;display:flex;align-items:center;padding:0 var(--van-padding-md);font-size:var(--van-font-size-md)}.van-nav-bar__left{left:0}.van-nav-bar__right{right:0}.van-nav-bar__text{color:var(--van-nav-bar-text-color)}\n",document.head.appendChild(a),System.register(["./use-height-legacy.2a153aaf.js","./index-legacy.b2528a15.js"],(function(e){"use strict";var a,r,i,o,l,v,c,s,f,u,d,b;return{setters:[function(t){a=t.u},function(t){r=t.i,i=t.E,o=t.G,l=t.H,v=t.d,c=t.U,s=t.ae,f=t.aY,u=t.aZ,d=t.N,b=t.O}],execute:function(){var g=n(i("nav-bar"),2),h=g[0],p=g[1],x={title:String,fixed:Boolean,zIndex:o,border:l,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean},m=v({name:h,props:x,emits:["click-left","click-right"],setup:function(n,e){var i=e.emit,o=e.slots,l=c(),v=function(t,n){var e=a(t);return function(t){return r("div",{class:n("placeholder"),style:{height:e.value?"".concat(e.value,"px"):void 0}},[t()])}}(l,p),b=function(t){return i("click-left",t)},g=function(t){return i("click-right",t)},h=function(){var e,a=n.title,i=n.fixed,v=n.border,c=n.zIndex,h=s(c),x=n.leftArrow||n.leftText||o.left,m=n.rightText||o.right;return r("div",{ref:l,style:h,class:[p({fixed:i}),(e={},t(e,u,v),t(e,"van-safe-area-top",n.safeAreaInsetTop),e)]},[r("div",{class:p("content")},[x&&r("div",{class:[p("left"),f],onClick:b},[o.left?o.left():[n.leftArrow&&r(d,{class:p("arrow"),name:"arrow-left"},null),n.leftText&&r("span",{class:p("text")},[n.leftText])]]),r("div",{class:[p("title"),"van-ellipsis"]},[o.title?o.title():a]),m&&r("div",{class:[p("right"),f],onClick:g},[o.right?o.right():r("span",{class:p("text")},[n.rightText])])])])};return function(){return n.fixed&&n.placeholder?v(h):h()}}});e("N",b(m))}}}))}();
|