npm install vue-check-all




vue check all component。
* vue: ^2.3.0
npm install vue-check-all
import CheckAll from 'vue-check-all'
Vue.use(CheckAll)
| 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 |
| 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 |
| name | description | params |
| ---------- | :--------------------------------------: | :--------: |
| selections | when list item's checked is change, will emit this event. | selections |
vue
`
Development
npm run dev
npm run port
Build
`javascript
npm run mb // mac build
npm run wb // window build
``