📅  最后修改于: 2022-03-11 15:01:55.706000             🧑  作者: Mango
const GraphWidget = React.createElement(PieChart);
const components = {
PieChart: PieChart
...
};
const GraphWidget = React.createElement(components['PieChart']);