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

@otools/el-description

v0.4.0

Published

description componet based on element ui

Downloads

6

Readme

@otools/el-description

el-description

Install

npm i @otools/el-description

Usage

import { ElDescription, ElDescriptionItem } from '@otools/el-description'

Vue.use(ElDescription)
Vue.use(ElDescriptionItem)

Attributes

Description

| 参数 | 说明 | 类型 | 默认值 | 可选值 | 示例 | | ---------- | ------------------------------------------------------ | ------------- | ------- | ------ | ----------- | | data | 数据源(动态数据必传,为了监听数据重绘,非动态数据可不传) | object | {} | - | - | | title | 描述列表的标题,显示在最顶部 | string/vnode | - | - | - | | margin | 组件边距 | string | - | - | '10px 20px' | | column | 显示行数 | number/string | 3 | - | 2 | | size | 设置列表的大小,可以设置为 small | string | default | small | - | | labelWidth | Descltem 的 label 宽度 | string | 120px | - | - |

Description Item

| 参数 | 说明 | 类型 | 默认值 | 可选值 | 示例 | | ----- | ---------------- | ------------ | ------ | ------ | ---- | | label | 内容的描述(必传) | string/vnode | - | - | - | | span | 所占的格数 | number | 1 | - | 2 |

Description Item Slot

| 参数 | 说明 | 类型 | 默认值 | 可选值 | 示例 | | ------- | -------------------- | ------------ | ------ | ------ | ---- | | default | 仅支持纯文本的插槽 | string | - | - | - | | content | 支持纯文本、dom 插槽 | string/vnode | - | - | - |