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

hk-mssh-ui

v1.3.27

Published

web端的组件编写和集成

Readme

hk-mssh-ui

使用方法

import HKMSSHUI from 'hk-mssh-ui'
Vue.use(HKMSSHUI)

可用组件

const components = [
  hkDialog,
  hkImg,
  hkVideo,
  hkIcon,
  hkSvgIcon,
  hkSvgList,
  hkTable,
  hkTree,
  hkPage,
  hkSearch,
  hkSelectTree,
  hkUpload,
  hkContainer,
  hkUEditor,
  hkLayout,
  hkCard,
  hkColorPicker,
  hkScrollbar,
  hkTransfer
]

UI 自带一套后端布局,封装了部分常用功能

  • 使用方法
在项目的 store 中 ,如果要是用组件的Layout,则必须引入layoutStore

index.js 引入
import { layoutStore } from 'hk-mssh-ui'
export default new Vuex.Store({
  state: {},
  mutations: {},
  actions: {},
  modules: { layoutStore },
  getters
})

UI 关于应用额外的 svg 图标

  • 使用方法
首先下载图标存入项目

mian.js 引入
# 此处是重点
const req = require.context('./components/svg', false, /\.svg$/)
let svgList = []
const requireAll = requireContext => {
  svgList = requireContext.keys()
  return requireContext.keys().map(requireContext)
}
requireAll(req)

import hkMsshUi from '../publish/src'
hkMsshUi.addMoreSvgList(svgList)   # 调用项目添加的方法,此处主要用于菜单图标选择,如果不作为图标,仅仅是在项目中显示使用,则可以不用
Vue.use(hkMsshUi)


vue.config.js
# 此处要注意,放在打包配置节点
chainWebpack(config) {
    config.module
      .rule('svg')
      # 此处第一个add为本组件原始的svg,第二个add为当前项目使用的svg路径,同理可添加多个
      .exclude.add(resolve('publish/svg-icons')).add(resolve('src/components/svg'))
      .end()
    config.module
      .rule('icons')
      .test(/\.svg$/)
      .include.add(resolve('publish/svg-icons')).add(resolve('src/components/svg'))
      .end()
      .use('svg-sprite-loader')
      .loader('svg-sprite-loader')
      .options({
        symbolId: 'icon-[name]'
      })
      .end()
}