{"version":3,"file":"props.mjs","sources":["../../../../../../packages/components/tour/src/props.ts"],"sourcesContent":["import type { VueNode } from '@antdv/types';\nimport type { CSSProperties, ExtractPropTypes, PropType } from 'vue';\nimport { tourProps as VcTourProps, tourStepProps as VcTourStepProps } from '@antdv/vue-components';\n\nexport function tourProps() {\n  return {\n    ...VcTourProps(),\n    'steps': { type: Array as PropType<TourStepProps[]> },\n    'prefixCls': { type: String },\n    'current': { type: Number },\n    'type': { type: String as PropType<'default' | 'primary'> }, // default类型，影响底色与文字颜色\n    'onUpdate:current': Function as PropType<(val: number) => void>,\n  };\n}\n\nexport type TourProps = Partial<ExtractPropTypes<ReturnType<typeof tourProps>>>;\n\nexport interface TourBtnProps {\n  children?: () => VueNode\n  onClick?: () => void\n  className?: string\n  style?: CSSProperties\n}\n\nexport function tourStepProps() {\n  return {\n    ...VcTourStepProps(),\n    cover: { type: Object as PropType<VueNode> }, // 展示的图片或者视频\n    nextButtonProps: {\n      type: Object as PropType<TourBtnProps>,\n    },\n    prevButtonProps: {\n      type: Object as PropType<TourBtnProps>,\n    },\n    current: { type: Number },\n    type: { type: String as PropType<'default' | 'primary'> }, // default类型，影响底色与文字颜色\n  };\n}\n\nexport type TourStepProps = Partial<ExtractPropTypes<ReturnType<typeof tourStepProps>>>;\n"],"names":["VcTourProps","VcTourStepProps"],"mappings":";;;;AAIO,SAAS,SAAY,GAAA;AAC1B,EAAO,OAAA;AAAA,IACL,GAAGA,WAAY,EAAA;AAAA,IACf,OAAA,EAAS,EAAE,IAAA,EAAM,KAAmC,EAAA;AAAA,IACpD,WAAA,EAAa,EAAE,IAAA,EAAM,MAAO,EAAA;AAAA,IAC5B,SAAA,EAAW,EAAE,IAAA,EAAM,MAAO,EAAA;AAAA,IAC1B,MAAA,EAAQ,EAAE,IAAA,EAAM,MAA0C,EAAA;AAAA;AAAA,IAC1D,kBAAoB,EAAA,QAAA;AAAA,GACtB,CAAA;AACF,CAAA;AAWO,SAAS,aAAgB,GAAA;AAC9B,EAAO,OAAA;AAAA,IACL,GAAGC,eAAgB,EAAA;AAAA,IACnB,KAAA,EAAO,EAAE,IAAA,EAAM,MAA4B,EAAA;AAAA;AAAA,IAC3C,eAAiB,EAAA;AAAA,MACf,IAAM,EAAA,MAAA;AAAA,KACR;AAAA,IACA,eAAiB,EAAA;AAAA,MACf,IAAM,EAAA,MAAA;AAAA,KACR;AAAA,IACA,OAAA,EAAS,EAAE,IAAA,EAAM,MAAO,EAAA;AAAA,IACxB,IAAA,EAAM,EAAE,IAAA,EAAM,MAA0C,EAAA;AAAA;AAAA,GAC1D,CAAA;AACF;;;;"}