Tour
漫游引导 · 自研零依赖 SVG mask 镂空高亮 + 自定位气泡卡(标题/描述/上一步/下一步/跳过/进度) + resize/scroll 重算
搜索资源…
点下方按钮开始新手引导。
全状态
搜索资源…
点下方按钮开始新手引导。
搜索资源…
点下方按钮开始新手引导。
Playground
搜索资源…
点下方按钮开始新手引导。
const [open, setOpen] = useState(false);
const [current, setCurrent] = useState(0);
<Tour
open={open}
current={current}
onChange={setCurrent}
onClose={() => setOpen(false)}
steps={[
{ title: "欢迎", description: "开场居中…" },
{ target: () => searchRef.current, title: "全局搜索", description: "…", placement: "bottom" },
{ target: "#new-btn", title: "新建一条", description: "…", placement: "left" },
]}
/>