15
15
<v-row >
16
16
<v-col cols =" 12" >
17
17
<CodeBlock
18
- :code =" usageIndividual "
18
+ :code =" usageGlobal "
19
19
:highlightjs =" codeBlockSettings.plugin === 'highlightjs'"
20
- label =" Load individual components "
20
+ label =" Global registration "
21
21
lang =" javascript"
22
22
:prismjs =" codeBlockSettings.plugin === 'prismjs'"
23
23
:theme =" codeBlockSettings.theme"
24
24
>
25
25
</CodeBlock >
26
26
</v-col >
27
27
</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 >
28
42
</v-col >
29
43
</v-row >
30
44
</template >
@@ -43,13 +57,23 @@ const props = defineProps({
43
57
const codeBlockSettings = computed (() => props .codeBlockOptions );
44
58
const classes = inject (' classes' );
45
59
46
- const usageIndividual = ` import { createApp } from 'vue';
60
+ const usageGlobal = ` import { createApp } from 'vue';
47
61
import App from './App.vue';
48
- import { VColorField } from 'vuetify-color-field';
62
+ import { VColorField } from '@wdns/ vuetify-color-field';
49
63
50
64
const app = createApp(App);
51
65
52
66
app.component('VColorField', VColorField);
53
67
54
68
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\> ` ;
55
79
</script >
0 commit comments