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

cardview

v1.0.1

Published

example description

Downloads

2

Readme

CardView_ohos

该项目是使用ETS语言开发的、基于鸿蒙TS声明式开发范式提供的API所开发的一个卡片视图组件

项目介绍

  • 项目名称:CardView(卡片视图)
  • 所属系列:鸿蒙第三方组件适配移植
  • 编程语言:eTS
  • 功能:以卡片的形式展示姓名,头像,图片等信息
  • 开发版本:sdk8、eTS语言、DevEco Studio 3.0.0.900
  • 项目发起作者:万冬阳
  • 项目演示效果:

使用教程

1、组件的实现位于entry/src/main/ets/MainAbility/commons/components/CardView.ets,将该组件复制到所要使用该组件的项目目录下,最好可以放在/MainAbility/commons/下

2、在要使用该组件的代码页面中引入该组件。

import {CardView} from '../commons/components/CardView'

3、在代码中使用该CardView组件

@Entry
@Component
struct Index{
  build(){
    Column(){
        //使用封装的卡片视图组件
        CardView({
          //设置卡片组件的属性,如果不设置则为默认值
          attribute:{
            //设置卡片视图的名字,如果不设置则为默认值 小M
            name: "万冬阳",
            //设置卡片视图的图片,如果不设置则为默认值 icon.png
            icon: "img.png",
            //设置卡片视图的头像,如果不设置则为默认值 img_1.png
            CardImage: "img_2.png"
          }
        })
    }
  }
}

4、组件参数

      |  参数名   |    解释    |
      | :-------: | :--------: |
      |   name   |  卡片组件名字  |
      |   icon   |  卡片组件头像  |
      | CardImage|  卡片组件展示图片  |

版本迭代

  • v0.1.0-alpha