From 9a15eb507ad68e27082ffdc215b2b4d4536c2000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com> Date: Wed, 28 Sep 2022 19:04:14 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(component):=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/component/src/component/noticeBar/index.vue | 8 ++++---- .../src/document/zh-CN/guide/changelog.md | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) 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 样式不生效, 导致布局错误。