iapyang 7 years ago
parent
commit
6f86a03cc6
  1. 2
      dist/bundle.min.css
  2. 4
      dist/bundle.min.js
  3. 30
      dist/demo.js
  4. 2
      uidoc/base/table/collection_table.md
  5. 2
      uidoc/case/button/single_select_item.md
  6. 38
      uidoc/case/combo/formula_combo.md
  7. 2
      uidoc/case/combo/icon_combo.md
  8. 2
      uidoc/case/combo/static_combo.md
  9. 53
      uidoc/case/combo/text_value_combo.md
  10. 2
      uidoc/case/combo/text_value_downlist_combo.md
  11. 2
      uidoc/case/editor/shelter_editor.md
  12. 2
      uidoc/case/editor/sign_initial_editor.md
  13. 2
      uidoc/case/loader/lazy_loader.md
  14. 2
      uidoc/case/loader/list_loader.md
  15. 2
      uidoc/case/tree/display_tree.md
  16. 2
      uidoc/core/abstract/collection_view.md
  17. 2
      uidoc/core/abstract/grid_view.md
  18. 4
      uidoc/core/abstract/virtual_group.md
  19. 2
      uidoc/core/abstract/virtual_list.md
  20. 35
      uidoc/core/combination/bi.expander.md
  21. 42
      uidoc/core/combination/group_combo.md
  22. 22
      uidoc/core/combination/loader.md
  23. 2
      uidoc/core/layout/inline.md
  24. 5
      uidoc/detailed/slider.md

2
dist/bundle.min.css vendored

File diff suppressed because one or more lines are too long

4
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

30
dist/demo.js vendored

