Skip to content

v1.0.9-lit - Smoother Rendering and Unified Styles for Child Cards

Choose a tag to compare

@github-actions github-actions released this 20 Jan 08:45
d026293

Description / 说明

  • Smoother stack rendering with keyed repeat: Child cards now use entity, type, or object reference as the key in repeat, ensuring consistent DOM reuse and preventing glitches when cards are reordered or rebuilt.
  • 堆叠渲染更平滑,使用 keyed repeat:子卡在 repeat 中使用 entity、type 或对象引用作为 key,保证 DOM 复用稳定,卡片重排或重建时不会出现渲染错乱。
  • Reliable baseline style injection: Styles are injected once per shadowRoot and automatically re-applied if a child card rebuilds, making child cards visually clean and consistent in all scenarios.
  • 可靠的基础样式注入:样式只在每个 shadowRoot 注入一次,并在子卡重建时自动重新应用,使子卡在各种场景下显示整洁一致。
  • Safe rebuild handling: ll-rebuild events are handled properly, preventing stale references or infinite rebuild loops, and ensuring child cards are always recreated correctly.
  • 安全的重建处理:ll-rebuild 事件得到正确处理,避免失效引用或循环重建,保证子卡在重建时始终正确创建。
  • Performance optimized: Improved rendering performance with multiple child cards, providing a consistent experience in both editor and preview modes.
  • 性能优化:多子卡场景下渲染更加流畅,编辑器与预览模式体验一致。