index-legacy.453fd926.js 1.9 KB

1
  1. !function(){function r(r,n){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var n=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null==n)return;var e,o,l=[],a=!0,u=!1;try{for(n=n.call(r);!(a=(e=n.next()).done)&&(l.push(e.value),!t||l.length!==t);a=!0);}catch(i){u=!0,o=i}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return l}(r,n)||function(r,n){if(!r)return;if("string"==typeof r)return t(r,n);var e=Object.prototype.toString.call(r).slice(8,-1);"Object"===e&&r.constructor&&(e=r.constructor.name);if("Map"===e||"Set"===e)return Array.from(r);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return t(r,n)}(r,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 t(r,t){(null==t||t>r.length)&&(t=r.length);for(var n=0,e=new Array(t);n<t;n++)e[n]=r[n];return e}System.register(["./index-legacy.47bc1690.js"],(function(t){"use strict";var n,e,o,l,a,u,i,c,s;return{setters:[function(r){n=r.t,e=r.v,o=r.u,l=r.d,a=r.c,u=r.b5,i=r.at,c=r.a5,s=r.D}],execute:function(){var f=r(n("tag"),2),y=f[0],d=f[1],p={size:String,mark:Boolean,show:e,type:o("default"),color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean},m=l({name:y,props:p,emits:["close"],setup:function(r,t){var n=t.slots,e=t.emit,o=function(r){r.stopPropagation(),e("close",r)},l=function(){var t,e=r.type,l=r.mark,u=r.plain,s=r.round,f=r.size,y=r.closeable,p={mark:l,plain:u,round:s};f&&(p[f]=f);var m=y&&a(c,{name:"cross",class:[d("close"),i],onClick:o},null);return a("span",{style:r.plain?{color:r.textColor||r.color,borderColor:r.color}:{color:r.textColor,background:r.color},class:d([p,e])},[null==(t=n.default)?void 0:t.call(n),m])};return function(){return a(u,{name:r.closeable?"van-fade":void 0},{default:function(){return[r.show?l():null]}})}}});t("T",s(m))}}}))}();