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-form-render 组件的 prop #130

Closed
xrr2016 opened this issue Jun 14, 2019 · 1 comment
Closed

[功能问题] 如何设置内置的 el-form-render 组件的 prop #130

xrr2016 opened this issue Jun 14, 2019 · 1 comment

Comments

@xrr2016
Copy link
Contributor

xrr2016 commented Jun 14, 2019

目前直接使用 el-data-table 无法向内部的 el-form-render 传递属性,导致无法设置 el-form 的属性。

期望有一个属性可以设置 el-form 的属性,比如 renderAttrs

image

@donaldshen
Copy link
Contributor

可以的。你拿到el-data-table的引用dataTable后,只需dataTable.$refs.searchForm.labelWidth='100px'。任何prop都可以如此处理

@levy9527 levy9527 pinned this issue Sep 12, 2019
@levy9527 levy9527 changed the title 需要添加一个设置 el-form-render 组件的 prop [功能问题] 如何设置内置的 el-form-render 组件的 prop Sep 12, 2019
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