imzbf / md-editor-v3

Markdown editor for vue3, developed in jsx and typescript, dark theme、beautify content by prettier、render articles directly、paste or clip the picture and upload it...
https://imzbf.github.io/md-editor-v3
MIT License
1.51k stars 145 forks source link

MdEditor组件数据回显响应式不支持嘛? #625

Closed linyuanjie closed 1 month ago

linyuanjie commented 1 month ago

Describe the issue

数据保存数据库,查询回显二次编辑再保存,发现查询到的数据回显组件不显示,不是双向绑定嘛? 需要怎么处理,回显数据如图中赋值后,在组件buxians不显示, image

Procedure version

"md-editor-v3": "^4.18.0",

Reproduction link

No response

imzbf commented 1 month ago

是响应式的,你需要确定你的内容是否正确

linyuanjie commented 1 month ago

是响应式的,你需要确定你的内容是否正确

返回内容是这样的,应该是正确的。 markDownCn : "# Hello Start Editor" 现在在组件上面就是不显示,这个内容是我保存的时候传给后端得。

linyuanjie commented 1 month ago

这应该是有值的吧, image

linyuanjie commented 1 month ago

找到问题了,得MDvalue.value才行,感谢感谢