chart renderItem

This commit is contained in:
2betop 2021-01-22 07:57:56 +08:00
parent a23e953430
commit 045c2d220c

View File

@ -126,7 +126,7 @@ const EVAL_CACHE: {[key: string]: Function} = {};
* @param config ECharts
*/
function recoverFunctionType(config: object) {
['formatter', 'sort'].forEach((key: string) => {
['formatter', 'sort', 'renderItem'].forEach((key: string) => {
const objects = findObjectsWithKey(config, key);
for (const object of objects) {
const code = object[key];