mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-02-23 13:31:06 +08:00
deps: hljs 11
This commit is contained in:
parent
17aa24cf88
commit
1024db26c3
@ -115,7 +115,7 @@
|
||||
"css-render": "^0.15.2",
|
||||
"date-fns": "^2.19.0",
|
||||
"evtd": "^0.2.2",
|
||||
"highlight.js": "^10.7.1",
|
||||
"highlight.js": "^11.0.1",
|
||||
"lodash": "^4.17.21",
|
||||
"lodash-es": "^4.17.21",
|
||||
"seemly": "^0.3.1",
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { inject, computed, ComputedRef } from 'vue'
|
||||
import type { highlight, getLanguage } from 'highlight.js'
|
||||
import type { HLJSApi } from 'highlight.js'
|
||||
import { configProviderInjectionKey } from '../config-provider/src/ConfigProvider'
|
||||
import { warn } from '../_utils'
|
||||
|
||||
@ -9,8 +9,8 @@ interface UseHljsProps {
|
||||
}
|
||||
|
||||
export interface Hljs {
|
||||
highlight: typeof highlight
|
||||
getLanguage: typeof getLanguage
|
||||
highlight: HLJSApi['highlight']
|
||||
getLanguage: HLJSApi['getLanguage']
|
||||
}
|
||||
export default function useHljs (
|
||||
props: UseHljsProps
|
||||
|
Loading…
Reference in New Issue
Block a user