From b82dc6c7e9dceb99840203b619448805c93b5f67 Mon Sep 17 00:00:00 2001 From: zsmj Date: Mon, 21 Mar 2022 19:56:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=20=E8=A1=A5=E5=85=85=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- typescript/core/utils/chinesePY.ts | 4 ++-- typescript/core/wrapper/layout/layout.table.ts | 12 ++++++++++++ typescript/index.ts | 3 +++ 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 typescript/core/wrapper/layout/layout.table.ts diff --git a/typescript/core/utils/chinesePY.ts b/typescript/core/utils/chinesePY.ts index d2f9aa627..54ba50141 100644 --- a/typescript/core/utils/chinesePY.ts +++ b/typescript/core/utils/chinesePY.ts @@ -1,3 +1,3 @@ export type _chinesePY = { - makeFirstPY: (str: string, options: { ignoreMulti?: boolean, splitChar?: string }) => string -} \ No newline at end of file + makeFirstPY: (str: string, options?: { ignoreMulti?: boolean, splitChar?: string }) => string +} diff --git a/typescript/core/wrapper/layout/layout.table.ts b/typescript/core/wrapper/layout/layout.table.ts new file mode 100644 index 000000000..7adc977e2 --- /dev/null +++ b/typescript/core/wrapper/layout/layout.table.ts @@ -0,0 +1,12 @@ +import { Layout } from '../layout'; + +export declare class TableLayout 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 893b66584..448266b96 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -185,6 +185,7 @@ import { SelectTreeExpander } from './widget/selecttree/selecttree.expander'; import { DownListGroupItem } from "./widget/downlist/item.downlistgroup"; import { VerticalStickyLayout } from "./core/wrapper/layout/sticky/sticky.vertical"; import { HorizontalStickyLayout } from "./core/wrapper/layout/sticky/sticky.horizontal"; +import { TableLayout } from "./core/wrapper/layout/layout.table"; import './shims-tsx'; @@ -378,6 +379,7 @@ export interface BI extends _func, _i18n, _base, _inject, _var, _web, _utils { DownListGroupItem: typeof DownListGroupItem; VerticalStickyLayout: typeof VerticalStickyLayout; HorizontalStickyLayout: typeof HorizontalStickyLayout; + TableLayout: typeof TableLayout; } export default { @@ -570,4 +572,5 @@ export { DownListGroupItem, HorizontalStickyLayout, VerticalStickyLayout, + TableLayout, };