Giter VIP home page Giter VIP logo

Comments (9)

rennzhang avatar rennzhang commented on May 28, 2024

codemirror的版本多少,尝试安装一下这个包看看能不能解决

最好提供一个可复现的demo

from codemirror-editor-vue3.

laowangdefangjian avatar laowangdefangjian commented on May 28, 2024

版本号:"codemirror-editor-vue3": "^2.0.6"
vue版本号:"vue": "^3.2.13"

from codemirror-editor-vue3.

laowangdefangjian avatar laowangdefangjian commented on May 28, 2024

您好,您的意思是用codemirror最新版,codemirror-editor-vue3这个包不建议使用吗

from codemirror-editor-vue3.

laowangdefangjian avatar laowangdefangjian commented on May 28, 2024

您好,我换了codemirror最新版本,可以使用了,另外有一个源码的报错,我设置了markText的replacedWith之后,删除和获取焦点都报错Uncaught TypeError: Cannot read properties of undefined (reading 'map'),在(codemirror.js?0eda:2412:1)里,网上没有查到相关的错误信息,不知道是不是vue3导致的,如果您方便的话帮我解答一下,着急,谢谢

from codemirror-editor-vue3.

laowangdefangjian avatar laowangdefangjian commented on May 28, 2024

您好,已解决,是vue3版本问题,在声明codeMirroi处加上vue3的markRaw,让数据不被追踪就不报错了,谢谢

from codemirror-editor-vue3.

rennzhang avatar rennzhang commented on May 28, 2024

您好,您的意思是用codemirror最新版,codemirror-editor-vue3这个包不建议使用吗

当然不是,这个包依赖于codemirror

from codemirror-editor-vue3.

rennzhang avatar rennzhang commented on May 28, 2024

你直接使用codemirror当然是可以的, 这个包只是基于codemirror做的二次封装

from codemirror-editor-vue3.

laowangdefangjian avatar laowangdefangjian commented on May 28, 2024

那codemirror-editor-vue3这个包确实存在以上问题

from codemirror-editor-vue3.

rennzhang avatar rennzhang commented on May 28, 2024

请提供一个可复现此bug的demo,否则无法定位问题。

新建github仓库或者codesanbox都可以。

from codemirror-editor-vue3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.