UI庫colorui的使用————小程序


UI庫colorui的使用————小程序

把colorui文件放到你的小程序中

包含文件:

icon.wxss+main.wxss+components(文件夾里有icon和一些組件)+animation.wxss

app.wxss

/**app.wxss**/*
@import "colorui/icon.wxss";//定義使用colorui的組件
@import "colorui/main.wxss";

使用,在index.wxml中直接使用。(沒有官方文檔,你只能邊對照colorui案例,邊做。)

index.wxml

<view class="padding flex flex-direction">
  <button class="cu-btn bg-grey lg">玄灰</button>
  <button class="cu-btn bg-red margin-tb-sm lg">嫣紅</button>
</view>

使用簡單而且超級好看!!!

其顏值是真的高。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM