mirror of
https://github.com/weilanwl/coloruicss.git
synced 2026-03-10 17:34:01 +08:00
v2.0.7
v2.0.7
This commit is contained in:
@@ -34,7 +34,8 @@
|
||||
"pages/about/test/filter",
|
||||
"pages/about/home/home",
|
||||
"custom-tab-bar/index",
|
||||
"pages/plugin/drawer/drawer"
|
||||
"pages/plugin/drawer/drawer",
|
||||
"pages/plugin/verticalnav/verticalnav"
|
||||
],
|
||||
"window": {
|
||||
"navigationBarBackgroundColor": "#39b54a",
|
||||
|
||||
@@ -10,11 +10,13 @@
|
||||
<view class="bg-gradual-green content shadow-blur">
|
||||
<view class="cu-capsule radius">
|
||||
<view class="cu-tag bg-white text-green">v2.0.7</view>
|
||||
<view class="cu-tag line-white">2019/02/20</view>
|
||||
<view class="cu-tag line-white">2019/02/25</view>
|
||||
</view>
|
||||
<view class='margin-top-sm text-content'>
|
||||
<view>1.新增操作条胶囊样式,优化全屏操作条</view>
|
||||
<view>2.新增操垂直导航</view>
|
||||
<view>2.优化iPhone X的Tabbar样式</view>
|
||||
<view>3.新增全屏抽屉插件</view>
|
||||
<view>4.新增垂直导航插件</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -68,78 +68,3 @@
|
||||
<text class='icon-clothesfill'></text> 皮肤
|
||||
</view>
|
||||
</scroll-view>
|
||||
|
||||
<view class="cu-bar bg-white margin-top solid-bottom">
|
||||
<view class='action'>
|
||||
<text class='icon-title text-orange'></text> 垂直导航
|
||||
</view>
|
||||
</view>
|
||||
<view class="ScrollBox">
|
||||
<scroll-view class="ScrollNav nav" scroll-y scroll-with-animation scroll-top="{{scrollNavTop}}" style="height:calc(100vh - 375rpx)">
|
||||
<view class="cu-item {{index==TabCur?'text-green cur':''}}" wx:for="{{20}}" wx:key bindtap='tabSelect' data-id="{{index}}">
|
||||
Tab{{index +1}}
|
||||
</view>
|
||||
</scroll-view>
|
||||
<scroll-view class="ScrollMain" scroll-y scroll-with-animation style="height:calc(100vh - 375rpx)" scroll-into-view="main-id-{{TabCur}}" bindscroll="ScrollMain">
|
||||
<view class="padding-top padding-lr" wx:for="{{20}}" wx:key id="main-id-{{index}}">
|
||||
<view class='cu-bar solid-bottom bg-white'>
|
||||
<view class='action'>
|
||||
<text class='icon-title text-green'></text> Tab{{index +1}}</view>
|
||||
</view>
|
||||
<view class="cu-list menu menu-avatar">
|
||||
<view class="cu-item">
|
||||
<view class="cu-avatar round lg" style="background-image:url(https://image.weilanwl.com/img/square-1.jpg);"></view>
|
||||
<view class='content'>
|
||||
<view class='text-grey'>文晓港</view>
|
||||
<view class='text-gray text-sm'>
|
||||
<text class='icon-infofill text-red'></text> 消息未送达</view>
|
||||
</view>
|
||||
<view class='action'>
|
||||
<view class='text-grey text-xs'>22:20</view>
|
||||
<view class="cu-tag round bg-grey sm">5</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-item">
|
||||
<view class="cu-avatar round lg" style="background-image:url(https://image.weilanwl.com/img/square-2.jpg);">
|
||||
<view class="cu-tag badge">99+</view>
|
||||
</view>
|
||||
<view class='content'>
|
||||
<view class='text-grey'>文晓港
|
||||
<view class="cu-tag round bg-orange sm">SVIP</view>
|
||||
</view>
|
||||
<view class='text-gray text-sm'>
|
||||
<text class='icon-redpacket_fill text-red'></text> 收到红包</view>
|
||||
</view>
|
||||
<view class='action'>
|
||||
<view class='text-grey text-xs'>22:20</view>
|
||||
<view class='icon-notice_forbid_fill text-gray'></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-item ">
|
||||
<view class="cu-avatar radius lg" style="background-image:url(https://image.weilanwl.com/img/square-3.jpg);"></view>
|
||||
<view class='content'>
|
||||
<view>喵星人互动群</view>
|
||||
<view class='text-gray text-sm'>
|
||||
喵星酱:喵喵喵!</view>
|
||||
</view>
|
||||
<view class='action'>
|
||||
<view class='text-grey text-xs'>22:20</view>
|
||||
<view class="cu-tag round bg-red sm">5</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-item grayscale">
|
||||
<view class="cu-avatar radius lg" style="background-image:url(https://image.weilanwl.com/img/square-3.jpg);"></view>
|
||||
<view class='content'>
|
||||
<view>喵星人互动群</view>
|
||||
<view class='text-gray text-sm'>
|
||||
喵星酱:喵喵喵!</view>
|
||||
</view>
|
||||
<view class='action'>
|
||||
<view class='text-grey text-xs'>22:20</view>
|
||||
<view class="cu-tag round bg-red sm">5</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
@@ -1,37 +0,0 @@
|
||||
/* pages/component/nav/nav.wxss */
|
||||
.ScrollNav.nav {
|
||||
width: 200rpx;
|
||||
white-space: initial;
|
||||
}
|
||||
|
||||
.ScrollNav.nav .cu-item {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
background-color: #fff;
|
||||
margin: 0;
|
||||
border: none;
|
||||
height: 50px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.ScrollNav.nav .cu-item.cur {
|
||||
background-color: #f1f1f1;
|
||||
}
|
||||
.ScrollNav.nav .cu-item.cur::after {
|
||||
content: "";
|
||||
width: 8rpx;
|
||||
height: 30rpx;
|
||||
border-radius: 10rpx 0 0 10rpx;
|
||||
position: absolute;
|
||||
background-color: currentColor;
|
||||
top: 0;
|
||||
right: 0rpx;
|
||||
bottom: 0;
|
||||
margin: auto;
|
||||
}
|
||||
.ScrollBox{
|
||||
display: flex;
|
||||
}
|
||||
.ScrollMain{
|
||||
background-color: #f1f1f1;
|
||||
}
|
||||
@@ -8,29 +8,33 @@
|
||||
</block>
|
||||
</view>
|
||||
<!-- 样式1 -->
|
||||
<view class="action {{1==TabCur?'cur':''}}" bindtap='tabSelect' data-id="1">
|
||||
<view class='icon-cu-image'>
|
||||
<image src='/images/tabbar/component{{1==TabCur?"_cur":""}}.png'></image>
|
||||
<block wx:if="{{1==TabCur?'cur':''}}">
|
||||
<view class="action {{1==TabCur?'cur':''}}" bindtap='tabSelect' data-id="1">
|
||||
<view class='icon-cu-image'>
|
||||
<image src='/images/tabbar/component{{1==TabCur?"_cur":""}}.png'></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="action {{2==TabCur?'cur':''}}" bindtap='tabSelect' data-id="2">
|
||||
<view class='icon-cu-image'>
|
||||
<image src='/images/tabbar/plugin{{2==TabCur?"_cur":""}}.png'></image>
|
||||
<view class='cu-tag badge'>99</view>
|
||||
<view class="action {{2==TabCur?'cur':''}}" bindtap='tabSelect' data-id="2">
|
||||
<view class='icon-cu-image'>
|
||||
<image src='/images/tabbar/plugin{{2==TabCur?"_cur":""}}.png'></image>
|
||||
<view class='cu-tag badge'>99</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="action {{3==TabCur?'cur':''}}" bindtap='tabSelect' data-id="3">
|
||||
<view class='icon-cu-image'>
|
||||
<image src='/images/tabbar/about{{3==TabCur?"_cur":""}}.png'></image>
|
||||
<view class='cu-tag badge'></view>
|
||||
<view class="action {{3==TabCur?'cur':''}}" bindtap='tabSelect' data-id="3">
|
||||
<view class='icon-cu-image'>
|
||||
<image src='/images/tabbar/about{{3==TabCur?"_cur":""}}.png'></image>
|
||||
<view class='cu-tag badge'></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<!-- 样式2 -->
|
||||
<!-- <scroll-view scroll-x class="nav" scroll-with-animation scroll-left="{{scrollLeft}}" style='width:calc(100% - 440rpx)'>
|
||||
<view class="cu-item {{index==TabCur?'text-green cur':''}}" wx:for="{{10}}" wx:key bindtap='tabSelect' data-id="{{index}}">
|
||||
Tab{{index}}
|
||||
</view>
|
||||
</scroll-view> -->
|
||||
<block wx:if="{{1!=TabCur?'cur':''}}">
|
||||
<scroll-view scroll-x class="nav" scroll-with-animation scroll-left="{{scrollLeft}}" style='width:calc(100% - 440rpx)'>
|
||||
<view class="cu-item {{index==TabCur?'text-green cur':''}}" wx:for="{{10}}" wx:key bindtap='tabSelect' data-id="{{index}}">
|
||||
Tab{{index}}
|
||||
</view>
|
||||
</scroll-view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
<view wx:for="{{10}}" wx:key wx:if="{{index==TabCur}}" class='padding margin text-center'>
|
||||
@@ -41,7 +45,9 @@
|
||||
</navigator>
|
||||
</view>
|
||||
</view>
|
||||
<view class="DrawerClose {{modalName=='viewModal'?'show':''}}" bindtap='hideModal'><text class='icon-pullright'></text></view>
|
||||
<view class="DrawerClose {{modalName=='viewModal'?'show':''}}" bindtap='hideModal'>
|
||||
<text class='icon-pullright'></text>
|
||||
</view>
|
||||
<view class="DrawerWindow {{modalName=='viewModal'?'show':''}}">
|
||||
<view class='padding-xl text-center text-white'>
|
||||
<image src='/images/logo.png' class='response' mode='widthFix' style='width:200rpx;margin-top:100rpx'></image>
|
||||
|
||||
@@ -17,6 +17,11 @@ Component({
|
||||
title: '全屏抽屉',
|
||||
img: 'https://image.weilanwl.com/color2.0/plugin/qpct2148.jpg',
|
||||
url: '../drawer/drawer'
|
||||
},
|
||||
{
|
||||
title: '垂直导航',
|
||||
img: 'https://image.weilanwl.com/color2.0/plugin/qpczdh2307.jpg',
|
||||
url: '../verticalnav/verticalnav'
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
19
demo/pages/plugin/verticalnav/verticalnav.js
Normal file
19
demo/pages/plugin/verticalnav/verticalnav.js
Normal file
@@ -0,0 +1,19 @@
|
||||
const app = getApp()
|
||||
Page({
|
||||
data: {
|
||||
StatusBar: app.globalData.StatusBar,
|
||||
CustomBar: app.globalData.CustomBar,
|
||||
Custom: app.globalData.Custom,
|
||||
TabCur: 0,
|
||||
VerticalNavTop: 0
|
||||
},
|
||||
tabSelect(e) {
|
||||
this.setData({
|
||||
TabCur: e.currentTarget.dataset.id,
|
||||
VerticalNavTop: (e.currentTarget.dataset.id - 1) * 50
|
||||
})
|
||||
},
|
||||
VerticalMain(e) {
|
||||
console.log(e.detail);
|
||||
}
|
||||
})
|
||||
3
demo/pages/plugin/verticalnav/verticalnav.json
Normal file
3
demo/pages/plugin/verticalnav/verticalnav.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"usingComponents": {}
|
||||
}
|
||||
82
demo/pages/plugin/verticalnav/verticalnav.wxml
Normal file
82
demo/pages/plugin/verticalnav/verticalnav.wxml
Normal file
@@ -0,0 +1,82 @@
|
||||
<view class='cu-custom'>
|
||||
<view class="cu-bar fixed bg-shadeTop" style="height:{{CustomBar}}px;padding-top:{{StatusBar}}px;">
|
||||
<navigator class='action' open-type="navigateBack" delta="1" hover-class="none">
|
||||
<text class='icon-back'></text> 返回
|
||||
</navigator>
|
||||
<view class='content' style='top:{{StatusBar}}px;'>Tab索引</view>
|
||||
</view>
|
||||
</view>
|
||||
<swiper class="screen-swiper round-dot" indicator-dots="true" circular="true" autoplay="true" interval="5000" duration="500">
|
||||
<swiper-item wx:for="{{4}}" wx:key>
|
||||
<image src="https://image.weilanwl.com/img/4x3-{{index+1}}.jpg" mode='aspectFill'></image>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
<view class="VerticalBox">
|
||||
<scroll-view class="VerticalNav nav" scroll-y scroll-with-animation scroll-top="{{VerticalNavTop}}" style="height:calc(100vh - 375rpx)">
|
||||
<view class="cu-item {{index==TabCur?'text-green cur':''}}" wx:for="{{20}}" wx:key bindtap='tabSelect' data-id="{{index}}">
|
||||
Tab{{index +1}}
|
||||
</view>
|
||||
</scroll-view>
|
||||
<scroll-view class="VerticalMain" scroll-y scroll-with-animation style="height:calc(100vh - 375rpx)" scroll-into-view="main-id-{{TabCur}}" bindscroll="VerticalMain">
|
||||
<view class="padding-top padding-lr" wx:for="{{20}}" wx:key id="main-id-{{index}}">
|
||||
<view class='cu-bar solid-bottom bg-white'>
|
||||
<view class='action'>
|
||||
<text class='icon-title text-green'></text> Tab{{index +1}}</view>
|
||||
</view>
|
||||
<view class="cu-list menu menu-avatar">
|
||||
<view class="cu-item">
|
||||
<view class="cu-avatar round lg" style="background-image:url(https://image.weilanwl.com/img/square-1.jpg);"></view>
|
||||
<view class='content'>
|
||||
<view class='text-grey'>文晓港</view>
|
||||
<view class='text-gray text-sm'>
|
||||
<text class='icon-infofill text-red'></text> 消息未送达</view>
|
||||
</view>
|
||||
<view class='action'>
|
||||
<view class='text-grey text-xs'>22:20</view>
|
||||
<view class="cu-tag round bg-grey sm">5</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-item">
|
||||
<view class="cu-avatar round lg" style="background-image:url(https://image.weilanwl.com/img/square-2.jpg);">
|
||||
<view class="cu-tag badge">99+</view>
|
||||
</view>
|
||||
<view class='content'>
|
||||
<view class='text-grey'>文晓港
|
||||
<view class="cu-tag round bg-orange sm">SVIP</view>
|
||||
</view>
|
||||
<view class='text-gray text-sm'>
|
||||
<text class='icon-redpacket_fill text-red'></text> 收到红包</view>
|
||||
</view>
|
||||
<view class='action'>
|
||||
<view class='text-grey text-xs'>22:20</view>
|
||||
<view class='icon-notice_forbid_fill text-gray'></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-item ">
|
||||
<view class="cu-avatar radius lg" style="background-image:url(https://image.weilanwl.com/img/square-3.jpg);"></view>
|
||||
<view class='content'>
|
||||
<view>喵星人互动群</view>
|
||||
<view class='text-gray text-sm'>
|
||||
喵星酱:喵喵喵!</view>
|
||||
</view>
|
||||
<view class='action'>
|
||||
<view class='text-grey text-xs'>22:20</view>
|
||||
<view class="cu-tag round bg-red sm">5</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="cu-item grayscale">
|
||||
<view class="cu-avatar radius lg" style="background-image:url(https://image.weilanwl.com/img/square-3.jpg);"></view>
|
||||
<view class='content'>
|
||||
<view>喵星人互动群</view>
|
||||
<view class='text-gray text-sm'>
|
||||
喵星酱:喵喵喵!</view>
|
||||
</view>
|
||||
<view class='action'>
|
||||
<view class='text-grey text-xs'>22:20</view>
|
||||
<view class="cu-tag round bg-red sm">5</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
37
demo/pages/plugin/verticalnav/verticalnav.wxss
Normal file
37
demo/pages/plugin/verticalnav/verticalnav.wxss
Normal file
@@ -0,0 +1,37 @@
|
||||
/* pages/component/nav/nav.wxss */
|
||||
.VerticalNav.nav {
|
||||
width: 200rpx;
|
||||
white-space: initial;
|
||||
}
|
||||
|
||||
.VerticalNav.nav .cu-item {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
background-color: #fff;
|
||||
margin: 0;
|
||||
border: none;
|
||||
height: 50px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.VerticalNav.nav .cu-item.cur {
|
||||
background-color: #f1f1f1;
|
||||
}
|
||||
.VerticalNav.nav .cu-item.cur::after {
|
||||
content: "";
|
||||
width: 8rpx;
|
||||
height: 30rpx;
|
||||
border-radius: 10rpx 0 0 10rpx;
|
||||
position: absolute;
|
||||
background-color: currentColor;
|
||||
top: 0;
|
||||
right: 0rpx;
|
||||
bottom: 0;
|
||||
margin: auto;
|
||||
}
|
||||
.VerticalBox{
|
||||
display: flex;
|
||||
}
|
||||
.VerticalMain{
|
||||
background-color: #f1f1f1;
|
||||
}
|
||||
@@ -36,7 +36,7 @@
|
||||
"list": []
|
||||
},
|
||||
"miniprogram": {
|
||||
"current": 31,
|
||||
"current": 32,
|
||||
"list": [
|
||||
{
|
||||
"id": 0,
|
||||
@@ -194,10 +194,17 @@
|
||||
"pathName": "pages/plugin/animation/animation",
|
||||
"query": ""
|
||||
},
|
||||
{
|
||||
"id": 31,
|
||||
"name": "3.3 扩展-全屏抽屉",
|
||||
"pathName": "pages/plugin/drawer/drawer",
|
||||
"query": "",
|
||||
"scene": null
|
||||
},
|
||||
{
|
||||
"id": 31,
|
||||
"name": "3.3 扩展-全屏抽屉",
|
||||
"pathName": "pages/plugin/drawer/drawer",
|
||||
"id": -1,
|
||||
"name": "3.4 扩展-垂直导航",
|
||||
"pathName": "pages/plugin/home/home",
|
||||
"query": "",
|
||||
"scene": null
|
||||
},
|
||||
|
||||
@@ -36,7 +36,9 @@ App({
|
||||
wx.getSystemInfo({
|
||||
success: e => {
|
||||
this.globalData.StatusBar = e.statusBarHeight;
|
||||
this.globalData.CustomBar = e.platform == 'android' ? e.statusBarHeight + 50 : e.statusBarHeight + 45;
|
||||
let custom = wx.getMenuButtonBoundingClientRect();
|
||||
this.globalData.Custom = custom;
|
||||
this.globalData.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Color UI v2.0.6 修复v1 | by 文晓港
|
||||
Color UI v2.0.7 | by 文晓港
|
||||
仅供学习交流,如作它用所承受的法律责任一概与作者无关
|
||||
(QQ交流群:240787041)
|
||||
文档:http://www.color-ui.com/
|
||||
@@ -774,6 +774,7 @@ button.icon.lg {
|
||||
height: 28rpx;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.cu-tag.badge:not([class*="bg-"]) {
|
||||
background: #dd514c;
|
||||
}
|
||||
@@ -1464,10 +1465,11 @@ button.icon.lg {
|
||||
.cu-bar .content {
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
width: 400rpx;
|
||||
width: calc(100% - 340rpx);
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 20rpx;
|
||||
bottom: 0;
|
||||
top: 0;
|
||||
margin: auto;
|
||||
height: 60rpx;
|
||||
font-size: 32rpx;
|
||||
@@ -1479,6 +1481,13 @@ button.icon.lg {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.cu-bar.ios .content {
|
||||
bottom: 7px;
|
||||
height: 30px;
|
||||
font-size: 32rpx;
|
||||
line-height: 30px;
|
||||
}
|
||||
|
||||
.cu-bar.btn-group {
|
||||
justify-content: space-around;
|
||||
}
|
||||
@@ -1543,6 +1552,14 @@ button.icon.lg {
|
||||
|
||||
.cu-bar.tabbar {
|
||||
padding: 0;
|
||||
z-index: 0;
|
||||
height: calc(100rpx + env(safe-area-inset-bottom) / 2);
|
||||
padding-bottom: calc(env(safe-area-inset-bottom) / 2);
|
||||
}
|
||||
|
||||
.cu-tabbar-height {
|
||||
min-height: 100rpx;
|
||||
height: calc(100rpx + env(safe-area-inset-bottom) / 2);
|
||||
}
|
||||
|
||||
.cu-bar.tabbar.shadow {
|
||||
@@ -1716,51 +1733,72 @@ button.icon.lg {
|
||||
margin-left: 0rpx;
|
||||
}
|
||||
|
||||
/*
|
||||
.cu-bar.tabbar .action {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
.cu-bar.tabbar .action .tabbar-icon {
|
||||
width: 54rpx;
|
||||
height: 54rpx;
|
||||
position: relative;
|
||||
}
|
||||
.cu-bar.tabbar .action image {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
margin: auto;
|
||||
}
|
||||
.cu-bar.tabbar .action .tabbar-icon image:first-child,.cu-bar.tabbar .action.cur .tabbar-icon image:last-child {
|
||||
width: 0rpx;
|
||||
height: 0rpx;
|
||||
}
|
||||
.cu-bar.tabbar .action .tabbar-icon image:last-child,.cu-bar.tabbar .action.cur .tabbar-icon image:first-child {
|
||||
width: 54rpx;
|
||||
height: 54rpx;
|
||||
}
|
||||
|
||||
.cu-bar.tabbar .action view {
|
||||
font-size: 20rpx;
|
||||
} */
|
||||
|
||||
.cu-custom {
|
||||
display: block;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.cu-custom .cu-bar .content {
|
||||
width: calc(100% - 440rpx);
|
||||
}
|
||||
|
||||
.cu-custom .cu-bar {
|
||||
min-height: 0px;
|
||||
}
|
||||
|
||||
.cu-custom .cu-bar {
|
||||
padding-right: 220rpx;
|
||||
box-shadow: 0rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.cu-custom .cu-bar .border-custom {
|
||||
position: relative;
|
||||
background: rgba(0, 0, 0, 0.15);
|
||||
border-radius: 1000rpx;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
.cu-custom .cu-bar .border-custom::after {
|
||||
content: " ";
|
||||
width: 200%;
|
||||
height: 200%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
border-radius: inherit;
|
||||
transform: scale(0.5);
|
||||
transform-origin: 0 0;
|
||||
pointer-events: none;
|
||||
box-sizing: border-box;
|
||||
border: 1rpx solid #fff;
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
.cu-custom .cu-bar .border-custom::before {
|
||||
content: " ";
|
||||
width: 1rpx;
|
||||
height: 110%;
|
||||
position: absolute;
|
||||
top: 22.5%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
margin: auto;
|
||||
transform: scale(0.5);
|
||||
transform-origin: 0 0;
|
||||
pointer-events: none;
|
||||
box-sizing: border-box;
|
||||
opacity: 0.6;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.cu-custom .cu-bar .border-custom text {
|
||||
display: block;
|
||||
flex: 1;
|
||||
margin: auto !important;
|
||||
text-align: center;
|
||||
font-size: 34rpx;
|
||||
}
|
||||
|
||||
/* ==================
|
||||
导航栏
|
||||
==================== */
|
||||
@@ -2010,7 +2048,7 @@ button.icon.lg {
|
||||
|
||||
.cu-card>.cu-item {
|
||||
display: block;
|
||||
background: #fff;
|
||||
background-color: #fff;
|
||||
overflow: hidden;
|
||||
border-radius: 10rpx;
|
||||
margin: 30rpx;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<view class='cu-custom' style="height:{{CustomBar}}px;">
|
||||
<view class="cu-bar fixed bg-gradual-blue" style="height:{{CustomBar}}px;padding-top:{{StatusBar}}px;">
|
||||
<view class='content'>ColorUI 空白模板</view>
|
||||
<view class='content' style='top:{{StatusBar}}px;'>ColorUI 空白模板</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="margin-xl padding-xl bg-white radius shadow-lg">
|
||||
|
||||
Reference in New Issue
Block a user