Browse Source

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

* commit '909f50d322fef30ee6d5519d90c54e9951d2c7b9':
  finish detailed
  一些修改
  finish case/tree
  update tree
  update
  update 锚点
  日期的国际化先加载 && 详细控件
  up
es6
guy 7 years ago
parent
commit
4e5d0cbb27
  1. 2
      Gruntfile.js
  2. 56
      dist/bundle.js
  3. 2
      dist/bundle.min.css
  4. 16
      dist/bundle.min.js
  5. 3
      uidoc/README.md
  6. 17
      uidoc/SUMMARY.md
  7. 63
      uidoc/base/canvas.md
  8. 35
      uidoc/case/complex_canvas.md
  9. 40
      uidoc/case/tree/branch_relation.md
  10. 13
      uidoc/case/tree/branch_tree.md
  11. 42
      uidoc/case/tree/display_tree.md
  12. 2
      uidoc/case/tree/handstand_branch_editor.md
  13. 46
      uidoc/case/tree/handstand_branch_tree.md
  14. 42
      uidoc/case/tree/level_tree.md
  15. 39
      uidoc/case/tree/simple_tree.md
  16. 11
      uidoc/core/basic_button.md
  17. 4
      uidoc/core/widget.md
  18. 40
      uidoc/detailed/combo/multilayer_select_tree_combo.md
  19. 40
      uidoc/detailed/combo/multilayer_single_tree_combo.md
  20. 40
      uidoc/detailed/combo/select_tree_combo.md
  21. 41
      uidoc/detailed/combo/single_tree_combo.md
  22. 27
      uidoc/detailed/date/custom_date_time.md
  23. 21
      uidoc/detailed/date/date_combo.md
  24. 24
      uidoc/detailed/date/date_pane_widget.md
  25. 22
      uidoc/detailed/date/year_month_combo.md
  26. 22
      uidoc/detailed/date/year_quarter_combo.md
  27. 2
      uidoc/detailed/month_combo.md
  28. 2
      uidoc/detailed/quarter_combo.md
  29. 2
      uidoc/detailed/year_combo.md

2
Gruntfile.js

@ -99,7 +99,7 @@ module.exports = function (grunt) {
},
bundleJs: {
src: ['dist/core.js', 'dist/base.js', 'dist/case.js', 'dist/widget.js', 'public/js/**/*.js'],
src: ['public/js/index.js', 'dist/core.js', 'dist/base.js', 'dist/case.js', 'dist/widget.js', 'public/js/**/*.js'],
dest: 'dist/bundle.js'
},

56
dist/bundle.js vendored

