From 526233429c79cc27a2b862a73af29d611e34e80c Mon Sep 17 00:00:00 2001 From: alan Date: Thu, 22 Aug 2019 16:04:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../connection/list/list_item/icon_text.ts | 33 ------------------- .../connection/list/list_item/list_item.ts | 3 +- 2 files changed, 1 insertion(+), 35 deletions(-) delete mode 100644 src/modules/pages/connection/list/list_item/icon_text.ts diff --git a/src/modules/pages/connection/list/list_item/icon_text.ts b/src/modules/pages/connection/list/list_item/icon_text.ts deleted file mode 100644 index 07161e4..0000000 --- a/src/modules/pages/connection/list/list_item/icon_text.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { shortcut } from '@core/core'; -import { IconButton, Left, Label } from 'ui'; - -export const IconTextXtype = 'dec.dcm.connection.list_item.icon_text'; -@shortcut(IconTextXtype) -export class IconText extends BI.BasicButton { - props = { - iconCls: '', - text: '', - height: 25, - } - - render() { - const { iconCls, text } = this.options; - - return { - type: Left, - items: [ - { - type: IconButton, - cls: `${iconCls} icon-size-16`, - title: text, - stopPropagation: true, - }, - { - type: Label, - text, - }, - ], - }; - } -} - 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 c83ef09..973f05d 100644 --- a/src/modules/pages/connection/list/list_item/list_item.ts +++ b/src/modules/pages/connection/list/list_item/list_item.ts @@ -1,11 +1,10 @@ import { shortcut, store } from '@core/core'; -import { Label, LeftRightVerticalAdapt, IconLabel, Left, IconButton, BubbleCombo, TextBubblePopupBarView, DownListCombo, Vertical, ButtonGroup, SignEditor } from 'ui'; +import { Label, LeftRightVerticalAdapt, IconLabel, IconButton, DownListCombo, SignEditor } from 'ui'; import './list_item.less'; import { ListItemModel, ListItemModelXtype } from './list_item.model'; import { PAGE_INDEX } from '@constants/constant'; import { TestStatusXtype, TestStatus, EVENT_CLOSE, EVENT_RELOAD } from 'src/modules/components/test_status/test_status'; import { hasRegistered } from '../list.service'; -import { IconTextXtype } from './icon_text'; export const ListItemXtype = 'dec.dcm.connection.list_item'; @shortcut(ListItemXtype) @store(ListItemModelXtype)