mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-05-24 23:03:45 +00:00
Merge remote-tracking branch 'origin/master' into develop
* origin/master: fix import names (#345) add gitter channel URL add gitter badge fix comment add Gitter Channel update the number of rows if the data set changes on mdTable (#320)
This commit is contained in:
commit
c789afb8cc
4 changed files with 29 additions and 14 deletions
2
.github/CONTRIBUTING.md
vendored
2
.github/CONTRIBUTING.md
vendored
|
|
@ -8,6 +8,8 @@ Before submitting your contribution please read the guidelines.
|
|||
|
||||
## Issue Reporting Guidelines
|
||||
|
||||
- Do not create questions. The issue list is exclusively for reports, bugs and feature requests. Use the [Gitter Channel]( https://gitter.im/vuematerial/questions) instead.
|
||||
|
||||
- Always search for your issue first. It may have already been answered, planned or fixed in some branch. New components and features will be planned on [Milestones](https://github.com/marcosmoura/vue-material/milestones) or on [Projects](https://github.com/marcosmoura/vue-material/projects).
|
||||
|
||||
- Only create issues for the newest version. For now. Until 1.0.0.
|
||||
|
|
|
|||
2
.github/ISSUE_TEMPLATE.md
vendored
2
.github/ISSUE_TEMPLATE.md
vendored
|
|
@ -42,4 +42,4 @@ Do not create new features based on a problem that will only solve edge cases fo
|
|||
|
||||
### Reproduction Link
|
||||
<!-- If you want to show your code please use Codepen or JSFiddle. -->
|
||||
<!-- You could start with this template: http://codepen.io/vue-material/pen/WGavBE.
|
||||
<!-- You could start with this template: http://codepen.io/vue-material/pen/WGavBE. -->
|
||||
|
|
|
|||
31
README.md
31
README.md
|
|
@ -11,7 +11,9 @@
|
|||
|
||||
<a href="https://www.npmjs.com/package/vue-material"><img src="https://img.shields.io/npm/v/vue-material.svg" alt="Version"></a>
|
||||
|
||||
<a href="https://www.npmjs.com/package/vue-material"><img src="https://img.shields.io/npm/l/vue-material.svg" alt="License"></a> <br>
|
||||
<a href="https://www.npmjs.com/package/vue-material"><img src="https://img.shields.io/npm/l/vue-material.svg" alt="License"></a>
|
||||
|
||||
<a href="https://gitter.im/vuematerial"><img src="https://img.shields.io/gitter/room/vuematerial/home.svg" alt="Gitter Chat"></a> <br>
|
||||
</p>
|
||||
|
||||
Vue Material is lightweight framework built exactly according to the <a href="http://material.google.com" target="_blank">Material Design</a> specs.
|
||||
|
|
@ -67,13 +69,23 @@ Vue.use(VueMaterial)
|
|||
|
||||
// OR
|
||||
|
||||
Vue.use(VueMaterial.mdCore) //Required to boot vue material
|
||||
Vue.use(VueMaterial.mdButton)
|
||||
Vue.use(VueMaterial.mdIcon)
|
||||
Vue.use(VueMaterial.mdSidenav)
|
||||
Vue.use(VueMaterial.mdToolbar)
|
||||
Vue.use(VueMaterial.MdCore) //Required to boot vue material
|
||||
Vue.use(VueMaterial.MdButton)
|
||||
Vue.use(VueMaterial.MdIcon)
|
||||
Vue.use(VueMaterial.MdSidenav)
|
||||
Vue.use(VueMaterial.MdToolbar)
|
||||
```
|
||||
|
||||
## Changelog
|
||||
<a href="https://vuematerial.github.io/#/changelog" target="_blank">Changelog</a>
|
||||
|
||||
## Questions
|
||||
The issue list is exclusively for reports, bugs and feature requests. Use the [Gitter Channel]( https://gitter.im/vuematerial) instead.
|
||||
|
||||
## Contributing
|
||||
|
||||
Please make sure to read the [Contributing Guide](https://github.com/marcosmoura/vue-material/blob/master/.github/CONTRIBUTING.md) before making a pull request.
|
||||
|
||||
## Browser Support
|
||||
Vue Material supports the latest version of all Browsers. This means:
|
||||
* Google Chrome 50+
|
||||
|
|
@ -85,13 +97,6 @@ Vue Material supports the latest version of all Browsers. This means:
|
|||
|
||||
<small>May work in other browsers but it's untested.</small>
|
||||
|
||||
## Changelog
|
||||
<a href="https://vuematerial.github.io/#/changelog" target="_blank">Changelog</a>
|
||||
|
||||
## Contributing
|
||||
|
||||
Please make sure to read the [Contributing Guide](https://github.com/marcosmoura/vue-material/blob/master/.github/CONTRIBUTING.md) before making a pull request.
|
||||
|
||||
## Credits and Thanks
|
||||
* This library aims to delivery components using almost the same API of <a href="https://material.angularjs.org/latest/" target="_blank">Angular Material</a>
|
||||
* Thanks a lot to <a href="https://github.com/elviskang" target="_blank">elviskang</a> for donating the npm package name!
|
||||
|
|
|
|||
|
|
@ -41,6 +41,14 @@
|
|||
this.$emit('select', this.selectedRows);
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
data() {
|
||||
this.numberOfRows = this.data.length;
|
||||
},
|
||||
selectedRows() {
|
||||
this.numberOfSelected = Object.keys(this.selectedRows).length;
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.parentCard = getClosestVueParent(this.$parent, 'md-table-card');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue