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
1.1 KiB
40 lines
1.1 KiB
7 years ago
|
# bi.single
|
||
|
|
||
|
## 这仅仅只是一个超类, 所有简单控件的基类,类的控制,title的控制,文字超过边界显示3个点,cursor默认pointor,基类[BI.Widget](/core/widget.md)
|
||
|
|
||
|
|
||
|
## API
|
||
|
##### 基础属性
|
||
|
| 参数 | 说明 | 类型 | 可选值 | 默认值
|
||
|
| :------ |:------------- | :-----| :----|:----
|
||
|
| readonly | 是否只读 | boolean | true,false| false |
|
||
7 years ago
|
| title | title | string |— | null |
|
||
|
| warningTitle | 错误title | string | —| null|
|
||
7 years ago
|
| tipType | title类型 | string | success,warning | null |
|
||
7 years ago
|
| value | 组件value值 | string |— | null |
|
||
7 years ago
|
|
||
|
|
||
|
|
||
|
## 对外方法
|
||
|
| 名称 | 说明 | 回调参数
|
||
|
| :------ |:------------- | :-----
|
||
|
| enableHover | 恢复hover可用| opt |
|
||
|
| disabledHover | 取消hover事件 | —|
|
||
7 years ago
|
| populate | 刷新或者清空列表 | items |
|
||
7 years ago
|
| setTitle | 设置title| title,opt |
|
||
|
| setWarningTitle | 设置错误title | title,opt|
|
||
|
| getTipType | 获取tipType|—|
|
||
|
| isReadOnly | 是否只读| —|
|
||
|
| getTitle | 获取title|—|
|
||
|
| getWarningTitle | 获取warningtitle| —|
|
||
|
| setValue | 设置value值| value|
|
||
|
|getValue| 获取value值| —|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
---
|
||
|
|
||
7 years ago
|
|