Browse Source

fix: DEC-10148 修改布局,防止数据连接名过长显示导致布局错乱。

qufenxi
alan 5 years ago
parent
commit
79b76da194
  1. 59
      src/modules/pages/connection/connection.ts
  2. 2
      src/modules/pages/connection/list/list_item/list_item.ts

59
src/modules/pages/connection/connection.ts

@ -83,41 +83,42 @@ export class Connection extends BI.Widget {
items: [ items: [
{ {
el: { el: {
type: LeftRightVerticalAdapt, type: Htape,
ref: (_ref: any) => { ref: (_ref: any) => {
this.title = _ref; this.title = _ref;
}, },
cls: 'bi-border-bottom', cls: 'bi-border-bottom',
items: { items: [
left: [ {
{ type: Label,
type: Label, lgap: 5,
lgap: 5, ref: (_ref: any) => {
ref: (_ref: any) => { this.connectionTitleWidget = _ref;
this.connectionTitleWidget = _ref;
},
}, },
], },
right: [ {
{ el: {
type: Button, type: VerticalAdapt,
rgap: 5, items: [{
level: 'ignore', type: Button,
invisible: true, level: 'ignore',
text: BI.i18nText('Dec-Dcm_Edit'), invisible: true,
ref: (_ref: any) => { text: BI.i18nText('Dec-Dcm_Edit'),
this.connectionEditWidget = _ref; ref: (_ref: any) => {
}, this.connectionEditWidget = _ref;
handler: () => { },
this.store.getConnectionStatus().then(re => { handler: () => {
this.store.setPageIndex(PAGE_INDEX.MAINTAIN); this.store.getConnectionStatus().then(re => {
this.store.setDatebaseTypeSelected(''); this.store.setPageIndex(PAGE_INDEX.MAINTAIN);
}) this.store.setDatebaseTypeSelected('');
.catch(() => {}); })
}, .catch(() => {});
},
}],
}, },
], width: 90,
}, },
],
}, },
height: 40, height: 40,
}, },

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

@ -53,6 +53,8 @@ export class ListItem extends BI.BasicButton {
{ {
type: Label, type: Label,
text: name, text: name,
width: 210,
textAlign: 'left',
ref: (_ref: any) => { ref: (_ref: any) => {
this.nameLabel = _ref; this.nameLabel = _ref;
}, },

Loading…
Cancel
Save