Add case doc
parent
bedb067e4e
commit
b5a7675978
|
@ -0,0 +1,39 @@
|
||||||
|
<template>
|
||||||
|
<DocSectionText v-bind="$attrs">
|
||||||
|
<p>
|
||||||
|
Tokens are described with the dot separator e.g. <i>primary.color</i>, <i>form.field.background</i> or <i>checkbox.icon.checked.color</i>. At preset configuration, camel case and object property are used when mapping the dot separator.
|
||||||
|
The following is an example from the checkbox component tokens to represent the <i>checkbox.icon.checked.color</i>, all alternatives have the same result.
|
||||||
|
</p>
|
||||||
|
</DocSectionText>
|
||||||
|
<DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
code: {
|
||||||
|
basic: `
|
||||||
|
export default {
|
||||||
|
iconCheckedColor: //...,
|
||||||
|
}
|
||||||
|
|
||||||
|
export default {
|
||||||
|
icon: {
|
||||||
|
checkedColor: //...
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default {
|
||||||
|
icon: {
|
||||||
|
checked: {
|
||||||
|
color: //...
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
|
@ -2,12 +2,14 @@
|
||||||
<DocSectionText v-bind="$attrs">
|
<DocSectionText v-bind="$attrs">
|
||||||
<p>Currently Aura is the only available preset and more will follow in the upcoming updates.</p>
|
<p>Currently Aura is the only available preset and more will follow in the upcoming updates.</p>
|
||||||
</DocSectionText>
|
</DocSectionText>
|
||||||
|
<div class="card">
|
||||||
<TabView>
|
<TabView>
|
||||||
<TabPanel header="Aura"><DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz /></TabPanel>
|
<TabPanel header="Aura"><DocSectionCode :code="code" hideToggleCode importCode hideStackBlitz /></TabPanel>
|
||||||
<TabPanel header="Lara">Under development.</TabPanel>
|
<TabPanel header="Lara">Under development.</TabPanel>
|
||||||
<TabPanel header="Nora">Under development.</TabPanel>
|
<TabPanel header="Nora">Under development.</TabPanel>
|
||||||
<TabPanel header="Material">Under development.</TabPanel>
|
<TabPanel header="Material">Under development.</TabPanel>
|
||||||
</TabView>
|
</TabView>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
<script>
|
<script>
|
||||||
import ArchitectureDoc from '@/doc/theming/styled/ArchitectureDoc.vue';
|
import ArchitectureDoc from '@/doc/theming/styled/ArchitectureDoc.vue';
|
||||||
import CSSModulesDoc from '@/doc/theming/styled/CSSModulesDoc.vue';
|
import CSSModulesDoc from '@/doc/theming/styled/CSSModulesDoc.vue';
|
||||||
|
import CaseStyleDoc from '@/doc/theming/styled/CaseStyleDoc.vue';
|
||||||
import ColorsDoc from '@/doc/theming/styled/ColorsDoc.vue';
|
import ColorsDoc from '@/doc/theming/styled/ColorsDoc.vue';
|
||||||
import DarkModeToggleDoc from '@/doc/theming/styled/DarkModeToggleDoc.vue';
|
import DarkModeToggleDoc from '@/doc/theming/styled/DarkModeToggleDoc.vue';
|
||||||
import PresetsDoc from '@/doc/theming/styled/PresetsDoc.vue';
|
import PresetsDoc from '@/doc/theming/styled/PresetsDoc.vue';
|
||||||
|
@ -75,6 +76,11 @@ export default {
|
||||||
label: 'Presets',
|
label: 'Presets',
|
||||||
component: PresetsDoc
|
component: PresetsDoc
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: 'casestyle',
|
||||||
|
label: 'Case Style',
|
||||||
|
component: CaseStyleDoc
|
||||||
|
},
|
||||||
{
|
{
|
||||||
id: 'customization',
|
id: 'customization',
|
||||||
label: 'Customization',
|
label: 'Customization',
|
||||||
|
|
Loading…
Reference in New Issue