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

wx-rich-text

v0.0.4

Published

项目是对[wxParse](https://github.com/icindy/wxParse)开源项目的封装,做成插件的形式方便使用。封装的过程中优化了在开发中遇到的一些问题:超链接会单独成为一行、video受富文本中的样式控制会出现超出屏幕的问题、图片长度超出限定长度后会有滚动条等等问题。

Downloads

2

Readme

richTextParse

项目是对wxParse开源项目的封装,做成插件的形式方便使用。封装的过程中优化了在开发中遇到的一些问题:超链接会单独成为一行、video受富文本中的样式控制会出现超出屏幕的问题、图片长度超出限定长度后会有滚动条等等问题。

使用

组件没有使用npm,将component下的richText文件夹直接复制到项目中按官方文档引用即可

"usingComponents": {
      "richText":"/component/richText/index"
}

属性介绍

| 属性名 | 类型 | 默认值 | 是否必须 | 说明 | |----------|---------|--------|----------|-----------------------------------------------| | content | String | '' | 是 | 要解析的富文本 | | imgStyle | String | '' | 否 | 所有图片的样式,图片的box-size默认为boder-box | | lazyLoad | Boolean | true | 否 | 图片是否开启懒加载模式,默认开启 |

事件介绍

| 属性名 | detail | |---------|------------------| | ImgLoad | 图片的长度和宽度 | | LinkTap | src 超链接的地址 |

<richText content='<a href="https://www.baidu.com">baidu</a>' bindLinkTap="onLinkTap"  />