1
0
Fork 0
mirror of https://github.com/em-squared/5e-drs.git synced 2025-10-31 05:24:20 +00:00

tooltips pour les états préjudiciables

This commit is contained in:
Maxime Moraine 2021-03-12 19:28:30 +01:00
parent 7c23239138
commit b508862c9b
8 changed files with 156 additions and 4 deletions

View file

@ -23,6 +23,7 @@
<script>
import {displayItemMeta} from '@theme/util/magicItemHelpers'
import MarkdownIt from 'markdown-it'
import { handleTooltips } from '@theme/util'
export default {
name: 'MagicItem',
@ -39,6 +40,17 @@ export default {
displayItemMeta () {
return displayItemMeta(this.magicItem.frontmatter)
}
},
mounted () {
setTimeout(function () {
handleTooltips()
}, 100);
this.$router.afterEach(() => {
setTimeout(function () {
handleTooltips()
}, 100)
})
}
}
</script>

View file

@ -168,6 +168,8 @@ import {
displayMonsterTypeSizeAlignment
} from '@theme/util/monsterHelpers'
import { handleTooltips } from '@theme/util'
import {stats} from '../../data/stats.js'
import {armorTypes} from '../../data/armorTypes.js'
import MarkdownIt from 'markdown-it'
@ -508,6 +510,14 @@ export default {
mounted () {
//console.log(this.$page)
setTimeout(function () {
handleTooltips()
}, 100);
this.$router.afterEach(() => {
setTimeout(function () {
handleTooltips()
}, 100)
})
}
}
</script>

View file

@ -7,9 +7,20 @@
</template>
<script>
import { handleTooltips } from '@theme/util'
export default {
name: 'Page',
components: { }
components: { },
mounted () {
setTimeout(function () {
handleTooltips()
}, 100);
this.$router.afterEach(() => {
setTimeout(function () {
handleTooltips()
}, 100)
})
}
}
</script>

View file

@ -41,6 +41,7 @@
<script>
import { displaySchoolLevel } from '@theme/util/spellHelpers'
import MarkdownIt from 'markdown-it'
import { handleTooltips } from '@theme/util'
export default {
name: 'Spell',
@ -61,6 +62,14 @@ export default {
mounted () {
// console.log(this.spell)
setTimeout(function () {
handleTooltips()
}, 100);
this.$router.afterEach(() => {
setTimeout(function () {
handleTooltips()
}, 100)
})
}
}
</script>