@xenknight/framework7-vue 0.0.7 → 0.0.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.
@@ -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',
@@ -162,18 +161,16 @@ export default {
162
161
  hasNavbarLargeCollapsed = false;
163
162
  };
164
163
  const onNavbarNewCollapse = navbarEl => {
165
- if (!elRef.value) return;
166
- const $navbarEl = $(navbarEl);
167
- const $pageEl = $navbarEl.parents('.page');
168
- if ($pageEl.length && $pageEl[0] === elRef.value) {
164
+ if (!elRef.value || !navbarEl) return;
165
+ const pageEl = navbarEl.closest('.page');
166
+ if (pageEl === elRef.value) {
169
167
  hasNavbarLargeCollapsed = true;
170
168
  }
171
169
  };
172
170
  const onNavbarNewExpand = navbarEl => {
173
- if (!elRef.value) return;
174
- const $navbarEl = $(navbarEl);
175
- const $pageEl = $navbarEl.parents('.page');
176
- if ($pageEl.length && $pageEl[0] === elRef.value) {
171
+ if (!elRef.value || !navbarEl) return;
172
+ const pageEl = navbarEl.closest('.page');
173
+ if (pageEl === elRef.value) {
177
174
  hasNavbarLargeCollapsed = false;
178
175
  }
179
176
  };
package/framework7-vue.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 Vue 0.0.6
2
+ * Framework7 Vue 0.0.7
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.7",
3
+ "version": "0.0.8",
4
4
  "description": "Build full featured iOS & Android apps using Framework7 & Vue",
5
5
  "type": "module",
6
6
  "exports": {