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 🙏

© 2026 – Pkg Stats / Ryan Hefner

bs-ui-title

v0.1.1

Published

[Base Readme](./base/README.md) > 这个项目是从bs-ui-seed基础创建出来的. 请查看`base/README.md` 来了解其基础内容.

Readme

bs-ui-title

Base Readme

这个项目是从bs-ui-seed基础创建出来的. 请查看base/README.md 来了解其基础内容.

功能介绍

  • 基础的title功能
  • title文字和提示叹号的图标以及more部分支持slot
  • 在APP.wxss文件中设置组件的整体样式

使用方法

  1. 安装
npm i bs-ui-title
  1. .json
"usingComponents": {
    "bs-title": "miniprogram_npm/bs-ui-title/index"
  }
  1. .wxml
<!-- 纯标题文字 -->
<bs-title cm-container="title-cont0" title="{{title}}"></bs-title>
<!-- 有标题 有叹号 有查看详情 -->
<bs-title title="标题" more="查看详情" params="{{moreParams}}" bindmoredetails="moreDetails">
    <view slot="title">
        <image class="title-tipIcon" src="/asset/note_icon.png"></image>
    </view>
</bs-title>
  1. .js
moreDetails(event) {
    const eventData = event.detail.data;
    //接受组件传回来的参数
}
  1. app.wxss
/* <!-- 整体部分的样式 --> */
.sys_bs-title_container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100rpx;
    padding: 0 40rpx;
    font-size: 32rpx;
    color: #000;
}

/* <!-- title文字和图标部分 --> */
.sys_bs-title_title {
    display: flex;
    align-items: center;
}

/* <!-- 更多详情部分的样式 --> */
.sys_bs-title_more {
    font-size: 24rpx;
    color: #999;
    display: flex;
    align-items: center;
    height: 50rpx;
    padding-left: 50rpx;
}

/* <!-- 更多详情中右箭头的样式 --> */
.sys_bs-title_moreArrow {
    width: 11rpx;
    height: 12px;
    margin-left: 10rpx;
}

接口说明

Properties

| Property | Type | Required | Default Value | Comments | |------------ |------- |---------- |------------------------ |------------------------------------ | | title | String | required | --- | 标题的文字内容 | | more | String | required | ---- | 查看更多的文字 | | more-type | String | --- | arrow | 如果设置该属性的值不为arrow则不显示默认的查看详情部分 | | params | Object | optional | -- | 更多内容方法所需的参数(组件传给title的参数需要传给page) | | bindmoredetails| function | -- | -- | 更多内容的方法 |

自定义样式

| Class Name | Comments | |------------|---------------------| | cm-container | 最外层view的className | | cm-title | 标题文字view的className(不常用) | | cm-more | 更多详情view的className | | cm-moreArrow | 更多图标的className (不常用) |