index-legacy.ac553194.js 2.4 KB

1
  1. !function(){function t(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==r)return;var n,l,i=[],a=!0,o=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(c){o=!0,l=c}finally{try{a||null==r.return||r.return()}finally{if(o)throw l}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}(t,e)||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 r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}System.register(["./index-legacy.48c8d62c.js"],(function(r){"use strict";var n,l,i,a,o,c,f,u,s,d,y,g;return{setters:[function(t){n=t.t,l=t.z,i=t.v,a=t.d,o=t.R,c=t.aX,f=t.aU,u=t.c,s=t.ay,d=t.aY,y=t.a5,g=t.D}],execute:function(){var p=e(n("nav-bar"),2),v=p[0],h=p[1],b={title:String,fixed:Boolean,zIndex:l,border:i,leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,clickable:i},x=a({name:v,props:b,emits:["clickLeft","clickRight"],setup:function(e,r){var n=r.emit,l=r.slots,i=o(),a=c(i,h),g=function(t){return n("clickLeft",t)},p=function(t){return n("clickRight",t)},v=function(){var r,n=e.title,a=e.fixed,o=e.border,c=e.zIndex,v=f(c),b=e.leftArrow||e.leftText||l.left,x=e.rightText||l.right;return u("div",{ref:i,style:v,class:[h({fixed:a}),(r={},t(r,d,o),t(r,"van-safe-area-top",e.safeAreaInsetTop),r)]},[u("div",{class:h("content")},[b&&u("div",{class:[h("left"),e.clickable?s:""],onClick:g},[l.left?l.left():[e.leftArrow&&u(y,{class:h("arrow"),name:"arrow-left"},null),e.leftText&&u("span",{class:h("text")},[e.leftText])]]),u("div",{class:[h("title"),"van-ellipsis"]},[l.title?l.title():n]),x&&u("div",{class:[h("right"),e.clickable?s:""],onClick:p},[l.right?l.right():u("span",{class:h("text")},[e.rightText])])])])};return function(){return e.fixed&&e.placeholder?a(v):v()}}});r("N",g(x))}}}))}();