forked from thomasbertet/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFaqView.vue
executable file
·57 lines (54 loc) · 3.11 KB
/
FaqView.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<template lang="pug">
doc-view#faq-view
v-layout(row wrap)
v-flex(xs12 sm8 md12)
section-def
dt(slot="title") Frequently asked questions
dd(slot="desc") Stuck on a particular problem? Check some of these common gotchas before creating a ticket. If you still cannot find what you are looking for, submit an <a href="https://github.com/vuetifyjs/vuetify/issues/new" target="_blank" rel="noopener">issue</a> on github or ask the community in <a href="https://chat.vuetifyjs.com" target="_blank" rel="noopener">discord</a>.
ad
section#frequently-asked-questions
v-expansion-panel(expand).mb-5
v-expansion-panel-content(v-for="(faq, i) in faqs" v-bind:key="i")
div(slot="header").pr-5
strong Question:
span(v-html="faq.q")
v-card
v-card-text
strong Answer:
div(v-html="faq.a")
div.text-xs-center
div.mb-3 Have something that you think belongs here?
v-btn(outline success round href="https://chat.vuetifyjs.com" target="_blank" rel="noopener") Let us know
</template>
<script>
export default {
data: () => ({
faqs: [
{
q: `The Dark or Light theme are not working.`,
a: `Vuetify requires a mounting point in order to perform tasks such as theme styling. Ensure that you have a <code>v-app</code> wrapping your application. In the event that this is not possible, for whatever reason, you can mimic its behavior by applying <strong>data-app</strong> and <strong>class="application application--light (or dark)</strong> to the highest element that you can within your application.`
},
{
q: `Menu/Dialog/Navigation drawer are not opening properly.`,
a: `Ensure that your components are wrapped with a <code>v-app</code> element. If you are using an element to activate the component that is not placed into the <kbd>activator</kbd> slot, ensure that you stop propagation of the click event. These components utilize the <code>v-outside-click</code> directive and will immediately close.`
},
{
q: `I'm using <code>@click</code> on a component and it is not invoking my method.`,
a: `When Vue 2 was released, it changed how events work on custom components. Native events, like click, hover were are longer explicitly available and must be bound with <code>@click.native</code>. <a href="https://vuejs.org/v2/guide/migration.html#Listening-for-Native-Events-on-Components-with-v-on-changed" target="_blank" rel="noopener">Reference</a>.`
},
{
q: `The scrollbar is showing even though my content is not overflowing verticall.`,
a: `Vuetify by default turns on the html scrollbar. This is a design choice and has been debated numerous times. There are pros and cons to having and not having it and as of now, the vote is in favor of leaving it as is.`
}
]
})
}
</script>
<style lang="stylus">
#faq-view
.expansion-panel__header
> div
overflow: hidden
text-overflow: ellipsis
white-space: nowrap
</style>