@aliretail/react-materials-components
Version:
24 lines (23 loc) • 638 B
TypeScript
import * as React from 'react';
/** 后端下发的config 规范 */
export interface Config {
name: string;
key: string;
component?: string;
componentProps?: Record<string, any>;
submitProps?: Record<string, any>;
relation: Array<{
label: string;
value: string;
component?: string;
componentProps?: Record<string, any>;
submitProps?: Record<string, any>;
}>;
}
interface ContextInterface {
disabled: boolean;
config: Config[];
}
export declare const Provider: React.Provider<ContextInterface>;
export declare const useContext: () => ContextInterface;
export {};