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.
69 lines
1.6 KiB
69 lines
1.6 KiB
6 years ago
|
const classNamePreview = 'fr.plugin.redis.preview';
|
||
|
const RedisConstantName = 'dec.constant.database.conf.connect.form.redis.value';
|
||
|
const form = BI.Constants.getConstant(RedisConstantName);
|
||
|
|
||
|
const Widget = BI.inherit(BI.Widget, {
|
||
|
render() {
|
||
|
return {
|
||
|
type: 'bi.vertical',
|
||
|
cls:'bi-plugin-redis',
|
||
|
bgap:10,
|
||
|
items: [
|
||
|
{
|
||
|
type: 'bi.left',
|
||
|
height: 30,
|
||
|
items: [
|
||
|
{
|
||
|
type: 'bi.label',
|
||
|
text: '数据库地址:',
|
||
|
height: 24,
|
||
|
width: 115,
|
||
|
textAlign: 'left',
|
||
|
},
|
||
|
{
|
||
|
type: 'bi.label',
|
||
|
text:form.url,
|
||
|
height: 24,
|
||
|
}],
|
||
|
},
|
||
|
{
|
||
|
type: 'bi.left',
|
||
|
height: 30,
|
||
|
items: [
|
||
|
{
|
||
|
type: 'bi.label',
|
||
|
text: '端口:',
|
||
|
height: 24,
|
||
|
width: 115,
|
||
|
textAlign: 'left',
|
||
|
},
|
||
|
{
|
||
|
type: 'bi.label',
|
||
|
text:form.port,
|
||
|
height: 24,
|
||
|
}],
|
||
|
},
|
||
|
{
|
||
|
type: 'bi.left',
|
||
|
height: 30,
|
||
|
items: [
|
||
|
{
|
||
|
type: 'bi.label',
|
||
|
text: '密码:',
|
||
|
height: 24,
|
||
|
width: 115,
|
||
|
textAlign: 'left',
|
||
|
},
|
||
|
{
|
||
|
type: 'bi.label',
|
||
|
text:'********',
|
||
|
height: 24,
|
||
|
}],
|
||
|
},
|
||
|
],
|
||
|
};
|
||
|
},
|
||
|
});
|
||
|
BI.shortcut(classNamePreview, Widget);
|
||
|
BI.constant('dec.constant.database.conf.connect.form.redis.preview', classNamePreview);
|