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