UNPKG

@extclp/vexip-ui

Version:

A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good

1 lines 1.03 kB
{"version":3,"file":"props.mjs","sources":["../../../components/badge/props.ts"],"sourcesContent":["import { booleanProp, buildProps, eventProp } from '@vexip-ui/config'\n\nimport type { ExtractPropTypes, PropType } from 'vue'\nimport type { ConfigurableProps } from '@vexip-ui/config'\nimport type { BadgeSlots, BadgeType } from './symbol'\n\nexport const badgeProps = buildProps({\n content: [Number, String],\n max: Number,\n disabled: booleanProp,\n isDot: booleanProp,\n type: String as PropType<BadgeType>,\n color: String,\n slots: Object as PropType<BadgeSlots>,\n onBadgeClick: eventProp<(event: MouseEvent) => void>()\n})\n\nexport type BadgeProps = ExtractPropTypes<typeof badgeProps>\nexport type BadgeCProps = ConfigurableProps<BadgeProps, 'content'>\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;"}