"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),u=require("lodash-unified"),l=e.defineComponent({name:"ApFieldSwitchRead",__name:"read",props:{mode:{},class:{},style:{},emptyText:{default:"--"},customReadMode:{},id:{},prefixCls:{},size:{default:"default"},disabled:{type:Boolean,default:void 0},checkedChildren:{},unCheckedChildren:{},tabindex:{},autofocus:{type:Boolean},loading:{type:Boolean,default:void 0},checked:{},checkedValue:{default:!0},unCheckedValue:{default:!1},onChange:{},onKeydown:{},onMouseup:{},"onUpdate:checked":{},onBlur:{},onFocus:{},onAction:{},confirm:{}},setup(t){const n=t,c=e.computed(()=>{const d=n.checked;return u.isNil(d)?e.createVNode(e.Fragment,null,[n.emptyText]):d===n.checkedValue?e.createVNode(e.Fragment,null,[n.checkedChildren||`${n.checkedValue}`]):e.createVNode(e.Fragment,null,[n.unCheckedChildren||`${n.unCheckedValue}`])});return(d,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c.value)))}});exports.default=l;
