surmon-china/vue-codemirror

Vue 3 support

Yakoot opened this issue · 10 comments

are you planning to support vue 3?

Mvsvh commented

+1

+1,+1 AAAAAAAAAnd +1!!!

It seems vue-codemirror is very close to Vue3 compliant.
I found 3 things needed to be done to make it work:

  1. remove content, codemirror and cmintance from data
  2. change beforeDestroy => beforeUnmount
  3. Handle typescript errors
    E.g. by ignoring (not the best option / but the simple one)
//@ts-ignore
import { codemirror } from "vue-codemirror";

什么时候能支持一下呢