把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>

使用简单而且超级好看!!!

其颜值是真的高。

相关文章:

  • 2021-12-31
  • 2021-10-20
  • 2021-12-12
  • 2022-12-23
  • 2021-04-04
  • 2021-11-17
猜你喜欢
  • 2021-08-24
  • 2021-12-01
  • 2021-11-04
  • 2021-12-18
  • 2021-08-02
相关资源
相似解决方案