传递函数
const chartOptions = (
t: Function,
color: string = "warning",
height: string = "auto"
): ApexOptions => {
return {
// Rest of your chart options
categories: [t("Totalnumber"), t("normal"), "关闭", "审核中", "被封"],
// Other chart configuration
};
};
标签:const,string,color,setup,chart,useI18n
From: https://www.cnblogs.com/xxdmua/p/17457341.html