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

medical-ui

v0.3.60

Published

这是基于 Ant-design-vue 的二次封装组件

Readme

medical-ui

NPM Version

适用性说明

本组件库没有用 webpack 进行打包, 仅适用于具备相应构建能力的 vue 栈项目, 且需要导入了 ant-design-vue 作为前置依赖。

参照 ant-design-vue 文档,组件可使用 med- 前缀替代 a-,例如 <med-button /> 替代 <a-button />

安装

npm i ant-desin-vue // 前置依赖
npm i medical-ui // 本ui库

or

yarn add ant-desin-vue // 前置依赖
yarn add medical-ui // 本ui库

引入 Medical UI

// main.js 导入全部组件
import MedicalUI from "medical-ui";
// 导入全部 css
import "medical-ui/lib/medical-ui.css";
Vue.use(MedicalUI)

--------------- --------------------------

// 组件内按需导入
import { MedButton } from "medical-ui";
// 如需进行样式变量覆盖则请相应 less 文件
import "medical-ui/lib/MedButton/style/index.less";
export default {
  ...,
  components: {
    MedButton
  },
  ...,
}

*Tip: 使用 MedTheme 修改主题色时(待优化)

// 添加/配置 vue.config.js
const ThemeColorReplacer = require('webpack-theme-color-replacer') // 引入插件
function getAntdSerials(color) { // 定义方法
  var lightens = new Array(9).fill().map((t, i) => {
    return ThemeColorReplacer.varyColor.lighten(color, i / 10)
  })
  var darkens = new Array(6).fill().map((t, i) => {
    return ThemeColorReplacer.varyColor.darken(color, i / 10)
  })
  return lightens.concat(darkens)
}
module.exports = {
  ...,
  configureWebpack: {
    ...,
    plugins: [
      new ThemeColorReplacer({
        fileName: 'css/theme-colors.css',
        matchColors: getAntdSerials('#17509d')
      })
    ],
    ...,
  }
  ...,
}

组件概览

二次开发组件

  1. MedSRadio: 单选框(完善中)
  2. MedSCheckbox: 复选框(完善中)
  3. MedSForm: 初步实现功能
  4. MedSCard: 模块卡片
  5. MedSSticker: 展示卡片

文档地址 (龟速补全中)

文档