This commit is contained in:
hufeixiong
2022-03-01 15:37:39 +08:00
parent 958ddd3a09
commit a1d6c398b6
5 changed files with 31 additions and 1 deletions

View File

@@ -356,6 +356,7 @@ function AnimateControl(props: AnimateControlProps) {
>
</Button>
<Button></Button>
</Row>
</>
);

View File

@@ -29,6 +29,13 @@ const LeftRegistMap: LeftRegistComponentMapItem[] = [
img: 'https://img.guguzhu.com/d/file/android/ico/2021/09/08/rytzi2w34tm.png',
displayName: '输入框',
},
{
type: 'basic',
component: 'test',
img: 'https://img.guguzhu.com/d/file/android/ico/2021/09/08/rytzi2w34tm.png',
displayName: '测试',
urlFn: () => import('./registComponents/testCo'),
},
];
export const defaultConfig: Partial<InitConfig> = {

View File

@@ -0,0 +1,17 @@
import { ComponentItemFactory } from 'dooringx-lib';
const TestCo = new ComponentItemFactory(
'test',
'测试组件',
{},
{
width: 200,
height: 55,
},
() => {
return <div></div>;
},
true
);
export default TestCo;

View File

@@ -84,7 +84,11 @@ function RightConfig(props: PropsWithChildren<RightConfigProps>) {
);
});
} else {
return <div>{replaceLocale('right.noprops', '还没有配置属性', props.config)}</div>;
return (
<div className="yh-right-noprops" style={{ textAlign: 'center' }}>
{replaceLocale('right.noprops', '还没有配置属性', props.config)}
</div>
);
}
}
return null;

View File

@@ -26,6 +26,7 @@ export interface AnimateItem {
animationDelay: number;
animationIterationCount: string;
animationTimingFunction: string;
isCustom?: boolean;
}
export interface IBlockType {