liushengqiang 1 년 전
부모
커밋
d8cd314f2f
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/components/TheNoticeBar/index.module.less
  2. 1 1
      src/components/TheNoticeBar/index.tsx

+ 1 - 1
src/components/TheNoticeBar/index.module.less

@@ -3,7 +3,7 @@
     overflow: hidden;
     display: flex;
     align-items: center;
-    &:hover{
+    &.isAnitaion, &:hover{
         .notice{
             width: auto;
             overflow: initial;

+ 1 - 1
src/components/TheNoticeBar/index.tsx

@@ -70,7 +70,7 @@ export default defineComponent({
     return () => (
       <div
         ref={wrapRef}
-        class={styles.wrap}
+        class={[styles.wrap, props.isAnimation ? styles.isAnitaion : '']}
         onMouseenter={() => init()}
         onMouseleave={() => stopAnimate()}>
         <div