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

Picker新增的dpr判定怎么打开? #2150

Closed
petersmu opened this issue Oct 31, 2017 · 3 comments
Closed

Picker新增的dpr判定怎么打开? #2150

petersmu opened this issue Oct 31, 2017 · 3 comments

Comments

@petersmu
Copy link
Contributor

之前我提出的Picker根据dpr来适配rem自适应布局,刚看到2.7.0有了新的判定方式,请问这一段判断是从哪里取的?
image
是需要配置什么吗?

@airyland
Copy link
Owner

@petersmu
Copy link
Contributor Author

import { ConfigPlugin } from 'vux'
Vue.use(ConfigPlugin, {
  $picker: {
    respectHtmlDataDpr: true
  }
});

这个在项目主入口配置吗?我在组件里面配置貌似不生效

@airyland
Copy link
Owner

因为 picker 影响到了 datetime popup-picker,它要做全局配置,在主入口配置。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants