import { defineComponent } from 'vue'; import classNames from '../../_util/classNames'; import { tourStepProps } from '../interface'; import type { TourStepProps } from '../interface'; const DefaultPanel = defineComponent({ name: 'DefaultPanel', inheritAttrs: false, props: tourStepProps(), setup(props, { attrs }) { return () => { const { prefixCls, current, total, title, description, onClose, onPrev, onNext, onFinish } = props as TourStepProps; return (
{title}
{description}
{total > 1 ? [...Array.from({ length: total }).keys()].map((item, index) => { return ; }) : null}
{current !== 0 ? ( ) : null} {current === total - 1 ? ( ) : ( )}
); }; }, }); export default DefaultPanel;