|
|
|
@ -1,11 +1,13 @@
|
|
|
|
|
import './more_link_item.less'; |
|
|
|
|
import {WidgetType, Vertical, Img, Label, Layout, Absolute} from '@ui/index'; |
|
|
|
|
import {WidgetType, Vertical, Img, Label, Layout, Absolute, Vtape} from '@ui/index'; |
|
|
|
|
import ModelName from './more_link_litem.model'; |
|
|
|
|
|
|
|
|
|
const className = 'dec.dcm.component.linkSet.morelink.item'; |
|
|
|
|
const Widget: WidgetType = { |
|
|
|
|
props: { |
|
|
|
|
baseCls: 'dec-webui-dcm-connection-more-link-item bi-border', |
|
|
|
|
height: 120, |
|
|
|
|
width: 120, |
|
|
|
|
}, |
|
|
|
|
_store() { |
|
|
|
|
return BI.Models.getModel(ModelName); |
|
|
|
@ -20,16 +22,17 @@ const Widget: WidgetType = {
|
|
|
|
|
const {text, name} = this.options; |
|
|
|
|
|
|
|
|
|
return { |
|
|
|
|
type: Vertical, |
|
|
|
|
type: Vtape, |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
type: Img, |
|
|
|
|
width: 120, |
|
|
|
|
height: 90, |
|
|
|
|
src: this._buildResourceUrl(name), |
|
|
|
|
}, { |
|
|
|
|
type: Absolute, |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
|
el: { |
|
|
|
|
type: Img, |
|
|
|
|
src: this._buildResourceUrl(name), |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
el: { |
|
|
|
|
type: Layout, |
|
|
|
@ -41,16 +44,17 @@ const Widget: WidgetType = {
|
|
|
|
|
this.selected = _ref; |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
left: 90, |
|
|
|
|
top: -90, |
|
|
|
|
right: 0, |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, { |
|
|
|
|
type: Label, |
|
|
|
|
cls: 'bi-header-background', |
|
|
|
|
height: 27, |
|
|
|
|
width: 120, |
|
|
|
|
text, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
el: { |
|
|
|
|
type: Label, |
|
|
|
|
cls: 'bi-header-background', |
|
|
|
|
text, |
|
|
|
|
}, |
|
|
|
|
height: 30, |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}; |
|
|
|
|