mirror of
https://github.com/em-squared/5e-drs.git
synced 2025-10-30 05:04:21 +00:00
liste des sorts
This commit is contained in:
parent
f3643e6eaf
commit
b1b97a01e9
373 changed files with 9259 additions and 34 deletions
54
docs/.vuepress/theme/global-components/RT.vue
Normal file
54
docs/.vuepress/theme/global-components/RT.vue
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
<template>
|
||||
<span>
|
||||
<template v-if="tooltipObject">
|
||||
<router-link :to="{ path: tooltipObject.basePath + '#' + tooltipObject.id }">
|
||||
<v-tooltip content-class="condition-tooltip-container" top>
|
||||
<template v-slot:activator="{ on }">
|
||||
<em v-on="on">{{ l }}</em>
|
||||
</template>
|
||||
<div class="condition-tooltip">
|
||||
<p class="condition-tooltip-title"><strong>{{ tooltipObject.title }}</strong></p>
|
||||
<ul class="condition-description"><li v-for="d in tooltipObject.description" v-html="d"></li></ul>
|
||||
</div>
|
||||
</v-tooltip>
|
||||
</router-link>
|
||||
</template>
|
||||
<template v-else><em>{{ l }}</em></template>
|
||||
</span>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
/*
|
||||
** Condition tooltip
|
||||
*/
|
||||
import {displaySchoolLevel} from '@theme/util/spellHelpers'
|
||||
import {tooltips} from '../../data/ruleTooltips.js'
|
||||
|
||||
export default {
|
||||
name: 'RuleTooltip',
|
||||
|
||||
props: [
|
||||
'l', // label
|
||||
't' // condition
|
||||
],
|
||||
|
||||
data () {
|
||||
return {
|
||||
tooltipObject: null,
|
||||
tooltips: tooltips
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
|
||||
},
|
||||
|
||||
mounted () {
|
||||
this.tooltipObject = this.tooltips[this.t]
|
||||
console.log(this.tooltipObject)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
</style>
|
||||
Loading…
Add table
Add a link
Reference in a new issue