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