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)