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

4
typescript/base/single/text.ts

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

8
typescript/shims-tsx.ts

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

Loading…
Cancel
Save