Browse Source
Merge in VISUAL/fineui from ~KIRA/fineui:master to master * commit 'dba226445cbbf6b24391a53405b028e3c28c2f21': KERNEL-7826 refactor: jsx环境es6
Kira
4 years ago
5 changed files with 73 additions and 1 deletions
@ -1,5 +1,11 @@
|
||||
import { AbstractLabel } from "./abstract.label"; |
||||
|
||||
export declare class Label extends AbstractLabel { |
||||
props: { |
||||
py: string; |
||||
keyword: string; |
||||
text: string; |
||||
} & AbstractLabel['props']; |
||||
|
||||
static xtype: string; |
||||
} |
||||
|
@ -0,0 +1,37 @@
|
||||
declare const React: any; |
||||
|
||||
interface UIProps { |
||||
width: number; |
||||
height: number; |
||||
top: number; |
||||
left: number; |
||||
bottom: number; |
||||
right: number; |
||||
rgap: number; |
||||
lgap: number; |
||||
tgap: number; |
||||
bgap: number; |
||||
} |
||||
|
||||
interface ElementClassProps<T> extends UIProps { |
||||
baseCls: string; |
||||
cls: string; |
||||
ref: (ref: T) => void; |
||||
} |
||||
|
||||
declare namespace JSX { |
||||
// for undefined
|
||||
interface IntrinsicElements { |
||||
[elemName: string]: Partial<UIProps>; |
||||
} |
||||
|
||||
type ElementAttributesProperty = { |
||||
|
||||
/** |
||||
* specify the property name to use |
||||
*/ |
||||
__props: any; |
||||
}; |
||||
|
||||
interface IntrinsicClassAttributes<T> extends Partial<ElementClassProps<T>> {} |
||||
} |
Loading…
Reference in new issue