Browse Source

无JIRA 类型补一下

es6
Dailer 3 years ago
parent
commit
9235ae02eb
  1. 4
      typescript/base/single/button/button.basic.ts
  2. 4
      typescript/base/single/text.ts
  3. 8
      typescript/shims-tsx.ts

4
typescript/base/single/button/button.basic.ts

@ -8,7 +8,7 @@ export declare class BasicButton extends Single {
props: { props: {
stopEvent?: boolean; stopEvent?: boolean;
stopPropagation?: boolean; stopPropagation?: boolean;
selected?: boolean; selected?: boolean | ((context: any) => boolean);
/** /**
* , * ,
@ -40,7 +40,7 @@ export declare class BasicButton extends Single {
bubble?: Function | null | string; bubble?: Function | null | string;
text?: string; text?: string;
el?: Obj; el?: Obj;
} & Single['props']; } & Single["props"];
_createShadow(): void; _createShadow(): void;

4
typescript/base/single/text.ts

@ -8,14 +8,14 @@ export declare class Text extends Single {
static formatText: (str: string) => string; static formatText: (str: string) => string;
props: { props: {
text?: string; text?: string | ((context: any) => string);
textAlign?: "left" | "center" | "right", textAlign?: "left" | "center" | "right",
whiteSpace?: "nowrap" | "normal", whiteSpace?: "nowrap" | "normal",
lineHeight?: null | number; lineHeight?: null | number;
py?: string; py?: string;
highLight?: boolean; highLight?: boolean;
maxWidth?: null | number; maxWidth?: null | number;
} & Single['props']; } & Single["props"];
doRedMark(keyword: string): void; doRedMark(keyword: string): void;

8
typescript/shims-tsx.ts

@ -25,7 +25,7 @@ interface AdditionalProps {
} }
interface ElementClassProps<T> extends UIProps { interface ElementClassProps<T> extends UIProps {
cls: string | (() => string); cls: string | ((context: any) => string);
extraCls: string; extraCls: string;
ref: (ref: T) => void; ref: (ref: T) => void;
listeners: { listeners: {
@ -33,9 +33,9 @@ interface ElementClassProps<T> extends UIProps {
action: (...args: any[]) => any; action: (...args: any[]) => any;
once?: boolean; once?: boolean;
}[]; }[];
disabled: boolean; disabled: boolean | ((context: any) => boolean);
invisible: boolean; invisible: boolean | ((context: any) => boolean);
invalid: boolean; invalid: boolean | ((context: any) => boolean);
attributes: { attributes: {
[key: string]: any; [key: string]: any;
}; };

Loading…
Cancel
Save