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

ns-vue-summary

v1.0.2

Published

基于vue的概要列表组件

Downloads

12

Readme

ns-vue-summary

A Vue component to show summary list(基于vue的概要列表组件)

Install(安装)

You can install it via NPM:(您可以通过NPM安装它)

npm install --save ns-vue-summary

or,just include ns-summary.js to your view like this.(或者使用引用ns-summary.js的方式)

Namely(即):

import NsVueSummary from 'ns-vue-summary'
// 或者 const NsVueSummary = require('ns-vue-summary')
// 或者 <script src="..."></script>
Vue.use(NsVueSummary)

Usage(使用)

In Your HTML:

<!-- 注意:此处案例icon使用的是fontawesome -->
<!-- Note: The case icon here uses fontawesome -->
<ns-summary class="my-summary" :show-space="true">
  <ns-summary-item title="title" describe="describe" type="gray" href="https://www.baidu.com/"></ns-summary-item>
  <ns-summary-item type="info">
    <template slot="title"> 综合用户 </template>
    <template slot="describe"> <i class="fa fa-user"></i>XX </template>
  </ns-summary-item>
  <ns-summary-item title="19 Sales">
    <template slot="describe"> 5000万元 </template>
  </ns-summary-item>
  <ns-summary-item title="FOLLOWING" describe="284" type="danger">
    <template slot="title"> <i class="fa fa-bullhorn"></i> FOLLOWING </template>
  </ns-summary-item>
  <ns-summary-item title="2 Photo Upload" type="success">
    <template slot="describe"> ...<i class="fa fa-tags"></i> </template>
  </ns-summary-item>
  <ns-summary-item title="15 Emails" type="warning">
    <template slot="describe"> Unread </template>
  </ns-summary-item>
</ns-summary>

The icon used is(使用的图标是):fontawesome

####result

######:show-space="false"

result(结果)

######:show-space="true"

result(结果)

props(属性)

ns-summary

|参数 | 是否必须 | 说明 |类型 |可选值 |默认值 | |------------|------------|------------|------------|------------|------------| |size | 否 |大小 |String |large / medium / default / small / mini |default | |showSpace | 否 |是否有padding间隔 |Boolean |- |true |

ns-summary-item

|参数 | 是否必须 | 说明 |类型 |可选值 |默认值 | |------------|------------|------------|------------|------------|------------| |type | 否 |类型 |String |primary-主要 info-蓝色 gray-灰色 success-绿色 warning-警告 danger-失败 |primary | |title | 否 |标题 |String |- |- | |describe | 否 |描述 |String |- |- | |target | 否 |a标签的target |String |- |_blank | |href | 否 |a标签的href |String |- |- |

event(事件)

none

run(运行)

# git clone ...
git clone https://github.com/nongshuqiner/ns-vue-summary.git

# enter
cd ns-vue-summary

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

Donation

If you find component useful, you can buy me a cup of coffee 如果您发现此组件有用,您可以给我买一杯咖啡

payment-code.png

Contact me(联系我)

Just Contact Me At:

License

MIT Copyright (c) 2018 - forever Naufal Rabbani