UNPKG

cybertron-utils

Version:
33 lines (26 loc) 810 B
import React from 'react'; import '../style/index.scss'; export default class ${componentName} extends React.Component { static config = { // 默认参数 defaultProps: { }, visualConfig: { isContainer: false,// 是否容器 isMove: true, // 是否可以移动 onlyChild: false,// 是否只有1个子元素 globalComponent: false, // 是否全局组件,只能放在root下 globalOnly: false,// 全局是否只能有1个 customDrop: false // 自定义拖拉 }, componentName: '${componentName}', // 组件名称 componentType: '${groupName}', // 组件类别 editConfig: { } } render() { return ( <div></div> ) } }