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, };