Browse Source

KERNEL-7826 refactor: 通用属性定义

es6
Kira 3 years ago
parent
commit
fe9ba5908a
  1. 14
      typescript/shims-tsx.ts

14
typescript/shims-tsx.ts

@ -14,9 +14,21 @@ interface UIProps {
}
interface ElementClassProps<T> extends UIProps {
baseCls: string;
cls: string;
extraCls: string;
ref: (ref: T) => void;
listeners: {
eventName: string;
action: (...args: any[]) => any;
once?: boolean;
}[];
disabled: boolean;
invisible: boolean;
invalid: boolean;
attributes: {
[key: string]: any
}
tagName: string;
}
declare namespace JSX {

Loading…
Cancel
Save