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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@blueking/login-userinfo

v0.0.2

Published

蓝鲸业务组件

Readme

支持 Vue2/Vue3 版本 无差别使用

安装

npm i @blueking/login-userinfo

使用

  • vue3框架下使用
<template>
  <div class="app">
    <BkLoginUserinfo :userinfo="userinfo">
      <template #action>
        <ActionItem @click="handleClick('个人中心')">
          <template #icon>
            <Qq />
          </template>
          个人中心
        </ActionItem>
        <ActionItem>
          <template #icon>
            <Qq />
          </template>
          权限中心
        </ActionItem>
        <ActionItem
          href="/logout"
          target="_blank"
          theme="danger"
        >
          <template #icon>
            <Qq />
          </template>
          退出登录
        </ActionItem>
      </template>
    </BkLoginUserinfo>
  </div>
</template>
<script setup lang="ts">
  import { ref } from 'vue';
  import { Qq } from 'bkui-vue/lib/icon';

  import BkLoginUserinfo, { ActionItem } from '@blueking/login-userinfo';
  import('@blueking/login-userinfo/vue3/vue3.css');

  // vue3 支持 action slot 和 actionList 两种方式

  const userinfo = ref({
    name: 'admin',
    email: '[email protected]',
    organization: '蓝鲸智云',
    timezone: 'Asia/Shanghai (UTC+08:00)',
  });
</script>
  • vue2框架下使用
<template>
  <div class="app">
    <BkLoginUserinfo :userinfo="userinfo" :actionList="actionList" />
  </div>
</template>
<script setup lang="ts">
  import { ref } from 'vue';

  import BkLoginUserinfo from '@blueking/login-userinfo/vue2';
  import('@blueking/login-userinfo/vue2/vue2.css');

  const userinfo = ref({
    name: 'admin',
    email: '[email protected]',
    organization: '蓝鲸智云',
    timezone: 'Asia/Shanghai (UTC+08:00)',
  });

  const actionList = [
    {
      text: '个人中心',
      icon: 'Qq',
      href: '/user/center',
      target: '_blank',
      theme: 'primary' as const,
    },
  ]
</script>

BkLoginUserinfo 属性列表

| 属性名 | 描述 | 属性类型 | 默认值 | | ------ | ---- | -------- | ------ |

| userinfo | 登录用户信息 | object | -- |

| offset | 详细信息面板位置偏移(x, y) | number [number, number] | 10 |

| actionList | 详细信息面板支持的操作(vue3 同时支持 action slot) | array | 10 |

actionList 类型

const actionList = [
  {
    text: '个人中心',
    icon: 'Qq',
    href: '/user/center',
    target: '_blank',
    theme: 'primary' as const,
  },
]