import React from 'react'; import './index.less'; export interface Option { id: string | number; name: React.ReactNode; } export interface PisellAnchorProps { options?: Option[]; tab?: string | number; className?: string; style?: React.CSSProperties; onChange?: (key: string | number) => void; onTabClick?: () => void; containerRef?: React.RefObject; /** * 平台类型,仅用于样式调整,不再影响锚点滚动功能 * 无论pc还是h5模式,点击锚点都会自动滚动到对应内容 * @default 'pc' */ platform?: 'pc' | 'h5'; } declare const PisellAnchor: React.FC; export default PisellAnchor;