当前位置:网站首页>Web page user step-by-step operation guide plug-in driver js
Web page user step-by-step operation guide plug-in driver js
2022-07-02 05:58:00 【Want to eat pineapple crisp】
driver.js It is a step-by-step guide operation for user operation on the web side , Users can be guided to operate on the whole page , Use this method to guide the user to operate after entering the page , So that users can get familiar with the system functions faster !
install
npm install driver.js
Use
stay main.ts Import and bind in
import {
createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// introduce
import Driver from 'driver.js'
import 'driver.js/dist/driver.min.css'
const app = createApp(App)
// binding
app.config.globalProperties.$driver = new Driver({
doneBtnText: ' complete ', // Text on the final button
closeBtnText: ' close ', // Text on the close button for this step
stageBackground: '#fff', // Background color for the staged behind highlighted element
nextBtnText: ' next step ', // Next button text for this step
prevBtnText: ' The previous step ', // Previous button text for this step
})
app.use(store)
app.use(router)
app.mount('#app')
Configure the boot node ( New file driver.ts)
export default [
{
element: '#userInfo',
popover: {
title: ' User information ',
description: ' Display the user name , sign out , Full screen operation , Skin changing operation ',
position: 'left',
}
},
{
element: '#grid',
popover: {
title: ' shrinkage , Bread crumbs ',
description: ' Click on the switch navigation bar , Crumb display ',
position: 'right',
}
},
{
element: '#tagGroup',
popover: {
title: 'tag label ',
description: ' Record the open page ',
position: 'bottom',
}
},
{
element: '#mainInfo',
popover: {
title: ' Content area ',
description: ' Display page content ',
position: 'left',
}
},
{
element: '#nav',
popover: {
title: ' Navigation area ',
description: ' Navigation function display ',
position: 'right',
}
},
]
Import the node configuration file in the page that needs to be booted
<script lang="ts">
import {
Options, Vue } from "vue-class-component";
import driverStep from "@/utils/driver";
@Options({
components: {
},
mounted() {
this.$driver.defineSteps(driverStep);
this.$driver.start();
},
})
export default class HomeView extends Vue {
}
</script>
driver.ts Inside id There should be ,json The order of data is the order of guidance
边栏推荐
- 5g market trend in 2020
- 神机百炼3.53-Kruskal
- 神机百炼3.52-Prim
- 神机百炼3.54-染色法判定二分图
- mysql事务和隔离级别
- Typora installation (no need to enter serial number)
- Linkage between esp8266 and stc8h8k single chip microcomputer - Weather Clock
- Generics and generic constraints of typescript
- Verifying downloaded files using sha256 files
- 492.构造矩形
猜你喜欢
3D printer G code command: complete list and tutorial
[golang syntax] be careful with the copy of slices
MySQL transaction and isolation level
神机百炼3.52-Prim
memcached安装
ES6的详细注解
Unity Shader 学习笔记(3)URP渲染管线带阴影PBR-Shader模板(ASE优化版本)
如何使用MITMPROXy
15 C language advanced dynamic memory management
all3dp. All Arduino projects in com website (2022.7.1)
随机推荐
15 C language advanced dynamic memory management
神机百炼3.54-染色法判定二分图
Pytorch Chinese document
Stc8h8k series assembly and C51 actual combat - serial port sending menu interface to select different functions
all3dp.com网站中全部Arduino项目(2022.7.1)
Redis Key-Value数据库 【高级】
如何写出好代码 — 防御式编程指南
页面打印插件print.js
Several keywords in C language
Error creating bean with name 'instanceoperatorclientimpl' defined in URL when Nacos starts
测试 - 用例篇
GRBL 软件:简单解释的基础知识
STC8H8K系列汇编和C51实战——数码管显示ADC、按键串口回复按键号与ADC数值
STC8H8K系列匯編和C51實戰——數碼管顯示ADC、按鍵串口回複按鍵號與ADC數值
数据挖掘方向研究生常用网站
php按照指定字符,获取字符串中的部分值,并重组剩余字符串为新的数组
keepalived安装使用与快速入门
ES6的详细注解
我所理解的DRM显示框架
MUI底部导航的样式修改