帆软决策平台数据连接界面库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

36 lines
998 B

import { shortcut, store } from '@core/core';
import { VerticalAdapt } from 'ui';
import { ListItemModel, ListItemModelXtype } from './list_item.model';
export const ListItemXtype = 'dec.dcm.connection_pool.list_item';
@shortcut(ListItemXtype)
@store(ListItemModelXtype)
export class ListItem extends BI.BasicButton {
props = {
name: '',
height: 25,
baseCls: 'dec-dcm-connection-pool-list-item bi-list-item-active2',
$testId: 'dec-dcm-connection-pool-list-item',
}
store: ListItemModel['store'];
render() {
return {
type: VerticalAdapt,
lgap: 5,
items: [
{
type: BI.Label.xtype,
text: this.options.name,
title: this.options.name,
width: 250,
textAlign: 'left',
},
],
};
}
doClick() {
this.store.setSelected(this.options.name);
}
}