diff --git a/package/component/src/component/noticeBar/index.vue b/package/component/src/component/noticeBar/index.vue index 3544edd6..a4f88e50 100644 --- a/package/component/src/component/noticeBar/index.vue +++ b/package/component/src/component/noticeBar/index.vue @@ -110,7 +110,7 @@ const state = reactive({ height: 40, }); -var timer:any; +var timer: any; // 初始化 animation 各项参数 const initAnimation = () => { @@ -126,9 +126,9 @@ const initAnimation = () => { // 清除定时器 onUnmounted(() => { - clearInterval(timer); - timer = null; -}) + clearInterval(timer); + timer = null; +}); // 计算 animation 滚动时长 const computeAnimationTime = () => { diff --git a/package/document-component/src/document/zh-CN/guide/changelog.md b/package/document-component/src/document/zh-CN/guide/changelog.md index 8378fa67..d1df9a12 100644 --- a/package/document-component/src/document/zh-CN/guide/changelog.md +++ b/package/document-component/src/document/zh-CN/guide/changelog.md @@ -21,6 +21,7 @@
  • [新增] tabitem 组件 icon 属性, 提供 title 属性前置 icon 设置。
  • [新增] select 组件 collapseTagsTooltip 属性, 多选模式下是否悬浮显示折叠的选中项。
  • [新增] select 组件 minCollapsedNum 属性, 多选模式选中项超过多少时折叠。
  • +
  • [新增] select 组件 searchPlaceholder 属性, 自定义搜索提示信息。
  • [修复] tolltip 组件 content 变化时, 位置无法自动计算调整的问题。
  • [修复] breadcrumb-item 组件无法正确传递 attrs, 导致 @click 等自定义事件失效。
  • [修复] layout 组件仅引入了 footer 作为内容元素时, layui-layout-vertical 样式不生效, 导致布局错误。