weex-ui-demo
Version:
A rich interaction, lightweight, high performance UI library based on Weex
21 lines (15 loc) • 591 B
Markdown
# Utils
> Weex Ui 中的公共函数服务
!> 在 `weex-ui` V0.6.0 版本以上,为了减少打包体积,Binding 相关判断由 `Utils.env ` 转移到 `BindEnv`
## 规则
<img src="https://img.alicdn.com/tfs/TB1t2Y7nN9YBuNjy0FfXXXIsVXa-2952-1096.png" width="860"/>
## 使用方法
```vue
<script>
import { Utils } from 'weex-ui';
// Utils.env.getPageHeight();
// if you want to use bind utils
// import { BindEnv } from 'weex-ui';
</script>
```
更详细代码和文档可以参考 [utils](https://github.com/alibaba/weex-ui/blob/master/packages/utils)