0.1.3 • Published 3 years ago

@aligov/guide v0.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

政务新手引导方案

@aligov/guide

仅需包裹一下需要引导的JSX元素,即可快速实现新手引导

import GuideSDK, { GuideWrapper } from '@aligov/guide';

GuideWrapper 参数

参数名说明必填类型
guideCode引导的编码(同时有多个引导时的唯一标识string
info引导信息{ title:string; description: { text:string; img:string}([]{ text:string; img:string}) }

GuideSDK 方法

方法名说明
getGuideInstance(guideCode)获取引导实例

GuideInstance 方法

const guideInstance = GuideSDK.getGuideInstance('guidecode')

方法名说明
startGuideFlow()开启引导流程
onGuideEnd提供重写方式,引导结束时调用
0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago