mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-15 14:00:35 +00:00
23 lines
665 B
TypeScript
23 lines
665 B
TypeScript
import { ComponentMetadata } from "@alilc/lowcode-types";
|
|
export default {
|
|
componentName: 'Div',
|
|
title: '容器',
|
|
docUrl: 'https://github.com/alibaba/lowcode-materials/tree/main/docs',
|
|
devMode: 'proCode',
|
|
tags: ['布局'],
|
|
configure: {
|
|
component: {
|
|
nestingRule: {
|
|
parentWhitelist: (parent, my) => {
|
|
if (parent.componentName === 'Form' && my.componentName === 'Div') return true;
|
|
return false;
|
|
},
|
|
childWhitelist: (child, my) => {
|
|
if (child.componentName === 'Image' && my.componentName === 'Div') return true;
|
|
return false;
|
|
},
|
|
},
|
|
},
|
|
},
|
|
} as ComponentMetadata;
|