容器组件
- Source:
Members
(inner) props
- Source:
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
width |
string |
<optional> |
宽度 |
|
height |
string |
<optional> |
高度 |
|
left |
string |
<optional> |
0
|
位置left |
top |
string |
<optional> |
0
|
位置top |
right |
string |
<optional> |
0
|
位置right |
bottom |
string |
<optional> |
0
|
位置bottom |
zIndex |
number |
<optional> |
层级 |
|
xAlign |
string |
<optional> |
水平对齐方式,可选值:'left', 'right', 'center' |
|
yAlign |
string |
<optional> |
垂直对齐方式,可选值:'top', 'bottom', 'middle' |
|
contentAlign |
string |
<optional> |
left
|
内容对齐方式,可选值:'left', 'right', 'center' |
zoom |
number |
<optional> |
缩放,如何设置了xAlign或yAlign, scale的方式将失效,此时可以zoom实现缩放 |
|
scale |
number |
<optional> |
缩放,与zoom功能一样 |
|
fit |
boolean |
<optional> |
由父级适应宽高和位置,设置了 fit, width、height 将失效 |
|
visible |
boolean |
<optional> |
true
|
是否可见 |
position |
boolean |
<optional> |
true
|
开启定位,如果为false, left、top 参数失效 |
margin |
string |
<optional> |
外边距 |
|
padding |
string |
<optional> |
内边距, 子组件需要position=false才有效 |
|
inline |
boolean |
<optional> |
内联模式,position=false才有效 |
|
opacity |
number |
<optional> |
1
|
透明度 |
shadow |
boolean |
<optional> |
阴影 |
|
layout |
boolean |
<optional> |
开启布局 |
|
weight |
number |
<optional> |
1
|
排版占比,layout=true有效 |
gap |
number |
<optional> |
0
|
间距,layout=true有效 |
direction |
string |
<optional> |
row
|
排版方向,可选 'row', 'column', layout=true有效 |
free |
boolean |
<optional> |
不受父布局控制 |
属性参数