mirror of
https://github.com/em-squared/5e-drs.git
synced 2025-10-29 20:54:19 +00:00
les sorts/monstres/objets magiques sont visibles directement depuis les listes d'un simple clic
This commit is contained in:
parent
65fa675c6f
commit
2a3f9b153a
8 changed files with 80 additions and 16 deletions
|
|
@ -25,8 +25,16 @@
|
|||
:page.sync="page"
|
||||
@page-count="pageCount = $event"
|
||||
hide-default-footer
|
||||
show-expand
|
||||
@click:row="onClickRow"
|
||||
>
|
||||
|
||||
<template v-slot:expanded-item="{ headers, item }">
|
||||
<td :colspan="headers.length" class="pa-4">
|
||||
<Spell :spell="item" />
|
||||
</td>
|
||||
</template>
|
||||
|
||||
<template v-slot:item.isInSpellBook="{ item }">
|
||||
<v-simple-checkbox off-icon="mdi-bookmark-outline" on-icon="mdi-bookmark" @input="toggleSpellInSpellBook(item)" :value="isSpellInSpellBook(item)"></v-simple-checkbox>
|
||||
</template>
|
||||
|
|
@ -77,9 +85,10 @@
|
|||
import { mapState } from 'vuex'
|
||||
import Breadcrumb from '@theme/components/Breadcrumb'
|
||||
import { setUrlParams, getUrlParameter } from '@theme/util/filterHelpers'
|
||||
import Spell from '@theme/components/Spell'
|
||||
|
||||
export default {
|
||||
components: { Breadcrumb },
|
||||
components: { Breadcrumb, Spell },
|
||||
|
||||
data () {
|
||||
return {
|
||||
|
|
@ -232,6 +241,10 @@ export default {
|
|||
changePage (page) {
|
||||
console.log(page)
|
||||
setUrlParams("page", [page])
|
||||
},
|
||||
|
||||
onClickRow (row, item) {
|
||||
item.expand(!item.isExpanded)
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue