Code Monkey home page Code Monkey logo

navigation-bar's People

Contributors

lingxiaoyi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

navigation-bar's Issues

开启下拉刷新问题

例如 demo4 设置 "enablePullDownRefresh": true 后

image

<view>
  <!-- <navBar title='深色背景详情页' background='#00091a' backgroundColorTop='#00091a' color='#fff' back="{{true}}" iconTheme='white' bindback="handlerGobackClick"></navBar> -->
  <!-- < 个人中心 -->
  <navBar background='#00091a' backgroundColorTop='#00091a' color='#fff' back="{{false}}" home="{{false}}" iconTheme='white' bindback="handlerGobackClick">
    <view slot="left" class="left-title-wrapper" bind:tap="handlerGobackClick">
      <image class="left-title-arrow" src="https://xxx.png" />
      <text class="left-title">个人中心</text>
    </view>
  </navBar>

  <view class='main'>
    <view class='p'>深色背景详情页</view>
  </view>
</view>

navBar 配合微信官方自定义tabar出现tabbar无padding

微信官方自定义tabbar例子中,
.tab-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 48px;
background: #fff;
display: flex;
padding-bottom: env(safe-area-inset-bottom); //失效
}

当前页面的导航使用NavigationBa组件r时,该页面的底部tabBar的padding会无效
我尝试去掉NavigationBar的Component引用即恢复正常,有人遇到吗?

getMenuButtonBoundingClientRect问题和css选择器问题

  1. 在ios7.0.3版本,iPhone 6s机型下,getMenuButtonBoundingClientRect有时候会报错,有时候取到的值都为0,所以在你的try catch中加了一条:
    try { rect = wx.getMenuButtonBoundingClientRect ? wx.getMenuButtonBoundingClientRect() : null; if (rect === null) { throw 'getMenuButtonBoundingClientRect error'; } //取值为0的情况 if (!rect.width){ throw 'getMenuButtonBoundingClientRect error'; } }

  2. 组件中不能使用标签等选择器,你的navBar.wxss是有标签选择器的。

内容区绝对定位的问题

内容区如果使用顶部绝对定位,就定位到胶囊区了, 使用绝对定位的地方去app.globalSystemInfo拿高度数据,由于是异步,第一次进来有可能又获取不到。

也是魅族手机,Meizu Note 5,左边按钮位置不对

原因:获取到的胶囊按钮top居然小于状态栏高度,导致计算gap不对
let gap = rect.top - systemInfo.statusBarHeight;

测试Meizu Note 5通过的解决办法解决,在navBar.js中加上
//部分机型(比如:Meizu Note5)获取到的胶囊按钮top小于状态栏statusBarHeight高度 if(rect.top < systemInfo.statusBarHeight){ throw 'getMenuButtonBoundingClientRect error'; }

真机调试获取到的信息:
42907c4a56c3550b217d5dd3edde1f2

真机截图:
36f1f1a6156fcda011737185bec2066

解决后真机截图:
d267201f3ae8e45cd3722f3283e3e2d

ios平台上外层采用position:fiexed, z-index无效

  • 基础调试库版本: 2.8.3
  • 微信都是当前最新版本

wxml:

<view class="search">
    <navBar searchBar="{{true}}" background="{{searchBGColor}}"  bindsearch='search' />
</view>

wxss:

.search {
    margin-bottom: 0;
    padding-bottom: 0;
    z-index: 9999;   /* z-index 设置值超过navBar的最大z-index值 */
    position: fixed;
}

开发者工具预览都是正确的,真机(iphone xr/ipad pro)就不行了,大佬有测试过吗?

开发者平台调试效果:

开发者工具

真机效果:

真机

ps: android真机是ok的。

title不居中

网络请求数据动态设置title时,title显示不居中,静态写死是居中的

this._getApp is not a function; [Component] Lifetime Method Error @ components/navBar/navBar#created TypeError: this._getApp is not a function

thirdScriptError
this._getApp is not a function; [Component] Lifetime Method Error @ components/navBar/navBar#created
TypeError: this._getApp is not a function
at ye.getSystemInfo (http://127.0.0.1:63328/appservice/components/navBar/navBar.js:146:22)
at ye.created (http://127.0.0.1:63328/appservice/components/navBar/navBar.js:70:10)
at r.safeCallback (WAService.js:1:1037423)
at r.call (WAService.js:1:1037316)
at Function.x._advancedCreate (WAService.js:1:1136263)
at r.createComponent (WAService.js:1:1146424)
at e (WAService.js:1:1179207)
at e (WAService.js:1:1180502)
at e.value (WAService.js:1:1204216)
at x._advancedCreate (WAService.js:1:1134731)

在wepy 框架中 怎么引用呢

Component is not found in path "components/navBar" (using by "pages/index");onAppRoute
Error: Component is not found in path "components/navBar" (using by "pages/index")

还有 Components/navBar 目录下面的那个 app.js 怎么处理

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.