微信小程序+ColorUI
生活随笔
收集整理的這篇文章主要介紹了
微信小程序+ColorUI
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
官網(wǎng)
1、Color UI | 下載包
2、語雀文檔 ColorUI 群資源
3、Github ColorUI 鮮亮的高飽和色彩,專注視覺的小程序組件庫
開發(fā)
1、下載官方案例demo,文件如下,colorui是獨(dú)立的引入文件夾資源。
2、在app.json內(nèi)
3、配置引入css樣式的操作、pages和colorui同級(jí)目錄
4、app.json
{"pages": ["pages/index/index"],"window": {"navigationBarBackgroundColor": "#39b54a","navigationBarTitleText": "Color UI","navigationStyle": "custom","navigationBarTextStyle": "white"},"usingComponents": {"cu-custom": "/colorui/components/cu-custom"},"sitemapLocation": "sitemap.json" }5、app.wxss
@import "colorui/main.wxss"; @import "colorui/icon.wxss";6、頁面的wxml、大功告成
<cu-custom bgColor="bg-gradual-blue" isBack="{{true}}"><view slot="backText">返回</view><view slot="content">布局</view> </cu-custom>如何使用
根據(jù)demo里面現(xiàn)成的頁面,可以直接復(fù)制,然后改成自己的頁面,其他的頁面同樣如此。
總結(jié)
以上是生活随笔為你收集整理的微信小程序+ColorUI的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 01. Node js Hello wo
- 下一篇: 华硕 RT-AC54U路由器固件功能说明