Browse Source

日期的国际化先加载 && 详细控件

es6
windy 7 years ago
parent
commit
c66a904331
  1. 2
      Gruntfile.js
  2. 56
      dist/bundle.js
  3. 14
      dist/bundle.min.js
  4. 14
      uidoc/SUMMARY.md
  5. 5
      uidoc/detailed/date/custom_date_time.md
  6. 23
      uidoc/detailed/date/date_combo.md
  7. 24
      uidoc/detailed/date/date_pane_widget.md
  8. 22
      uidoc/detailed/date/year_month_combo.md
  9. 22
      uidoc/detailed/date/year_quarter_combo.md
  10. 2
      uidoc/detailed/month_combo.md
  11. 2
      uidoc/detailed/quarter_combo.md
  12. 2
      uidoc/detailed/year_combo.md

2
Gruntfile.js

@ -99,7 +99,7 @@ module.exports = function (grunt) {
}, },
bundleJs: { 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' 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 * jQuery JavaScript Library v1.9.1
* http://jquery.com/ * http://jquery.com/
* *
@ -93647,30 +93673,4 @@ BI.ValueChooserPane = BI.inherit(BI.AbstractValueChooser, {
} }
}); });
BI.ValueChooserPane.EVENT_CHANGE = "ValueChooserPane.EVENT_CHANGE"; BI.ValueChooserPane.EVENT_CHANGE = "ValueChooserPane.EVENT_CHANGE";
BI.shortcut('bi.value_chooser_pane', BI.ValueChooserPane);BI.servletURL = "https://fanruan.coding.me/fineui/dist/"; BI.shortcut('bi.value_chooser_pane', BI.ValueChooserPane);
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": "全选"
};

14
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

14
uidoc/SUMMARY.md

@ -5,21 +5,21 @@
## 核心控件 ## 核心控件
* 布局 * 布局
* [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) * [center_adapt](core/layout/center_adapt.md)
* [vertical_adapt](core/layout/vertical_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_adapt](core/layout/horizontal_adapt.md)
* [horizontal_auto](core/layout/horizontal_auto.md) * [horizontal_auto](core/layout/horizontal_auto.md)
* [horizontal_float](core/layout/horizontal_float.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) * [float_center](core/layout/float_center.md)
* [vertical](core/layout/vertical.md)
* [horizontal](core/layout/horizontal.md)
* [border](core/layout/border.md) * [border](core/layout/border.md)
* [flow](core/layout/flow.md)
* [inline](core/layout/inline.md) * [inline](core/layout/inline.md)
* [htape](core/layout/htape.md)
* [vtape](core/layout/vtape.md)
* [grid](core/layout/grid.md) * [grid](core/layout/grid.md)
* [table](core/layout/table.md) * [table](core/layout/table.md)
* [td](core/layout/td.md) * [td](core/layout/td.md)

5
uidoc/detailed/date/custom_date_time.md

@ -36,8 +36,3 @@ BI.createWidget({
| :------ |:------------- | :-----| :----|:----| | :------ |:------------- | :-----| :----|:----|
| items |二维数组,每个元素代表一条路径,相较于[path_chooser](path_chooser.md)多一个属性direction来指定方向 | array| | | | items |二维数组,每个元素代表一条路径,相较于[path_chooser](path_chooser.md)多一个属性direction来指定方向 | array| | |
--- --- --- ---
type: "bi.year_month_combo",
ref: function (_ref) {
self.widget = _ref;
},
width: 300

23
uidoc/detailed/date/date_combo.md

@ -1,2 +1,25 @@
# date_combo # date_combo
##日期选择下拉框(弹出的年月选择可以进一步选择日期)
{% method %}
[source](https://jsfiddle.net/fineui/ebps32uy/)
{% common %}
```javascript
BI.createWidget({
type: "bi.date_combo",
element: "#wrapper",
width: 300
});
```
{% endmethod %}
##参数
| 参数 | 说明 | 类型 | 可选值 | 默认值
| :------ |:------------- | :-----| :----|:----|
| yearBehaviors |自定义年份选择的行为(详见[button_group](../../base/abstract/button_group.md)) | object| | |
| monthBehaviors |自定义年份选择的行为(详见[button_group](../../base/abstract/button_group.md)) | object| | |
--- ---

24
uidoc/detailed/date/date_pane_widget.md

@ -1,2 +1,26 @@
# date_pane_widget # 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 # 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](../../base/abstract/button_group.md)) | object| | |
| monthBehaviors |自定义年份选择的行为(详见[button_group](../../base/abstract/button_group.md)) | object| | |
--- ---

22
uidoc/detailed/date/year_quarter_combo.md

@ -1,2 +1,24 @@
# year_quarter_combo # 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](../../base/abstract/button_group.md)) | object| | |
| monthBehaviors |自定义年份选择的行为(详见[button_group](../../base/abstract/button_group.md)) | object| | |
--- ---

2
uidoc/detailed/month_combo.md

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

2
uidoc/detailed/quarter_combo.md

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

2
uidoc/detailed/year_combo.md

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

Loading…
Cancel
Save