UNPKG

@extclp/vexip-ui

Version:

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

1 lines 1.51 kB
{"version":3,"file":"props.mjs","sources":["../../../components/alert/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 { AlertSlots, AlertType } from './symbol'\r\n\r\nexport const alertProps = buildProps({\r\n type: String as PropType<AlertType>,\r\n title: String,\r\n colorfulText: booleanProp,\r\n icon: {\r\n type: [Boolean, Object, Function],\r\n default: null,\r\n },\r\n closable: booleanProp,\r\n iconColor: String,\r\n noBorder: booleanProp,\r\n banner: booleanProp,\r\n manual: booleanProp,\r\n scroll: booleanProp,\r\n scrollSpeed: Number,\r\n color: String,\r\n slots: Object as PropType<AlertSlots>,\r\n onClose: eventProp(),\r\n onHide: eventProp(),\r\n onScrollEnd: eventProp(),\r\n})\r\n\r\nexport type AlertProps = ExtractPropTypes<typeof alertProps>\r\nexport type AlertCProps = ConfigurableProps<ExtractPropTypes<typeof alertProps>>\r\n"],"names":["alertProps","buildProps","booleanProp","eventProp"],"mappings":";AAMO,MAAMA,IAAaC,EAAW;AAAA,EACnC,MAAM;AAAA,EACN,OAAO;AAAA,EACP,cAAcC;AAAA,EACd,MAAM;AAAA,IACJ,MAAM,CAAC,SAAS,QAAQ,QAAQ;AAAA,IAChC,SAAS;AAAA,EACX;AAAA,EACA,UAAUA;AAAA,EACV,WAAW;AAAA,EACX,UAAUA;AAAA,EACV,QAAQA;AAAA,EACR,QAAQA;AAAA,EACR,QAAQA;AAAA,EACR,aAAa;AAAA,EACb,OAAO;AAAA,EACP,OAAO;AAAA,EACP,SAASC,EAAU;AAAA,EACnB,QAAQA,EAAU;AAAA,EAClB,aAAaA,EAAU;AACzB,CAAC;"}