用户指引
This commit is contained in:
@@ -67,7 +67,7 @@ const driverObj__ = driver({
|
||||
// prevBtnText: '‹—',
|
||||
doneBtnText: '✕',
|
||||
onPopoverRender: (popover, options) => {//每个步骤的元素和所有信息
|
||||
// console.log(popover,options,element);
|
||||
console.log(popover,options,element);
|
||||
if(element){
|
||||
element.classList.remove('Guide_')
|
||||
}
|
||||
@@ -84,15 +84,17 @@ const driverObj__ = driver({
|
||||
// options.state.activeIndex >= 24 && options.state.activeIndex < 25 ||
|
||||
driverObj__.isLastStep()
|
||||
){
|
||||
console.log(driver);
|
||||
popover.footer.style.display = 'block'
|
||||
driver.classList.add('showEvents')
|
||||
popover.footerButtons.style.pointerEvents = 'auto';
|
||||
// driver.classList.add('showEvents')
|
||||
addDiv(options.state.activeElement)
|
||||
}else{
|
||||
popover.footer.style.display = 'none'
|
||||
removeDiv(options.state.activeElement)
|
||||
driver.classList.remove('showEvents')
|
||||
popover.footerButtons.style.pointerEvents = 'none';
|
||||
// driver.classList.remove('showEvents')
|
||||
}
|
||||
|
||||
// console.log(options.state.activeIndex);
|
||||
driverIndex__ = driverObj__.getState().activeIndex
|
||||
data = {
|
||||
@@ -177,12 +179,12 @@ const openGuide = () =>{
|
||||
driver:false,
|
||||
}
|
||||
}
|
||||
driverObj__.destroy();
|
||||
// driverObj__.drive();
|
||||
// driverObj__.destroy();
|
||||
driverObj__.drive();
|
||||
|
||||
data = {
|
||||
index:driverIndex__,
|
||||
driver:false,
|
||||
driver:true,
|
||||
}
|
||||
store = useStore()
|
||||
// driverObj__.moveTo(18);
|
||||
|
||||
Reference in New Issue
Block a user