redis数据集插件。
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.
 
 
 
 
 
 

38 lines
1012 B

import { shortcut } from '@core/core';
@shortcut()
export class ListItem extends BI.BasicButton {
static xtype = 'dec.dcm.connection.plugin.redis.table_list.list_item'
props = {
text: '',
height: 20,
showIcon: false,
baseCls: 'bi-list-item-active',
}
render() {
const { text, showIcon } = this.options;
if(showIcon){
return {
type: BI.HTapeLayout.xtype,
items: [{
el: {
type: BI.IconLabel.xtype,
cls: 'redis-column-font',
},
width: 25,
}, {
type: BI.Label.xtype,
textAlign: 'left',
text,
}],
};
}else{
return {
type: BI.Label.xtype,
textAlign: 'left',
lgap: 5,
text,
}
}
}
}