mirror of
https://gitee.com/myxzgzs/boyue_jnpf.git
synced 2025-08-11 00:32:45 +08:00
2 lines
859 B
JavaScript
2 lines
859 B
JavaScript
import{aa as r,b as c,e as d,u as l,c as p,ac as m,h as u,q as f,m as h,t as _,k as g,aj as v,s as C}from"./index.f451ea46.js";import{S}from"./header.92f6bcbe.js";import{b}from"./handler.4810cdef.js";import"./user.bf6a5ac8.js";const w=c({name:"SwitchItem",components:{Switch:S},props:{event:{type:Number},disabled:{type:Boolean},title:{type:String},def:{type:Boolean}},setup(e){const{prefixCls:t}=d("setting-switch-item"),{t:a}=l(),n=p(()=>e.def?{checked:e.def}:{});function s(o){e.event&&b(e.event,o)}return{prefixCls:t,t:a,handleChange:s,getBindValue:n}}});function y(e,t,a,n,s,o){const i=m("Switch");return u(),f("div",{class:C(e.prefixCls)},[h("span",null,_(e.title),1),g(i,v(e.getBindValue,{onChange:e.handleChange,disabled:e.disabled}),null,16,["onChange","disabled"])],2)}var $=r(w,[["render",y],["__scopeId","data-v-4ff5a0f2"]]);export{$ as default};
|