// import React from 'react'; // import { GrapesjsConfig } from '../../type'; // import { iEnumProps} from '../../base/type'; // import {IOTBottomProps} from './interface' // import IOTSuctionBottom from './IOTSuctionBottom'; // const tagName = 'IOTSuctionBottom'; // const blockName = 'IOTSuctionBottomBlock'; // const type = 'bool,enum,number'; // export const grapesjsConfig: GrapesjsConfig = { // blockConfig: { // type: type, // blockName: blockName, // tagName:tagName, // getBlockContent: (ifunction: IOTBottomProps) => { // // console.log('getBlockContent', JSON.stringify(ifunction)); // return { // tagName: tagName, // type: tagName, // attributes: { // ...ifunction, // }, // }; // }, // //组件渲染 // render: (ifunction: IOTBottomProps) => { // // console.log('block-render', JSON.stringify(ifunction)); // const props: any = { // ...ifunction, // title: '', // list: ifunction.list, // handler: ifunction.handler !== void 0 // ? ifunction.handler // : (val: any) => { // // console.log(val, '点击事件'); // }, // }; // return ; // }, // buildRender: (ifunction: IOTBottomProps) => { // // console.log('block-render', JSON.stringify(ifunction)); // const props: any = { // ...ifunction, // title: '', // list: ifunction.list, // handler: ifunction.handler !== void 0 // ? ifunction.handler // : (val: any) => { // // console.log(val, '点击事件'); // }, // }; // return ; // }, // }, // typeConfig: { // tagName: tagName, // traits: (opt: any) => { // // console.log('traits:', JSON.stringify(opt)); // return [ // { // type: 'multiple-config', // name: 'list', // label: '添加配置', // value: opt.list, // }, // ]; // }, // render: (traits:IOTBottomProps ) => { // // console.log('type-render:', JSON.stringify(traits)); // const props: any = { // ...traits, // handle: traits.handler !== void 0 // ? traits.handler // : (val: any) => { // // console.log(val, '点击事件'); // }, // }; // return ; // }, // }, // };