+
@@ -20,6 +16,7 @@
import { computed, ref, onMounted, provide } from 'vue';
import { classNames } from '../shared/utils.js';
import { colorClasses, colorProps } from '../shared/mixins.js';
+import { f7ready, f7 } from '../shared/f7.js';
export default {
name: 'f7-tabs',
@@ -37,6 +34,13 @@ export default {
const elRef = ref(null);
onMounted(() => {
+ if (props.swipeable) {
+ f7ready(() => {
+ // It only initializes in pageInit callback
+ // We may need to manually call init() to update the instance
+ f7.swiper.init(elRef.value)
+ });
+ }
if (!props.swipeable || !props.swiperParams) return;
if (!elRef.value) return;
Object.assign(elRef.value, props.swiperParams);