@wufengteam/baguaeditor
Version:
低零融合编辑器封装
36 lines (35 loc) • 1.04 kB
TypeScript
import React from 'react';
import type { FC } from 'react';
import type { Component } from '@wufengteam/core/dist/src/types';
import type { PageData } from '../../utils/wufeng';
import type { LingxiEditorImpl } from '../../interfaces';
interface BaGuaContextValue {
fields?: {
label: string;
name: string;
component: Component;
}[];
fieldsBusinessRule?: {
label: string;
name: string;
component: Component;
}[];
appId?: string;
catalogItemId?: string;
busiObjectId?: string;
pageData?: PageData;
pageId?: any;
isFlowForm?: boolean;
}
declare const BaGuaContext: React.Context<BaGuaContextValue>;
export default BaGuaContext;
interface BaGuaContextProviderProps {
appId: string;
busiObjectId: string;
catalogItemId: string;
editorImpl?: LingxiEditorImpl;
pageId?: any;
isFlowForm?: boolean;
}
declare const BaGuaContextProvider: FC<BaGuaContextProviderProps>;
export { BaGuaContextProvider };