12345 |
- <<<<<<<< HEAD:dist/assets/index.34fb3ef2.js
- import{t as f,z as h,aw as C,d as p,x as P,Z as b,W as k,b1 as V,c as g,N as G,v as _,C as y,y as E,al as O,E as S,D as $}from"./index.ffe80dbe.js";import{c as N,s as w}from"./Checker.7cede1aa.js";const[x,z]=f("checkbox-group"),A={max:h,disabled:Boolean,iconSize:h,direction:String,modelValue:C(),checkedColor:String},v=Symbol(x);var R=p({name:x,props:A,emits:["change","update:modelValue"],setup(a,{emit:d,slots:s}){const{children:l,linkChildren:i}=P(v),o=e=>d("update:modelValue",e),u=(e={})=>{typeof e=="boolean"&&(e={checked:e});const{checked:t,skipDisabled:r}=e,c=l.filter(n=>n.props.bindGroup?n.props.disabled&&r?n.checked.value:t!=null?t:!n.checked.value:!1).map(n=>n.name);o(c)};return b(()=>a.modelValue,e=>d("change",e)),k({toggleAll:u}),V(()=>a.modelValue),i({props:a,updateValue:o}),()=>{var e;return g("div",{class:z([a.direction])},[(e=s.default)==null?void 0:e.call(s)])}}});const[B,D]=f("checkbox"),K=G({},N,{bindGroup:_});var F=p({name:B,props:K,emits:["change","update:modelValue"],setup(a,{emit:d,slots:s}){const{parent:l}=y(v),i=e=>{const{name:t}=a,{max:r,modelValue:m}=l.props,c=m.slice();if(e)!(r&&c.length>=r)&&!c.includes(t)&&(c.push(t),a.bindGroup&&l.updateValue(c));else{const n=c.indexOf(t);n!==-1&&(c.splice(n,1),a.bindGroup&&l.updateValue(c))}},o=E(()=>l&&a.bindGroup?l.props.modelValue.indexOf(a.name)!==-1:!!a.modelValue),u=(e=!o.value)=>{l&&a.bindGroup?i(e):d("update:modelValue",e)};return b(()=>a.modelValue,e=>d("change",e)),k({toggle:u,props:a,checked:o}),V(()=>a.modelValue),()=>g(w,S({bem:D,role:"checkbox",parent:l,checked:o.value,onToggle:u},a),O(s,["default","icon"]))}});const T=$(F);export{T as C,R as s};
- ========
- import{t as f,z as h,av as C,d as p,x as P,Z as b,W as k,b4 as V,c as g,N as G,v as _,C as y,y as E,am as O,E as S,D as $}from"./index.1c621181.js";import{c as N,s as z}from"./Checker.6bb59ec3.js";const[x,A]=f("checkbox-group"),B={max:h,disabled:Boolean,iconSize:h,direction:String,modelValue:C(),checkedColor:String},v=Symbol(x);var R=p({name:x,props:B,emits:["change","update:modelValue"],setup(a,{emit:d,slots:s}){const{children:l,linkChildren:i}=P(v),o=e=>d("update:modelValue",e),u=(e={})=>{typeof e=="boolean"&&(e={checked:e});const{checked:t,skipDisabled:r}=e,c=l.filter(n=>n.props.bindGroup?n.props.disabled&&r?n.checked.value:t!=null?t:!n.checked.value:!1).map(n=>n.name);o(c)};return b(()=>a.modelValue,e=>d("change",e)),k({toggleAll:u}),V(()=>a.modelValue),i({props:a,updateValue:o}),()=>{var e;return g("div",{class:A([a.direction])},[(e=s.default)==null?void 0:e.call(s)])}}});const[D,K]=f("checkbox"),w=G({},N,{bindGroup:_});var F=p({name:D,props:w,emits:["change","update:modelValue"],setup(a,{emit:d,slots:s}){const{parent:l}=y(v),i=e=>{const{name:t}=a,{max:r,modelValue:m}=l.props,c=m.slice();if(e)!(r&&c.length>=r)&&!c.includes(t)&&(c.push(t),a.bindGroup&&l.updateValue(c));else{const n=c.indexOf(t);n!==-1&&(c.splice(n,1),a.bindGroup&&l.updateValue(c))}},o=E(()=>l&&a.bindGroup?l.props.modelValue.indexOf(a.name)!==-1:!!a.modelValue),u=(e=!o.value)=>{l&&a.bindGroup?i(e):d("update:modelValue",e)};return b(()=>a.modelValue,e=>d("change",e)),k({toggle:u,props:a,checked:o}),V(()=>a.modelValue),()=>g(z,S({bem:K,role:"checkbox",parent:l,checked:o.value,onToggle:u},a),O(s,["default","icon"]))}});const T=$(F);export{T as C,R as s};
- >>>>>>>> online:dist/assets/index.3e68170a.js
|