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

@hi-ui/list

v4.0.14

Published

A sub-package for @hi-ui/hiui.

Downloads

226

Readme

@hi-ui/list

TODO: description

Usage

const List = require('@hi-ui/list');

// TODO: DEMONSTRATE API

List

| 参数 | 说明 | 类型 | 可选值 | 默认值 | | -------------- | ------------------------------------------------------------- | ------------------ | ---------------------------- | ---------- | | data | 列表展示的数据 | ListItemProps[] | - | - | | render | 自定义渲染列表项 | item => ReactNode | - | - | | split | 是否展示分割线 | boolean | object | false | true | | pagination | 对应的 pagination 配置, 设置 false 不显示 | boolean | object | false | false | | bordered | 是否展示边框 | boolean | - | false | | emptyText | 无数据提示内容 | ReactNode | - | '暂无数据' |

ListItemProps

List.Item 的配置项

| 参数 | 说明 | 类型 | 可选值 | 默认值 | | ------------ | ---------------------- | -------------------------- | ---------------------------------------------- | --------- | | title | 列表元素的标题 | string | ReactNode | - | | description | 列表元素的描述内容 | string |ReactNode | - | - | | extra | 额外内容 | React.ReactNode | - | - | | avatar | 图片资源地址 | string | - | - | | action | 列表操作内容 | ReactNode | - | - | | actionPlacement | 指定列表操作显示的位置 | string | 'top' | 'center' |'bottom' | 'bottom' |

pagination

分页的配置项

| 参数 | 说明 | 类型 | 可选值 | 默认值 | | -------- | ------------------ | ------ | ---------------------------- | ------- | | placement | 指定分页显示的位置 | string | 'left' | 'middle' |'right' | 'right' |

CHANGELOG

| 参数 | 变更类型 | 变更内容 | 解决的问题 | | ------------ | ------------------------------- | ------------------------------------------------------------------------------ | ---------------------------- | | type | deprecated | 移除type字段 | 根据item是否返回avatar字段已经可以决定如何渲染,不需要type字段 | | action | update | 由List props 迁移为 ListItem props | action 是依赖ListItem渲染的,原来的方式不符合预期,因为render 可以不return ListItem,这样在List配置aciton是没有意义的 | | actionPlacement | update | 由List props 迁移为 ListItem props | 同上 | | hoverable | deprecated | 鼠标移入时是否显示阴影 (仅在 type==='card'时生效) | 新设计稿没有这个效果了 | | layout | deprecated | 设置 List.Item 布局, 设置成 vertical 则竖直样式显示, 默认横排| 现在这个功能好像就是不起作用的 | | titleTag | deprecated | 列表元素的标题中的标签 | 直接title用reactNode,这种耦合性太强 | | titleTagType | deprecated | 列表元素的标题中的标签的类型 | 直接title用reactNode,这种耦合性太强 |