From 3d69cfe9b746aa3fd9f5d2b079bf23ff113b2bcf Mon Sep 17 00:00:00 2001 From: sunhao Date: Thu, 22 Aug 2024 17:02:00 +0800 Subject: [PATCH] * [refac]. --- module/tutorial/js/index.ui.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/module/tutorial/js/index.ui.js b/module/tutorial/js/index.ui.js index 2b1693cad5..8c39da9043 100644 --- a/module/tutorial/js/index.ui.js +++ b/module/tutorial/js/index.ui.js @@ -55,7 +55,7 @@ const stepPresenters = const scope = getStepScope(step); const $menuNav = scope.$('#menuNav'); - if(!$menuNav.data('checkOpenAppStep')) + if(!$menuNav.data('tutorial.checkOpenAppStep')) { const checkOpenAppStep = (event, info) => { @@ -65,7 +65,7 @@ const stepPresenters = }; scope.$(scope).on('resize', checkOpenAppStep); scope.$('#menuMoreBtn').on('shown', checkOpenAppStep); - $menuNav.data('checkOpenAppStep', true); + $menuNav.data('tutorial.checkOpenAppStep', true); } const $menuMainNav = $menuNav.find('#menuMainNav'); @@ -145,9 +145,9 @@ const stepPresenters = if(!$table.length) console.error(`[TUTORIAL] Cannot find table for step "${step.guide.name} > ${step.task.name} > ${step.title}"`, step); step.$table = $table; - if(!$table.data('selectRowBinding')) + if(!$table.data('tutorial.selectRowBinding')) { - $table.data('selectRowBinding', true); + $table.data('tutorial.selectRowBinding', true); const dtable = $table.zui('dtable'); dtable.setOptions({onCheckChange: function() { @@ -292,8 +292,8 @@ function highlightStepTarget($target, step, popoverOptions) $target.scrollIntoView(); const $doc = scope.$(scope.document); - if($doc.data('tutorialCheckBinding')) return; - $doc.data('tutorialCheckBinding', true).on('click change', '[zui-tutorial-step]', function(event, info) + if($doc.data('tutorial.checkBinding')) return; + $doc.data('tutorial.checkBinding', true).on('click change', '[zui-tutorial-step]', function(event, info) { if(!currentStep || currentStep.checkType !== event.type) return;