Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rollnotice 支持rem 修改方法 #796

Open
pbwei opened this issue Jul 30, 2020 · 0 comments
Open

rollnotice 支持rem 修改方法 #796

pbwei opened this issue Jul 30, 2020 · 0 comments

Comments

@pbwei
Copy link

pbwei commented Jul 30, 2020

问题描述

本项目 rollnotice 只能支持px, 修改 rollnotice.vue 组件

产生环境

  • **使用版本:-
  • **引入方式:CDN | NPM
  • **演示地址:-

提示错误信息

  1. ...

代码区域

添加 ‘px’ -> heightUnit
<div class="yd-rollnotice" :style="{height: height + heightUnit}">
<script>
    props: {
    heightUnit: {
      default: 'px', // 高度单位
    },
   }
setTranslate(speed, translate) {
      this.styles.transitionDuration = speed + 'ms';
      this.styles.transform = 'translate3d(0, ' + translate + this.heightUnit + ', 0)';
    },
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant