Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

defaultOpen="preview" 无效 #256

Closed
ivan-lee opened this issue Jun 6, 2018 · 2 comments
Closed

defaultOpen="preview" 无效 #256

ivan-lee opened this issue Jun 6, 2018 · 2 comments

Comments

@ivan-lee
Copy link

ivan-lee commented Jun 6, 2018

您好,我在使用mavonEditor的时候想要设置为仅展现的效果,设置了如下三个属性
:subfield=“false" :toolbarsFlag="false" :defaultOpen=“preview"
但是页面展示还是markdown文件
报错如下:
[Vue warn]: Property or method "preview" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

found in
麻烦您解答下这是什么问题造成的,谢谢!

@hinesboy
Copy link
Owner

hinesboy commented Jun 6, 2018

你好,正确的写法应该是

:subfield=“false" :toolbarsFlag="false" defaultOpen=“preview"

如果你使用的是 :defaultOpen=“preview" 的话 此时 preview 指的不是字符串,而是一个变量

@hinesboy hinesboy closed this as completed Jun 6, 2018
@ivan-lee
Copy link
Author

ivan-lee commented Jun 8, 2018

非常感谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants