JSPM

@wytxer/shepherd-vue

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q30206F
  • License MIT

基于 shepherd.js 封装的 Vue.js 版本的新手引导组件。

Package Exports

  • @wytxer/shepherd-vue
  • @wytxer/shepherd-vue/lib/shepherd-vue.umd.min.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@wytxer/shepherd-vue) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Shepherd Vue

基于 shepherd.js 封装的 Vue.js 版本的新手引导组件。

快速开始

1、安装

# npm
npm i @wytxer/shepherd-vue

# yarn
yarn add @wytxer/shepherd-vue

2、导入。

支持两种导入方式使用。第一种是全局导入:

import Vue from 'vue'
import Shepherd from '@wytxer/shepherd-vue'

Vue.use(Shepherd)

// 会在 Vue 实例上挂载 $shepherd 函数,通过调用 `$shepherd` 函数来使用
this.$shepherd(config)

另一种是局部导入使用:

import { shepherd } from '@wytxer/shepherd-vue'

// 使用
shepherd(config)

config 的具体配置参见这里

License

MIT