{"version":3,"file":"index.mjs","sources":["../../../../../packages/formily/select-v2/index.ts"],"sourcesContent":["import { connect, mapProps, mapReadPretty } from '@formily/vue'\nimport { ElSelectV2 } from 'element-plus'\nimport { FormPath } from '@formily/shared'\nimport { transformComponent2 } from '../__builtins__'\nimport { PreviewText } from '../preview-text'\nimport type { ISelectV2Props } from 'element-plus'\n\nconst TransformElSelectV2 = transformComponent2<ISelectV2Props>(ElSelectV2)\n\nexport const SelectV2 = connect(\n  TransformElSelectV2,\n  mapProps((props, field) => {\n    return {\n      options: FormPath.getIn(field, 'dataSource') ?? [],\n      modelValue: FormPath.getIn(field, 'value'),\n    }\n  }),\n  mapReadPretty(PreviewText.Select)\n)\n\nexport default SelectV2\n"],"names":[],"mappings":";;;;;;AAOA,MAAM,mBAAA,GAAsB,oBAAoC,UAAU,CAAA,CAAA;AAEnE,MAAM,QAAW,GAAA,OAAA;AAAA,EACtB,mBAAA;AAAA,EACA,QAAA,CAAS,CAAC,KAAA,EAAO,KAAU,KAAA;AAX7B,IAAA,IAAA,EAAA,CAAA;AAYI,IAAO,OAAA;AAAA,MACL,UAAS,EAAS,GAAA,QAAA,CAAA,KAAA,CAAM,OAAO,YAAY,CAAA,KAAlC,YAAuC,EAAC;AAAA,MACjD,UAAY,EAAA,QAAA,CAAS,KAAM,CAAA,KAAA,EAAO,OAAO,CAAA;AAAA,KAC3C,CAAA;AAAA,GACD,CAAA;AAAA,EACD,aAAA,CAAc,YAAY,MAAM,CAAA;AAClC;;;;"}