framework7-vue 7.0.0-beta.11 → 7.0.0-beta.16

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.
@@ -97,6 +97,11 @@ declare const View: DefineComponent<
97
97
  type: PropType<FunctionConstructor | ArrayConstructor>;
98
98
  },
99
99
 
100
+ initRouterOnTabShow: {
101
+ type: BooleanConstructor;
102
+ default: undefined;
103
+ },
104
+
100
105
  router: {
101
106
  type: BooleanConstructor;
102
107
  default: boolean;
@@ -10,6 +10,10 @@ export default {
10
10
  tab: Boolean,
11
11
  tabActive: Boolean,
12
12
  name: String,
13
+ initRouterOnTabShow: {
14
+ type: Boolean,
15
+ default: undefined
16
+ },
13
17
  router: {
14
18
  type: Boolean,
15
19
  default: true
@@ -189,6 +193,7 @@ export default {
189
193
  // const initialPageComponent = childrenArray.filter((c) => c.props && c.props.initialPage)[0];
190
194
  // const restChildren = childrenArray.filter((c) => !c.props || !c.props.initialPage);
191
195
  const initialPageComponent = null;
196
+ const shouldInitRouter = !(props.initRouterOnTabShow && props.tab && !props.tabActive);
192
197
  let f7View = null;
193
198
  const elRef = ref(null);
194
199
  let routerData = null;
@@ -228,7 +233,7 @@ export default {
228
233
  };
229
234
  f7routers.views.push(routerData);
230
235
 
231
- if (f7View && f7View.router && (props.url || props.main)) {
236
+ if (shouldInitRouter && f7View && f7View.router && (props.url || props.main)) {
232
237
  const initialData = getRouterInitialComponent(f7View.router, initialPageComponent);
233
238
  initialPage = initialData.initialPage;
234
239
  initialRoute = initialData.initialRoute;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 Vue 7.0.0-beta.11
2
+ * Framework7 Vue 7.0.0-beta.16
3
3
  * Build full featured iOS & Android apps using Framework7 & Vue
4
4
  * https://framework7.io/vue/
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: February 17, 2022
10
+ * Released on: April 12, 2022
11
11
  */
12
12
  import Framework7Vue from './shared/plugin.js';
13
13
  import { f7, f7ready, theme } from './shared/f7.js';
@@ -2,7 +2,7 @@
2
2
  "$schema": "http://json-schema.org/draft-04/schema#",
3
3
  "framework": "vue",
4
4
  "name": "framework7-vue",
5
- "version": "7.0.0-beta.11",
5
+ "version": "7.0.0-beta.16",
6
6
  "contributions": {
7
7
  "html": {
8
8
  "types-syntax": "typescript",
package/framework7-vue.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Framework7 Vue 7.0.0-beta.11
2
+ * Framework7 Vue 7.0.0-beta.16
3
3
  * Build full featured iOS & Android apps using Framework7 & Vue
4
4
  * https://framework7.io/vue/
5
5
  *
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Released under the MIT License
9
9
  *
10
- * Released on: February 17, 2022
10
+ * Released on: April 12, 2022
11
11
  */
12
12
  import Framework7Vue from './shared/plugin.js';
13
13
  import { f7, f7ready, theme } from './shared/f7.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "framework7-vue",
3
- "version": "7.0.0-beta.11",
3
+ "version": "7.0.0-beta.16",
4
4
  "description": "Build full featured iOS & Android apps using Framework7 & Vue",
5
5
  "type": "module",
6
6
  "exports": {
@@ -26,6 +26,7 @@
26
26
  "ipad",
27
27
  "apple",
28
28
  "phonegap",
29
+ "capacitor",
29
30
  "native",
30
31
  "touch",
31
32
  "appstore",