{"version":3,"file":"icon-picker.mjs","sources":["../../../../../../../packages/components/icon-picker/src/config/icon-picker.ts"],"sourcesContent":["import { buildProps, definePropType } from '@ll-plus/utils'\r\n\r\nimport { SizeType } from 'ant-design-vue/es/config-provider'\r\nimport type { ExtractPropTypes } from 'vue'\r\nimport type IconPicker from '../icon-picker.vue'\r\n\r\nexport interface IconPickerItem {\r\n  icon_id?: string\r\n  name?: string\r\n  font_class?: string\r\n  unicode?: string\r\n  unicode_decimal?: number\r\n}\r\n\r\nexport const iconPickerProps = buildProps({\r\n  // buildProps和defineprops一样\r\n  /**\r\n   * @description 选中的icon\r\n   */\r\n  value: {\r\n    type: String,\r\n  },\r\n  /**\r\n   * @description 模态框的icon列表\r\n   */\r\n  iconList: {\r\n    type: definePropType<IconPickerItem[]>(Array),\r\n  },\r\n\r\n  // 是否只读，默认只读\r\n  readonly: {\r\n    type: Boolean,\r\n    default: true,\r\n  },\r\n\r\n  // 尺寸\r\n  size: {\r\n    type: String as () => SizeType,\r\n  },\r\n\r\n  // 继承尺寸(服务设计器)\r\n  extendSize: {\r\n    type: String as () => SizeType,\r\n  },\r\n\r\n  // 只显示图标\r\n  showIconOnly: {\r\n    type: Boolean,\r\n    default: false,\r\n  },\r\n} as const)\r\n\r\n// props\r\nexport type IconPickerProps = ExtractPropTypes<typeof iconPickerProps> // ExtractPropTypes和defineCpmponent类似\r\n\r\n// instance\r\nexport type IconPickerInstance = InstanceType<typeof IconPicker>\r\n"],"names":[],"mappings":";;;;AAcO,MAAM,kBAAkB,UAAA,CAAW;AAAA;AAAA;AAAA;AAAA;AAAA,EAKxC,KAAA,EAAO;AAAA,IACL,IAAA,EAAM;AAAA,GACR;AAAA;AAAA;AAAA;AAAA,EAIA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,eAAiC,KAAK;AAAA,GAC9C;AAAA;AAAA,EAGA,QAAA,EAAU;AAAA,IACR,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA,EAGA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM;AAAA,GACR;AAAA;AAAA,EAGA,UAAA,EAAY;AAAA,IACV,IAAA,EAAM;AAAA,GACR;AAAA;AAAA,EAGA,YAAA,EAAc;AAAA,IACZ,IAAA,EAAM,OAAA;AAAA,IACN,OAAA,EAAS;AAAA;AAEb,CAAU;;;;"}