gitee-intro

1.10.1 • Public • Published

gitee-intro

npm gitee-release-cli

介绍

一个用于创建功能引导界面的 JS 库。

安装

npm install --save gitee-intro

使用

import GiteeIntro from 'gitee-intro'

// 创建功能引导实例
const intro = new GiteeIntro({
    name: 'example',
    steps: [{
        type: 'Modal',
        title: '标题',
        content: {
            summary: '一段简单的介绍',
            features: [
                '特点1',
                '特点2',
            ],
            img: '图片地址'
        }
    }]
 })

// 开始引导
intro.start()

上述代码中用到了 Modal 控制器展示引导信息,你可以在 src/controllers 目录中找到其它控制器,配置参数可参考其源代码中的 defaults 对象内容。

发布

# 创建 beta 预发行版
npm run release-beta

# 发布测试版
npm publish --tag=beta

# 创建正式发行版
npm run release

# 发布正式版
npm publish

Readme

Keywords

Package Sidebar

Install

npm i gitee-intro

Weekly Downloads

12

Version

1.10.1

License

AGPL-3.0-or-later

Unpacked Size

1.71 MB

Total Files

26

Last publish

Collaborators

  • lc-soft