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

希望能对新增弹框el-dialog,设置element-ui的属性Attributes #149

Closed
wuyanping opened this issue Jun 26, 2019 · 7 comments
Closed

Comments

@wuyanping
Copy link

wuyanping commented Jun 26, 2019

No description provided.

@wuyanping
Copy link
Author

需要这个功能的场景:目前el-data-table的弹框都是点击蒙层就能关闭了,但是我想点击蒙层,不关闭;element-ui的el-dialog提供了这个属性,是否能提供一个属性来设置el-data-table的弹框

@donaldshen
Copy link
Contributor

感觉有必要重新梳理el-data-table组件内部的模块,让用户可以简单直接地对原生element组件设置属性和监听事件。

  1. 目前大致有四个组件:search-form, table, paginationdialog
  2. 增加八个props:searchFormProps, searchFormListeners, tableProps, ……
  3. search-form的两个新增props举例,searchFormProps会直接v-bindsearch-form的根节点上,searchFormListeners会直接v-onsearch-form的根节点上

@wuyanping
Copy link
Author

这个方案需要多久可以完成呢?

@levy9527
Copy link
Contributor

这个可能是在2.0版本去实现,需要规划下🤔

@donaldshen
Copy link
Contributor

this.$refs.dataTable.$children.find(c=>c.$options._componentTag==='el-dialog').closeOnClickModal=false
这种方式可以用

@levy9527 levy9527 added the delay in the plan, but don't know when to do it label Jul 3, 2019
@donaldshen
Copy link
Contributor

same as #130

@levy9527 levy9527 removed the delay in the plan, but don't know when to do it label Aug 21, 2019
@levy9527
Copy link
Contributor

see #201 代码已合并。新版本即可使用,请留意发版本通知

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

3 participants