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

在dialog中使用d2-crud的编辑,弹出来的新dialog被遮罩层挡住了 #85

Open
ghost opened this issue May 21, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented May 21, 2020

查看 element-ui 的说明,嵌套场景

对于确实需要嵌套 Dialog 的场景,我们提供了append-to-body属性。将内层 Dialog 的该属性设置为 true,它就会插入至 body 元素上,从而保证内外层 Dialog 和遮罩层级关系的正确。
但是在文档中无法找到插入口。使用 $refs 也未找到

<el-dialog
  title="自动回复模板设置"
  :visible.sync="dialogVisible"
  width="50%"
>
  <d2-crud
    ref="d2Crud"
    :columns="columns"
    :data="tableData"
     :options="options"
     :pagination="pagination"
    :index-row="indexRow"
    :row-handle="rowHandle"
    edit-title="修改模板"
    :edit-template="editTemplate"
    @dialog-open="dialogOpen"
    @row-edit="rowEdit"
    @dialog-cancel="dialogCancel"
    @row-remove="rowRemove"
  />
</el-dialog>
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

0 participants