@ -1,4 +1,30 @@
/*!
BI.servletURL = "https://fanruan.coding.me/fineui/dist/";
BI.resourceURL = "https://fanruan.coding.me/fineui/dist/resource/";
BI.i18n = {
"BI-Basic_OK": "确定",
"BI-Basic_Sure": "确定",
"BI-Basic_Clears": "清空",
"BI-Basic_Cancel": "取消",
"BI-Basic_Time": "时间",
"BI-Basic_Simple_Sunday": "日",
"BI-Basic_Simple_Monday": "一",
"BI-Basic_Simple_Tuesday": "二",
"BI-Basic_Simple_Wednesday": "三",
"BI-Basic_Simple_Thursday": "四",
"BI-Basic_Simple_Friday": "五",
"BI-Basic_Simple_Saturday": "六",
"BI-Multi_Date_Year": "年",
"BI-Multi_Date_Month": "月",
"BI-Multi_Date_Quarter": "季度",
"BI-Basic_Unrestricted": "无限制",
"BI-Quarter_1": "第1季度",
"BI-Quarter_2": "第2季度",
"BI-Quarter_3": "第3季度",
"BI-Quarter_4": "第4季度",
"BI-Basic_Value": "值",
"BI-Load_More": "加载更多",
"BI-Select_All": "全选"
};/*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
@ -93647,30 +93673,4 @@ BI.ValueChooserPane = BI.inherit(BI.AbstractValueChooser, {
}
});
BI.ValueChooserPane.EVENT_CHANGE = "ValueChooserPane.EVENT_CHANGE";
BI.shortcut('bi.value_chooser_pane', BI.ValueChooserPane);BI.servletURL = "https://fanruan.coding.me/fineui/dist/";
BI.resourceURL = "https://fanruan.coding.me/fineui/dist/resource/";
BI.i18n = {
"BI-Basic_OK": "确定",
"BI-Basic_Sure": "确定",
"BI-Basic_Clears": "清空",
"BI-Basic_Cancel": "取消",
"BI-Basic_Time": "时间",
"BI-Basic_Simple_Sunday": "日",
"BI-Basic_Simple_Monday": "一",
"BI-Basic_Simple_Tuesday": "二",
"BI-Basic_Simple_Wednesday": "三",
"BI-Basic_Simple_Thursday": "四",
"BI-Basic_Simple_Friday": "五",
"BI-Basic_Simple_Saturday": "六",
"BI-Multi_Date_Year": "年",
"BI-Multi_Date_Month": "月",
"BI-Multi_Date_Quarter": "季度",
"BI-Basic_Unrestricted": "无限制",
"BI-Quarter_1": "第1季度",
"BI-Quarter_2": "第2季度",
"BI-Quarter_3": "第3季度",
"BI-Quarter_4": "第4季度",
"BI-Basic_Value": "值",
"BI-Load_More": "加载更多",
"BI-Select_All": "全选"
};
BI.shortcut('bi.value_chooser_pane', BI.ValueChooserPane);

2
dist/bundle.min.css vendored

File diff suppressed because one or more lines are too long

16
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

3
uidoc/README.md

@ -1,2 +1,5 @@
# FineUIdocs
FineUI的交互、前端以及视觉文档规范
####1. 控件都会提供setValue, getValue, populate这几个方法来设置值,获取值(展示类控件除外)和刷新控件
####2. 控件都会提供setEnable, setVisible, setValid这几个方法来设置使能,是否可见,是否有效状态,并且在fineui2.0之后,会自动给子组件设置同样的状态,不要重写这些方法,一些需要在设置状态时的额外操作可以通过重写_setXXX来实现

17
uidoc/SUMMARY.md

@ -5,21 +5,20 @@
## 核心控件
* 布局
* [vertical](core/layout/vertical.md)
* [horizontal](core/layout/horizontal.md)
* [htape](core/layout/htape.md)
* [vtape](core/layout/vtape.md)
* [center_adapt](core/layout/center_adapt.md)
* [vertical_adapt](core/layout/vertical_adapt.md)
* [left_right_vertical_adapt](core/layout/left_right_vertical_adapt.md)
* [flow](core/layout/flow.md)
* [center](core/layout/center.md)
* [horizontal_adapt](core/layout/horizontal_adapt.md)
* [horizontal_auto](core/layout/horizontal_auto.md)
* [horizontal_float](core/layout/horizontal_float.md)
* [left_right_vertical_adapt](core/layout/left_right_vertical_adapt.md)
* [center](core/layout/center.md)
* [float_center](core/layout/float_center.md)
* [vertical](core/layout/vertical.md)
* [horizontal](core/layout/horizontal.md)
* [border](core/layout/border.md)
* [flow](core/layout/flow.md)
* [inline](core/layout/inline.md)
* [htape](core/layout/htape.md)
* [vtape](core/layout/vtape.md)
* [grid](core/layout/grid.md)
* [table](core/layout/table.md)
* [td](core/layout/td.md)
@ -108,7 +107,7 @@
* [text_value_downlist_combo](case/combo/text_value_downlist_combo.md)
* 树
* [branch_tree](case/tree/branch_tree.md)
* [handstand_branch_editor](case/tree/handstand_branch_editor.md)
* [handstand_branch_tree](case/tree/handstand_branch_tree.md)
* [display_tree](case/tree/display_tree.md)
* [simple_tree](case/tree/simple_tree.md)
* [level_tree](case/tree/level_tree.md)

63
uidoc/base/canvas.md

@ -3,37 +3,19 @@
## canvas绘图,基类[BI.Widget](/core/widget.md)
{% method %}
[source](https://jsfiddle.net/fineui/txqwwzLm/)
[source](https://jsfiddle.net/fineui/gcgd1va0/)
{% common %}
```javascript
var canvas = BI.createWidget({
type: "bi.complex_canvas",
width: 500,
height: 600
});
canvas.branch(55, 100, 10, 10, 100, 10, 200, 10, {
offset: 20,
strokeStyle: "red",
lineWidth: 2
});
canvas.branch(220, 155, 120, 110, 150, 200, {
offset: 40
});
canvas.stroke();
BI.createWidget({
type: "bi.absolute",
element: this,
items: [{
el: canvas,
left: 100,
top: 50
}]
})
type: "bi.canvas",
element: "#wrapper",
width: 500,
height: 600
});
canvas.circle(150, 50, 20, "green");
canvas.stroke();
```
@ -43,31 +25,10 @@ canvas.branch(55, 100, 10, 10, 100, 10, 200, 10, {
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| add | 添加对象到json数组 | json |
| path | 绘制路径 | pathString |
| image | 绘制图片 | (src,x,y,w,h)分别表示图片路径,绘制的原点横、纵坐标,宽、高 |
| rect | 绘制矩形 | (x,y,w,h,r)分别表示左上角的横坐标、纵坐标,矩形宽、高、以及矩形的圆角border-radius大小|
| circle | 绘制圆形 | (x,y,r)分别表示原点的横坐标,纵坐标,以及半径 |
| ellipse | 绘制椭圆 |(x,y,rx,ry)分别表示原点的横、纵坐标,以及水平半径和垂直半径|
| text | 绘制文本 | (x,y,text)分别表示绘制的原点横、纵坐标以及要绘制的文本内容|
| print | 根据制定参数打印出路径 | (x, y, string, font, size, origin, letter_spacing, line_spacing) |
| setStart | 开始绘制 | |
| setFinish | 结束绘制 | |
| setSize | 设置画布尺寸 | (width,height)分别表示画布宽高|
| setViewBox | 设置画布可视区域 | (x,y,width,height,fit)分别表示可视区域原点坐标以及可视区域宽高,以及是否根据可视区域进行调整 |
| getById | 根据id返回元素 | id |
| getElementByPoint | 获根据给定的点坐标返回元素 | (x,y)|
| getElementsByPoint | 获根据给定的点坐标返回元素 | (x,y) |
| getFont | 通过给定的参数在已注册的字体中找到字体对象 | (family, weight, style, stretch) |
| set | 绘制形状的集合 | |
| remove | 设置总页数 | pages |
| clear | 判断是否有上一页 | v |
| line | 绘制线段| (x0, y0, x1, y1) |
| rect | 绘制矩形 | (x,y,w,h,color)分别表示左上角的横坐标、纵坐标,矩形宽、高、以及绘制的颜色|
| circle | 绘制圆形 | (x, y, radius, color)分别表示原点的横坐标,纵坐标,半径以及颜色 |
| :------ |:------------- | :-----
| line | 绘制线段| (x0, y0, x1, y1) |
| rect | 绘制矩形 | (x,y,w,h,color)分别表示左上角的横坐标、纵坐标,矩形宽、高、以及绘制的颜色|
| circle | 绘制圆形 | (x, y, radius, color)分别表示原点的横坐标,纵坐标,半径以及颜色 |
| hollow | 填充中空的路径 | |
| solid | 填充实心的路径 | |
| gradient | 绘制渐变色 | (x0, y0, x1, y1, start, end) |

35
uidoc/case/complex_canvas.md

@ -1,2 +1,37 @@
# complex_canvas
## 复杂的canvas绘图
{% method %}
[source](https://jsfiddle.net/fineui/psozjkgn/)
{% common %}
```javascript
var canvas = BI.createWidget({
type: "bi.complex_canvas",
width: 500,
height: 600
});
canvas.branch(55, 100, 10, 10, 100, 10, 200, 10, {
offset: 20,
strokeStyle: "red",
lineWidth: 2
});
canvas.stroke();
```
{% endmethod %}
## 对外方法
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| branch | 绘制树枝节点| (x0, y0, x1, y1, x2, y2) (以x0, y0为根节点,分支到x1,y1, x2,y2...)|
| stroke | 绘制 | |
---

40
uidoc/case/tree/branch_relation.md

@ -1,2 +1,40 @@
# branch_relation
# bi.branch_relation
### 表关联树
{% method %}
[source](https://jsfiddle.net/fineui/z5hLcruk/)
{% common %}
```javascript
var tree = BI.createWidget({
type: "bi.branch_relation",
element: 'body',
items: [],
direction: BI.Direction.Right,
align: BI.HorizontalAlign.Right,
centerOffset: -50
});
```
{% endmethod %}
### 参数设置
| 参数 | 说明 | 类型 | 默认值 |
| ------------ | ------- | ------ | -------------------- |
| centerOffset | 重心偏移量 | number | 0 |
| direction | 根节点所在方向 | string | BI.Direction.Bottom |
| align | 对齐方向 | string | BI.VerticalAlign.Top |
| items | 元素 | array | null |
### 方法
| 方法名 | 说明 | 回调参数 |
| -------- | ---- | ----------- |
| populate | 刷新内容 | items: 子项数组 |

13
uidoc/case/tree/branch_tree.md

@ -6,7 +6,18 @@
{% common %}
```javascript
// More coming...
BI.createWidget({
type: "bi.branch_tree",
element: 'body',
items: [{
el: {},
children: [{
el: {},
children: {},
// ...
}]
}]
});
```
{% endmethod %}

42
uidoc/case/tree/display_tree.md

@ -1,2 +1,42 @@
# display_tree
# bi.display_tree
### 异步树控件
{% method %}
[source](https://jsfiddle.net/fineui/cfL6fpa1/)
{% common %}
```javascript
var tree = BI.createWidget({
type: "bi.display_tree",
element: 'body',
});
tree.initTree({
id: 1,
text: '',
open: true,
});
```
{% endmethod %}
### 参数设置
| 参数 | 说明 | 类型 | 默认值 |
| -------- | -------------------- | ------ | ---- |
| — | — | — | — |
### 方法
| 方法名 | 说明 | 回调参数 |
| -------- | ------ | ---- |
| initTree | 加载tree结构 | node: 节点数组 settings: 配置项 |
| destroy | 摧毁元素 | — |

2
uidoc/case/tree/handstand_branch_editor.md

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

46
uidoc/case/tree/handstand_branch_tree.md

@ -0,0 +1,46 @@
# bi.branch_tree
### 纵向分支的树
{% method %}
[source](https://jsfiddle.net/fineui/c2kaoc7x/)
{% common %}
```javascript
BI.createWidget({
type: "bi.handstand_branch_tree",
element: 'body',
el: {},
items: [{
el: {},
children: [{
el: {},
children: {},
// ...
}]
}]
});
```
{% endmethod %}
### 参数设置
| 参数 | 说明 | 类型 | 默认值 |
| -------- | -------------------- | ------ | ---- |
| expander | branch_expander组件配置项 | object | {} |
| el | | object | {} |
| items | 子项 | array | [] |
### 方法
| 方法名 | 说明 | 回调参数 |
| -------- | ------ | ---- |
| populate | 去掉所有内容 | — |
| getValue | 获取所选项值 | — |

42
uidoc/case/tree/level_tree.md

@ -1,2 +1,42 @@
# level_tree
# bi.level_tree
### 二级树
{% method %}
[source](https://jsfiddle.net/fineui/nvvkwhfo/)
{% common %}
```javascript
var tree = BI.createWidget({
type: "bi.level_tree",
element: 'body',
items: [],
});
```
{% endmethod %}
### 参数设置
| 参数 | 说明 | 类型 | 默认值 |
| -------- | ----------------- | ------ | ---- |
| expander | branch_expander配置 | object | {} |
| items | 元素 | array | [] |
### 方法
| 方法名 | 说明 | 回调参数 |
| -------------- | -------- | ----------- |
| initTree | 构造树结构 | nodes |
| stroke | 生成树方法 | nodes |
| populate | 刷新内容 | items: 子项数组 |
| setValue | 设置值 | v |
| getValue | 获得值 | — |
| getAllLeaves | 获取所有叶节点 | — |
| getNodeById | 根据Id获取节点 | id |
| getNodeByValue | 根据值获取节点 | id |

39
uidoc/case/tree/simple_tree.md

@ -1,2 +1,39 @@
# simple_tree
# bi.simple_tree
### 简单的多选树
{% method %}
[source](https://jsfiddle.net/fineui/5qtobqxb/)
{% common %}
```javascript
var tree = BI.createWidget({
type: "bi.simple_tree",
element: 'body',
});
tree.populate(items);
```
{% endmethod %}
### 参数设置
| 参数 | 说明 | 类型 | 默认值 |
| ------------ | -------- | -------- | ---------- |
| itemsCreator | items构造器 | function | BI.emptyFn |
| items | 元素 | array | null |
### 方法
| 方法名 | 说明 | 回调参数 |
| -------- | ---- | ------------------------------ |
| populate | 刷新内容 | items: 子项数组 keywords: 关键字标红字符串 |
| setValue | 设置值 | v |
| getValue | 获得值 | — |
| empty | 清空树 | — |

11
uidoc/core/basic_button.md

@ -1,4 +1,4 @@
# bi.basci_button
# bi.basic_button
## 一般的button父级,基类[BI.Single](/core/single.md)
@ -7,18 +7,17 @@
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----
| value | 组件value值 | string | | null|
| text | 文本内容 | string | | " " |
| stopEvent | 阻止冒泡 |boolean | true,false | false |
| stopEvent | 阻止事件 |boolean | true,false | false |
| stopPropagation | 阻止冒泡 | boolean | true,false| false |
| selected | 选中文本值 | boolean | true,false |false |
| selected | button的选中状态 | boolean | true,false |false |
| once | 点击一次选中有效,再点无效 | boolean | true,false | false|
| forceSelected | 点击即选中, 选中了就不会被取消,与once的区别是forceSelected不影响事件的触发| boolean | true,false| false|
| forceNotSelected | 无论怎么点击都不会被选中 | boolean| true,false | false|
| disableSelected | 使能选中| boolean | true,false| false|
| shadow | 是否显示阴影 | boolean| true,false| false|
| isShadowShowingOnSelected| 选中状态下是否显示阴影|boolean| true,false | false|
| trigger | 被选元素要触发的事件 | | | null|
| handler | | | | |
| trigger | 被选元素要触发的事件 | string | mousedown, mouseup, click, dblclick, lclick | null|
| handler | 点击事件回调 | function | | BI.emptyFn |
## 对外方法

4
uidoc/core/widget.md

@ -1,6 +1,6 @@
# bi.widget
## Widget超类
## 所有控件的超类
## API
##### 基础属性
@ -31,6 +31,8 @@
## 对外方法
#####(注: fineui2.0引入生命周期后,widget的实现类不需要重写setEnable,setValid等方法,会自动调用子组件的对应方法
,一些需要在设置状态后做的额外工作可以通过重写_setXXX来实现)
| 名称 | 说明 | 回调参数
| :------ |:------------- | :-----
| isMounted | 判断组件是否挂载| — |

40
uidoc/detailed/combo/multilayer_select_tree_combo.md

@ -1,2 +1,40 @@
# multilayer_select_tree_combo
# bi.multilayer_select_tree_combo
### 多层级下拉可选节点树
{% method %}
[source](https://jsfiddle.net/fineui/conjw6dL/)
{% common %}
```javascript
var tree = BI.createWidget({
type: "bi.multilayer_select_tree_combo",
element: 'body',
items: [],
text: "默认值",
width: 300,
});
```
{% endmethod %}
### 参数设置
| 参数 | 说明 | 类型 | 默认值 |
| ------ | ---- | ------ | ---- |
| height | 高度 | number | 30 |
| text | 文本框值 | string | '' |
| items | 元素 | array | null |
### 方法
| 方法名 | 说明 | 回调参数 |
| -------- | ---- | ----------- |
| populate | 刷新内容 | items: 子项数组 |
| setValue | 设置值 | setValue |
| getValue | 获取值 | getValue |

40
uidoc/detailed/combo/multilayer_single_tree_combo.md

@ -1,2 +1,40 @@
# multilayer_single_tree_combo
# bi.multilayer_single_tree_combo
### 多层级下拉单选树
{% method %}
[source](https://jsfiddle.net/fineui/o0u3vp83/)
{% common %}
```javascript
var tree = BI.createWidget({
type: "bi.multilayer_single_tree_combo",
element: 'body',
items: [],
text: "默认值",
width: 300,
});
```
{% endmethod %}
### 参数设置
| 参数 | 说明 | 类型 | 默认值 |
| ------------ | ----- | -------- | ---------- |
| height | 高度 | number | 30 |
| text | 文本框值 | string | '' |
| itemsCreator | 元素创造器 | function | BI.emptyFn |
| items | 元素 | array | null |
### 方法
| 方法名 | 说明 | 回调参数 |
| -------- | ---- | ----------- |
| populate | 刷新内容 | items: 子项数组 |
| setValue | 设置值 | setValue |
| getValue | 获取值 | getValue |

40
uidoc/detailed/combo/select_tree_combo.md

@ -1,2 +1,40 @@
# select_tree_combo
# bi.select_tree_combo
### 二级可选节点下拉框树
{% method %}
[source](https://jsfiddle.net/fineui/Lgqr17tg/)
{% common %}
```javascript
var tree = BI.createWidget({
type: "bi.select_tree_combo",
element: 'body',
items: [],
text: "默认值",
width: 300,
});
```
{% endmethod %}
### 参数设置
| 参数 | 说明 | 类型 | 默认值 |
| ------- | ---- | ------ | ---- |
| height | 高度 | number | 30 |
| text | 文本框值 | string | '' |
| items | 元素 | array | null |
### 方法
| 方法名 | 说明 | 回调参数 |
| -------- | ---- | ----------- |
| populate | 刷新内容 | items: 子项数组 |
| setValue | 设置值 | setValue |
| getValue | 获取值 | getValue |

41
uidoc/detailed/combo/single_tree_combo.md

@ -1,2 +1,41 @@
# single_tree_combo
# bi.single_tree_combo
### 二级树下拉框
{% method %}
[source](https://jsfiddle.net/fineui/oxkb9uw5/)
{% common %}
```javascript
var tree = BI.createWidget({
type: "bi.simple_tree_combo",
element: 'body',
items: [],
text: "默认值",
width: 300,
});
```
{% endmethod %}
### 参数设置
| 参数 | 说明 | 类型 | 默认值 |
| ------- | ---- | ------ | ---- |
| trigger | | object | {} |
| height | 高度 | number | 30 |
| text | 文本框值 | string | '' |
| items | 元素 | array | null |
### 方法
| 方法名 | 说明 | 回调参数 |
| -------- | ---- | ----------- |
| populate | 刷新内容 | items: 子项数组 |
| setValue | 设置值 | setValue |
| getValue | 获取值 | getValue |

27
uidoc/detailed/date/custom_date_time.md

@ -1,30 +1,15 @@
# custom_date_time
## 带方向的路径选择
## 日期选择下拉框(可以选择时分秒)
{% method %}
[source](https://jsfiddle.net/fineui/04h6gsps/)
[source](https://jsfiddle.net/fineui/2d9dcxov/)
{% common %}
```javascript
BI.createWidget({
type: "bi.direction_path_chooser",
type: "bi.custom_date_time_combo",
element: "#wrapper",
items: [[{
"region": "合同信息",
"text": "客户ID",
"value": "defa1f7ba8b2684a客户ID"
}, {
"region": "客户信息",
"text": "主键",
"value": "1f4711c201ef1842",
"direction": -1
}, {
"region": "合同的回款信息",
"text": "合同ID",
"value": "e351e9f1d8147947合同ID",
"direction": -1
}]]
});
```
@ -34,10 +19,4 @@ BI.createWidget({
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----|
| items |二维数组,每个元素代表一条路径,相较于[path_chooser](path_chooser.md)多一个属性direction来指定方向 | array| | |
--- ---
type: "bi.year_month_combo",
ref: function (_ref) {
self.widget = _ref;
},
width: 300

21
uidoc/detailed/date/date_combo.md

@ -1,2 +1,23 @@
# date_combo
##日期选择下拉框(弹出的年月选择可以进一步选择日期)
{% method %}
[source](https://jsfiddle.net/fineui/ebps32uy/)
{% common %}
```javascript
BI.createWidget({
type: "bi.date_combo",
element: "#wrapper",
width: 300
});
```
{% endmethod %}
##参数
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----|
--- ---

24
uidoc/detailed/date/date_pane_widget.md

@ -1,2 +1,26 @@
# date_pane_widget
##日期选择下拉框的弹出面板
{% method %}
[source](https://jsfiddle.net/fineui/rL9005u6/)
{% common %}
```javascript
BI.createWidget({
type: "bi.date_pane_widget",
element: "#wrapper",
width: 300
});
```
{% endmethod %}
##参数
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----|
| min | 限定可选日期的下限 | string | | '1900-01-01' |
| max | 限定可选日期的上限 | string | | '2099-12-31' |
| selectedTime | 选中的初始年月 | obj({year: y, month: m}) | | |
--- ---

22
uidoc/detailed/date/year_month_combo.md

@ -1,2 +1,24 @@
# year_month_combo
##年月选择下拉框
{% method %}
[source](https://jsfiddle.net/fineui/ehvjj3xt/)
{% common %}
```javascript
BI.createWidget({
type: "bi.year_month_combo",
width: 300
});
```
{% endmethod %}
##参数
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----|
| yearBehaviors |自定义年份选择的行为(详见[button_group](../../core/abstract/button_group.md)) | object| | |
| monthBehaviors |自定义年份选择的行为(详见[button_group](../../core/abstract/button_group.md)) | object| | |
--- ---

22
uidoc/detailed/date/year_quarter_combo.md

@ -1,2 +1,24 @@
# year_quarter_combo
##年季度选择下拉框
{% method %}
[source](https://jsfiddle.net/fineui/xe6Lt6mo/)
{% common %}
```javascript
BI.createWidget({
type: "bi.year_quarter_combo",
width: 300
});
```
{% endmethod %}
##参数
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----|
| yearBehaviors |自定义年份选择的行为(详见[button_group](../../core/abstract/button_group.md)) | object| | |
| monthBehaviors |自定义年份选择的行为(详见[button_group](../../core/abstract/button_group.md)) | object| | |
--- ---

2
uidoc/detailed/month_combo.md

@ -20,7 +20,7 @@ BI.createWidget({
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----|
| behaviors | 自定义下拉列表中item项的行为,如高亮,标红等 | object | | {} |
| behaviors | 自定义下拉列表中item项的行为,如高亮,标红等(详见[button_group](../core/abstract/button_group.md)) | object | | {} |
--- ---

2
uidoc/detailed/quarter_combo.md

@ -20,6 +20,6 @@ BI.createWidget({
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----|
| behaviors | 自定义下拉列表中item项的行为,如高亮,标红等 | object | | {} |
| behaviors | 自定义下拉列表中item项的行为,如高亮,标红等(详见[button_group](../core/abstract/button_group.md)) | object | | {} |
--- ---

2
uidoc/detailed/year_combo.md

@ -20,7 +20,7 @@ BI.createWidget({
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----|
| behaviors | 自定义下拉列表中item项的行为,如高亮,标红等 | object | | {} |
| behaviors | 自定义下拉列表中item项的行为,如高亮,标红等(详见[button_group](../core/abstract/button_group.md)) | object | | {} |
| min | 限定可选日期的下限 | string | | '1900-01-01' |
| max | 限定可选日期的上限 | string | | '2099-12-31' |

Loading…
Cancel
Save