Skip to content

Commit

Permalink
fix: ui error
Browse files Browse the repository at this point in the history
  • Loading branch information
mokinzhao committed Sep 30, 2021
1 parent 3c2ad24 commit 3c2f85f
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 28 deletions.
18 changes: 18 additions & 0 deletions packages/editor/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@
"xlsx": "^0.16.7",
"yh-react-popover": "^0.3.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",
"devDependencies": {
Expand Down
15 changes: 0 additions & 15 deletions packages/editor/src/pages/editor/Container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,7 @@ import SourceBox from './TargetBox';
import TargetBox from './SourceBox';
import Calibration from 'components/Calibration';
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';
>>>>>>> Stashed changes:packages/editor/src/pages/editor/Container.tsx
import { ActionCreators, StateWithHistory } from 'redux-undo';
import { throttle, detectMobileBrowser, getBrowserNavigatorMetaInfo } from '@/utils/tool';
import styles from './index.less';
Expand Down Expand Up @@ -157,12 +148,9 @@ const Container = (props: {
graphTpl.forEach((v: { type: string }) => {
arr.push(v.type);
});
<<<<<<< Updated upstream:src/pages/editor/Container.tsx
=======
shopTpl.forEach((v: { type: string }) => {
arr.push(v.type);
});
>>>>>>> Stashed changes:packages/editor/src/pages/editor/Container.tsx
return arr;
}, [graphTpl, mediaTpl, template]);

Expand Down Expand Up @@ -265,8 +253,6 @@ const Container = (props: {
),
)}
</TabPane>
<<<<<<< Updated upstream:src/pages/editor/Container.tsx
=======
<TabPane tab={generateHeader('shop', '')} key="4">
<div className={styles.ctitle}>营销组件</div>
{shopTpl.map(
Expand All @@ -284,7 +270,6 @@ const Container = (props: {
),
)}
</TabPane>
>>>>>>> Stashed changes:packages/editor/src/pages/editor/Container.tsx
</>
);
}
Expand Down
4 changes: 0 additions & 4 deletions packages/ui/src/pages/preview/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,7 @@ const PreviewPage = memo((props: PreviewPageProps) => {
document.title = pageConfig.title || 'H5-Dooring | 强大的H5编辑神器';
// 设置数据源
setPointData(
<<<<<<< Updated upstream:src/pages/editor/preview.tsx
tpl.map((item: any) => ({
=======
tpl.map((item: { point: Record<string, unknown> }) => ({
>>>>>>> Stashed changes:packages/ui/src/pages/preview/index.tsx
...item,
point: { ...item.point, isDraggable: false, isResizable: false },
})),
Expand Down
6 changes: 0 additions & 6 deletions packages/ui/src/ui-component/common.ts
Original file line number Diff line number Diff line change
@@ -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 INumberConfigType = Record<string, unknown>;
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/src/ui-component/schema.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import BasicSchema from './base/schema';
import MediaSchema from './media/schema';
import VisualSchema from './visual/schema';
import shopSchema from './ShopComponents/schema';
import ShopSchema from './shop/schema';

const schema = {
...BasicSchema,
...MediaSchema,
...VisualSchema,
...shopSchema,
...ShopSchema,
};

export default schema;

0 comments on commit 3c2f85f

Please sign in to comment.