Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个带有列的gridview。这里的例子:
{ xtype: 'gridcolumn', header: '№', dataIndex: 'number' },
有没有办法按内容自动调整列大小?
谢谢!
是的,只需使用 flex 属性。
例子:
column1 flex: 1 column2: flex: 1 |-----Column 1-----|-----Column 2-----| column1 flex: 2 column2: flex: 1 |--------Column 1--------|--Column 2--|