// 容器实际会加载的函数组件
main = {
let content = (config && config.content) || "(未设置内容)";
let type = (config && config.type) || "default";
// 通过 config.value 读取值,通过 onEvents.onConfigChange 回调变更
return jsx`
<${MyComp}
compKey=${compKey}
type=${type}
onClick=${
onEvents.onClick || (() => console.log("此按钮没有绑定点击事件"))
}
chartFields=${fields}
chartData=${data}
/>
`;
}