Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zepp-Adaptive-UI

一个简单的ZeppOS自适应UI库

图片

安装

# pnpm(推荐)
pnpm add @zh40s05/zepp-adaptive-ui

# npm
npm install @zh40s05/zepp-adaptive-ui

# 或手动复制
cp zaui.js your-app/utils/zaui.js

使用

import { pw, pl } from '../utils/zaui'

说明

Provides adaptive UI methods based on three different approaches. 提供了基于三种不同思路的自适应UI方式

P0 - Rewrite the official px function to real-time calculation. 将官方px函数重写为实时计算

P1 - Based on height adaptation, suitable for the vast majority of situations. 基于高度适应,适用于绝大多数情况

P2 - Compatibility baseline based on circular screen. 基于圆形屏幕的兼容性底线

P3 - Devoted to point-to-point and maximum overlap design. 致力于点对点和最大重叠设计

详细使用样例请阅读zaui.js内注释

About

ZeppOS 自适应 UI 库 — 四种屏幕适配策略 / Adaptive UI with 4 scaling strategies

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages