feat: reactive codemirror theme

This commit is contained in:
liyasthomas
2021-09-07 12:14:13 +05:30
parent 2f8aa79ec1
commit 602aabdeb8
3 changed files with 50 additions and 26 deletions

View File

@@ -13,12 +13,13 @@ const props = withDefaults(
defineProps<{
value: string
mode: string
placeholder: string
placeholder?: string
wrap: boolean
linter: LinterDefinition | null
}>(),
{
linter: null as any,
placeholder: "",
}
)
@@ -45,18 +46,3 @@ useCodemirror(editor, value, {
linter: props.linter,
})
</script>
<style lang="scss" scoped>
.CodeMirror {
@apply block;
@apply border-b;
@apply border-dividerLight;
@apply w-full;
@apply h-auto;
@apply font-mono;
}
.CodeMirror-scroll {
@apply min-h-32;
}
</style>