forked from fanruan/fineui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.1 KiB
54 lines
1.1 KiB
7 years ago
|
# bi.border
|
||
7 years ago
|
|
||
7 years ago
|
#### 上下的高度固定/左右的宽度固定,中间的高度/宽度自适应
|
||
|
|
||
|
{% method %}
|
||
|
[source](https://jsfiddle.net/fineui/qtdsdegp/)
|
||
|
|
||
|
{% common %}
|
||
|
```javascript
|
||
|
BI.createWidget({
|
||
|
type: 'bi.border',
|
||
|
element: "#wrapper",
|
||
|
items: {
|
||
|
north: {
|
||
7 years ago
|
el: {type: "bi.label"},
|
||
7 years ago
|
height: 30,
|
||
|
top: 20,
|
||
|
left: 20,
|
||
|
right: 20
|
||
|
},
|
||
|
south: {
|
||
7 years ago
|
el: {type: "bi.label"},
|
||
7 years ago
|
height: 50,
|
||
|
bottom: 20,
|
||
|
left: 20,
|
||
|
right: 20
|
||
|
},
|
||
|
west: {
|
||
7 years ago
|
el: {type: "bi.label"},
|
||
7 years ago
|
width: 200,
|
||
|
left: 20
|
||
|
},
|
||
|
east: {
|
||
7 years ago
|
el: {type: "bi.label"},
|
||
7 years ago
|
width: 300,
|
||
|
right: 20
|
||
|
},
|
||
7 years ago
|
center: {el: {type: "bi.label"}}
|
||
7 years ago
|
}
|
||
|
});
|
||
|
|
||
|
```
|
||
|
|
||
|
{% endmethod %}
|
||
|
|
||
|
|
||
|
## API
|
||
|
##### 基础属性
|
||
|
|
||
|
| 参数 | 说明 | 类型 | 可选值 | 默认值
|
||
|
| :------ |:------------- | :----- | :----|:----
|
||
7 years ago
|
| items | 子控件对象 | object | north,east,west,south,center | [ ] |
|
||
7 years ago
|
|
||
|
---
|