@extclp/vexip-ui
Version:
A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good
1 lines • 1.07 kB
Source Map (JSON)
{"version":3,"file":"props.mjs","sources":["../../../components/badge/props.ts"],"sourcesContent":["import { booleanProp, buildProps, eventProp } from '@vexip-ui/config'\r\n\r\nimport type { ExtractPropTypes, PropType } from 'vue'\r\nimport type { ConfigurableProps } from '@vexip-ui/config'\r\nimport type { BadgeSlots, BadgeType } from './symbol'\r\n\r\nexport const badgeProps = buildProps({\r\n content: [Number, String],\r\n max: Number,\r\n disabled: booleanProp,\r\n isDot: booleanProp,\r\n type: String as PropType<BadgeType>,\r\n color: String,\r\n slots: Object as PropType<BadgeSlots>,\r\n onBadgeClick: eventProp<(event: MouseEvent) => void>(),\r\n})\r\n\r\nexport type BadgeProps = ExtractPropTypes<typeof badgeProps>\r\nexport type BadgeCProps = ConfigurableProps<BadgeProps, 'content'>\r\n"],"names":["badgeProps","buildProps","booleanProp","eventProp"],"mappings":";AAMO,MAAMA,IAAaC,EAAW;AAAA,EACnC,SAAS,CAAC,QAAQ,MAAM;AAAA,EACxB,KAAK;AAAA,EACL,UAAUC;AAAA,EACV,OAAOA;AAAA,EACP,MAAM;AAAA,EACN,OAAO;AAAA,EACP,OAAO;AAAA,EACP,cAAcC,EAAuC;AACvD,CAAC;"}