mirror of
https://github.com/weilanwl/coloruicss.git
synced 2026-06-08 15:23:17 +08:00
v2.1.2
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
Page({
|
||||
data: {
|
||||
PageCur: 'basics'
|
||||
},
|
||||
NavChange(e){
|
||||
this.setData({
|
||||
PageCur: e.currentTarget.dataset.cur
|
||||
})
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"usingComponents": {
|
||||
"basics": "/pages/basics/home/home",
|
||||
"component": "/pages/component/home/home",
|
||||
"plugin": "/pages/plugin/home/home",
|
||||
"about": "/pages/about/home/home"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
<basics wx:if="{{PageCur=='basics'}}"></basics>
|
||||
<component wx:if="{{PageCur=='component'}}"></component>
|
||||
<plugin wx:if="{{PageCur=='plugin'}}"></plugin>
|
||||
<about wx:if="{{PageCur=='about'}}"></about>
|
||||
<view class="cu-bar tabbar bg-white shadow foot">
|
||||
<view class="action" bindtap="NavChange" data-cur="basics">
|
||||
<view class='icon-cu-image'>
|
||||
<image src="/images/tabbar/basics{{PageCur=='basics'?'_cur':''}}.png"></image>
|
||||
</view>
|
||||
<view class="{{PageCur=='basics'?'text-green':'text-gray'}}">元素</view>
|
||||
</view>
|
||||
<view class="action" bindtap="NavChange" data-cur="component">
|
||||
<view class='icon-cu-image'>
|
||||
<image src="/images/tabbar/component{{PageCur=='component'?'_cur':''}}.png"></image>
|
||||
</view>
|
||||
<view class="{{PageCur=='component'?'text-green':'text-gray'}}">组件</view>
|
||||
</view>
|
||||
<view class="action" bindtap="NavChange" data-cur="plugin">
|
||||
<view class='icon-cu-image'>
|
||||
<image src="/images/tabbar/plugin{{PageCur=='plugin'?'_cur':''}}.png"></image>
|
||||
</view>
|
||||
<view class="{{PageCur=='plugin'?'text-green':'text-gray'}}">扩展</view>
|
||||
</view>
|
||||
<view class="action" bindtap="NavChange" data-cur="about">
|
||||
<view class='icon-cu-image'>
|
||||
<image src="/images/tabbar/about{{PageCur=='about'?'_cur':''}}.png"></image>
|
||||
</view>
|
||||
<view class="{{PageCur=='about'?'text-green':'text-gray'}}">扩展</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -0,0 +1 @@
|
||||
/* pages/index/index.wxss */
|
||||
Reference in New Issue
Block a user