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.
34 lines
648 B
34 lines
648 B
7 years ago
|
# finetuning_number_editor
|
||
|
|
||
7 years ago
|
## 数值微调器
|
||
|
|
||
|
{% method %}
|
||
|
[source](https://jsfiddle.net/fineui/52dhwtfz/)
|
||
|
|
||
|
{% common %}
|
||
|
```javascript
|
||
|
BI.createWidget({
|
||
|
type: 'bi.fine_tuning_number_editor',
|
||
|
element: '#wrapper',
|
||
|
width: 300
|
||
|
});
|
||
|
```
|
||
|
|
||
|
{% endmethod %}
|
||
|
|
||
7 years ago
|
## 参数
|
||
7 years ago
|
|
||
|
| 参数 | 说明 | 类型 | 可选值 | 默认值
|
||
|
| :------ |:------------- | :-----| :----|:----|
|
||
|
| value | 编辑框中的值,-1表示自动 | number | | -1 |
|
||
|
|
||
|
|
||
7 years ago
|
|
||
|
## 事件
|
||
7 years ago
|
| 事件 | 说明 |
|
||
7 years ago
|
| :------ |:------------- |
|
||
|
|BI.FineTuningNumberEditor.EVENT_CONFIRM| 点击增加/减少按钮或者编辑框确定时触发 |
|
||
|
|
||
|
|
||
|
|
||
|
---
|