mirror of
https://github.com/em-squared/5e-drs.git
synced 2025-10-30 13:14:20 +00:00
ajout d'un range slider pour filter les monstres par ID
This commit is contained in:
parent
3efc2aaaf5
commit
eebf902641
6 changed files with 58 additions and 3 deletions
|
|
@ -5,6 +5,7 @@ export default {
|
|||
|
||||
state: {
|
||||
search: '',
|
||||
challengeRange: [0, 30],
|
||||
types: [
|
||||
{ label: "Aberration", value: false },
|
||||
{ label: "Bête", value: false },
|
||||
|
|
@ -117,6 +118,12 @@ export default {
|
|||
resetSearch: (state) => {
|
||||
state.search = ''
|
||||
},
|
||||
setChallengeRange: (state, payload) => {
|
||||
state.challengeRange = payload
|
||||
},
|
||||
resetChallengeRange: (state, payload) => {
|
||||
state.challengeRange = [0, 30]
|
||||
},
|
||||
setTypes: (state, payload) => {
|
||||
state.types = payload
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue