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

element UI 兼容问题 #45

Closed
EverCurse opened this issue Nov 7, 2017 · 5 comments
Closed

element UI 兼容问题 #45

EverCurse opened this issue Nov 7, 2017 · 5 comments

Comments

@EverCurse
Copy link

在elementui中使用dialog显示code mirror,
总要点击面板code mirror才能显示最新的文本
于是想到了auto fucus,但是时而生效 时而不生效
不知道这是不是兼容性问题

<!-- 查看脚本dialog --> <el-dialog :visible.sync="view_sql_ctrl" :modal="false" size="large"> <div class="codemirror"> <codemirror :options="createScriptOptions" v-model="sql_detail"></codemirror> </div> </el-dialog>

@surmon-china
Copy link
Owner

surmon-china commented Nov 7, 2017

尝试这样:

<!-- 查看脚本dialog -->
<el-dialog :visible.sync="view_sql_ctrl" :modal="false" size="large">
  <div class="codemirror">
    <codemirror v-if="view_sql_ctrl" :options="createScriptOptions" v-model="sql_detail"></codemirror>
  </div>
</el-dialog>

@EverCurse
Copy link
Author

@surmon-china thx 已解决

@wl05
Copy link

wl05 commented Nov 26, 2018

怎么解决的啊

@sunsmeil
Copy link

同问

@songlin51
Copy link

加个 v-if 判断下就可以了

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

5 participants