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.
47 lines
1.3 KiB
47 lines
1.3 KiB
7 years ago
|
## 提示性信息
|
||
|
|
||
|
{% method %}
|
||
|
[source](https://jsfiddle.net/fineui/gn25yyrx/)
|
||
|
|
||
|
{% common %}
|
||
|
```javascript
|
||
7 years ago
|
var toast = BI.createWidget({
|
||
|
type: "bi.vertical",
|
||
7 years ago
|
element: "#wrapper",
|
||
7 years ago
|
items: [{
|
||
|
el: {
|
||
|
type: 'bi.button',
|
||
|
text: '简单Toast测试',
|
||
|
height: 30,
|
||
|
handler: function () {
|
||
|
BI.Msg.toast("这是一条简单的数据");
|
||
|
}
|
||
7 years ago
|
}
|
||
7 years ago
|
}],
|
||
|
vgap: 20
|
||
7 years ago
|
});
|
||
7 years ago
|
|
||
7 years ago
|
```
|
||
|
|
||
|
{% endmethod %}
|
||
|
|
||
|
## API
|
||
|
##### 基础属性
|
||
|
| 参数 | 说明 | 类型 | 可选值 | 默认值
|
||
|
| :------ |:------------- | :-----| :----|:----
|
||
7 years ago
|
| hgap | 效果相当于文本框左右padding值 | number | — | 10 |
|
||
|
| vgap | 效果相当于文本框上下padding值 | number | — | 0 |
|
||
|
| lgap | 效果相当于文本框left-padding值 | number | — | 0 |
|
||
|
| rgap | 效果相当于文本框right-padding值 | number | — | 0 |
|
||
|
| tgap |效果相当于文本框top-padding值 | number | — | 0 |
|
||
|
| bgap | 效果相当于文本框bottom-padding值 | number | — | 0 |
|
||
|
| items | 子控件数组 | array | — | [ ] |
|
||
|
| width | 宽度 | number | — | — |
|
||
|
| height | 高度 | number | — | — |
|
||
|
|
||
|
|
||
|
|
||
|
---
|
||
7 years ago
|
|
||
7 years ago
|
|