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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@wu-component/wu-steps

v2.0.3

Published

> TODO: description

Readme

Tag 标签

用于标记和选择。

基础用法

::: demo

<template>
    <div style="display: flex; align-items: center;justify-content: space-around;padding: 16px">
        <wu-plus-tag type="primary" effect="light" id="tag-id1">标签一</wu-plus-tag>
    </div>
</template>
<script>
</script>

:::

可移除标签

通过点击标签关闭按钮后触发的 close 事件。

::: demo

<template>
    <div style="display: flex; align-items: center;justify-content: space-around;padding: 16px">
        <wu-plus-tag type="primary" closable="true" effect="light" id="tag-id1">标签一</wu-plus-tag>
    </div>
</template>
<script>
</script>

:::

不同尺寸

Tag 组件提供除了不同尺寸,可以在不同场景下选择合适的尺寸。

::: demo

<template>
    <div style="display: flex; align-items: center;justify-content: space-around;padding: 16px">
        <wu-plus-tag type="primary" size="mini" effect="dark" id="tag-id5">标签一</wu-plus-tag>
        <wu-plus-tag type="primary" size="medium" effect="dark" id="tag-id5">标签一</wu-plus-tag>
        <wu-plus-tag type="primary" size="small" effect="dark" id="tag-id5">标签一</wu-plus-tag>
    </div>
</template>
<script>
</script>

:::

不同主题

Tag 组件提供了三个不同的主题:dark、light 和 plain, 通过设置effect属性来改变主题。

::: demo

<template>
    <div style="display: flex; align-items: center;justify-content: space-around;padding: 16px">
        <wu-plus-tag type="primary" effect="dark" id="tag-id9">标签一</wu-plus-tag>
        <wu-plus-tag type="primary" effect="light " id="tag-id10">标签二</wu-plus-tag>
        <wu-plus-tag type="primary" effect="plain " id="tag-id11">标签三</wu-plus-tag>
    </div>
</template>
<script>
</script>

:::

Attributes

| 参数 | 说明 | 类型 | 可选值 | 默认值 | |---------- |-------- |---------- |------------- |-------- | | type | 类型 | TypeEnums | "success"、"info"、"warning"、 "danger" | -- | | effect | 主题 | EffectEnums |"dark"、"light"、"plain" | "light" | | closable | 是否可关闭 | Boolean | true、false | false | | disable-transitions | 是否禁用渐变动画 | Boolean | true、false | false | | hit | 是否有边框描边 | Boolean | true、false | false | | color | 背景色 | String | -- | -- | | size | 组件大小 | UISize | medium、small、mini | mini | | name | switch 对应的 name 属性 | String | -- | -- |

Event

| 事件名 | 说明 | 参数 | |---------- |-------- |---------- | | click | 点击 Tag 时触发的事件 | (event: CustomEvent) => void | | close | 关闭 Tag 时触发的事件 | (event: CustomEvent) => void |