fineui是帆软报表和BI产品线所使用的前端框架。
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.

53 lines
1.0 KiB

# bi.border
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"},
height: 30,
top: 20,
left: 20,
right: 20
},
south: {
7 years ago
el: {type: "bi.label"},
height: 50,
bottom: 20,
left: 20,
right: 20
},
west: {
7 years ago
el: {type: "bi.label"},
width: 200,
left: 20
},
east: {
7 years ago
el: {type: "bi.label"},
width: 300,
right: 20
},
7 years ago
center: {el: {type: "bi.label"}}
}
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :----- | :----|:----
---