mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-30 12:52:43 +08:00
docs(code): change import hljs example to javascript lang (#1079)
This commit is contained in:
parent
57f68cd4f9
commit
fc2fb773b3
@ -18,9 +18,9 @@ The following code shows how to set hljs of Code. Importing highlight.js on dema
|
||||
<script>
|
||||
import { defineComponent } from 'vue'
|
||||
import hljs from 'highlight.js/lib/core'
|
||||
import cpp from 'highlight.js/lib/languages/cpp'
|
||||
import javascript from 'highlight.js/lib/languages/javascript'
|
||||
|
||||
hljs.registerLanguage('cpp', cpp)
|
||||
hljs.registerLanguage('javascript', javascript)
|
||||
|
||||
export default defineComponent({
|
||||
setup() {
|
||||
|
@ -18,9 +18,9 @@
|
||||
<script>
|
||||
import { defineComponent } from 'vue'
|
||||
import hljs from 'highlight.js/lib/core'
|
||||
import cpp from 'highlight.js/lib/languages/cpp'
|
||||
import javascript from 'highlight.js/lib/languages/javascript'
|
||||
|
||||
hljs.registerLanguage('cpp', cpp)
|
||||
hljs.registerLanguage('javascript', javascript)
|
||||
|
||||
export default defineComponent({
|
||||
setup() {
|
||||
|
Loading…
Reference in New Issue
Block a user