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

ms-template-manage

v0.3.21

Published

## Project install ``` npm install ms-template-manage ```

Downloads

100

Readme

ms-template-manage

Project install

npm install ms-template-manage

Import public css

import 'ms-template-manage/lib/ms-template-manage.css'

Import animation

import 'ms-template-manage/src/assets/css/ms-animation.css'

Use ALL

import ms-template-manage form 'ms-template-manage'
Vue.use(ms-template-manage)

Use section

need babel-plugin-component support

import {ms-template-manage1,ms-template-manage2} form 'ms-template-manage'
Vue.use(ms-template-manage1)
Vue.use(ms-template-manage2)

Components import address

ms-template-manage/src/components

每个组件都有getModule和setModule两个对外公开方法,直接获取组件元素后调用即可,用于设置和获取module, 修改module中的值后setModule将直接引起view的变化

预设模板数据结构

module: {
  name: String,             组件名(仅用作展示)  *
  classId:String            最外层classId  *
  type:default/list/detail, 组件类型(基础,列表,详情)
  limit:Number              最大展示数量(设置后使用articleList遍历数据)
  style: [                  组件公开样式
    {
      label: String,
      name: css-var-name,   css自定义变量名
      css:cssName           css属性名(仅select时需要)
      value: String,        css属性值
      index: 0,             在Style中的索引(暂废弃)
      type: style/default,  属性类型(样式,默认)
      property:color/img/select    样式类型(颜色,图片,可选择属性)
    }
  ],
  text: [                   组件公开文案
    {
      label: String,        文案组名称
      type:nav/default      文案类型(导航,基础)
      children: [
        {
          label: String,    文案名称
          value: String,    文案值
          link: '#',        文案链接
          type:textArea/default  文案类型(文本域/默认)(未实现)
          children: [
            {
              label: '云ERP',
              link: '#'
            }
          ]
        }
      ]
    }
  ],
  article: [                组件类型为列表时
    {
      name:String           栏目名(仅三级栏目)
      title:String ,        标题
      pic:String,           图片
      description:String,   描述
      releaseTime: String,  发布时间
      link:String           链接
      publisher:String      发布人
      pageviews:Number      浏览量
      children:[]           仅三级文章栏目存在
    },
  ],
  detail:{                  详情(仅为详情页时使用) 
    before:{                上一篇文章数据
        id:String
        name:String
        title:String,
        releaseTime:String,
        content:String, 
    },
    mid:{}                  当前文章数据
    after:{}                下一篇文章数据     
  }

  info:[String,String]      模板对外公开信息
},