update
This commit is contained in:
		| @@ -356,6 +356,7 @@ function AnimateControl(props: AnimateControlProps) { | ||||
| 				> | ||||
| 					添加动画 | ||||
| 				</Button> | ||||
| 				<Button>添加自定义动画</Button> | ||||
| 			</Row> | ||||
| 		</> | ||||
| 	); | ||||
|   | ||||
| @@ -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> = { | ||||
|   | ||||
| @@ -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; | ||||
		Reference in New Issue
	
	Block a user
	 hufeixiong
					hufeixiong