index-legacy.40eca993.js 4.1 KB

1
  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(["./index-legacy.fba2875c.js","./use-height-legacy.233a2ec8.js"],(function(e){"use strict";var a,r,i,o,l,v,c,s,f,u,d,b;return{setters:[function(t){a=t.j,r=t.A,i=t.E,o=t.G,l=t.d,v=t.S,c=t.ad,s=t.aX,f=t.aY,u=t.M,d=t.N},function(t){b=t.u}],execute:function(){var g=n(r("nav-bar"),2),h=g[0],p=g[1],x={title:String,fixed:Boolean,zIndex:i,border:o,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean},m=l({name:h,props:x,emits:["click-left","click-right"],setup:function(n,e){var r=e.emit,i=e.slots,o=v(),l=function(t,n){var e=b(t);return function(t){return a("div",{class:n("placeholder"),style:{height:e.value?"".concat(e.value,"px"):void 0}},[t()])}}(o,p),d=function(t){return r("click-left",t)},g=function(t){return r("click-right",t)},h=function(){var e,r=n.title,l=n.fixed,v=n.border,b=n.zIndex,h=c(b),x=n.leftArrow||n.leftText||i.left,m=n.rightText||i.right;return a("div",{ref:o,style:h,class:[p({fixed:l}),(e={},t(e,f,v),t(e,"van-safe-area-top",n.safeAreaInsetTop),e)]},[a("div",{class:p("content")},[x&&a("div",{class:[p("left"),s],onClick:d},[i.left?i.left():[n.leftArrow&&a(u,{class:p("arrow"),name:"arrow-left"},null),n.leftText&&a("span",{class:p("text")},[n.leftText])]]),a("div",{class:[p("title"),"van-ellipsis"]},[i.title?i.title():r]),m&&a("div",{class:[p("right"),s],onClick:g},[i.right?i.right():a("span",{class:p("text")},[n.rightText])])])])};return function(){return n.fixed&&n.placeholder?l(h):h()}}});e("N",d(m))}}}))}();