|
|
@ -28,12 +28,7 @@ Demo.Func = BI.inherit(BI.Widget, { |
|
|
|
hgap: 30 |
|
|
|
hgap: 30 |
|
|
|
}] |
|
|
|
}] |
|
|
|
}, |
|
|
|
}, |
|
|
|
items: BI.deepClone(TREEITEMS), |
|
|
|
items: BI.deepClone(TREEITEMS) |
|
|
|
expander: { |
|
|
|
|
|
|
|
el: {}, |
|
|
|
|
|
|
|
popup: {type: "bi.custom_tree"}, |
|
|
|
|
|
|
|
trigger: "hover" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
return this.tree; |
|
|
|
return this.tree; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -63,7 +58,8 @@ Demo.Func = BI.inherit(BI.Widget, { |
|
|
|
}]); |
|
|
|
}]); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (op.node.id == 1) { |
|
|
|
if (op.node.id == 1) { |
|
|
|
callback([{ |
|
|
|
callback([ |
|
|
|
|
|
|
|
{ |
|
|
|
id: 11, |
|
|
|
id: 11, |
|
|
|
pId: 1, |
|
|
|
pId: 1, |
|
|
|
type: "bi.plus_group_node", |
|
|
|
type: "bi.plus_group_node", |
|
|
@ -71,49 +67,49 @@ Demo.Func = BI.inherit(BI.Widget, { |
|
|
|
value: 11, |
|
|
|
value: 11, |
|
|
|
height: 25, |
|
|
|
height: 25, |
|
|
|
isParent: true |
|
|
|
isParent: true |
|
|
|
}, { |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
id: 12, |
|
|
|
id: 12, |
|
|
|
pId: 1, |
|
|
|
pId: 1, |
|
|
|
type: "bi.single_select_item", |
|
|
|
type: "bi.single_select_item", |
|
|
|
text: "test12", |
|
|
|
text: "test12", |
|
|
|
value: 12, |
|
|
|
value: 12, |
|
|
|
height: 35 |
|
|
|
height: 35 |
|
|
|
}, { |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
id: 13, |
|
|
|
id: 13, |
|
|
|
pId: 1, |
|
|
|
pId: 1, |
|
|
|
type: "bi.single_select_item", |
|
|
|
type: "bi.single_select_item", |
|
|
|
text: "test13", |
|
|
|
text: "test13", |
|
|
|
value: 13, |
|
|
|
value: 13, |
|
|
|
height: 35 |
|
|
|
height: 35 |
|
|
|
}, { |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
id: 14, |
|
|
|
id: 14, |
|
|
|
pId: 1, |
|
|
|
pId: 1, |
|
|
|
type: "bi.single_select_item", |
|
|
|
type: "bi.single_select_item", |
|
|
|
text: "test14", |
|
|
|
text: "test14", |
|
|
|
value: 14, |
|
|
|
value: 14, |
|
|
|
height: 35 |
|
|
|
height: 35 |
|
|
|
}, { |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
id: 15, |
|
|
|
id: 15, |
|
|
|
pId: 1, |
|
|
|
pId: 1, |
|
|
|
type: "bi.single_select_item", |
|
|
|
type: "bi.single_select_item", |
|
|
|
text: "test15", |
|
|
|
text: "test15", |
|
|
|
value: 15, |
|
|
|
value: 15, |
|
|
|
height: 35 |
|
|
|
height: 35 |
|
|
|
}, { |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
id: 16, |
|
|
|
id: 16, |
|
|
|
pId: 1, |
|
|
|
pId: 1, |
|
|
|
type: "bi.single_select_item", |
|
|
|
type: "bi.single_select_item", |
|
|
|
text: "test16", |
|
|
|
text: "test16", |
|
|
|
value: 16, |
|
|
|
value: 16, |
|
|
|
height: 35 |
|
|
|
height: 35 |
|
|
|
}, { |
|
|
|
}, |
|
|
|
id: 17,
|
|
|
|
{id: 17, pId: 1, type: "bi.single_select_item", text: "test17", value: 17, height: 35} |
|
|
|
pId: 1,
|
|
|
|
]); |
|
|
|
type: "bi.single_select_item",
|
|
|
|
|
|
|
|
text: "test17",
|
|
|
|
|
|
|
|
value: 17,
|
|
|
|
|
|
|
|
height: 35 |
|
|
|
|
|
|
|
}]); |
|
|
|
|
|
|
|
} else if (op.node.id == 2) { |
|
|
|
} else if (op.node.id == 2) { |
|
|
|
callback([{ |
|
|
|
callback([{ |
|
|
|
id: 21, |
|
|
|
id: 21, |
|
|
@ -122,7 +118,8 @@ Demo.Func = BI.inherit(BI.Widget, { |
|
|
|
text: "test21", |
|
|
|
text: "test21", |
|
|
|
value: 21, |
|
|
|
value: 21, |
|
|
|
height: 35 |
|
|
|
height: 35 |
|
|
|
}, { |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
id: 22, |
|
|
|
id: 22, |
|
|
|
pId: 2, |
|
|
|
pId: 2, |
|
|
|
type: "bi.single_select_item", |
|
|
|
type: "bi.single_select_item", |
|
|
@ -154,12 +151,6 @@ Demo.Func = BI.inherit(BI.Widget, { |
|
|
|
vgap: 0 |
|
|
|
vgap: 0 |
|
|
|
}] |
|
|
|
}] |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
expander: { |
|
|
|
|
|
|
|
el: {}, |
|
|
|
|
|
|
|
popup: {type: "bi.custom_tree"}, |
|
|
|
|
|
|
|
trigger: "click", |
|
|
|
|
|
|
|
direction: "bottom" |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
return this.asyncTree; |
|
|
|
return this.asyncTree; |
|
|
@ -177,9 +168,11 @@ Demo.Func = BI.inherit(BI.Widget, { |
|
|
|
row: 0, |
|
|
|
row: 0, |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.vtape", |
|
|
|
type: "bi.vtape", |
|
|
|
items: [{ |
|
|
|
items: [ |
|
|
|
|
|
|
|
{ |
|
|
|
el: this._createDefaultTree() |
|
|
|
el: this._createDefaultTree() |
|
|
|
}, { |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.center", |
|
|
|
type: "bi.center", |
|
|
|
hgap: 10, |
|
|
|
hgap: 10, |
|
|
@ -202,20 +195,24 @@ Demo.Func = BI.inherit(BI.Widget, { |
|
|
|
}] |
|
|
|
}] |
|
|
|
}, |
|
|
|
}, |
|
|
|
height: 30 |
|
|
|
height: 30 |
|
|
|
}] |
|
|
|
} |
|
|
|
|
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
column: 1, |
|
|
|
column: 1, |
|
|
|
row: 0, |
|
|
|
row: 0, |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.vtape", |
|
|
|
type: "bi.vtape", |
|
|
|
items: [{ |
|
|
|
items: [ |
|
|
|
|
|
|
|
{ |
|
|
|
type: "bi.label", |
|
|
|
type: "bi.label", |
|
|
|
text: "异步加载数据", |
|
|
|
text: "异步加载数据", |
|
|
|
height: 30 |
|
|
|
height: 30 |
|
|
|
}, { |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
el: this._createAsyncTree() |
|
|
|
el: this._createAsyncTree() |
|
|
|
}, { |
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
el: { |
|
|
|
el: { |
|
|
|
type: "bi.center", |
|
|
|
type: "bi.center", |
|
|
|
hgap: 10, |
|
|
|
hgap: 10, |
|
|
@ -238,7 +235,8 @@ Demo.Func = BI.inherit(BI.Widget, { |
|
|
|
}] |
|
|
|
}] |
|
|
|
}, |
|
|
|
}, |
|
|
|
height: 30 |
|
|
|
height: 30 |
|
|
|
}] |
|
|
|
} |
|
|
|
|
|
|
|
] |
|
|
|
} |
|
|
|
} |
|
|
|
}] |
|
|
|
}] |
|
|
|
}); |
|
|
|
}); |
|
|
|