Browse Source

fix: 删除无用的代码

qufenxi
alan 6 years ago
parent
commit
526233429c
  1. 33
      src/modules/pages/connection/list/list_item/icon_text.ts
  2. 3
      src/modules/pages/connection/list/list_item/list_item.ts

33
src/modules/pages/connection/list/list_item/icon_text.ts

@ -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,
},
],
};
}
}

3
src/modules/pages/connection/list/list_item/list_item.ts

@ -1,11 +1,10 @@
import { shortcut, store } from '@core/core'; 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 './list_item.less';
import { ListItemModel, ListItemModelXtype } from './list_item.model'; import { ListItemModel, ListItemModelXtype } from './list_item.model';
import { PAGE_INDEX } from '@constants/constant'; import { PAGE_INDEX } from '@constants/constant';
import { TestStatusXtype, TestStatus, EVENT_CLOSE, EVENT_RELOAD } from 'src/modules/components/test_status/test_status'; import { TestStatusXtype, TestStatus, EVENT_CLOSE, EVENT_RELOAD } from 'src/modules/components/test_status/test_status';
import { hasRegistered } from '../list.service'; import { hasRegistered } from '../list.service';
import { IconTextXtype } from './icon_text';
export const ListItemXtype = 'dec.dcm.connection.list_item'; export const ListItemXtype = 'dec.dcm.connection.list_item';
@shortcut(ListItemXtype) @shortcut(ListItemXtype)
@store(ListItemModelXtype) @store(ListItemModelXtype)

Loading…
Cancel
Save