Skip to content

Commit fc70c45

Browse files
authored
Update CodeView.vue
1 parent 4535538 commit fc70c45

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

CodeView.vue

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
<script setup>
2-
import CodeHighlight from '@/components/CodeHighlight.vue';
2+
import CodeHighlight from '@/components/utils/CodeHighlight/CodeHighlight.vue'
3+
import CodeHighlightMini from '@/components/utils/CodeHighlight/CodeHighlightMini.vue'
4+
import TopMenu from '@/views/page/menu/TopMenu.vue'
35
46
const code = `<?php
57
@@ -51,8 +53,13 @@ class User extends Authenticatable
5153
`
5254
</script>
5355

54-
<template>
55-
<div class="section">
56-
<CodeHighlight lang="php" :code="code"/>
57-
</div>
56+
<template>
57+
<TopMenu />
58+
<div class="section">
59+
<CodeHighlightMini lang="php" :code="code" />
60+
61+
<CodeHighlight lang="php" :code="code" filename="App\Models\User.php" />
62+
63+
<!-- <CodeHighlight lang="php" :code="code" theme="dark-theme" filename="App\Models\User.php" /> -->
64+
</div>
5865
</template>

0 commit comments

Comments
 (0)