Fixed tree search input missing types
This commit is contained in:
@@ -13,6 +13,16 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="js">
|
<script lang="js">
|
||||||
|
import PROPERTIES from '/imports/constants/PROPERTIES.js';
|
||||||
|
const filterOptions = [];
|
||||||
|
for (let key in PROPERTIES) {
|
||||||
|
if (key === 'reference') continue;
|
||||||
|
filterOptions.push({
|
||||||
|
text: PROPERTIES[key].name,
|
||||||
|
value: key,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
value: {
|
value: {
|
||||||
@@ -22,27 +32,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data(){return {
|
data(){return {
|
||||||
filterTerms: [],
|
filterTerms: [],
|
||||||
filterOptions: [
|
filterOptions,
|
||||||
{text: 'Actions', value: 'action'},
|
|
||||||
{text: 'Attacks', value: 'attack'},
|
|
||||||
{text: 'Attributes', value: 'attribute'},
|
|
||||||
{text: 'Buffs', value: 'buff'},
|
|
||||||
{text: 'Class Levels', value: 'classLevel'},
|
|
||||||
{text: 'Damage Multipliers', value: 'damageMultiplier'},
|
|
||||||
{text: 'Effects', value: 'effect'},
|
|
||||||
{text: 'Experiences', value: 'experience'},
|
|
||||||
{text: 'Features', value: 'feature'},
|
|
||||||
{text: 'Folders', value: 'folder'},
|
|
||||||
{text: 'Notes', value: 'note'},
|
|
||||||
{text: 'Proficiencies', value: 'proficiency'},
|
|
||||||
{text: 'Rolls', value: 'roll'},
|
|
||||||
{text: 'Saving Throws', value: 'savingThrow'},
|
|
||||||
{text: 'Skills', value: 'skill'},
|
|
||||||
{text: 'Spell Lists', value: 'spellList'},
|
|
||||||
{text: 'Spells', value: 'spell'},
|
|
||||||
{text: 'Containers', value: 'container'},
|
|
||||||
{text: 'Items', value: 'item'},
|
|
||||||
],
|
|
||||||
}},
|
}},
|
||||||
computed: {
|
computed: {
|
||||||
filter(){
|
filter(){
|
||||||
|
|||||||
@@ -1,3 +1,7 @@
|
|||||||
|
.markdown {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.markdown h1,
|
.markdown h1,
|
||||||
.markdown h2,
|
.markdown h2,
|
||||||
.markdown h3,
|
.markdown h3,
|
||||||
|
|||||||
Reference in New Issue
Block a user