update 0.10.4
This commit is contained in:
@@ -361,6 +361,7 @@ export class UserConfig {
|
||||
public SCRIPTGLOBALNAME = 'DOORINGXPLUGIN';
|
||||
public scriptLoading = false;
|
||||
public leftForceUpdate = () => {};
|
||||
public customMap: Record<string, any> = {};
|
||||
constructor(initConfig?: Partial<InitConfig>) {
|
||||
const mergeConfig = userConfigMerge(defaultConfig, initConfig);
|
||||
this.initConfig = mergeConfig;
|
||||
|
@@ -18,6 +18,6 @@ export class ComponentItemFactory implements ComponentItem {
|
||||
public needPosition: ComponentItem['needPosition'] = true,
|
||||
public init: ComponentItem['init'] = () => {},
|
||||
public destroy: ComponentItem['destroy'] = () => {},
|
||||
public url: ComponentItem['url'] = ''
|
||||
public remoteConfig: ComponentItem['remoteConfig'] = {}
|
||||
) {}
|
||||
}
|
||||
|
@@ -26,7 +26,7 @@ export interface ComponentItem {
|
||||
props: Record<string, CreateOptionsResAll[]>; // 配置属性
|
||||
render: (data: IBlockType, context: any, store: Store, config: UserConfig) => JSX.Element;
|
||||
destroy: () => void;
|
||||
url: string;
|
||||
remoteConfig: Record<string, any>;
|
||||
}
|
||||
export type ComponentRenderConfigProps = {
|
||||
data: IBlockType;
|
||||
|
Reference in New Issue
Block a user