@xenknight/framework7-vue 0.0.9 → 0.0.10

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.
@@ -2,7 +2,6 @@ import { computed, ref, onMounted, onBeforeUnmount, h } from 'vue';
2
2
  import { classNames } from '../shared/utils.js';
3
3
  import { colorClasses, colorProps } from '../shared/mixins.js';
4
4
  import { f7ready, f7 } from '../shared/f7.js';
5
- import $ from '../../core/shared/dom7.js';
6
5
  import f7PageContent from './page-content.js';
7
6
  export default {
8
7
  name: 'f7-page',
@@ -177,17 +176,15 @@ export default {
177
176
  };
178
177
  const onNavbarNewCollapse = navbarEl => {
179
178
  if (!elRef.value) return;
180
- const $navbarEl = $(navbarEl);
181
- const $pageEl = $navbarEl.parents('.page');
182
- if ($pageEl.length && $pageEl[0] === elRef.value) {
179
+ const pageEl = navbarEl.closest('.page');
180
+ if (pageEl && pageEl === elRef.value) {
183
181
  hasNavbarLargeCollapsed = true;
184
182
  }
185
183
  };
186
184
  const onNavbarNewExpand = navbarEl => {
187
185
  if (!elRef.value) return;
188
- const $navbarEl = $(navbarEl);
189
- const $pageEl = $navbarEl.parents('.page');
190
- if ($pageEl.length && $pageEl[0] === elRef.value) {
186
+ const pageEl = navbarEl.closest('.page');
187
+ if (pageEl && pageEl === elRef.value) {
191
188
  hasNavbarLargeCollapsed = false;
192
189
  }
193
190
  };
package/framework7-vue.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 Vue 0.0.6
2
+ * Framework7 Vue 0.0.9
3
3
  * Build full featured iOS & Android apps using Framework7 & Vue
4
4
  * https://framework7.io/vue/
5
5
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xenknight/framework7-vue",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "Build full featured iOS & Android apps using Framework7 & Vue",
5
5
  "type": "module",
6
6
  "exports": {