fix
This commit is contained in:
		
							parent
							
								
									867d415fea
								
							
						
					
					
						commit
						42170052ec
					
				| @ -10,23 +10,20 @@ import iniHljs from 'highlight.js/lib/languages/ini'; | |||||||
| import markdownHljs from 'highlight.js/lib/languages/markdown'; | import markdownHljs from 'highlight.js/lib/languages/markdown'; | ||||||
| import { useCopy } from '@/composable/copy'; | import { useCopy } from '@/composable/copy'; | ||||||
| 
 | 
 | ||||||
| const { t } = useI18n(); | const props = defineProps<{ | ||||||
| // eslint-disable-next-line vue/define-macros-order |  | ||||||
| const props = withDefaults( |  | ||||||
|   defineProps<{ |  | ||||||
|   value: string |   value: string | ||||||
|   followHeightOf?: HTMLElement | null |   followHeightOf?: HTMLElement | null | ||||||
|   language?: string |   language?: string | ||||||
|   copyPlacement?: 'top-right' | 'bottom-right' | 'outside' | 'none' |   copyPlacement?: 'top-right' | 'bottom-right' | 'outside' | 'none' | ||||||
|   copyMessage?: string |   copyMessage?: string | ||||||
|   }>(), | }>(); | ||||||
|   { | const { t } = useI18n(); | ||||||
|  | const defaultProps = withDefaults(props, { | ||||||
|   followHeightOf: null, |   followHeightOf: null, | ||||||
|   language: 'txt', |   language: 'txt', | ||||||
|   copyPlacement: 'top-right', |   copyPlacement: 'top-right', | ||||||
|   copyMessage: t('copyClipboard.tooltip'), |   copyMessage: t('copyClipboard.tooltip'), | ||||||
|   }, | }); | ||||||
| ); |  | ||||||
| 
 | 
 | ||||||
| hljs.registerLanguage('sql', sqlHljs); | hljs.registerLanguage('sql', sqlHljs); | ||||||
| hljs.registerLanguage('json', jsonHljs); | hljs.registerLanguage('json', jsonHljs); | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user