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

vue-check-all

v1.0.0

Published

vue check all component

Downloads

2

Readme

vue-lazy-render

GitHub issues GitHub forks GitHub stars Twitter

NPM

Description

vue check all component。

Dependence

  • vue: ^2.3.0

Installation

npm install vue-check-all

Usage

import CheckAll from 'vue-check-all'
Vue.use(CheckAll)

Props

| property | description | type | default | required | | --------- | :--------------------------------------: | :-----: | :-----: | :------: | | list | The data list | Array | [] | true | | check-all | If the list is all checked. If the value is true, the list will be all checked. Must use .sync modifier. | Boolean | false | true |

scopedSlot

| property | description | type | | ----------------- | :--------------------------------------: | :------: | | list | The list contains the checked key and data key。If the checked is true, It means the data is checked | Array | | selections | The items which are checked. | Array | | select-all-change | If you want to change the checkAll prop,you should call this function,to notify the component update selections. | Function |

Events

| name | description | params | | ---------- | :--------------------------------------: | :--------: | | selections | when list item's checked is change, will emit this event. | selections |

Example

基础用法

<template>
  <check-all @selection-change="selectionChange" :list="list" :check-all.sync="checkAll">
    <template scope="scope">
      <label>
        <input type="checkbox" v-model="checkAll" @click="scope.checkAllChange">
        全选
      </label>
      <ul>
        <li v-for="item in scope.list" :key="item.data">
          <label>
            <input v-model="item.checked" type="checkbox">
            {{item.data}}
          </label>
        </li>
      </ul>
    </template>
  </check-all>
</template>

<script>
  export default {
    data () {
      return {
        list: [1,2,3],
        checkAll: true
      }
    },
    methods: {
      selectionChange (selections) {
        console.log(selections)
      }
    }
  }
</script>

Development

npm run dev
npm run port

Build

npm run mb // mac build
npm run wb // window build

License

MIT