update 0.10.4
This commit is contained in:
@@ -1,4 +1,11 @@
|
||||
|
||||
## 0.10.4
|
||||
|
||||
config新增custommap传递,用于存放不带入json的临时数据。
|
||||
|
||||
远程组件配置由url变更为对象,用于存放更多配置。
|
||||
|
||||
|
||||
## 0.10.3
|
||||
|
||||
修复左侧tab色差问题。
|
||||
|
@@ -5,6 +5,9 @@ nav:
|
||||
title: change log
|
||||
order: 6
|
||||
---
|
||||
## 0.10.4
|
||||
Config adds a new custommap transfer to store temporary data that is not brought into JSON.
|
||||
The remote component configuration is changed from URL to object to store more configurations.
|
||||
## 0.10.3
|
||||
Fix the left tab color difference problem.
|
||||
## 0.10.2
|
||||
|
@@ -6,6 +6,13 @@ nav:
|
||||
order: 6
|
||||
---
|
||||
|
||||
## 0.10.4
|
||||
|
||||
config新增custommap传递,用于存放不带入json的临时数据。
|
||||
|
||||
远程组件配置由url变更为对象,用于存放更多配置。
|
||||
|
||||
|
||||
## 0.10.3
|
||||
|
||||
修复左侧tab色差问题。
|
||||
|
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"version": "0.10.3",
|
||||
"version": "0.10.4",
|
||||
"license": "MIT",
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/dooringx-lib.esm.js",
|
||||
|
@@ -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;
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "dooringx-plugin-template",
|
||||
"version": "0.10.3",
|
||||
"version": "0.10.4",
|
||||
"description": "> TODO: description",
|
||||
"author": "yehuozhili <673632758@qq.com>",
|
||||
"homepage": "https://github.com/H5-Dooring/dooringx#readme",
|
||||
|
@@ -51,7 +51,8 @@ const remoteCo = new ComponentItemFactory(
|
||||
},
|
||||
true
|
||||
);
|
||||
remoteCo.url =
|
||||
"https://img.guguzhu.com/d/file/android/ico/2021/09/08/rytzi2w34tm.png";
|
||||
remoteCo.remoteConfig = {
|
||||
url: "https://img.guguzhu.com/d/file/android/ico/2021/09/08/rytzi2w34tm.png",
|
||||
};
|
||||
|
||||
export default remoteCo;
|
||||
|
@@ -40,7 +40,7 @@
|
||||
"@rollup/plugin-node-resolve": "^13.0.4",
|
||||
"@rollup/plugin-url": "^6.1.0",
|
||||
"@svgr/rollup": "^5.5.0",
|
||||
"dooringx-lib": "^0.10.3",
|
||||
"dooringx-lib": "^0.10.4",
|
||||
"postcss": "^8.3.6",
|
||||
"rollup-plugin-peer-deps-external": "^2.2.4",
|
||||
"rollup-plugin-postcss": "^4.0.1",
|
||||
|
@@ -11,6 +11,7 @@ const spawn = require('child_process').spawn;
|
||||
const execSync = require('child_process').execSync;
|
||||
const root = process.cwd();
|
||||
execSync('npm run changelog');
|
||||
execSync('npm run translate');
|
||||
const rootPath = path.resolve(root, 'packages', 'dooringx-lib');
|
||||
const templatePath = path.resolve(root, 'packages', 'dooringx-plugin-template');
|
||||
const templateJsonPath = path.resolve(templatePath, 'template', 'template.json');
|
||||
|
Reference in New Issue
Block a user