🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

guide-tour

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

guide-tour

基于v-tour封装vue3用户引导组件

latest
npmnpm
Version
0.0.1
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

安装

npm install guide-tour --save

注册

import GuideTour from 'guide-tour'

Vue.use(GuideTour)

使用

<template>
  <div class="about">
    <div class="step-wrap">
      <div id="tour-step1">step1</div>
      <div id="tour-step2">step2</div>
      <div id="tour-step3">step3</div>
    </div>
    <GuideTour ref="guideTourRef" :steps="steps" />
  </div>
</template>
<script setup>
  import { ref, onMounted } from 'vue'

  const steps = {
    step1: {
      content: `<p>此操作将会引导您了解页面功能,建议完成操作步骤引导。如已经完成配置操作,您可以点击【跳过】</p>`,
      placement: 'bottom', // top | right | bottom | left
      title: '用户功能引导',
    },
    step2: {
      content: `<p>步骤1。</p>`,
      placement: 'bottom',
    },
    step3: {
      content: `<p>步骤2。</p>`,
      placement: 'bottom',
    },
  }
  const guideTourRef = ref(null)
  onMounted(() => {
    guideTourRef.value.start()
  })
</script>

Keywords

vue3

FAQs

Package last updated on 20 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts