UNPKG

vexip-ui

Version:

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

1 lines 1.4 kB
{"version":3,"file":"props.cjs","sources":["../../../components/alert/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 { AlertSlots, AlertType } from './symbol'\n\nexport const alertProps = buildProps({\n type: String as PropType<AlertType>,\n title: String,\n colorfulText: booleanProp,\n icon: {\n type: [Boolean, Object, Function],\n default: null,\n },\n closable: booleanProp,\n iconColor: String,\n noBorder: booleanProp,\n banner: booleanProp,\n manual: booleanProp,\n scroll: booleanProp,\n scrollSpeed: Number,\n color: String,\n slots: Object as PropType<AlertSlots>,\n onClose: eventProp(),\n onHide: eventProp(),\n onScrollEnd: eventProp(),\n})\n\nexport type AlertProps = ExtractPropTypes<typeof alertProps>\nexport type AlertCProps = ConfigurableProps<ExtractPropTypes<typeof alertProps>>\n"],"names":["alertProps","buildProps","booleanProp","eventProp"],"mappings":"oHAMaA,EAAaC,EAAAA,WAAW,CACnC,KAAM,OACN,MAAO,OACP,aAAcC,EAAA,YACd,KAAM,CACJ,KAAM,CAAC,QAAS,OAAQ,QAAQ,EAChC,QAAS,IACX,EACA,SAAUA,EAAA,YACV,UAAW,OACX,SAAUA,EAAA,YACV,OAAQA,EAAA,YACR,OAAQA,EAAA,YACR,OAAQA,EAAA,YACR,YAAa,OACb,MAAO,OACP,MAAO,OACP,QAASC,EAAAA,UAAU,EACnB,OAAQA,EAAAA,UAAU,EAClB,YAAaA,EAAU,UAAA,CACzB,CAAC"}