index-legacy.da3785ef.js 5.2 KB

1
  1. !function(){function t(t,a){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var a=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==a)return;var r,i,e=[],o=!0,b=!1;try{for(a=a.call(t);!(o=(r=a.next()).done)&&(e.push(r.value),!n||e.length!==n);o=!0);}catch(s){b=!0,i=s}finally{try{o||null==a.return||a.return()}finally{if(b)throw i}}return e}(t,a)||function(t,a){if(!t)return;if("string"==typeof t)return n(t,a);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,a)}(t,a)||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 n(t,n){(null==n||n>t.length)&&(n=t.length);for(var a=0,r=new Array(n);a<n;a++)r[a]=t[a];return r}var a=document.createElement("style");a.innerHTML=":root{--van-submit-bar-height: 1.33333rem;--van-submit-bar-z-index: 100;--van-submit-bar-background-color: var(--van-background-color-light);--van-submit-bar-button-width: 2.93333rem;--van-submit-bar-price-color: var(--van-danger-color);--van-submit-bar-price-font-size: var(--van-font-size-sm);--van-submit-bar-price-integer-font-size: .53333rem;--van-submit-bar-price-font-family: var(--van-price-integer-font-family);--van-submit-bar-currency-font-size: var(--van-font-size-md);--van-submit-bar-text-color: var(--van-text-color);--van-submit-bar-text-font-size: var(--van-font-size-md);--van-submit-bar-tip-padding: var(--van-padding-xs) var(--van-padding-sm);--van-submit-bar-tip-font-size: var(--van-font-size-sm);--van-submit-bar-tip-line-height: 1.5;--van-submit-bar-tip-color: var(--van-orange-dark);--van-submit-bar-tip-background-color: var(--van-orange-light);--van-submit-bar-tip-icon-size: .32rem;--van-submit-bar-button-height: 1.06667rem;--van-submit-bar-padding: 0 var(--van-padding-md)}.van-submit-bar{position:fixed;bottom:0;left:0;z-index:var(--van-submit-bar-z-index);width:100%;background:var(--van-submit-bar-background-color);-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-submit-bar__tip{padding:var(--van-submit-bar-tip-padding);color:var(--van-submit-bar-tip-color);font-size:var(--van-submit-bar-tip-font-size);line-height:var(--van-submit-bar-tip-line-height);background:var(--van-submit-bar-tip-background-color)}.van-submit-bar__tip-icon{margin-right:var(--van-padding-base);font-size:var(--van-submit-bar-tip-icon-size);vertical-align:middle}.van-submit-bar__tip-text{vertical-align:middle}.van-submit-bar__bar{display:flex;align-items:center;justify-content:flex-end;height:var(--van-submit-bar-height);padding:var(--van-submit-bar-padding);font-size:var(--van-submit-bar-text-font-size)}.van-submit-bar__text{flex:1;padding-right:var(--van-padding-sm);color:var(--van-submit-bar-text-color);text-align:right}.van-submit-bar__text span{display:inline-block}.van-submit-bar__suffix-label{margin-left:var(--van-padding-base);font-weight:var(--van-font-weight-bold)}.van-submit-bar__price{color:var(--van-submit-bar-price-color);font-weight:var(--van-font-weight-bold);font-size:var(--van-submit-bar-price-font-size);margin-left:var(--van-padding-base)}.van-submit-bar__price-integer{font-size:var(--van-submit-bar-price-integer-font-size);font-family:var(--van-submit-bar-price-font-family)}.van-submit-bar__button{width:var(--van-submit-bar-button-width);height:var(--van-submit-bar-button-height);font-weight:var(--van-font-weight-bold);border:none}.van-submit-bar__button--danger{background:var(--van-gradient-red)}\n",document.head.appendChild(a),System.register(["./index-legacy.b2528a15.js"],(function(n){"use strict";var a,r,i,e,o,b,s,u,l;return{setters:[function(t){a=t.E,r=t.a0,i=t.ab,e=t.H,o=t.d,b=t.i,s=t.N,u=t.B,l=t.O}],execute:function(){var v=t(a("submit-bar"),3),c=v[0],m=v[1],d=v[2],f={tip:String,label:String,price:Number,tipIcon:String,loading:Boolean,currency:r("¥"),disabled:Boolean,textAlign:String,buttonText:String,buttonType:r("danger"),buttonColor:String,suffixLabel:String,decimalLength:i(2),safeAreaInsetBottom:e},g=o({name:c,props:f,emits:["submit"],setup:function(t,n){var a=n.emit,r=n.slots,i=function(){var n=t.price,a=t.label,r=t.currency,i=t.textAlign,e=t.suffixLabel,o=t.decimalLength;if("number"==typeof n){var s=(n/100).toFixed(+o).split("."),u=o?".".concat(s[1]):"";return b("div",{class:m("text"),style:{textAlign:i}},[b("span",null,[a||d("label")]),b("span",{class:m("price")},[r,b("span",{class:m("price-integer")},[s[0]]),u]),e&&b("span",{class:m("suffix-label")},[e])])}},e=function(){var n,a=t.tip,i=t.tipIcon;if(r.tip||a)return b("div",{class:m("tip")},[i&&b(s,{class:m("tip-icon"),name:i},null),a&&b("span",{class:m("tip-text")},[a]),null==(n=r.tip)?void 0:n.call(r)])},o=function(){return a("submit")};return function(){var n,a;return b("div",{class:[m(),{"van-safe-area-bottom":t.safeAreaInsetBottom}]},[null==(n=r.top)?void 0:n.call(r),e(),b("div",{class:m("bar")},[null==(a=r.default)?void 0:a.call(r),i(),r.button?r.button():b(u,{round:!0,type:t.buttonType,text:t.buttonText,class:m("button",t.buttonType),color:t.buttonColor,loading:t.loading,disabled:t.disabled,onClick:o},null)])])}}});n("S",l(g))}}}))}();