![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
小程序
qq_43000621
这个作者很懒,什么都没留下…
展开
-
darkmode适配
darkmode适配 1.配置步骤 app.json中"darkmode":true,“themeLocation”:“theme.json”;themeLocation指定变量配置文件为根目录下的"theme.json"; 在theme.json中定义相关的变量; 在app.json中以@开头应用变量。 2.变量配置文件(theme.json) theme.json用于颜色主题相关的变量定义,配置文件必须包含以下属性: light -> object 浅色模式下的变量定义 dark -&g原创 2021-08-17 11:24:27 · 280 阅读 · 0 评论 -
微信小程序safaArea/screenHeight/windowHeight/menuButton梳理
statusBarHeight = safeArea.top windowHeight当前页面高度 相当于page screenHeight屏高 statusBarHeight + titleBarHeight + windowHeight = screenHeight 底部小黑条高度HomeIndicatorHeight = screenHeight - safeArea.bottom 当页面设置为沉浸式的时候 windowHeight = screenHeight app.js里面的windowHe原创 2021-04-07 16:31:18 · 776 阅读 · 0 评论 -
微信小程序swiper小程序轮播图小圆点样式修改
<swiper class="swiper-box" indicator-dots="{{ indicatordots }}" autoplay="{{ autoplay }}"> <block wx:for="{{ swiperItem }}"> <swiper-item> <navigator url="{{ item.linkUrl }}"> <image class=原创 2020-07-09 17:12:30 · 541 阅读 · 0 评论