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.
40 lines
792 B
40 lines
792 B
7 years ago
|
# bi.bubble
|
||
7 years ago
|
|
||
7 years ago
|
#### 气泡提示
|
||
|
|
||
|
{% method %}
|
||
|
[source](https://jsfiddle.net/fineui/4u705v2v/)
|
||
|
|
||
|
{% common %}
|
||
|
```javascript
|
||
|
|
||
|
BI.createWidget({
|
||
|
type: 'bi.bubble',
|
||
|
element: "#wrapper",
|
||
|
height: 30,
|
||
|
text: "测试"
|
||
|
})
|
||
|
|
||
|
```
|
||
|
|
||
|
{% endmethod %}
|
||
|
|
||
|
|
||
|
## API
|
||
|
##### 基础属性
|
||
|
|
||
|
| 参数 | 说明 | 类型 | 可选值 | 默认值
|
||
|
| :------ |:------------- | :----- | :---- |:----
|
||
7 years ago
|
| direction | 气泡显示位置 | string | — | "top" |
|
||
|
| height | 气泡高度 | number | — | 35 |
|
||
|
| text | 气泡显示内容 | string | — | " " |
|
||
7 years ago
|
|
||
|
|
||
|
|
||
|
## 对外方法
|
||
|
| 名称 | 说明 | 回调参数
|
||
|
| :------ |:------------- | :-----
|
||
|
| setText | 设置文本值 | 需要设置的文本值text|
|
||
|
|
||
7 years ago
|
|
||
7 years ago
|
---
|