New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

wea-driver

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wea-driver

A user experience boot component based the introjs

latest
Source
npmnpm
Version
4.4.7
Version published
Maintainers
1
Created
Source

WeaDriver

A user experience boot. 试一试

Demo

Guide

CDN

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/wea-driver@latest/dist/wea-driver.min.css">
<script src="https://cdn.jsdelivr.net/npm/wea-driver@latest/dist/wea-driver.min.js"></script>

NPM

npm install --save wea-driver
import WeaDriver from "wea-driver";

Usage

const STEPS = [
  {
    element: '#step1',
    popover: {
      title: '步骤一',
      description: '天青色等烟雨,而我在等你,岁月被打捞起,掩盖了结局。',
      position: 'left'
    },
    onNext: fucntion() {
      return new Promise(function(resolve, reject) {
        if() {
          // to do sth
          resolve();
        } else {
          // to do sth
          reject();
        }
      })
    }
  },
  ...
];
const myWeaDriver = new WeaDriver(STEPS);
myWeaDriver.init();

Options

NameTypeDescript
elementString步骤区块的 id
titleString步骤区块的描述文本
descriptionString步骤区块的显示位置
onNextFunction(Promise)点击下一步时执行异步回调
onPreviousFunction(Promise)点击上一步时执行异步回调

Functions

.init()

初始化

.next()

下一步

.prev()

上一步

.reset(steps)

重置

.start()

开始

Deploy

Deploy to Netlify

FAQs

Package last updated on 08 May 2019

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