Skip to content

Commit

Permalink
WIP(ssr): add meta-data and test case #18334
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovilia committed Mar 14, 2023
1 parent 0be0cfc commit c1a157e
Show file tree
Hide file tree
Showing 2 changed files with 114 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/util/innerStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,19 @@ export const setCommonECData = (seriesIndex: number, dataType: SeriesDataType, d
childECData.seriesIndex = seriesIndex;
childECData.dataIndex = dataIdx;
childECData.dataType = dataType;
child.__metaData = {
type: 'seriesItem',
seriesIndex,
dataIndex: dataIdx
};
});
}
else {
el.__metaData = {
type: 'seriesItem',
seriesIndex,
dataIndex: dataIdx
};
}
}
};
102 changes: 102 additions & 0 deletions test/ssr.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c1a157e

Please sign in to comment.