前端动态骨架屏加载方案 - 图1

    1. // 框架骨架屏缓存
    2. type FrameSkeletonCache struct {
    3. FrameId string
    4. Components []Component
    5. }
    6. // 组件骨架屏
    7. type Component struct {
    8. Width int
    9. Height int
    10. }