index-legacy-f6b33ec3.js 2.0 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){var e,o,l,a,u=[],i=!0,c=!1;try{if(l=(n=n.call(r)).next,0===t){if(Object(n)!==n)return;i=!1}else for(;!(i=(e=l.call(n)).done)&&(u.push(e.value),u.length!==t);i=!0);}catch(s){c=!0,o=s}finally{try{if(!i&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(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-9572cf39.js"],(function(t,n){"use strict";var e,o,l,a,u,i,c,s,f;return{setters:[function(r){e=r.j,o=r.d,l=r.g,a=r.aA,u=r.v,i=r.n,c=r.aq,s=r.I,f=r.D}],execute:function(){var n=r(e("tag"),2),y=n[0],d=n[1],p={size:String,mark:Boolean,show:u,type:i("default"),color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean},m=o({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)},u=function(){var t,e=r.type,a=r.mark,u=r.plain,i=r.round,f=r.size,y=r.closeable,p={mark:a,plain:u,round:i};f&&(p[f]=f);var m=y&&l(s,{name:"cross",class:[d("close"),c],onClick:o},null);return l("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 l(a,{name:r.closeable?"van-fade":void 0},{default:function(){return[r.show?u():null]}})}}});t("T",f(m))}}}))}();