Browse Source

Merge pull request #277 in ~GUY/fineui from ~WINDY/fineui:master to master

* commit '2b4033f7d06afbb1df3308536142f0343e467619':
  relationview 标红
es6
windy 7 years ago
parent
commit
b22e2501cb
  1. 7
      demo/js/widget/relationview/demo.relationview.js
  2. 11
      dist/bundle.js
  3. 2
      dist/bundle.min.js
  4. 7
      dist/demo.js
  5. 11
      dist/widget.js
  6. 5
      src/widget/relationview/relationview.item.js
  7. 6
      src/widget/relationview/relationview.js

7
demo/js/widget/relationview/demo.relationview.js

@ -6,7 +6,7 @@ Demo.RelationView = BI.inherit(BI.Widget, {
baseCls: "demo-relation-view" baseCls: "demo-relation-view"
}, },
render: function () { render: function () {
var relationview = BI.createWidget({ this.relationview = BI.createWidget({
type: "bi.relation_view", type: "bi.relation_view",
items: [ items: [
{ {
@ -57,9 +57,12 @@ Demo.RelationView = BI.inherit(BI.Widget, {
return { return {
type: "bi.float_center_adapt", type: "bi.float_center_adapt",
items: [{ items: [{
el: relationview el: this.relationview
}] }]
}; };
},
mounted: function () {
this.relationview.doRedMark("A")
} }
}); });
BI.shortcut("demo.relation_view", Demo.RelationView); BI.shortcut("demo.relation_view", Demo.RelationView);

11
dist/bundle.js vendored

@ -90921,15 +90921,14 @@ BI.RelationViewItem = BI.inherit(BI.BasicButton, {
height: 25, height: 25,
textAlign: "left", textAlign: "left",
width: 70, width: 70,
lgap: 20 lgap: 15
} }
}) })
} }
BI.createWidget({ BI.createWidget({
type: "bi.vertical", type: "bi.vertical",
element: this, element: this,
items: BI.concat([header], body), items: BI.concat([header], body)
lgap: 5
}); });
}, },
@ -91047,6 +91046,12 @@ BI.RelationView = BI.inherit(BI.Widget, {
}); });
}, },
doRedMark: function (keyword) {
BI.each(this.storeViews, function (idx, view) {
view.doRedMark(keyword);
});
},
populate: function (items) { populate: function (items) {
var self = this, o = this.options, c = this._const; var self = this, o = this.options, c = this._const;
o.items = items || []; o.items = items || [];

2
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

7
dist/demo.js vendored

@ -13067,7 +13067,7 @@ Demo.RelationView = BI.inherit(BI.Widget, {
baseCls: "demo-relation-view" baseCls: "demo-relation-view"
}, },
render: function () { render: function () {
var relationview = BI.createWidget({ this.relationview = BI.createWidget({
type: "bi.relation_view", type: "bi.relation_view",
items: [ items: [
{ {
@ -13118,9 +13118,12 @@ Demo.RelationView = BI.inherit(BI.Widget, {
return { return {
type: "bi.float_center_adapt", type: "bi.float_center_adapt",
items: [{ items: [{
el: relationview el: this.relationview
}] }]
}; };
},
mounted: function () {
this.relationview.doRedMark("A")
} }
}); });
BI.shortcut("demo.relation_view", Demo.RelationView);/** BI.shortcut("demo.relation_view", Demo.RelationView);/**

11
dist/widget.js vendored

@ -14867,15 +14867,14 @@ BI.RelationViewItem = BI.inherit(BI.BasicButton, {
height: 25, height: 25,
textAlign: "left", textAlign: "left",
width: 70, width: 70,
lgap: 20 lgap: 15
} }
}) })
} }
BI.createWidget({ BI.createWidget({
type: "bi.vertical", type: "bi.vertical",
element: this, element: this,
items: BI.concat([header], body), items: BI.concat([header], body)
lgap: 5
}); });
}, },
@ -14993,6 +14992,12 @@ BI.RelationView = BI.inherit(BI.Widget, {
}); });
}, },
doRedMark: function (keyword) {
BI.each(this.storeViews, function (idx, view) {
view.doRedMark(keyword);
});
},
populate: function (items) { populate: function (items) {
var self = this, o = this.options, c = this._const; var self = this, o = this.options, c = this._const;
o.items = items || []; o.items = items || [];

5
src/widget/relationview/relationview.item.js

@ -52,15 +52,14 @@ BI.RelationViewItem = BI.inherit(BI.BasicButton, {
height: 25, height: 25,
textAlign: "left", textAlign: "left",
width: 70, width: 70,
lgap: 20 lgap: 15
} }
}) })
} }
BI.createWidget({ BI.createWidget({
type: "bi.vertical", type: "bi.vertical",
element: this, element: this,
items: BI.concat([header], body), items: BI.concat([header], body)
lgap: 5
}); });
}, },

6
src/widget/relationview/relationview.js

@ -102,6 +102,12 @@ BI.RelationView = BI.inherit(BI.Widget, {
}); });
}, },
doRedMark: function (keyword) {
BI.each(this.storeViews, function (idx, view) {
view.doRedMark(keyword);
});
},
populate: function (items) { populate: function (items) {
var self = this, o = this.options, c = this._const; var self = this, o = this.options, c = this._const;
o.items = items || []; o.items = items || [];

Loading…
Cancel
Save