// import React from 'react'; // import { GrapesjsConfig } from '../../type'; // import { iBaseProps } from '../../base/type'; // import IOTTitle from './IOTTitle'; // import { IOTTitleProps } from './interface'; // const tagName = 'IOTTitle'; // const blockName = 'IOTTitleBlock'; // const type = 'business'; // export const grapesjsConfig: GrapesjsConfig = { // blockConfig: { // type: type, // blockName: blockName, // tagName: tagName, // getBlockContent: (ifunction: IOTTitleProps) => { // return { // tagName: ifunction.title ? ifunction.title : '', // type: tagName, // attributes: { // ...ifunction, // }, // }; // }, // //组件渲染 // render: (ifunction: IOTTitleProps) => { // const props: IOTTitleProps = { // ...ifunction, // }; // return ; // }, // buildRender: (ifunction: IOTTitleProps) => { // const props: IOTTitleProps = { // ...ifunction, // }; // return ; // }, // }, // typeConfig: { // tagName: tagName, // traits: (opt: any) => { // return [ // { // type: 'text', // name: 'title', // label: '标题', // value: opt.title, // }, // ]; // }, // render: (attribute: IOTTitleProps) => { // const props: IOTTitleProps = { // ...attribute, // }; // return ; // }, // }, // };