Comments (4)
其实heyui的栅格和其他的不太一样,能列举一下应用场景吗?
当时由于没有想到真实的应用场景,所以,就没有添加这种属性。
from heyui.
主要还是在布局场景,比如说需要以下的布局样式,
在目前的情况下,只能将中间的 Col宽度设为 14,然后再自己去处理这个 Col 内的元素,使其只占 14 cell 中的 4 cell,而我实际需要的只是 width=4,在这种情况下,可能会存在 与上一行对齐上的困扰,比如 4 / 14 不能整除,也无法通过固定的 px 等方式去处理。
from heyui.
补充说明一下,这个问题本来是在表单布局的时候遇到的。由于目前 form最多支持 3 列,遇到更多列的时候,只能改用 row 布局,但并非每行存在的列元素都一样多,需要控制位置时,就遇到了这个需求。
from heyui.
如果是这样的需求,我建议使用:
<Row>
<Col :width="6"></Col>
<Col :width="4"></Col>
<Col :width="10"></Col>
<Col :width="4"></Col>
</Row>
from heyui.
Related Issues (20)
- 范围日期如何必须选择两个日期 HOT 3
- tooltip 组件显示内容有问题
- 使用columns定义表格列后,请问如何可以加入操作列?
- [功能] 时间日期如果能做成滚动选择日期就好了
- 进度条可以考虑添加渐变支持吗 HOT 1
- [Tree] checkbox 节点勾选事件中携带本次操作节点信息和对应操作动作
- TextEllipsis使用before时多出一个空格
- 什么时候出vue3 HOT 1
- datepicker的一个小bug
- 询问textellipsis.vue的设计思路 HOT 2
- int validation message is using default locale
- color-picker监听input输入
- form 表单的元素大小 高度 比如select 高度自定义 HOT 1
- 支持不支持多级DropdownMenu呀?
- 按需加载支持国际化配置
- 有 v2.heyui.top 文档站的源码吗?
- Table的tr双击事件不起作用
- 还会更新吗!
- 表单支持大批量提交吗,大批量表单是否会卡顿
- 引入js和css方式为什么没有生效呢
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heyui.