mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-18 12:34:25 +08:00
doc(code): fix typo
This commit is contained in:
parent
755235d51e
commit
7c39efdb24
@ -12,7 +12,7 @@ The following code shows how to set hljs of Naive UI. Importing highlight.js on
|
||||
import Vue from 'vue'
|
||||
import NaiveUI from 'naive-ui'
|
||||
import hljs from 'highlight.js/lib/highlight'
|
||||
import javascript from 'highlight.js/lib/languages/javascript'
|
||||
import cpp from 'highlight.js/lib/languages/cpp'
|
||||
|
||||
hljs.registerLanguage('cpp', cpp)
|
||||
Vue.use(NaiveUI)
|
||||
|
Loading…
Reference in New Issue
Block a user