// import VisualEngineUtil from '@ali/visualengine-utils'; // import babelTransform from '@ali/vu-babel-transform'; // // const { CodeSetter = React.Component } = VisualEngineUtil || {}; // // export default class CnCodeSetter extends CodeSetter{ // constructor(props) { // super(props); // } // // componentDidMount(){ // const { template, prop} = this.props; // if(template) { // const originCode = prop?.getHotValue() || '' // if(typeof originCode === 'string' && !originCode.startsWith('function')){ // const code = babelTransform(template, {}, true); // setTimeout(()=>{ // prop.setHotValue(code) // },100) // // } // } // } // }