Comments (2)
我就直接中文回复了
我不能根据你的代码确定原因,但看样子你的业务有对codemirror 组件的隐藏显示操作,如果是这样,那么这个 bug 是来自 官方codemirror的问题,可以直接试一下官方的也有这个问题。
我的解决方案是在外层加一个 v-if, 用 settimeout 200ms就可以了。之后我在看看可不可以直接在codemirror-editor-vue3解决。
from codemirror-editor-vue3.
是我这边隐藏的问题,我尝试修改一下
from codemirror-editor-vue3.
Related Issues (20)
- type define error ts定义错误 HOT 2
- Why deafult height 200? HOT 2
- replaceSelection() 插入数据有具体的使用方式吗 HOT 4
- 请问大佬vue的模板如何支持语法高亮,现在的语言包语法高亮总是不对 HOT 3
- 编辑器提示功能配置设置问题 HOT 1
- 请问是否支持高亮某个关键字或支持v-html HOT 1
- when delete all code, change emits not correct, HOT 5
- Can't resolve 'codemirror/mode/javascript/javascript.js' HOT 1
- 火狐浏览器兼容问题 HOT 1
- 关于placeholder失效问题 HOT 1
- 请问能支持java代码编写吗 HOT 2
- 根据示例编引入组件提示Missing "./mode/javascript/javascript.js" export in "codemirror" package HOT 5
- 编辑器代码内容无法高亮,已引入相关js HOT 5
- 运行官网ts setup示例报错 HOT 2
- Failure when trying to pass tests with vitest in vue 3 project HOT 1
- Focus the editor HOT 2
- 使用WebStorm/IDEA生成的Vite+TS工程不支持语法高亮 HOT 4
- change event is not triggered HOT 2
- 2.3.1 is broken HOT 4
- 发现好多codemirror的属性都没有 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codemirror-editor-vue3.