@bildvitta/quasar-ui-asteroid 3.15.0-beta.6 → 3.15.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bildvitta/quasar-ui-asteroid",
3
3
  "description": "Asteroid",
4
- "version": "3.15.0-beta.6",
4
+ "version": "3.15.0-beta.8",
5
5
  "author": "Bild & Vitta <systemteam@bild.com.br>",
6
6
  "license": "MIT",
7
7
  "main": "dist/asteroid.cjs.min.js",
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="qas-app-menu">
3
- <q-drawer v-model="model" :behavior="behavior" class="shadow-2" :mini="isMiniMode" :mini-width="88" show-if-above :width="drawerWidth" @mouseenter="onMouseEvent" @mouseleave="onMouseEvent">
3
+ <q-drawer :key="reRenderCount" v-model="model" :behavior="behavior" class="shadow-2" :mini="isMiniMode" :mini-width="88" show-if-above :width="drawerWidth" @mouseenter="onMouseEvent" @mouseleave="onMouseEvent">
4
4
  <div class="column full-height justify-between no-wrap">
5
5
  <div class="full-width">
6
6
  <!-- Brand -->
@@ -93,7 +93,7 @@ import useAppUser from './composables/use-app-user'
93
93
  import useDevelopmentBadge from './composables/use-development-badge'
94
94
  import { useScreen } from '../../composables'
95
95
 
96
- import { ref, computed } from 'vue'
96
+ import { ref, computed, watch } from 'vue'
97
97
  import { useRouter } from 'vue-router'
98
98
 
99
99
  defineOptions({
@@ -155,6 +155,7 @@ const rootRoute = router.hasRoute('Root') ? { name: 'Root' } : { path: '/' }
155
155
 
156
156
  const hasOpenedMenu = ref(false)
157
157
  const isMini = ref(screen.isLarge)
158
+ const reRenderCount = ref(0)
158
159
 
159
160
  const composableParams = {
160
161
  props,
@@ -194,6 +195,24 @@ const classes = computed(() => {
194
195
  }
195
196
  })
196
197
 
198
+ /**
199
+ * @desc Recurso tecnológico temporário (ou definitivo), este bug ocorre por conta
200
+ * da atualização do vue para a versão `v3.4+`, onde tiveram mudanças referentes a
201
+ * reatividade, existem issues abertas no Quasar, porém sem expectativas
202
+ * de que um dia será resolvido por parte deles.
203
+ *
204
+ * @see {@link https://github.com/quasarframework/quasar/issues/16651}
205
+ */
206
+ watch(() => behavior.value, value => {
207
+ /**
208
+ * @desc quando o comportamento passa a ser desktop novamente é porque aconteceu um
209
+ * resize na pagina, então é necessário renderizar o componente QDrawer novamente.
210
+ */
211
+ if (value === 'desktop') {
212
+ reRenderCount.value += 1
213
+ }
214
+ })
215
+
197
216
  // métodos
198
217
  function closeDrawer () {
199
218
  emit('update:modelValue', false)