帆软决策平台数据连接界面库
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.7 KiB

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',
6 years ago
text: BI.i18nText('BI-Connection-Form-Database-Addr'),
height: 24,
width: 115,
textAlign: 'left',
},
{
type: 'bi.label',
text:form.url,
height: 24,
}],
},
{
type: 'bi.left',
height: 30,
items: [
{
type: 'bi.label',
6 years ago
text: BI.i18nText('BI-Connection-Form-Database-Port'),
height: 24,
width: 115,
textAlign: 'left',
},
{
type: 'bi.label',
text:form.port,
height: 24,
}],
},
{
type: 'bi.left',
height: 30,
items: [
{
type: 'bi.label',
6 years ago
text: BI.i18nText('BI-Connection-Form-Password'),
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);