mirror of
https://github.com/MrXujiang/h5-Dooring.git
synced 2025-12-12 10:12:51 +00:00
fix: ui error
This commit is contained in:
parent
3c2ad24ba5
commit
3c2f85fde1
18
packages/editor/package-lock.json
generated
18
packages/editor/package-lock.json
generated
@ -13,6 +13,24 @@
|
|||||||
"lodash.throttle": "^4.1.1"
|
"lodash.throttle": "^4.1.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"@alex_xu/react-slider-vertify": {
|
||||||
|
"version": "1.1.8",
|
||||||
|
"resolved": "http://npm.yonghui.cn/repository/npm-group/@alex_xu/react-slider-vertify/-/react-slider-vertify-1.1.8.tgz",
|
||||||
|
"integrity": "sha1-s/mp+M7aUgWE89QKVQn+bTFyJ9U=",
|
||||||
|
"requires": {
|
||||||
|
"@babel/runtime": "^7.15.4"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"@babel/runtime": {
|
||||||
|
"version": "7.15.4",
|
||||||
|
"resolved": "http://npm.yonghui.cn/repository/npm-group/@babel/runtime/-/runtime-7.15.4.tgz",
|
||||||
|
"integrity": "sha1-/RfRa/34eObdAtGXU6OfqKjZyEo=",
|
||||||
|
"requires": {
|
||||||
|
"regenerator-runtime": "^0.13.4"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"@ant-design/colors": {
|
"@ant-design/colors": {
|
||||||
"version": "5.0.1",
|
"version": "5.0.1",
|
||||||
"resolved": "https://registry.npm.taobao.org/@ant-design/colors/download/@ant-design/colors-5.0.1.tgz?cache=0&sync_timestamp=1607912367498&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40ant-design%2Fcolors%2Fdownload%2F%40ant-design%2Fcolors-5.0.1.tgz",
|
"resolved": "https://registry.npm.taobao.org/@ant-design/colors/download/@ant-design/colors-5.0.1.tgz?cache=0&sync_timestamp=1607912367498&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40ant-design%2Fcolors%2Fdownload%2F%40ant-design%2Fcolors-5.0.1.tgz",
|
||||||
|
|||||||
@ -87,7 +87,8 @@
|
|||||||
"xlsx": "^0.16.7",
|
"xlsx": "^0.16.7",
|
||||||
"yh-react-popover": "^0.3.0",
|
"yh-react-popover": "^0.3.0",
|
||||||
"yorkie": "^2.0.0",
|
"yorkie": "^2.0.0",
|
||||||
"zarm": "^2.5.1"
|
"zarm": "^2.5.1",
|
||||||
|
"@alex_xu/react-slider-vertify": "^1.1.7"
|
||||||
},
|
},
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@ -14,16 +14,7 @@ import SourceBox from './TargetBox';
|
|||||||
import TargetBox from './SourceBox';
|
import TargetBox from './SourceBox';
|
||||||
import Calibration from 'components/Calibration';
|
import Calibration from 'components/Calibration';
|
||||||
import { FormRender } from '@/core';
|
import { FormRender } from '@/core';
|
||||||
<<<<<<< Updated upstream:src/pages/editor/Container.tsx
|
|
||||||
|
|
||||||
import template from '@/materials/base/template';
|
|
||||||
import mediaTpl from '@/materials/media/template';
|
|
||||||
import graphTpl from '@/materials/visual/template';
|
|
||||||
|
|
||||||
import schemaH5 from '@/materials/schema';
|
|
||||||
=======
|
|
||||||
import dooringCompt from 'dooringUI/components';
|
import dooringCompt from 'dooringUI/components';
|
||||||
>>>>>>> Stashed changes:packages/editor/src/pages/editor/Container.tsx
|
|
||||||
import { ActionCreators, StateWithHistory } from 'redux-undo';
|
import { ActionCreators, StateWithHistory } from 'redux-undo';
|
||||||
import { throttle, detectMobileBrowser, getBrowserNavigatorMetaInfo } from '@/utils/tool';
|
import { throttle, detectMobileBrowser, getBrowserNavigatorMetaInfo } from '@/utils/tool';
|
||||||
import styles from './index.less';
|
import styles from './index.less';
|
||||||
@ -157,12 +148,9 @@ const Container = (props: {
|
|||||||
graphTpl.forEach((v: { type: string }) => {
|
graphTpl.forEach((v: { type: string }) => {
|
||||||
arr.push(v.type);
|
arr.push(v.type);
|
||||||
});
|
});
|
||||||
<<<<<<< Updated upstream:src/pages/editor/Container.tsx
|
|
||||||
=======
|
|
||||||
shopTpl.forEach((v: { type: string }) => {
|
shopTpl.forEach((v: { type: string }) => {
|
||||||
arr.push(v.type);
|
arr.push(v.type);
|
||||||
});
|
});
|
||||||
>>>>>>> Stashed changes:packages/editor/src/pages/editor/Container.tsx
|
|
||||||
return arr;
|
return arr;
|
||||||
}, [graphTpl, mediaTpl, template]);
|
}, [graphTpl, mediaTpl, template]);
|
||||||
|
|
||||||
@ -265,8 +253,6 @@ const Container = (props: {
|
|||||||
),
|
),
|
||||||
)}
|
)}
|
||||||
</TabPane>
|
</TabPane>
|
||||||
<<<<<<< Updated upstream:src/pages/editor/Container.tsx
|
|
||||||
=======
|
|
||||||
<TabPane tab={generateHeader('shop', '')} key="4">
|
<TabPane tab={generateHeader('shop', '')} key="4">
|
||||||
<div className={styles.ctitle}>营销组件</div>
|
<div className={styles.ctitle}>营销组件</div>
|
||||||
{shopTpl.map(
|
{shopTpl.map(
|
||||||
@ -284,7 +270,6 @@ const Container = (props: {
|
|||||||
),
|
),
|
||||||
)}
|
)}
|
||||||
</TabPane>
|
</TabPane>
|
||||||
>>>>>>> Stashed changes:packages/editor/src/pages/editor/Container.tsx
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -58,11 +58,7 @@ const PreviewPage = memo((props: PreviewPageProps) => {
|
|||||||
document.title = pageConfig.title || 'H5-Dooring | 强大的H5编辑神器';
|
document.title = pageConfig.title || 'H5-Dooring | 强大的H5编辑神器';
|
||||||
// 设置数据源
|
// 设置数据源
|
||||||
setPointData(
|
setPointData(
|
||||||
<<<<<<< Updated upstream:src/pages/editor/preview.tsx
|
|
||||||
tpl.map((item: any) => ({
|
|
||||||
=======
|
|
||||||
tpl.map((item: { point: Record<string, unknown> }) => ({
|
tpl.map((item: { point: Record<string, unknown> }) => ({
|
||||||
>>>>>>> Stashed changes:packages/ui/src/pages/preview/index.tsx
|
|
||||||
...item,
|
...item,
|
||||||
point: { ...item.point, isDraggable: false, isResizable: false },
|
point: { ...item.point, isDraggable: false, isResizable: false },
|
||||||
})),
|
})),
|
||||||
|
|||||||
@ -1,10 +1,4 @@
|
|||||||
<<<<<<< Updated upstream:src/materials/common.ts
|
|
||||||
import { INumberConfigType, TNumberDefaultType } from '@/components/FormComponents/types';
|
|
||||||
|
|
||||||
///提取所有公用设置,传来时加到这里,约定公用类型
|
|
||||||
=======
|
|
||||||
//提取所有公用设置,传来时加到这里,约定公用类型
|
//提取所有公用设置,传来时加到这里,约定公用类型
|
||||||
>>>>>>> Stashed changes:packages/ui/src/ui-component/common.ts
|
|
||||||
//公用配置需满足条件,所有组件初始值统一,否则不放公用设置
|
//公用配置需满足条件,所有组件初始值统一,否则不放公用设置
|
||||||
type TNumberDefaultType = number | string;
|
type TNumberDefaultType = number | string;
|
||||||
type INumberConfigType = Record<string, unknown>;
|
type INumberConfigType = Record<string, unknown>;
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
import BasicSchema from './base/schema';
|
import BasicSchema from './base/schema';
|
||||||
import MediaSchema from './media/schema';
|
import MediaSchema from './media/schema';
|
||||||
import VisualSchema from './visual/schema';
|
import VisualSchema from './visual/schema';
|
||||||
import shopSchema from './ShopComponents/schema';
|
import ShopSchema from './shop/schema';
|
||||||
|
|
||||||
const schema = {
|
const schema = {
|
||||||
...BasicSchema,
|
...BasicSchema,
|
||||||
...MediaSchema,
|
...MediaSchema,
|
||||||
...VisualSchema,
|
...VisualSchema,
|
||||||
...shopSchema,
|
...ShopSchema,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default schema;
|
export default schema;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user