Browse Source

无JIRA任务 refactor: 补充类型

es6
youki 3 years ago
parent
commit
e158ba4acc
  1. 2
      typescript/case/combo/textvaluecheckcombo/popup.textvaluecheck.ts
  2. 11
      typescript/case/toolbar/toolbar.multiselect.ts
  3. 12
      typescript/core/wrapper/layout/layout.td.ts
  4. 3
      typescript/index.ts

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

11
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;

12
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';
}
}

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

Loading…
Cancel
Save