mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
[improvement] AddressList: tsx (#2792)
This commit is contained in:
@@ -53,11 +53,15 @@ export type FunctionalComponent<
|
||||
};
|
||||
|
||||
export type TsxBaseProps = {
|
||||
class: any;
|
||||
style: any;
|
||||
key: string | number;
|
||||
// hack for jsx prop spread
|
||||
props: any;
|
||||
class: any;
|
||||
style: {
|
||||
[key: string]: string | number;
|
||||
};
|
||||
};
|
||||
|
||||
export type TsxComponent<Props, Events> = (
|
||||
props: Partial<Props & Events & TsxBaseProps>
|
||||
) => VNode;
|
||||
|
Reference in New Issue
Block a user