Browse Source

Pull request #1922: KERNEL-7826 refactor: 通用属性定义

Merge in VISUAL/fineui from ~KIRA/fineui:master to master

* commit 'f48168f47c7a6e6d7906edda20e401edae3f9406':
  KERNEL-7826 refactor: 通用属性定义
  KERNEL-7826 refactor: 通用属性定义
  KERNEL-7826 refactor: 通用属性定义
  KERNEL-7826 refactor: 通用属性定义
  KERNEL-7826 refactor: 通用属性定义
es6
Kira 4 years ago
parent
commit
f5c46eacb3
  1. 26
      typescript/shims-tsx.ts

26
typescript/shims-tsx.ts

@ -1,8 +1,8 @@
declare const React: any; declare const React: any;
interface UIProps { interface UIProps {
width: number; width: number | string;
height: number; height: number | string;
top: number; top: number;
left: number; left: number;
bottom: number; bottom: number;
@ -14,9 +14,29 @@ interface UIProps {
} }
interface ElementClassProps<T> extends UIProps { interface ElementClassProps<T> extends UIProps {
baseCls: string;
cls: string; cls: string;
extraCls: string;
ref: (ref: T) => void; ref: (ref: T) => void;
listeners: {
eventName: string;
action: (...args: any[]) => any;
once?: boolean;
}[];
disabled: boolean;
invisible: boolean;
invalid: boolean;
attributes: {
[key: string]: any;
};
css: {
[key: string]: any;
};
tagName: string;
element: any;
beforeRender(callback: () => void): void;
beforeInit(callback: () => void): void;
render(): any;
} }
declare namespace JSX { declare namespace JSX {

Loading…
Cancel
Save