|
|
@ -953,7 +953,7 @@ BI.shortcut("demo.collection_table", Demo.Func);Demo.Func = BI.inherit(BI.Widget |
|
|
|
var table = BI.createWidget({ |
|
|
|
var table = BI.createWidget({ |
|
|
|
type: "bi.resizable_table", |
|
|
|
type: "bi.resizable_table", |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.grid_table", |
|
|
|
type: "bi.grid_table" |
|
|
|
}, |
|
|
|
}, |
|
|
|
width: 600, |
|
|
|
width: 600, |
|
|
|
height: 500, |
|
|
|
height: 500, |
|
|
@ -1009,7 +1009,7 @@ BI.shortcut("demo.grid_table", Demo.Func);Demo.Func = BI.inherit(BI.Widget, { |
|
|
|
var table = BI.createWidget({ |
|
|
|
var table = BI.createWidget({ |
|
|
|
type: "bi.resizable_table", |
|
|
|
type: "bi.resizable_table", |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.grid_table", |
|
|
|
type: "bi.grid_table" |
|
|
|
}, |
|
|
|
}, |
|
|
|
width: 600, |
|
|
|
width: 600, |
|
|
|
height: 500, |
|
|
|
height: 500, |
|
|
@ -1972,7 +1972,7 @@ BI.shortcut("demo.calendar", Demo.Func);Demo.Func = BI.inherit(BI.Widget, { |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
el: editor, |
|
|
|
el: editor, |
|
|
|
left: 100, |
|
|
|
left: 100, |
|
|
|
top: 50, |
|
|
|
top: 50 |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
el: clipboard, |
|
|
|
el: clipboard, |
|
|
|
left: 100, |
|
|
|
left: 100, |
|
|
@ -2420,7 +2420,7 @@ BI.shortcut("demo.all_count_pager", Demo.Func);Demo.Func = BI.inherit(BI.Widget, |
|
|
|
vgap: 50, |
|
|
|
vgap: 50, |
|
|
|
element: this, |
|
|
|
element: this, |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
type: "bi.direction_pager", |
|
|
|
type: "bi.direction_pager" |
|
|
|
}] |
|
|
|
}] |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
@ -2690,7 +2690,7 @@ BI.shortcut("demo.popup_panel", Demo.Func);Demo.Func = BI.inherit(BI.Widget, { |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.resizable_table", |
|
|
|
type: "bi.resizable_table", |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.grid_table", |
|
|
|
type: "bi.grid_table" |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
width: 600, |
|
|
|
width: 600, |
|
|
@ -3923,7 +3923,7 @@ BI.DemoLevelTree = BI.inherit(BI.Widget, { |
|
|
|
"text": "B", |
|
|
|
"text": "B", |
|
|
|
value: 2, |
|
|
|
value: 2, |
|
|
|
isParent: true, |
|
|
|
isParent: true, |
|
|
|
open: true, |
|
|
|
open: true |
|
|
|
}]) |
|
|
|
}]) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (op.node.id == 1) { |
|
|
|
if (op.node.id == 1) { |
|
|
@ -3941,14 +3941,14 @@ BI.DemoLevelTree = BI.inherit(BI.Widget, { |
|
|
|
"pId": 1, |
|
|
|
"pId": 1, |
|
|
|
"text": "test12", |
|
|
|
"text": "test12", |
|
|
|
value: 12, |
|
|
|
value: 12, |
|
|
|
layer: 1, |
|
|
|
layer: 1 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
"id": 13, |
|
|
|
"id": 13, |
|
|
|
"pId": 1, |
|
|
|
"pId": 1, |
|
|
|
"text": "test13", |
|
|
|
"text": "test13", |
|
|
|
value: 13, |
|
|
|
value: 13, |
|
|
|
layer: 1, |
|
|
|
layer: 1 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
"id": 14, |
|
|
|
"id": 14, |
|
|
@ -3963,14 +3963,14 @@ BI.DemoLevelTree = BI.inherit(BI.Widget, { |
|
|
|
"pId": 1, |
|
|
|
"pId": 1, |
|
|
|
"text": "test15", |
|
|
|
"text": "test15", |
|
|
|
value: 15, |
|
|
|
value: 15, |
|
|
|
layer: 1, |
|
|
|
layer: 1 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
"id": 16, |
|
|
|
"id": 16, |
|
|
|
"pId": 1, |
|
|
|
"pId": 1, |
|
|
|
"text": "test16", |
|
|
|
"text": "test16", |
|
|
|
value: 16, |
|
|
|
value: 16, |
|
|
|
layer: 1, |
|
|
|
layer: 1 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{"id": 17, "pId": 1, "text": "test17", layer: 1, value: 17} |
|
|
|
{"id": 17, "pId": 1, "text": "test17", layer: 1, value: 17} |
|
|
|
]) |
|
|
|
]) |
|
|
@ -3980,14 +3980,14 @@ BI.DemoLevelTree = BI.inherit(BI.Widget, { |
|
|
|
"pId": 2, |
|
|
|
"pId": 2, |
|
|
|
"text": "test21", |
|
|
|
"text": "test21", |
|
|
|
value: 21, |
|
|
|
value: 21, |
|
|
|
layer: 1, |
|
|
|
layer: 1 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
"id": 22, |
|
|
|
"id": 22, |
|
|
|
"pId": 2, |
|
|
|
"pId": 2, |
|
|
|
"text": "test22", |
|
|
|
"text": "test22", |
|
|
|
value: 22, |
|
|
|
value: 22, |
|
|
|
layer: 1, |
|
|
|
layer: 1 |
|
|
|
}]) |
|
|
|
}]) |
|
|
|
} else if (op.node.id == 11) { |
|
|
|
} else if (op.node.id == 11) { |
|
|
|
callback([{ |
|
|
|
callback([{ |
|
|
@ -3995,7 +3995,7 @@ BI.DemoLevelTree = BI.inherit(BI.Widget, { |
|
|
|
"pId": 11, |
|
|
|
"pId": 11, |
|
|
|
"text": "test111", |
|
|
|
"text": "test111", |
|
|
|
value: 111, |
|
|
|
value: 111, |
|
|
|
layer: 2, |
|
|
|
layer: 2 |
|
|
|
}]) |
|
|
|
}]) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -4063,7 +4063,7 @@ BI.DetailTableCell = BI.inherit(BI.Widget, { |
|
|
|
if (BI.isNotNull(o.styles) && BI.isObject(o.styles)) { |
|
|
|
if (BI.isNotNull(o.styles) && BI.isObject(o.styles)) { |
|
|
|
this.element.css(o.styles); |
|
|
|
this.element.css(o.styles); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.shortcut("bi.detail_table_cell", BI.DetailTableCell);/** |
|
|
|
BI.shortcut("bi.detail_table_cell", BI.DetailTableCell);/** |
|
|
|
* Created by Young's on 2016/4/15. |
|
|
|
* Created by Young's on 2016/4/15. |
|
|
@ -4100,7 +4100,7 @@ BI.DetailTableHeader = BI.inherit(BI.Widget, { |
|
|
|
if (BI.isNotNull(o.styles) && BI.isObject(o.styles)) { |
|
|
|
if (BI.isNotNull(o.styles) && BI.isObject(o.styles)) { |
|
|
|
this.element.css(o.styles); |
|
|
|
this.element.css(o.styles); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.shortcut("bi.detail_table_header", BI.DetailTableHeader);Demo.Face = BI.inherit(BI.Widget, { |
|
|
|
BI.shortcut("bi.detail_table_header", BI.DetailTableHeader);Demo.Face = BI.inherit(BI.Widget, { |
|
|
|
props: { |
|
|
|
props: { |
|
|
@ -4243,7 +4243,7 @@ BI.shortcut("demo.large_table", Demo.Face);/** |
|
|
|
BI.NormalSequenceHeaderCell = BI.inherit(BI.Widget, { |
|
|
|
BI.NormalSequenceHeaderCell = BI.inherit(BI.Widget, { |
|
|
|
_defaultConfig: function () { |
|
|
|
_defaultConfig: function () { |
|
|
|
return BI.extend(BI.NormalSequenceHeaderCell.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
return BI.extend(BI.NormalSequenceHeaderCell.superclass._defaultConfig.apply(this, arguments), { |
|
|
|
baseCls: "bi-normal-sequence-header-cell", |
|
|
|
baseCls: "bi-normal-sequence-header-cell" |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
@ -4409,7 +4409,7 @@ Demo.SortTree = BI.inherit(BI.Widget, { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
return nodes; |
|
|
|
return nodes; |
|
|
|
}, |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.shortcut("demo.sort_tree", Demo.SortTree);Demo.Center = BI.inherit(BI.Widget, { |
|
|
|
BI.shortcut("demo.sort_tree", Demo.SortTree);Demo.Center = BI.inherit(BI.Widget, { |
|
|
|
props: { |
|
|
|
props: { |
|
|
@ -4537,7 +4537,7 @@ Demo.TreeValueChooser = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|
type: "bi.tree_value_chooser_pane", |
|
|
|
type: "bi.tree_value_chooser_pane", |
|
|
|
items: BI.deepClone(Demo.CONSTANTS.TREEITEMS), |
|
|
|
items: BI.deepClone(Demo.CONSTANTS.TREEITEMS) |
|
|
|
// itemsCreator: function (op, callback) {
|
|
|
|
// itemsCreator: function (op, callback) {
|
|
|
|
// callback(tree);
|
|
|
|
// callback(tree);
|
|
|
|
// }
|
|
|
|
// }
|
|
|
@ -4571,7 +4571,7 @@ BI.shortcut("demo.value_chooser_combo", Demo.ValueChooserCombo);Demo.ValueChoose |
|
|
|
render: function () { |
|
|
|
render: function () { |
|
|
|
return { |
|
|
|
return { |
|
|
|
type: "bi.value_chooser_pane", |
|
|
|
type: "bi.value_chooser_pane", |
|
|
|
items: BI.deepClone(Demo.CONSTANTS.ITEMS), |
|
|
|
items: BI.deepClone(Demo.CONSTANTS.ITEMS) |
|
|
|
// itemsCreator: function (op, callback) {
|
|
|
|
// itemsCreator: function (op, callback) {
|
|
|
|
// callback(BI.deepClone(Demo.CONSTANTS.ITEMS));
|
|
|
|
// callback(BI.deepClone(Demo.CONSTANTS.ITEMS));
|
|
|
|
// }
|
|
|
|
// }
|
|
|
@ -5195,7 +5195,7 @@ var viewRouter = new (BI.inherit(BI.WRouter, { |
|
|
|
|
|
|
|
|
|
|
|
"/tmp": "TmpView", |
|
|
|
"/tmp": "TmpView", |
|
|
|
"/tmp/child": "TmpChildView", |
|
|
|
"/tmp/child": "TmpChildView", |
|
|
|
"/tmp/child/child": "TmpChildChildView", |
|
|
|
"/tmp/child/child": "TmpChildChildView" |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
getSkipToView: function (v) { |
|
|
|
getSkipToView: function (v) { |
|
|
@ -6596,7 +6596,7 @@ BI.shortcut("demo.tab", Demo.Func);Demo.Func = BI.inherit(BI.Widget, { |
|
|
|
type: "bi.vertical", |
|
|
|
type: "bi.vertical", |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
type: "bi.vtape", |
|
|
|
type: "bi.vtape", |
|
|
|
height: 200, |
|
|
|
height: 200 |
|
|
|
}] |
|
|
|
}] |
|
|
|
}], |
|
|
|
}], |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
@ -6604,7 +6604,7 @@ BI.shortcut("demo.tab", Demo.Func);Demo.Func = BI.inherit(BI.Widget, { |
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
|
text: "button_group是一类具有相同属性或相似属性的抽象, 本案例实现的是布局的嵌套(vertical布局下内嵌center_adapt布局)" |
|
|
|
text: "button_group是一类具有相同属性或相似属性的抽象, 本案例实现的是布局的嵌套(vertical布局下内嵌center_adapt布局)" |
|
|
|
}, |
|
|
|
}, |
|
|
|
height: 150, |
|
|
|
height: 150 |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.button", |
|
|
|
type: "bi.button", |
|
|
@ -6650,7 +6650,7 @@ BI.shortcut("demo.button_group", Demo.Func);Demo.Func = BI.inherit(BI.Widget, { |
|
|
|
layouts: [{ |
|
|
|
layouts: [{ |
|
|
|
type: "bi.vertical" |
|
|
|
type: "bi.vertical" |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
type: "bi.center_adapt", |
|
|
|
type: "bi.center_adapt" |
|
|
|
}], |
|
|
|
}], |
|
|
|
items: [{ |
|
|
|
items: [{ |
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
@ -7016,7 +7016,7 @@ BI.shortcut("demo.grid_view", Demo.Func);Demo.Func = BI.inherit(BI.Widget, { |
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
|
width: 200, |
|
|
|
width: 200, |
|
|
|
height: 200, |
|
|
|
height: 200, |
|
|
|
text: (i + 1) + "." + item.text, |
|
|
|
text: (i + 1) + "." + item.text |
|
|
|
}); |
|
|
|
}); |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
@ -7143,7 +7143,7 @@ BI.shortcut("demo.virtual_group_item", Demo.Item);Demo.Func = BI.inherit(BI.Widg |
|
|
|
return BI.extend({}, item, { |
|
|
|
return BI.extend({}, item, { |
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
|
height: 30, |
|
|
|
height: 30, |
|
|
|
text: (i + 1) + "." + item.text, |
|
|
|
text: (i + 1) + "." + item.text |
|
|
|
}); |
|
|
|
}); |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
@ -7281,7 +7281,7 @@ BI.shortcut("demo.border", Demo.BorderLayout);Demo.CenterAdapt = BI.inherit(BI.W |
|
|
|
cls: "layout-bg1" |
|
|
|
cls: "layout-bg1" |
|
|
|
}] |
|
|
|
}] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
BI.shortcut("demo.center_adapt", Demo.CenterAdapt);/** |
|
|
|
BI.shortcut("demo.center_adapt", Demo.CenterAdapt);/** |
|
|
|
* Created by User on 2017/3/22. |
|
|
|
* Created by User on 2017/3/22. |
|
|
@ -8510,15 +8510,15 @@ BI.shortcut("demo.vtape", Demo.VtapeLayout);Demo.Face = BI.inherit(BI.Widget, { |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
text: "column 1.222222222222222222222222222222222222", |
|
|
|
text: "column 1.222222222222222222222222222222222222", |
|
|
|
cls: "dot-e-font", |
|
|
|
cls: "dot-e-font", |
|
|
|
value: 22, |
|
|
|
value: 22 |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
text: "column 1.3", |
|
|
|
text: "column 1.3", |
|
|
|
cls: "dot-e-font", |
|
|
|
cls: "dot-e-font", |
|
|
|
value: 23, |
|
|
|
value: 23 |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
text: "column 1.4", |
|
|
|
text: "column 1.4", |
|
|
|
cls: "dot-e-font", |
|
|
|
cls: "dot-e-font", |
|
|
|
value: 24, |
|
|
|
value: 24 |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
text: "column 1.5", |
|
|
|
text: "column 1.5", |
|
|
|
cls: "dot-e-font", |
|
|
|
cls: "dot-e-font", |
|
|
@ -8541,7 +8541,7 @@ BI.shortcut("demo.vtape", Demo.VtapeLayout);Demo.Face = BI.inherit(BI.Widget, { |
|
|
|
height: 25, |
|
|
|
height: 25, |
|
|
|
text: "column 2.1", |
|
|
|
text: "column 2.1", |
|
|
|
value: 11 |
|
|
|
value: 11 |
|
|
|
}, {text: "column 2.2", value: 12, cls: "dot-e-font"}], |
|
|
|
}, {text: "column 2.2", value: 12, cls: "dot-e-font"}] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
@ -10417,7 +10417,7 @@ BI.shortcut("demo.tmp", Demo.Func); |
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
|
cls: "layout-bg1", |
|
|
|
cls: "layout-bg1", |
|
|
|
width: 150 |
|
|
|
width: 150 |
|
|
|
}), |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
}, { |
|
|
|
}, { |
|
|
|
type: "bi.vertical", |
|
|
|
type: "bi.vertical", |
|
|
@ -12012,7 +12012,7 @@ BI.shortcut("demo.date_time", Demo.CustomDateTime);Demo.Downlist = BI.inherit(BI |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
text: "column 1.222222222222222222222222222222222222", |
|
|
|
text: "column 1.222222222222222222222222222222222222", |
|
|
|
cls: "dot-e-font", |
|
|
|
cls: "dot-e-font", |
|
|
|
value: 22, |
|
|
|
value: 22 |
|
|
|
}] |
|
|
|
}] |
|
|
|
}], |
|
|
|
}], |
|
|
|
[{ |
|
|
|
[{ |
|
|
@ -12800,7 +12800,7 @@ Demo.RelationView = BI.inherit(BI.Widget, { |
|
|
|
foreign: {region: "B", value: "b1", text: "b1字段"} |
|
|
|
foreign: {region: "B", value: "b1", text: "b1字段"} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
primary: {region: "X33", value: "x233", text: "x233字段"}, |
|
|
|
primary: {region: "X33", value: "x233", text: "x233字段"} |
|
|
|
} |
|
|
|
} |
|
|
|
] |
|
|
|
] |
|
|
|
}); |
|
|
|
}); |
|
|
@ -13194,7 +13194,7 @@ BI.shortcut("demo.slider", Demo.Slider);Demo.Func = BI.inherit(BI.Widget, { |
|
|
|
type: "bi.page_table_cell", |
|
|
|
type: "bi.page_table_cell", |
|
|
|
text: "node3", |
|
|
|
text: "node3", |
|
|
|
values: [1, 2] |
|
|
|
values: [1, 2] |
|
|
|
}], |
|
|
|
}] |
|
|
|
//values: [1, 2]
|
|
|
|
//values: [1, 2]
|
|
|
|
}]; |
|
|
|
}]; |
|
|
|
|
|
|
|
|
|
|
@ -13213,7 +13213,7 @@ BI.shortcut("demo.slider", Demo.Slider);Demo.Func = BI.inherit(BI.Widget, { |
|
|
|
type: "bi.collection_table" |
|
|
|
type: "bi.collection_table" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
sequence: { |
|
|
|
sequence: { |
|
|
|
type: "bi.sequence_table_dynamic_number" |
|
|
|
type: "bi.sequence_table_dynamic_number" |
|
|
@ -13816,7 +13816,7 @@ BI.shortcut("demo.responsive_table", Demo.Func);Demo.Func = BI.inherit(BI.Widget |
|
|
|
type: "bi.collection_table" |
|
|
|
type: "bi.collection_table" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
sequence: { |
|
|
|
sequence: { |
|
|
|
type: "bi.sequence_table_tree_number" |
|
|
|
type: "bi.sequence_table_tree_number" |
|
|
@ -14225,7 +14225,7 @@ Demo.YearQuarterCombo = BI.inherit(BI.Widget, { |
|
|
|
self.widget = _ref; |
|
|
|
self.widget = _ref; |
|
|
|
}, |
|
|
|
}, |
|
|
|
yearBehaviors: {}, |
|
|
|
yearBehaviors: {}, |
|
|
|
quarterBehaviors: {}, |
|
|
|
quarterBehaviors: {} |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
type: "bi.button", |
|
|
|
type: "bi.button", |
|
|
|
text: "getValue", |
|
|
|
text: "getValue", |
|
|
|