更新记录

1.0.2(2024-05-06)

bug修复

1.0.1(2024-04-29)

目前主要为样式,兼容所有端


平台兼容性

Vue2 Vue3
App 快应用 微信小程序 支付宝小程序 百度小程序 字节小程序 QQ小程序
HBuilderX 4.08 app-vue app-nvue
钉钉小程序 快手小程序 飞书小程序 京东小程序
H5-Safari Android Browser 微信浏览器(Android) QQ浏览器(Android) Chrome IE Edge Firefox PC-Safari

zero-ui3

主要为css样式

主题变量须在uni.scss追加才能使用

$c-primary: #3b5cf0;
$c-red: #ff2414;
$c-green: #4ec752;
$c-orange: #ffa114;
$c-grey: #9e9e9e;

以下为样式内容

.fd-r {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.fd-c {
    display: flex;
    flex-direction: column;
}

.flex1 {
    flex: 1;
}

.flex2 {
    flex: 2;
}

.flex3 {
    flex: 3;
}

.flex4 {
    flex: 4;
}

.flex5 {
    flex: 5;
}

.flex6 {
    flex: 6;
}

.ai-c {
    align-items: center;
}

.ai-fs {
    align-items: flex-start;
}

.ai-fe {
    align-items: flex-end;
}

.ai-s {
    align-items: stretch;
}

.ac-fs {
    align-content: flex-start;
}

.ac-fe {
    align-content: flex-end;
}

.ac-c {
    align-content: center;
}

.ac-sb {
    align-content: space-between;
}

.ac-sa {
    align-content: space-around;
}

.ac-s {
    align-content: stretch;
}

.as-a {
    align-self: auto;
}

.as-fs {
    align-self: flex-start;
}

.as-fe {
    align-self: flex-end;
}

.as-c {
    align-self: center;
}

.as-s {
    align-self: stretch;
}

.jc-c {
    justify-content: center;
}

.jc-fs {
    justify-content: flex-start;
}

.jc-fe {
    justify-content: flex-end;
}

.jc-sb {
    justify-content: space-between;
}

.jc-sa {
    justify-content: space-around;
}

.fw-w {
    flex-wrap: wrap;
}

.z-card {
    margin: 24rpx 24rpx 0 24rpx;
    border-radius: 16rpx;
    background-color: white;
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.08);
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.z-foot {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.fw-b {
    font-weight: bold;
}

.c-primary {
    color: $c-primary;
}

.c-red {
    color: $c-red;
}

.c-green {
    color: $c-green;
}

.c-orange {
    color: $c-orange;
}

.c-grey {
    color: $c-grey;
}

.c-white {
    color: #ffffff;
}

.bgc-primary {
    background-color: $c-primary;
}

.bgc-red {
    background-color: $c-red;
}

.bgc-green {
    background-color: $c-green;
}

.bgc-orange {
    background-color: $c-orange;
}

.bgc-grey {
    background-color: $c-grey;
}

.bgc-white {
    background-color: #ffffff;
}

.divider {
    transform: scaleY(0.1);
    border: 1rpx solid $uni-border-color;
}

/* #ifndef UNI-APP-X */
button::after {
    border: none;
}
/* #endif */

.btn-primary {
    font-size: 30rpx;
    color: #ffffff;
    background-color: $c-primary;
    border-radius: 200rpx;
}

.btn-primary-plain {
    font-size: 30rpx;
    color: $c-primary;
    border: solid 1px $c-primary;
    background-color: #ffffff;
    border-radius: 200rpx;
}

.btn-primary-text {
    font-size: 30rpx;
    border: none;
    border-radius: 8rpx;
    color: $c-primary;
    background-color: #ffffff;
}

.btn-orange {
    font-size: 30rpx;
    color: #ffffff;
    background-color: $c-orange;
    border-radius: 200rpx;
}

.btn-orange-plain {
    font-size: 30rpx;
    color: $c-orange;
    border: solid 1px $c-orange;
    background-color: #ffffff;
    border-radius: 200rpx;
}

.btn-orange-text {
    font-size: 30rpx;
    border: none;
    border-radius: 8rpx;
    color: $c-orange;
    background-color: #ffffff;
}

.btn-red {
    font-size: 30rpx;
    color: #ffffff;
    background-color: $c-red;
    border-radius: 200rpx;
}

.btn-red-plain {
    font-size: 30rpx;
    color: $c-red;
    border: solid 1px $c-red;
    background-color: #ffffff;
    border-radius: 200rpx;
}

.btn-red-text {
    font-size: 30rpx;
    border: none;
    border-radius: 8rpx;
    color: $c-red;
    background-color: #ffffff;
}

.btn-green {
    font-size: 30rpx;
    color: #ffffff;
    background-color: $c-green;
    border-radius: 200rpx;
}

.btn-green-plain {
    font-size: 30rpx;
    color: $c-green;
    border: solid 1px $c-green;
    background-color: #ffffff;
    border-radius: 200rpx;
}

.btn-green-text {
    font-size: 30rpx;
    border: none;
    border-radius: 8rpx;
    color: $c-green;
    background-color: #ffffff;
}

.btn-grey {
    font-size: 30rpx;
    color: #ffffff;
    background-color: $c-grey;
    border-radius: 200rpx;
}

.btn-grey-plain {
    font-size: 30rpx;
    color: $c-grey;
    border: solid 1px $c-grey;
    background-color: #ffffff;
    border-radius: 200rpx;
}

.btn-grey-text {
    font-size: 30rpx;
    border: none;
    border-radius: 8rpx;
    color: $c-grey;
    background-color: #ffffff;
}

.btn-text-hover {
    background-color: rgba(0, 0, 0, 0.06);
}

.btn-hover {
    transform: scale(0.98, 0.98);
}

.fs-20 {
    font-size: 20rpx;
}
.fs-22 {
    font-size: 22rpx;
}
.fs-24 {
    font-size: 24rpx;
}
.fs-26 {
    font-size: 26rpx;
}
.fs-28 {
    font-size: 28rpx;
}
.fs-30 {
    font-size: 30rpx;
}
.fs-32 {
    font-size: 32rpx;
}
.fs-34 {
    font-size: 34rpx;
}
.fs-36 {
    font-size: 36rpx;
}
.fs-38 {
    font-size: 38rpx;
}
.fs-40 {
    font-size: 40rpx;
}
.fs-42 {
    font-size: 42rpx;
}
.fs-44 {
    font-size: 44rpx;
}

.br-8 {
    border-radius: 8rpx;
}
.br-16 {
    border-radius: 16rpx;
}
.br-24 {
    border-radius: 24rpx;
}
.br-32 {
    border-radius: 32rpx;
}
.br-40 {
    border-radius: 40rpx;
}
.br-48 {
    border-radius: 48rpx;
}
.br-200 {
    border-radius: 200rpx;
}

.lines1 {
    /* #ifndef UNI-APP-X */
    width: 100%;
    display: -webkit-box;
    white-space: inherit;
    overflow: hidden;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    /* #endif */
    /* #ifdef UNI-APP-X */
    lines: 4;
    /* #endif */
}

.lines2 {
    /* #ifndef UNI-APP-X */
    width: 100%;
    display: -webkit-box;
    white-space: inherit;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    /* #endif */
    /* #ifdef UNI-APP-X */
    lines: 4;
    /* #endif */
}

.lines3 {
    /* #ifndef UNI-APP-X */
    width: 100%;
    display: -webkit-box;
    white-space: inherit;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    /* #endif */
    /* #ifdef UNI-APP-X */
    lines: 4;
    /* #endif */
}

.lines4 {
    /* #ifndef UNI-APP-X */
    width: 100%;
    display: -webkit-box;
    white-space: inherit;
    overflow: hidden;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    /* #endif */
    /* #ifdef UNI-APP-X */
    lines: 4;
    /* #endif */
}

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

插件不采集任何数据

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

许可协议

MIT协议

暂无用户评论。

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问