mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-23 11:17:15 +08:00
update
This commit is contained in:
parent
a574cd9230
commit
7bfa9f0191
@ -78,6 +78,7 @@ FluContentPage{
|
||||
title: '姓名',
|
||||
dataIndex: 'name',
|
||||
width:100,
|
||||
minimumWidth:50
|
||||
|
||||
},
|
||||
{
|
||||
@ -85,7 +86,8 @@ FluContentPage{
|
||||
dataIndex: 'age',
|
||||
editDelegate:com_combobox,
|
||||
width:100,
|
||||
minimumWidth:100
|
||||
minimumWidth:100,
|
||||
maximumWidth: 100
|
||||
},
|
||||
{
|
||||
title: '住址',
|
||||
@ -95,7 +97,8 @@ FluContentPage{
|
||||
{
|
||||
title: '别名',
|
||||
dataIndex: 'nickname',
|
||||
width:100
|
||||
width:100,
|
||||
|
||||
}
|
||||
]
|
||||
}
|
||||
|
@ -71,7 +71,16 @@ Rectangle {
|
||||
columnWidthProvider: function(column) {
|
||||
let w = explicitColumnWidth(column)
|
||||
if (w >= 0){
|
||||
return Math.max(100, w)
|
||||
var minimumWidth = columnSource[column].minimumWidth
|
||||
var maximumWidth = columnSource[column].maximumWidth
|
||||
if(!minimumWidth){
|
||||
minimumWidth = 100
|
||||
}
|
||||
if(!maximumWidth){
|
||||
maximumWidth = 65535
|
||||
}
|
||||
|
||||
return Math.min(Math.max(minimumWidth, w),maximumWidth)
|
||||
}
|
||||
return implicitColumnWidth(column)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user