Browse Source

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

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

15
src/modules/pages/connection/connection.ts

@ -83,13 +83,12 @@ export class Connection extends BI.Widget {
items: [
{
el: {
type: LeftRightVerticalAdapt,
type: Htape,
ref: (_ref: any) => {
this.title = _ref;
},
cls: 'bi-border-bottom',
items: {
left: [
items: [
{
type: Label,
lgap: 5,
@ -97,11 +96,11 @@ export class Connection extends BI.Widget {
this.connectionTitleWidget = _ref;
},
},
],
right: [
{
el: {
type: VerticalAdapt,
items: [{
type: Button,
rgap: 5,
level: 'ignore',
invisible: true,
text: BI.i18nText('Dec-Dcm_Edit'),
@ -115,10 +114,12 @@ export class Connection extends BI.Widget {
})
.catch(() => {});
},
}],
},
width: 90,
},
],
},
},
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,
text: name,
width: 210,
textAlign: 'left',
ref: (_ref: any) => {
this.nameLabel = _ref;
},

Loading…
Cancel
Save