|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
import { shortcut, store } from '@core/core'; |
|
|
|
|
import { Label, LeftRightVerticalAdapt, IconLabel, IconButton, DownListCombo, SignEditor } from 'ui'; |
|
|
|
|
import { Label, LeftRightVerticalAdapt, IconLabel, IconButton, DownListCombo, SignEditor, Layout } from 'ui'; |
|
|
|
|
import './list_item.less'; |
|
|
|
|
import { ListItemModel, ListItemModelXtype } from './list_item.model'; |
|
|
|
|
import { PAGE_INDEX, DATA_BASE_DRIVER_LINK } from '@constants/constant'; |
|
|
|
@ -41,7 +41,7 @@ export class ListItem extends BI.BasicButton {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
render() { |
|
|
|
|
const { name } = this.options; |
|
|
|
|
const { name, databaseType } = this.options; |
|
|
|
|
|
|
|
|
|
return { |
|
|
|
|
type: LeftRightVerticalAdapt, |
|
|
|
@ -87,7 +87,7 @@ export class ListItem extends BI.BasicButton {
|
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
right: [ |
|
|
|
|
{ |
|
|
|
|
databaseType ? { |
|
|
|
|
type: DownListCombo, |
|
|
|
|
cls: 'link-item-icon', |
|
|
|
|
stopPropagation: true, |
|
|
|
@ -112,6 +112,8 @@ export class ListItem extends BI.BasicButton {
|
|
|
|
|
}, |
|
|
|
|
}], |
|
|
|
|
|
|
|
|
|
} : { |
|
|
|
|
type: Layout, |
|
|
|
|
}, |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
@ -125,11 +127,13 @@ export class ListItem extends BI.BasicButton {
|
|
|
|
|
const otherIcons = [ |
|
|
|
|
{ |
|
|
|
|
text: BI.i18nText('Dec-Dcm_Type', databaseType), |
|
|
|
|
disabled: true, |
|
|
|
|
cls: 'dcm-info-font', |
|
|
|
|
value: 12, |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
text: BI.i18nText('Dec-Dcm_Creator', creator), |
|
|
|
|
disabled: true, |
|
|
|
|
value: 12, |
|
|
|
|
}, |
|
|
|
|
]; |
|
|
|
|