npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mini-ui-navigationbar

v1.0.3

Published

[代码片段](https://developers.weixin.qq.com/s/Nmm8QEmJ7R4U)

Downloads

5

Readme

navigation-bar

Demo

代码片段

Usage

install

npm install --save modo-navigationbar

app.json

{
  "window": {
    "navigationStyle": "custom"
  }
}

[page/component].json

{
  "usingComponents": {
    "navigation-bar": "modo-navigationbar"
  }
}

Slots

| Name | Type | Default | Description | | ---------------- |----------------|----------------| -------------------------------------------| | title | Dom | | 自定义 当前页面标题。可以用图片 高度 40,宽度随意。|

Properties

| Name | Type | Default | Description | | :---------------- |:---------------|:---------------|:-------------------------| | navStyle | String | black | 设置导航条左上角图标及标题文字颜色。可选参数 ['black', 'white']。| | textColor | String | | 自定义标题文字颜色。设置该参数会覆盖 style 对标题文字的设置。| | bgColor | String | #fffff | 自定义导航条背景颜色。| | borderBottomColor | String | | 自定义导航条 border-bottom 颜色。| | hasTabBar | Boolean | false | 当前项目是否有 tabBar 页面。该参数决定返回首页时使用 redirectTo 还是 switchTab。| | isTabBar | Boolean | false | 当前页面是否为 tabBar 页面。该参数决定左上角图标是否显示。| | isFixed | Boolean | true | 导航条是否在固定在页面头部。| | iconUri | String | | 自定义图标资源链接。尺寸:40x40。设置该参数会覆盖 style 对图标颜色的设置。默认图标显示规则:页面栈长度 > 1:返回上页图标 / 页面栈长度 == 1:返回首页图标 / isTabBar:无图标。| | homeUri | String | | 设置首页 page uri。| | useCustomHandler | Boolean | false | 是否自定义图标点击的回调事件。为 true 时,开发者需要监听 leftpage 事件。默认事件触发规则:页面栈长度 > 1:返回上页 / 页面栈长度 == 1:返回首页 / isTabBar:无事件]。|

Events

| Name | Type | Default | Description | | :---------------- |:---------------|:-------------------|:-------------------------------------------------------| | leftpage | bind | noop | 监听点击左上角icon的事件。仅在 useCustomHandler 为真时有效 |