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

mm-vue-plugins-heymom

v1.0.8

Published

> 依赖 `babel-plugin-component`

Downloads

92

Readme

按需加载

依赖 babel-plugin-component

学习项目,不建议应用于生产环境

.babelrc

"plugins": [["component", [
  {
    "libraryName": "mm_vue_plugins",
    "style":true,
  }
]]]

使用

import {CourseLists,MainMenu,BottomMenu,CourseTab,SaveDialog,CourseSimpleTab,RateStar,ConfirmX} from 'mm_vue_plugins'
Vue.use(SaveDialog);//mm-save-dialog
Vue.use(CourseTab);//mm-course-tab
Vue.use(CourseSimpleTab);//mm-course-simple-tab
Vue.use(CourseLists);//mm-course-list
Vue.use(MainMenu);//mm-main-menu
Vue.use(BottomMenu);//mm-bottom-menu
Vue.use(TopBack);//mm-top-back
Vue.use(RateStar);//mm-rate-star
Vue.use(ConfirmX);//mm-confirm-x

mm-confirm-x

0.5.0 add

<mm-confirm-x v-on:next='test' v-on:close='test'
:message='confirm.message'
:closeText='"放弃支付"'
:nextText='"重新支付"'
:show='confirm.show'
/>
---
#### test
this.confirm = Object.assign({},this.confirm,{
  show:false
})

mm-rate-star

0.4.0 add

<mm-rate-star starts='5' >project-name</mm-rate-star>
<mm-rate-star result='3'>项目名称</mm-rate-star>

<mm-rate-star @update:use='e=>ss(e)'>项目名称</mm-rate-star>//0.5.38-add
  • starts 打分中用,默认为5个星星
  • result 显示分数

mm-course-simple-tab

0.3.0 add

  <mm-course-simple-tab  pageCounts='10'/>

mm-save-dialog

0.2.0 add

  <mm-save-dialog :time='time' v-on:result='result'/>
  • time 倒计时时间,不写为3
  • result 倒计时结束回调

mm-top-back

0.1.0 add

<mm-top-back color='#fff' backcolor='blue' bgcolor='red'>首页</mm-top-back>
  • color 文字颜色
  • backcolor 返回箭头颜色,无则取color
  • bgcolor 背景颜色

mm-bottom-menu

<mm-bottom-menu type='2'/>

mm-course-tab

<mm-course-tab :courses='courses'></mm-course-tab>

courses:[{
  name:'全部课程',
  type:'1',
},{
  name:'美食',
  type:'2',
},{
  name:'电影',
  type:'3',
},{
  name:'酒店',
  type:'4',
},{
  name:'外卖',
  type:'5',
  message:{
    title:'标题',
    theme:'主题',
    learned:100,//学习次数
  }
}]

mm-course-list

<mm-course-list :message='message'></mm-course-list>

message:{
  title:'标题',
  theme:'主题',
  learned:100,//学习次数
  rate:10.0,//评分
}