{"version":3,"file":"tag.mjs","sources":["../../../../../../packages/components/tag/src/tag.ts"],"sourcesContent":["import type { ExtractPropTypes } from 'vue'\r\n\r\nimport type Tag from './tag.vue'\r\n\r\nimport { buildProps, definePropType } from '@ll-plus/utils'\r\nimport { IconProps } from '../../icon'\r\n\r\n// 方形 / 圆角 / 胶囊 / 树叶\r\nexport type tagShapeType = 'square' | 'round' | 'capsule' | 'leaf'\r\n\r\n// props\r\nexport const tagProps = buildProps({\r\n  label: {\r\n    type: String,\r\n    default: '',\r\n  },\r\n  // 标签形状\r\n  shape: {\r\n    type: String as () => tagShapeType,\r\n    default: 'square',\r\n  },\r\n  // 图标\r\n  icon: {\r\n    type: definePropType<IconProps>(Object),\r\n    default: () => ({\r\n      iconName: '',\r\n      color: undefined,\r\n      size: undefined,\r\n    }),\r\n  },\r\n\r\n  // 图标方位 left | right\r\n  iconDirection: {\r\n    type: String,\r\n    default: 'left',\r\n  },\r\n} as const)\r\n\r\nexport type TagProps = ExtractPropTypes<typeof tagProps>\r\n\r\nexport type TagInstance = InstanceType<typeof Tag>\r\n"],"names":[],"mappings":";;;;AAWO,MAAM,WAAW,UAAA,CAAW;AAAA,EACjC,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA,EAEA,KAAA,EAAO;AAAA,IACL,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA,GACX;AAAA;AAAA,EAEA,IAAA,EAAM;AAAA,IACJ,IAAA,EAAM,eAA0B,MAAM,CAAA;AAAA,IACtC,SAAS,OAAO;AAAA,MACd,QAAA,EAAU,EAAA;AAAA,MACV,KAAA,EAAO,KAAA,CAAA;AAAA,MACP,IAAA,EAAM,KAAA;AAAA,KACR;AAAA,GACF;AAAA;AAAA,EAGA,aAAA,EAAe;AAAA,IACb,IAAA,EAAM,MAAA;AAAA,IACN,OAAA,EAAS;AAAA;AAEb,CAAU;;;;"}