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 🙏

© 2024 – Pkg Stats / Ryan Hefner

mdd_component

v1.2.6

Published

mdd的Vue组件库

Downloads

31

Readme

ComponentTemplate

这是一个展示常用组件的项目:

Tree

componentTemplate
├── App.vue
├── Readme.md  项目文档
├── component  组件文件夹
│   ├── common 公共组件
│   │   └── boxFrame.vue
│   ├── img 组件引用的图片
│   │   └── tiaowen1.png
│   ├── module 模块组件(module主路由的子路由)
│   │   ├── test.vue
│   │   └── test1.vue
│   └── unit  基础组件
│       └── processBar.vue
├── config.js
├── index.html
├── main.js
├── module.md  模块组件文档
├── package.json  导出组件json
├── packages
│   └── index.js  导出组件(用于发布npm包)
├── router  路由文件夹
│   ├── index.js 路由
│   └── util.js  路由工具库
├── static       静态文件
│   └── image
│       ├── duizi.png
│       ├── fold2zhedie.png
│       ├── foldzhedie.png
│       └── zd.png 
├── unit.md  基础组件稳定 
└── views
    ├── module.vue 模块组件页
    └── unit.vue   基础组件页

安装

cnpm install mdd_component

使用

//main.js

import mddComponent from 'mdd_component'
import 'mdd_component/dist/index.css'
Vue.use(mddComponent)

基础组件

在component/unit文件夹封装好往基础组件往views/unit.vue添加即可

 <!--      基础展示组件用boxFrame包裹-->
<boxFrame :template="(`<processBar :subTaskList=></processBar>`)">
    <processBar :subTaskList="subTaskList"></processBar>
</boxFrame>
  • boxFrame是一个包裹装饰框
  • template传递的是一个封装好的标签字符串,点击复制

模块组件

  • 在component/module文件夹封装好
  • 在router/index.js添加子路由即可
// 模块组件
const Test = () => import('@module/test.vue');


//子路由
const test = getModel('/test', Test, '例子', {title: '模块例子'}, `<fixLoading :apiLoading="apiLoading"></fixLoading>`)


//子路由集合
const children = [
  test,
]
  • <fixLoading :apiLoading="apiLoading">template示例</fixLoading>用于点击模块组件复制标签