{"version":3,"file":"modal.mjs","sources":["../../../../../../../packages/components/icon-picker/src/config/modal.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\r\n\r\nimport type { ExtractPropTypes } from 'vue'\r\nimport type Modal from '../components/modal.vue'\r\nimport type { IconPickerItem } from './icon-picker'\r\n\r\nexport const iconPickerModalProps = buildProps({\r\n  // buildProps和defineprops一样\r\n  /**\r\n   * @description icon的value\r\n   */\r\n  value: {\r\n    type: String,\r\n    default: '',\r\n  },\r\n  /**\r\n   * @description modal的visible\r\n   */\r\n  open: {\r\n    type: Boolean,\r\n  },\r\n  data: {\r\n    type: definePropType<IconPickerItem[]>(Array),\r\n    default: () => [],\r\n  },\r\n} as const)\r\n\r\n// props\r\nexport type IconPickerModalProps = ExtractPropTypes<typeof iconPickerModalProps> // ExtractPropTypes和defineCpmponent类似\r\n\r\n// emits\r\nexport const iconPickerModalEmits = {\r\n  'update:open': (value: boolean) => typeof value === 'boolean',\r\n  changeIconValue: (value: string) => value,\r\n}\r\n\r\n// instance\r\nexport type IconPickerModalInstance = InstanceType<typeof Modal>\r\n"],"names":[],"mappings":";;;;AAMO,MAAM,uBAAuB,UAAA,CAAW;AAAA;AAAA;AAAA;AAAA;AAAA,EAK7C,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA;AAAA;AAAA,EAIA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM;AAAA,GACR;AAAA,EACA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,eAAiC,KAAK,CAAA;AAAA,IAC5C,OAAA,EAAS,MAAM;AAAC;AAEpB,CAAU;AAMH,MAAM,oBAAA,GAAuB;AAAA,EAClC,aAAA,EAAe,CAAC,KAAA,KAAmB,OAAO,KAAA,KAAU,SAAA;AAAA,EACpD,eAAA,EAAiB,CAAC,KAAA,KAAkB;AACtC;;;;"}