From e158ba4acc1ab20fe0b519b449c58eec5051f082 Mon Sep 17 00:00:00 2001 From: youki Date: Tue, 13 Jul 2021 19:16:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20refactor:=20?= =?UTF-8?q?=E8=A1=A5=E5=85=85=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../textvaluecheckcombo/popup.textvaluecheck.ts | 2 +- typescript/case/toolbar/toolbar.multiselect.ts | 11 +++++++++++ typescript/core/wrapper/layout/layout.td.ts | 12 ++++++++++++ typescript/index.ts | 3 +++ 4 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 typescript/core/wrapper/layout/layout.td.ts diff --git a/typescript/case/combo/textvaluecheckcombo/popup.textvaluecheck.ts b/typescript/case/combo/textvaluecheckcombo/popup.textvaluecheck.ts index aad044461..353df0b9a 100644 --- a/typescript/case/combo/textvaluecheckcombo/popup.textvaluecheck.ts +++ b/typescript/case/combo/textvaluecheckcombo/popup.textvaluecheck.ts @@ -6,5 +6,5 @@ export declare class TextValueCheckComboPopup extends Pane { populate(items: any[]): void; getValue(): any; - setValue(): void; + setValue(v: any): void; } diff --git a/typescript/case/toolbar/toolbar.multiselect.ts b/typescript/case/toolbar/toolbar.multiselect.ts index a0e5d1d68..a34fba445 100644 --- a/typescript/case/toolbar/toolbar.multiselect.ts +++ b/typescript/case/toolbar/toolbar.multiselect.ts @@ -4,6 +4,17 @@ export declare class MultiSelectBar extends BasicButton { static xtype: string; static EVENT_CHANGE: string; + + props: { + text: string; + isAllCheckedBySelectedValue: Function; + disableSelected: boolean; + isHalfCheckedBySelectedValue: Function; + halfSelected: boolean; + iconWrapperWidth: number; + iconWidth: number; + iconHeight: number; + } & BasicButton['props']; setHalfSelected(v: boolean): void; diff --git a/typescript/core/wrapper/layout/layout.td.ts b/typescript/core/wrapper/layout/layout.td.ts new file mode 100644 index 000000000..8abef61a1 --- /dev/null +++ b/typescript/core/wrapper/layout/layout.td.ts @@ -0,0 +1,12 @@ +import { Layout } from '../layout'; + +export declare class TdLayout extends Layout { + static xtype: string; + + props: { + columnSize: number[]; + rowSize: number[]; + verticalAlign: 'middle' | 'top' | 'bottom' | 'stretch'; + horizontalAlign: 'left' | 'right' | 'center' | 'stretch'; + } +} diff --git a/typescript/index.ts b/typescript/index.ts index a93dcc858..47816ea45 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -173,6 +173,7 @@ import { SingleSelectInsertList } from './widget/singleselect/singleselectlist.i import { MultiSelectTree } from './widget/multiselecttree/multiselecttree'; import { HtmlLabel } from "./base/single/label/html.label"; import { TreeValueChooserPane } from './component/treevaluechooser/pane.treevaluechooser'; +import { TdLayout } from './core/wrapper/layout/layout.td'; export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils { @@ -353,6 +354,7 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils { MultiSelectTree: typeof MultiSelectTree; HtmlLabel: typeof HtmlLabel; TreeValueChooserPane: typeof TreeValueChooserPane; + TdLayout: typeof TdLayout; } export default { @@ -533,4 +535,5 @@ export { MultiSelectTree, HtmlLabel, TreeValueChooserPane, + TdLayout, };