zoukankan      html  css  js  c++  java
  • 配置uni-app导航栏上的搜索框

    page下的style选项根据官方文档配置即可

    https://uniapp.dcloud.io/collocation/pages?id=pages

    例子:

    {
        "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
            {
                "path": "pages/index/index",
                "style": {
                     "app-plus":{
                         "titleNView":{
                             "searchInput":{
                                 "align":"center",
                                 "backgroundColor":"#eee",
                                 "borderRadius":"5px", // 只能用px作单位
                                 "placeholder":"请输入内容",
                                 "placeholderColor":"#ccc"
                             }
                         }
                     }
                }
            }
        ],
        "globalStyle": {
            "navigationBarTextStyle": "black",
            "navigationBarTitleText": "uni-app",
            "navigationBarBackgroundColor": "#F8F8F8",
            "backgroundColor": "#F8F8F8"
        }
    }

    效果:

  • 相关阅读:
    shader变体
    正向渲染
    LWPR
    blend
    slua
    unity
    jsBridge
    浏览器
    数据运营系统
    广告
  • 原文地址:https://www.cnblogs.com/luguankun/p/11517871.html
Copyright © 2011-2022 走看看