index-legacy.5147af42.js 4.2 KB

1
  1. !function(){function r(r,o){return function(r){if(Array.isArray(r))return r}(r)||function(r,a){var o=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null==o)return;var n,e,i=[],t=!0,l=!1;try{for(o=o.call(r);!(t=(n=o.next()).done)&&(i.push(n.value),!a||i.length!==a);t=!0);}catch(d){l=!0,e=d}finally{try{t||null==o.return||o.return()}finally{if(l)throw e}}return i}(r,o)||function(r,o){if(!r)return;if("string"==typeof r)return a(r,o);var n=Object.prototype.toString.call(r).slice(8,-1);"Object"===n&&r.constructor&&(n=r.constructor.name);if("Map"===n||"Set"===n)return Array.from(r);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(r,o)}(r,o)||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 a(r,a){(null==a||a>r.length)&&(a=r.length);for(var o=0,n=new Array(a);o<a;o++)n[o]=r[o];return n}var o=document.createElement("style");o.innerHTML=".van-radio-group--horizontal{display:flex;flex-wrap:wrap}:root{--van-radio-size: .53333rem;--van-radio-border-color: var(--van-gray-5);--van-radio-transition-duration: var(--van-animation-duration-fast);--van-radio-label-margin: var(--van-padding-xs);--van-radio-label-color: var(--van-text-color);--van-radio-checked-icon-color: var(--van-primary-color);--van-radio-disabled-icon-color: var(--van-gray-5);--van-radio-disabled-label-color: var(--van-text-color-3);--van-radio-disabled-background-color: var(--van-border-color)}.van-radio{display:flex;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-radio--disabled{cursor:not-allowed}.van-radio--label-disabled{cursor:default}.van-radio--horizontal{margin-right:var(--van-padding-sm)}.van-radio__icon{flex:none;height:1em;font-size:var(--van-radio-size);line-height:1em;cursor:pointer}.van-radio__icon .van-icon{display:block;box-sizing:border-box;width:1.25em;height:1.25em;color:transparent;font-size:.8em;line-height:1.25;text-align:center;border:.02667rem solid var(--van-radio-border-color);transition-duration:var(--van-radio-transition-duration);transition-property:color,border-color,background-color}.van-radio__icon--round .van-icon{border-radius:100%}.van-radio__icon--checked .van-icon{color:var(--van-white);background-color:var(--van-radio-checked-icon-color);border-color:var(--van-radio-checked-icon-color)}.van-radio__icon--disabled{cursor:not-allowed}.van-radio__icon--disabled .van-icon{background-color:var(--van-radio-disabled-background-color);border-color:var(--van-radio-disabled-icon-color)}.van-radio__icon--disabled.van-radio__icon--checked .van-icon{color:var(--van-radio-disabled-icon-color)}.van-radio__label{margin-left:var(--van-radio-label-margin);color:var(--van-radio-label-color);line-height:var(--van-radio-size)}.van-radio__label--left{margin:0 var(--van-radio-label-margin) 0 0}.van-radio__label--disabled{color:var(--van-radio-disabled-label-color)}\n",document.head.appendChild(o),System.register(["./index-legacy.b2528a15.js","./index-legacy.7d3d7cf1.js"],(function(a){"use strict";var o,n,e,i,t,l,d,c,u,v,s,b,m,f;return{setters:[function(r){o=r.E,n=r.G,e=r.I,i=r.d,t=r.aj,l=r.a3,d=r.a$,c=r.i,u=r.O,v=r.at,s=r.aB,b=r.a8},function(r){m=r.c,f=r.s}],execute:function(){var p=r(o("radio-group"),2),g=p[0],h=p[1],y={disabled:Boolean,iconSize:n,direction:String,modelValue:e,checkedColor:String},_=Symbol(g),k=i({name:g,props:y,emits:["change","update:modelValue"],setup:function(r,a){var o=a.emit,n=a.slots,e=t(_).linkChildren;return l((function(){return r.modelValue}),(function(r){return o("change",r)})),e({props:r,updateValue:function(r){return o("update:modelValue",r)}}),d((function(){return r.modelValue})),function(){var a;return c("div",{class:h([r.direction]),role:"radiogroup"},[null==(a=n.default)?void 0:a.call(n)])}}}),x=(a("R",u(k)),r(o("radio"),2)),w=x[0],V=x[1],z=i({name:w,props:m,emits:["update:modelValue"],setup:function(r,a){var o=a.emit,n=a.slots,e=v(_).parent,i=function(){e?e.updateValue(r.name):o("update:modelValue",r.name)};return function(){return c(f,b({bem:V,role:"radio",parent:e,checked:(e?e.props.modelValue:r.modelValue)===r.name,onToggle:i},r),s(n,["default","icon"]))}}});a("a",u(z))}}}))}();