Browse Source

refactor: update

qufenxi
alan 6 years ago
parent
commit
6cea4063fc
  1. 10
      src/app/connection/more/item/more_link_item.ts

10
src/app/connection/more/item/more_link_item.ts

@ -25,11 +25,9 @@ const Widget: WidgetType = {
type: Img,
width: 120,
height: 90,
src: `img/${name}.jpg`,
src: this._buildResourceUrl(name),
}, {
type: Absolute,
left: 90,
top: -90,
items: [
{
el: {
@ -42,6 +40,8 @@ const Widget: WidgetType = {
this.selected = _ref;
},
},
left: 90,
top: -90,
},
],
}, {
@ -53,6 +53,10 @@ const Widget: WidgetType = {
],
};
},
_buildResourceUrl(name: string) {
// TODO: 目前不知道生产环境下的图片的绝对地址,先这样写用于测试。
return `img/${name}.jpg`;
},
};
BI.shortcut(className, BI.inherit(BI.BasicButton, Widget));
export default className;

Loading…
Cancel
Save