Browse Source

Merge pull request #92 in FUI/fineui from ~GUY/fineui:master to master

* commit '611ab99a3889f6e7be449ea6a747002f686503c0':
  add segement
  bundle.min
  update href
es6
guy 7 years ago
parent
commit
ac18603b3d
  1. 2
      dist/bundle.min.js
  2. 58
      uidoc/case/segment.md
  3. 2
      uidoc/detailed/combo/multilayer_select_tree_combo.md
  4. 6
      uidoc/detailed/down_list_combo.md
  5. 5
      uidoc/detailed/month_combo.md
  6. 5
      uidoc/detailed/multi_select_combo.md
  7. 7
      uidoc/detailed/numeric_interval.md
  8. 4
      uidoc/detailed/quarter_combo.md
  9. 33
      uidoc/detailed/tree/bi.multi_tree_combo.md
  10. 4
      uidoc/detailed/year_combo.md

2
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

58
uidoc/case/segment.md

@ -1,2 +1,58 @@
# segment
# bi.sgement
## 各种segment
{% method %}
[source](https://jsfiddle.net/fineui/7skvd64L/)
{% common %}
```javascript
BI.createWidget({
type: "bi.vertical",
element: "#wrapper",
items: [{
type: "bi.label",
height: 30,
text: "默认风格"
}, {
type: "bi.segment",
items: [{
text: "tab1",
value: 1,
selected: true
}, {
text: "tab2",
value: 2
}, {
text: "tab3 disabled",
disabled: true,
value: 3
}]
}],
hgap: 50,
vgap: 20
});
```
{% endmethod %}
## API
##### 基础属性
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| 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 | | |
--- ---

2
uidoc/detailed/combo/multilayer_select_tree_combo.md

@ -3,7 +3,7 @@
### 多层级下拉可选节点树
{% method %}
[source](https://jsfiddle.net/fineui/conjw6dL/)
[source](https://jsfiddle.net/fineui/ryo1cnrL/)
{% common %}
```javascript

6
uidoc/detailed/down_list_combo.md

@ -67,4 +67,10 @@ BI.createWidget({
--- ---
##事件
| 事件 | 说明 |
|BI.DownListCombo.EVENT_CHANGE| 点击一级节点触发 |
|BI.DownListCombo.EVENT_SON_VALUE_CHANGE| 点击二级节点触发 |
|BI.DownListCombo.EVENT_BEFORE_POPUPVIEW| 下拉列表弹出前触发 |
##具体配置方法见[Combo](../core/combination/bi.combo.md)

5
uidoc/detailed/month_combo.md

@ -24,3 +24,8 @@ BI.createWidget({
--- ---
##事件
| 事件 | 说明 |
|BI.MonthCombo.EVENT_CONFIRM| 选中日期或者退出编辑状态触发 |
|BI.MonthCombo.EVENT_BEFORE_POPUPVIEW| 选中日期或者退出编辑状态触发 |

5
uidoc/detailed/multi_select_combo.md

@ -29,4 +29,7 @@ BI.createWidget({
## 方法
| 方法 | 说明 | 用法 |
| ---------------------------- | ---------------- | ------------------------------------ | |
| ---------------------------- | ---------------- | ------------------------------------ | |
| 事件 | 说明 |
|BI.MultiSelectCombo.EVENT_CONFIRM| 点击确定触发 |

7
uidoc/detailed/numeric_interval.md

@ -33,4 +33,9 @@ BI.createWidget({
| setCloseMinEnable(boolean) | 设置左区间开闭combo的disable状态 | |
| setMaxEnable(boolean) | 设置右区间输入框disable状态 | |
| setCloseMaxEnable(boolean) | 设置右区间开闭combo的disable状态 | |
| setNumTip(string) | 设置数值区间的tip提示 | |
| setNumTip(string) | 设置数值区间的tip提示 | |
##事件
| 事件 | 说明 |
|BI.NumericalInterval.EVENT_VALID| 区间合法的状态事件 |
|BI.NumericalInterval.EVENT_ERROR| 区间不合法的状态事件 |

4
uidoc/detailed/quarter_combo.md

@ -26,5 +26,5 @@ BI.createWidget({
##事件
| 事件 | 说明 |
|BI.YearMonthCombo.EVENT_CONFIRM| 选中日期或者退出编辑状态触发 |
|BI.YearMonthCombo.EVENT_BEFORE_POPUPVIEW| 选中日期或者退出编辑状态触发 |
|BI.QuarterCombo.EVENT_CONFIRM| 选中日期或者退出编辑状态触发 |
|BI.QuarterCombo.EVENT_BEFORE_POPUPVIEW| 选中日期或者退出编辑状态触发 |

33
uidoc/detailed/tree/bi.multi_tree_combo.md

@ -25,29 +25,13 @@ var items = [{
}];
BI.createWidget({
type: "bi.horizontal_auto",
element: "body",
items: [{
type: "bi.multi_tree_combo",
ref: function (_ref) {
self.tree = _ref;
},
itemsCreator: function (options, callback) {
console.log(options);
callback({
items: items
});
},
width: 300
}, {
type: "bi.button",
text: "getVlaue",
handler: function () {
BI.Msg.toast(JSON.stringify(self.tree.getValue()));
},
width: 300
}]
type: "bi.multi_tree_combo",
itemsCreator: function (options, callback) {
callback({
items: items
});
},
width: 300
})
```
@ -68,3 +52,6 @@ BI.createWidget({
| getValue | 获取文本框值 | getValue() |
| populate | 更改树结构内容 | populate(items) |
##
BI.MultiTreeCombo.EVENT_CONFIRM

4
uidoc/detailed/year_combo.md

@ -28,6 +28,6 @@ BI.createWidget({
##事件
| 事件 | 说明 |
|BI.YearMonthCombo.EVENT_CONFIRM| 选中日期或者退出编辑状态触发 |
|BI.YearMonthCombo.EVENT_BEFORE_POPUPVIEW| 选中日期或者退出编辑状态触发 |
|BI.YearCombo.EVENT_CONFIRM| 选中日期或者退出编辑状态触发 |
|BI.YearCombo.EVENT_BEFORE_POPUPVIEW| 选中日期或者退出编辑状态触发 |

Loading…
Cancel
Save