mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Fixed #4821 - Dock responsiveness updates
This commit is contained in:
parent
e417c5b6c2
commit
af504277ba
60 changed files with 1051 additions and 1141 deletions
|
@ -11,6 +11,20 @@ import DockSub from './DockSub.vue';
|
|||
export default {
|
||||
name: 'Dock',
|
||||
extends: BaseDock,
|
||||
data() {
|
||||
return {
|
||||
queryMatches: false
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
const query = matchMedia(`(max-width: ${this.breakpoint})`);
|
||||
|
||||
this.queryMatches = query.matches;
|
||||
|
||||
query.addEventListener('change', () => {
|
||||
this.queryMatches = query.matches;
|
||||
});
|
||||
},
|
||||
computed: {
|
||||
containerClass() {
|
||||
return [this.class, this.cx('root')];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue