From 05273ce93e6db5e472eb7d60e3d8830868090a97 Mon Sep 17 00:00:00 2001 From: alan Date: Tue, 24 Sep 2019 17:32:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20DEC-9998=20&&=20DEC-9996=20=E6=9C=AA?= =?UTF-8?q?=E9=80=82=E9=85=8D=E7=9A=84=E6=8F=92=E4=BB=B6=E8=BF=9E=E6=8E=A5?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA=E6=93=8D=E4=BD=9C=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/connection/list/list_item/list_item.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/modules/pages/connection/list/list_item/list_item.ts b/src/modules/pages/connection/list/list_item/list_item.ts index 81c8b72..ce32b2e 100644 --- a/src/modules/pages/connection/list/list_item/list_item.ts +++ b/src/modules/pages/connection/list/list_item/list_item.ts @@ -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, }, ];