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-col #654

Open
gaylen1 opened this issue Nov 22, 2023 · 5 comments
Open

希望新增配置去掉单行外层el-col #654

gaylen1 opened this issue Nov 22, 2023 · 5 comments

Comments

@gaylen1
Copy link

gaylen1 commented Nov 22, 2023

版本号 (version) 
例如: @form-create/[email protected]

element-plus
例如: 2.3.14

问题描述 (Issue)

使用栅格布局。假如:一行四列的情况下,放大缩小都是按照百分比放大缩小,在放大缩小时栅格里面的input宽度也会跟着变。这个时候我希望自定义内联布局,在不改变input宽度的情况下自动换行,而不是等比例缩放。

期望的结果 (Desired outcome)

在一些小屏幕下希望不改变元素的宽度实现自动换行

@xaboy
Copy link
Owner

xaboy commented Jan 2, 2024

可以提供一下测试的规则吗?
可以通过规则设置不生成col组件

{type:'input',col:false}

@gaylen1
Copy link
Author

gaylen1 commented Jan 3, 2024

规则跟你这个差不多的。

@gaylen1
Copy link
Author

gaylen1 commented Jan 4, 2024

设置规则col:false外层el-col还是存在,可以在这个列子上查看dom元素https://stackblitz.com/edit/vitejs-vite-ys2weq?file=src%2FApp.vue

image

@xaboy
Copy link
Owner

xaboy commented Mar 29, 2024

搞错了,应该是{type:'input',col:{show: false}}

@gaylen1
Copy link
Author

gaylen1 commented Apr 2, 2024

谢谢!问题已经解决。

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