We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
例如:a-layout-sider,我给定了:width: 102,这个如何转为viewport单位? <a-layout-sider :width="102"><Menu /></a-layout-sider> <a-image width="100" :src="item.photo" />
<a-layout-sider :width="102"><Menu /></a-layout-sider>
<a-image width="100" :src="item.photo" />
上面只是提供了一个案例,arco中的ui组件大部分场景下都提供了:width这种属性,而且这些属性只支持number类型,我无法通过自定义函数来将单位转换为viewport,例如:a-image、输入框、icon等,有些地方是可以通过属性手动设置,有些地方没法设置大小,请问这种多端兼容有解决方案吗?
The text was updated successfully, but these errors were encountered:
我想到的是利用屏幕大小和元素宽度来计算他们的比例,每次窗口大小发生变化,获取窗口大小*比例来获取最新的宽度
Sorry, something went wrong.
No branches or pull requests
Basic Info
Steps to reproduce
例如:a-layout-sider,我给定了:width: 102,这个如何转为viewport单位?
<a-layout-sider :width="102"><Menu /></a-layout-sider>
<a-image width="100" :src="item.photo" />
上面只是提供了一个案例,arco中的ui组件大部分场景下都提供了:width这种属性,而且这些属性只支持number类型,我无法通过自定义函数来将单位转换为viewport,例如:a-image、输入框、icon等,有些地方是可以通过属性手动设置,有些地方没法设置大小,请问这种多端兼容有解决方案吗?
The text was updated successfully, but these errors were encountered: