From 79b76da194c9a6f690b906a87eb3ee07b7e6a7b5 Mon Sep 17 00:00:00 2001 From: alan Date: Sun, 29 Sep 2019 17:16:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20DEC-10148=20=E4=BF=AE=E6=94=B9=E5=B8=83?= =?UTF-8?q?=E5=B1=80=EF=BC=8C=E9=98=B2=E6=AD=A2=E6=95=B0=E6=8D=AE=E8=BF=9E?= =?UTF-8?q?=E6=8E=A5=E5=90=8D=E8=BF=87=E9=95=BF=E6=98=BE=E7=A4=BA=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E5=B8=83=E5=B1=80=E9=94=99=E4=B9=B1=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/pages/connection/connection.ts | 59 ++++++++++--------- .../connection/list/list_item/list_item.ts | 2 + 2 files changed, 32 insertions(+), 29 deletions(-) diff --git a/src/modules/pages/connection/connection.ts b/src/modules/pages/connection/connection.ts index 227579c..dd40a0b 100644 --- a/src/modules/pages/connection/connection.ts +++ b/src/modules/pages/connection/connection.ts @@ -83,41 +83,42 @@ export class Connection extends BI.Widget { items: [ { el: { - type: LeftRightVerticalAdapt, + type: Htape, ref: (_ref: any) => { this.title = _ref; }, cls: 'bi-border-bottom', - items: { - left: [ - { - type: Label, - lgap: 5, - ref: (_ref: any) => { - this.connectionTitleWidget = _ref; - }, + items: [ + { + type: Label, + lgap: 5, + ref: (_ref: any) => { + this.connectionTitleWidget = _ref; }, - ], - right: [ - { - type: Button, - rgap: 5, - level: 'ignore', - invisible: true, - text: BI.i18nText('Dec-Dcm_Edit'), - ref: (_ref: any) => { - this.connectionEditWidget = _ref; - }, - handler: () => { - this.store.getConnectionStatus().then(re => { - this.store.setPageIndex(PAGE_INDEX.MAINTAIN); - this.store.setDatebaseTypeSelected(''); - }) - .catch(() => {}); - }, + }, + { + el: { + type: VerticalAdapt, + items: [{ + type: Button, + level: 'ignore', + invisible: true, + text: BI.i18nText('Dec-Dcm_Edit'), + ref: (_ref: any) => { + this.connectionEditWidget = _ref; + }, + handler: () => { + this.store.getConnectionStatus().then(re => { + this.store.setPageIndex(PAGE_INDEX.MAINTAIN); + this.store.setDatebaseTypeSelected(''); + }) + .catch(() => {}); + }, + }], }, - ], - }, + width: 90, + }, + ], }, height: 40, }, diff --git a/src/modules/pages/connection/list/list_item/list_item.ts b/src/modules/pages/connection/list/list_item/list_item.ts index f7fe1fa..48e3cd2 100644 --- a/src/modules/pages/connection/list/list_item/list_item.ts +++ b/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; },