windy 6 years ago
parent
commit
7a4dd8c110
  1. 98
      demo/js/core/abstract/demo.button_group.js
  2. 98
      dist/demo.js

98
demo/js/core/abstract/demo.button_group.js

@ -7,80 +7,52 @@ Demo.Func = BI.inherit(BI.Widget, {
return { return {
type: "bi.vertical", type: "bi.vertical",
items: [{ items: [{
type: "bi.custom_tree", type: "bi.button_group",
ref: function (_ref) { ref: function (_ref) {
ref = _ref; ref = _ref;
}, },
el: { chooseType: BI.ButtonGroup.CHOOSE_TYPE_NONE,
type: "bi.button_tree", layouts: [{
chooseType: 0, type: "bi.vertical",
layouts: [{ items: [{
type: "bi.vertical" type: "bi.vtape",
}], height: 200
behaviors: { }]
redmark: function () { }],
return true; items: [{
} el: {
type: "bi.label",
text: "button_group是一类具有相同属性或相似属性的抽象, 本案例实现的是布局的嵌套(vertical布局下内嵌center_adapt布局)"
}, },
} height: 150
}, {
el: {
type: "bi.button",
text: "1"
}
}]
}, { }, {
type: "bi.button", type: "bi.button",
text: "populate", text: "populate",
handler: function () { handler: function () {
ref.populate([ ref.populate([{
{ el: {
"type": "bi.multilayer_icon_tree_leaf_item", type: "bi.label",
"id": 0, text: "1"
"pId": 100,
"text": "归一化1",
"title": "归一化1",
"value": {
"modelType": 100,
"modelName": "归一化1"
},
"isParent": false,
"layer": 1
},
{
"type": "bi.multilayer_icon_tree_leaf_item",
"id": 1,
"pId": 100,
"text": "标准化1",
"title": "标准化1",
"value": {
"modelType": 100,
"modelName": "标准化1"
},
"isParent": false,
"layer": 1
}, },
{ height: 50
"type": "bi.multilayer_icon_tree_leaf_item", }, {
"id": 2, el: {
"pId": 103, type: "bi.button",
"text": "主成分1", text: "2"
"title": "主成分1",
"value": {
"modelType": 103,
"modelName": "主成分1"
},
"isParent": false,
"layer": 1
}, },
{ height: 50
"type": "bi.multilayer_icon_tree_leaf_item", }, {
"id": 3, el: {
"pId": 102, type: "bi.label",
"text": "特征工程1", text: "3"
"title": "特征工程1",
"value": {
"modelType": 102,
"modelName": "特征工程1"
},
"isParent": false,
"layer": 1
} }
], "t"); }]);
} }
}] }]

98
dist/demo.js vendored

@ -4581,80 +4581,52 @@ BI.shortcut("demo.tab", Demo.Func);Demo.Func = BI.inherit(BI.Widget, {
return { return {
type: "bi.vertical", type: "bi.vertical",
items: [{ items: [{
type: "bi.custom_tree", type: "bi.button_group",
ref: function (_ref) { ref: function (_ref) {
ref = _ref; ref = _ref;
}, },
el: { chooseType: BI.ButtonGroup.CHOOSE_TYPE_NONE,
type: "bi.button_tree", layouts: [{
chooseType: 0, type: "bi.vertical",
layouts: [{ items: [{
type: "bi.vertical" type: "bi.vtape",
}], height: 200
behaviors: { }]
redmark: function () { }],
return true; items: [{
} el: {
type: "bi.label",
text: "button_group是一类具有相同属性或相似属性的抽象, 本案例实现的是布局的嵌套(vertical布局下内嵌center_adapt布局)"
}, },
} height: 150
}, {
el: {
type: "bi.button",
text: "1"
}
}]
}, { }, {
type: "bi.button", type: "bi.button",
text: "populate", text: "populate",
handler: function () { handler: function () {
ref.populate([ ref.populate([{
{ el: {
"type": "bi.multilayer_icon_tree_leaf_item", type: "bi.label",
"id": 0, text: "1"
"pId": 100,
"text": "归一化1",
"title": "归一化1",
"value": {
"modelType": 100,
"modelName": "归一化1"
},
"isParent": false,
"layer": 1
},
{
"type": "bi.multilayer_icon_tree_leaf_item",
"id": 1,
"pId": 100,
"text": "标准化1",
"title": "标准化1",
"value": {
"modelType": 100,
"modelName": "标准化1"
},
"isParent": false,
"layer": 1
}, },
{ height: 50
"type": "bi.multilayer_icon_tree_leaf_item", }, {
"id": 2, el: {
"pId": 103, type: "bi.button",
"text": "主成分1", text: "2"
"title": "主成分1",
"value": {
"modelType": 103,
"modelName": "主成分1"
},
"isParent": false,
"layer": 1
}, },
{ height: 50
"type": "bi.multilayer_icon_tree_leaf_item", }, {
"id": 3, el: {
"pId": 102, type: "bi.label",
"text": "特征工程1", text: "3"
"title": "特征工程1",
"value": {
"modelType": 102,
"modelName": "特征工程1"
},
"isParent": false,
"layer": 1
} }
], "t"); }]);
} }
}] }]

Loading…
Cancel
Save