UNPKG

vexip-ui

Version:

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

1 lines 984 B
{"version":3,"file":"props.mjs","sources":["../../../components/time-ago/props.ts"],"sourcesContent":["import { booleanNumberProp, booleanStringProp, buildProps, localeProp } from '@vexip-ui/config'\n\nimport type { ExtractPropTypes, PropType } from 'vue'\nimport type { ConfigurableProps } from '@vexip-ui/config'\nimport type { Dateable } from '@vexip-ui/utils'\n\nexport const timeAgoProps = buildProps({\n locale: localeProp('timeAgo'),\n datetime: [String, Number, Date] as PropType<Dateable>,\n interval: booleanNumberProp,\n title: booleanStringProp,\n titleFormat: String,\n})\n\nexport type TimeAgoProps = ExtractPropTypes<typeof timeAgoProps>\nexport type TimeAgoCProps = ConfigurableProps<TimeAgoProps, 'datetime'>\n"],"names":["timeAgoProps","buildProps","localeProp","booleanNumberProp","booleanStringProp"],"mappings":";AAMO,MAAMA,IAAeC,EAAW;AAAA,EACrC,QAAQC,EAAW,SAAS;AAAA,EAC5B,UAAU,CAAC,QAAQ,QAAQ,IAAI;AAAA,EAC/B,UAAUC;AAAA,EACV,OAAOC;AAAA,EACP,aAAa;AACf,CAAC;"}