mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 11:58:10 +08:00
支持 auto样式
This commit is contained in:
parent
e3d503fc5f
commit
26f42b5a06
@ -14,6 +14,12 @@
|
||||
flex-grow: unset;
|
||||
flex-basis: unset;
|
||||
}
|
||||
|
||||
&--auto {
|
||||
flex: 0 0 auto;
|
||||
width: auto;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
&.#{$ns}Hbox--xs {
|
||||
|
@ -137,7 +137,11 @@ export default class HBox extends React.Component<HBoxProps, object> {
|
||||
key={key}
|
||||
className={cx(
|
||||
`Hbox-col`,
|
||||
style.width ? 'Hbox-col--customWidth' : '',
|
||||
style.width === 'auto'
|
||||
? 'Hbox-col--auto'
|
||||
: style.width
|
||||
? 'Hbox-col--customWidth'
|
||||
: '',
|
||||
(column as HBoxColumn).columnClassName
|
||||
)}
|
||||
style={style}
|
||||
|
Loading…
Reference in New Issue
Block a user