diff --git a/package/component/src/component/carouselItem/index.vue b/package/component/src/component/carouselItem/index.vue index b8f66e20..b2cfdf77 100644 --- a/package/component/src/component/carouselItem/index.vue +++ b/package/component/src/component/carouselItem/index.vue @@ -45,15 +45,18 @@ const getStyle = computed(() => { if (activeIndex === currentIndex) { if (animation === "updown") { return { - transform: "translateY(0)", visibility: 'inherit' + transform: "translateY(0)", + visibility: "inherit", }; } else if (animation.includes("fade")) { return { - opacity: 1,visibility: 'inherit' + opacity: 1, + visibility: "inherit", }; } else { return { - transform: "translateX(0)",visibility: 'inherit' + transform: "translateX(0)", + visibility: "inherit", }; } } diff --git a/package/component/src/component/dropdown/index.vue b/package/component/src/component/dropdown/index.vue index ef12bd78..49a17e8b 100644 --- a/package/component/src/component/dropdown/index.vue +++ b/package/component/src/component/dropdown/index.vue @@ -85,9 +85,9 @@ const { x: mouseLeft, y: mouseTop } = useMouse(); const openState = ref(false); const containerRef = computed(() => - props.popupContainer - // @ts-ignore - ? document.querySelector(props.popupContainer) ?? document.body + props.popupContainer + ? // @ts-ignore + document.querySelector(props.popupContainer) ?? document.body : dropdownRef.value ) as ComputedRef; @@ -455,7 +455,7 @@ const handleMouseEnter = (e: MouseEvent) => { }; const handleMouseEnterWithContext = (e: MouseEvent) => { - if (!props.popupContainer){ + if (!props.popupContainer) { return; } dropdownCtx?.onMouseenter(e); diff --git a/package/component/src/component/dropdownMenuItem/index.vue b/package/component/src/component/dropdownMenuItem/index.vue index abc4a11b..3487253b 100644 --- a/package/component/src/component/dropdownMenuItem/index.vue +++ b/package/component/src/component/dropdownMenuItem/index.vue @@ -7,9 +7,20 @@ export default { @@ -17,6 +28,7 @@ const handleClick = () => { 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 5db11f52..0495078a 100644 --- a/package/document-component/src/document/zh-CN/guide/changelog.md +++ b/package/document-component/src/document/zh-CN/guide/changelog.md @@ -16,6 +16,7 @@
  • 1.2.7 2022-07-04

      +
    • [新增] dropdown-menu-item 新增 disabled 属性。by @starsatdawn
    • [修复] table默认加载时有横向滚动条,header 的滚动条占位无法显示 by @dingyongya
    • [优化] carousel首次加载时不应存在动画效果,而是应立即显示默认的item by @0o张不歪o0