@ -29,7 +29,8 @@ BI.i18n = {
"BI-Basic_Value": "值",
"BI-Load_More": "加载更多",
"BI-Select_All": "全选",
"BI-No_More_Data": "无更多数据"
"BI-No_More_Data": "无更多数据",
"BI-No_Selected_Value": "没有可选项"
};$(function () {
var ref;
BI.createWidget({
@ -7657,21 +7658,26 @@ Demo.FileManager = BI.inherit(BI.Widget, {
lastModify: 1454316355142
}];
var filemanager = BI.createWidget({
type: "bi.file_manager",
items: items
type: "bi.fine_tuning_number_editor",
validationChecker: function (v) {
return BI.parseFloat(v) <= 100 && BI.parseFloat(v) >= 0
},
height: 24,
width: 150,
errorText: "hahah"
});
filemanager.on(BI.FineTuningNumberEditor.EVENT_CHANGE, function () {
if(BI.parseFloat(this.getValue()) < 1){
filemanager.setBottomEnable(false);
}else{
filemanager.setBottomEnable(true);
}
});
return {
type: "bi.vtape",
type: "bi.vertical",
items: [{
el: filemanager,
height: "fill"
}, {
type: "bi.button",
text: "getValue",
handler: function () {
BI.Msg.alert("", JSON.stringify(filemanager.getValue()));
},
height: 25
height: 24
}]
}
}

2
uidoc/base/table/collection_table.md

@ -1,6 +1,6 @@
# bi.collection_table
### 继承BI.Widget
### 基本的表格 继承BI.Widget
{% method %}
[source](https://jsfiddle.net/fineui/x2zxfzhp/)

2
uidoc/case/button/single_select_item.md

@ -1,6 +1,6 @@
# bi.single_select_item
## 复选框item,基类[BI.BasicButton](/core/basic_button.md)
## 可以点击的label,基类[BI.BasicButton](/core/basic_button.md)
{% method %}
[source](https://jsfiddle.net/fineui/19qqcej4/)

38
uidoc/case/combo/formula_combo.md

@ -1,38 +0,0 @@
# bi.formula_combo_trigger
## 基类[BI.Widget](/core/widget.md)
{% method %}
[source]()
{% common %}
```javascript
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| height | 高度 | number | —| 30
| items | 子组件 | array | — |[ ]|
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| setValue| 设置value值|—|
| getValue| 获取value值|—|
---

2
uidoc/case/combo/icon_combo.md

@ -1,6 +1,6 @@
# bi.icon_combo
## 基类[BI.Widget](/core/widget.md)
## 切换trigger图标的combo 基类[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/z02vzvtb/)

2
uidoc/case/combo/static_combo.md

@ -1,6 +1,6 @@
# bi.static_combo
## 单选combo,基类[BI.Widget](/core/widget.md)
## 单选combo,trigger显示项不会改变 基类[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/kn64gfzn/)

53
uidoc/case/combo/text_value_combo.md

@ -0,0 +1,53 @@
# text_value_combo
## 单选combo, 基类[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/72xwcdee/)
{% common %}
```javascript
BI.createWidget({
type: "bi.text_value_combo",
text: "initial value",
element: "#wrapper",
width: 300,
items: [{
text: "MVC-1",
value: 1
}, {
text: "MVC-2",
value: 2
}, {
text: "MVC-3",
value: 3
}]
})
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| height | 高度 | number | — | 24
| items | 子items | array | — | [ ]
| text | trigger初始文本内容 | string | — | " " |
| chooseType | 选择类型 | const |参考button_group | BI.ButtonGroup.CHOOSE_TYPE_SINGLE |
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
---

2
uidoc/case/combo/text_value_downlist_combo.md

@ -1,6 +1,6 @@
# bi.text_value_down_list_combo
## 基类[BI.Widget](/core/widget.md)
## 有二级下拉菜单的combo 基类[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/xtxmfgx1/)

2
uidoc/case/editor/shelter_editor.md

@ -1,6 +1,6 @@
# bi.shelter_editor
## 带标记的文本框,基类[BI.Widget](/core/widget.md)
## 带标记的文本框,需手动控制进入编辑状态 基类[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/9Lbx6kga/)

2
uidoc/case/editor/sign_initial_editor.md

@ -1,6 +1,6 @@
# bi.sign_initial_editor
## 基类[BI.Widget](/core/widget.md)
## 指定初始值 之后初始值会一直显示的editor 基类[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/9vjghevp/)

2
uidoc/case/loader/lazy_loader.md

@ -1,6 +1,6 @@
# bi.lazy_loader
### 懒加载
### 懒加载loader
{% method %}
[source](https://jsfiddle.net/fineui/n710yphc/)

2
uidoc/case/loader/list_loader.md

@ -1,6 +1,6 @@
# bi.list_loader
### 恶心的加载控件, 为解决排序问题引入的控件
### 为解决排序问题引入的控件
{% method %}
[source](https://jsfiddle.net/fineui/8wa7rvcd/)

2
uidoc/case/tree/display_tree.md

@ -1,6 +1,6 @@
# bi.display_tree
### 异步树控件
### 树展示控件
{% method %}
[source](https://jsfiddle.net/fineui/cfL6fpa1/)

2
uidoc/core/abstract/collection_view.md

@ -1,6 +1,6 @@
# bi.collection_view
## CollectionView,基类[BI.Widget](/core/widget.md)
## CollectionView,指定行列可以删除看不见的元素 基类[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/cmq0b3v0/)

2
uidoc/core/abstract/grid_view.md

@ -1,6 +1,6 @@
# bi.grid_view
## GridView,基类[BI.Widget](/core/widget.md)
## 可以合并单元格,指定行列可以删除看不见的元素,基类[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/fkntzLq5/)

4
uidoc/core/abstract/virtual_group.md

@ -1,9 +1,9 @@
# bi.virtual_group
## 一组具有相同属性的元素集合,基类[BI.Widget](/core/widget.md)
## 优化过的buttonGroup,删除看不见的元素 基类[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/gesh31xg/)
[source](https://jsfiddle.net/fineui/9pd0dct0/)
{% common %}
```javascript

2
uidoc/core/abstract/virtual_list.md

@ -1,6 +1,6 @@
# bi.virtual_list
## VirtualList,基类[BI.Widget](/core/widget.md)
## 看不见的元素全部删除的list,基类[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/L995LrL9/)

35
uidoc/core/combination/bi.expander.md

@ -2,6 +2,41 @@
## 某个可以展开的节点,基类[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/2xavqk4k/)
{% common %}
```javascript
BI.createWidget({
type: "bi.expander",
element: "#wrapper",
el: {
type: "bi.icon_text_node",
cls: "pull-right-ha-font",
height: 25,
text: "Expander"
},
popup: {
items: [{
type: "bi.single_select_item",
height: 25,
text: "项目1",
value: 1
}, {
type: "bi.single_select_item",
height: 25,
text: "项目2",
value: 2
}]
}
});
```
{% endmethod %}
## API
##### 基础属性

42
uidoc/core/combination/group_combo.md

@ -1,7 +1,47 @@
# bi.combo_group
## 基类[BI.Widget](/core/widget.md)
## 有子级的combo 基类[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/x32ue8xv/)
{% common %}
```javascript
BI.createWidget({
element: "#wrapper",
type: "bi.combo_group",
el: {
type: "bi.icon_text_icon_item",
text: "2010年",
value: 2010,
height: 25,
iconCls: "close-ha-font"
},
children: [{
type: "bi.single_select_item",
height: 25,
text: "一月",
value: 11
}, {
type: "bi.icon_text_icon_item",
height: 25,
text: "二月",
value: 12,
children: [{
type: "bi.single_select_item",
text: "一号",
value: 101,
height: 25
}]
}]
});
```
{% endmethod %}
## API
##### 基础属性

22
uidoc/core/combination/loader.md

@ -2,6 +2,28 @@
## 加载控件,[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/qgLtctnx/)
{% common %}
```javascript
BI.createWidget({
element: "#wrapper",
type: "bi.loader",
itemsCreator: function(options, populate) {
populate();
},
hasNext: function(option) {
return option.count < 10;
}
});
```
{% endmethod %}
## API
##### 基础属性

2
uidoc/core/layout/inline.md

@ -1,2 +0,0 @@
# inline

5
uidoc/detailed/slider.md

@ -8,8 +8,9 @@
{% common %}
```javascript
BI.createWidget({
type: "bi.multi_select_combo",
items: [],
type: "bi.slider",
min: 16,
max: 50,
});
```

Loading…
Cancel
Save