update 0.10.4

This commit is contained in:
hufeixiong
2021-11-26 16:44:05 +08:00
parent 50a71a94fa
commit df2323535e
11 changed files with 27 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
{
"version": "0.10.3",
"version": "0.10.4",
"license": "MIT",
"main": "dist/index.js",
"module": "dist/dooringx-lib.esm.js",

View File

@@ -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;

View File

@@ -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'] = {}
) {}
}

View File

@@ -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;