UNPKG

tav-ui

Version:
1 lines 2.69 kB
{"version":3,"file":"types2.mjs","sources":["../../../../../../../packages/components/time-line/src/types.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue'\nexport interface TimeLinePropsType {\n list?: ListItemDefaultDataType[]\n useLoadingMore?: boolean\n}\nexport interface ListItemDefaultDataType {\n times?: string[]\n status?: 'success' | 'fail' | 'continue'\n title?: string\n tags?: TagPropsType[]\n description?: string[]\n}\nexport interface TagPropsType {\n color?: string\n label?: string\n tooltip?: string\n [key: string]: any\n}\n\nexport const timeLineProps = {\n list: {\n type: Array as PropType<TimeLinePropsType['list']>,\n default: () => [],\n },\n useLoadingMore: {\n type: Boolean as PropType<TimeLinePropsType['useLoadingMore']>,\n default: true,\n },\n renderListItem: {\n type: Function || null,\n default: null,\n },\n}\nexport type TimeLineProps = ExtractPropTypes<typeof timeLineProps>\nexport const timeLineListEmits = ['loadingMore']\nexport const timeLineTagProps = {\n label: {\n type: String as PropType<TagPropsType['label']>,\n default: '',\n },\n tooltip: {\n type: String as PropType<TagPropsType['tooltip']>,\n default: '',\n },\n color: {\n type: String as PropType<TagPropsType['color']>,\n default: '',\n },\n}\nexport type TimeLineTagProps = ExtractPropTypes<typeof timeLineTagProps>\nexport const timeLineItemProps = {\n itemData: {\n type: Object as PropType<ListItemDefaultDataType>,\n default: () => {\n return {\n status: '',\n times: [],\n title: '',\n tags: [],\n description: [],\n }\n },\n },\n}\nexport type TimeLineItemProps = ExtractPropTypes<typeof timeLineItemProps>\n"],"names":[],"mappings":"AAAY,MAAC,aAAa,GAAG;AAC7B,EAAE,IAAI,EAAE;AACR,IAAI,IAAI,EAAE,KAAK;AACf,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB,GAAG;AACH,EAAE,cAAc,EAAE;AAClB,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE,cAAc,EAAE;AAClB,IAAI,IAAI,EAAE,QAAQ,IAAI,IAAI;AAC1B,IAAI,OAAO,EAAE,IAAI;AACjB,GAAG;AACH,EAAE;AACU,MAAC,iBAAiB,GAAG,CAAC,aAAa,EAAE;AACrC,MAAC,gBAAgB,GAAG;AAChC,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,OAAO,EAAE;AACX,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE,KAAK,EAAE;AACT,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,EAAE;AACf,GAAG;AACH,EAAE;AACU,MAAC,iBAAiB,GAAG;AACjC,EAAE,QAAQ,EAAE;AACZ,IAAI,IAAI,EAAE,MAAM;AAChB,IAAI,OAAO,EAAE,MAAM;AACnB,MAAM,OAAO;AACb,QAAQ,MAAM,EAAE,EAAE;AAClB,QAAQ,KAAK,EAAE,EAAE;AACjB,QAAQ,KAAK,EAAE,EAAE;AACjB,QAAQ,IAAI,EAAE,EAAE;AAChB,QAAQ,WAAW,EAAE,EAAE;AACvB,OAAO,CAAC;AACR,KAAK;AACL,GAAG;AACH;;;;"}