Open thisVioletHydra opened 1 year ago
There is no prop definition called options
in vue-codemirror6.
It seems that there is no special usage, so I think it will work with the following code.
<script setup lang="ts">
import { ref, type Ref } from 'vue';
import CodeMirror from 'vue-codemirror6';
import { markdown as md } from '@codemirror/lang-markdown';
import { oneDark } from '@codemirror/theme-one-dark';
console.log(`[LOG] oneDark`, `<${typeof oneDark}>`, oneDark);
const value: Ref<string> = ref(`
adw
da
widthwad
awda
widthawd
awdawdawdwd
`);
/** Dark mode **/
const dark: Ref<boolean> = ref(window.matchMedia('(prefers-color-scheme: dark)').matches);
</script>
<template>
<code-mirror
v-model="value"
basic
wrap
tab
:dark="dark"
:lang="md()"
:theme="oneDark"
/>
</template>
thanks i will check later
Describe the bug
Hi, I did everything according to the guide, as a result, nothing works. no code highlighting there is nothing Even the out of the box option doesn't work.
Reproduction
System Info
Used Package Manager
yarn