Skip to content

Commit be8ae27

Browse files
Update docs
1 parent ca12c21 commit be8ae27

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

src/documentation/sections/UsageSection.vue

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,30 @@
1515
<v-row>
1616
<v-col cols="12">
1717
<CodeBlock
18-
:code="usageIndividual"
18+
:code="usageGlobal"
1919
:highlightjs="codeBlockSettings.plugin === 'highlightjs'"
20-
label="Load individual components"
20+
label="Global registration"
2121
lang="javascript"
2222
:prismjs="codeBlockSettings.plugin === 'prismjs'"
2323
:theme="codeBlockSettings.theme"
2424
>
2525
</CodeBlock>
2626
</v-col>
2727
</v-row>
28+
29+
<v-row>
30+
<v-col cols="12">
31+
<CodeBlock
32+
:code="usageIndividual"
33+
:highlightjs="codeBlockSettings.plugin === 'highlightjs'"
34+
label="Local registration"
35+
lang="html"
36+
:prismjs="codeBlockSettings.plugin === 'prismjs'"
37+
:theme="codeBlockSettings.theme"
38+
>
39+
</CodeBlock>
40+
</v-col>
41+
</v-row>
2842
</v-col>
2943
</v-row>
3044
</template>
@@ -43,13 +57,23 @@ const props = defineProps({
4357
const codeBlockSettings = computed(() => props.codeBlockOptions);
4458
const classes = inject('classes');
4559
46-
const usageIndividual = `import { createApp } from 'vue';
60+
const usageGlobal = `import { createApp } from 'vue';
4761
import App from './App.vue';
48-
import { VColorField } from 'vuetify-color-field';
62+
import { VColorField } from '@wdns/vuetify-color-field';
4963
5064
const app = createApp(App);
5165
5266
app.component('VColorField', VColorField);
5367
5468
app.mount('#app');`;
69+
70+
const usageIndividual = `<template>
71+
<VColorField v-model="color" />
72+
</template>
73+
74+
\<script setup\>
75+
import { VColorField } from '@wdns/vuetify-color-field';
76+
77+
const color = ref(null);
78+
\</script\>`;
5579
</script>

0 commit comments

Comments
 (0)