{"version":3,"file":"index.mjs","sources":["../../../../../packages/formily/switch/index.ts"],"sourcesContent":["import { connect, mapProps, mapReadPretty } from '@formily/vue'\nimport { ElSwitch } from 'element-plus'\nimport { transformComponent } from '../__builtins__'\nimport { PreviewText } from '../preview-text'\nimport type { SwitchProps as ElSwitchProps } from 'element-plus'\n\nexport type SwitchProps = ElSwitchProps\n\nconst TransformElSwitch = transformComponent<SwitchProps>(ElSwitch, {\n  change: 'update:modelValue',\n})\n\nexport const Switch = connect(\n  TransformElSwitch,\n  mapProps({\n    value: 'modelValue',\n    readOnly: 'readonly',\n  }),\n  mapReadPretty(PreviewText.TextSwitch)\n)\n\nexport default Switch\n"],"names":[],"mappings":";;;;;AAQA,MAAM,iBAAA,GAAoB,mBAAgC,QAAU,EAAA;AAAA,EAClE,MAAQ,EAAA,mBAAA;AACV,CAAC,CAAA,CAAA;AAEM,MAAM,MAAS,GAAA,OAAA;AAAA,EACpB,iBAAA;AAAA,EACA,QAAS,CAAA;AAAA,IACP,KAAO,EAAA,YAAA;AAAA,IACP,QAAU,EAAA,UAAA;AAAA,GACX,CAAA;AAAA,EACD,aAAA,CAAc,YAAY,UAAU,CAAA;AACtC;;;;"}