added tour for SpiderList

This commit is contained in:
marvzhang
2020-01-29 13:06:54 +08:00
parent fd256cd9d9
commit ccff9127f7
4 changed files with 67 additions and 6 deletions

View File

@@ -1,3 +1,5 @@
import i18n from '../i18n'
export default {
isFinishedTour: (tourName) => {
if (!localStorage.getItem('tour')) {
@@ -24,5 +26,14 @@ export default {
}
data[tourName] = 1
localStorage.setItem('tour', JSON.stringify(data))
},
options: {
labels: {
buttonSkip: i18n.t('Skip'),
buttonPrevious: i18n.t('Previous'),
buttonNext: i18n.t('Next'),
buttonStop: i18n.t('Finish')
},
highlight: true
}
}