Comments (3)
@scottix yes it is because you use both TabsPlugin
and BottomNavigation
which both use MDTabContentItem
.
The easy fix is to register components manually for one of them.
But the best solution would be to create an issue on vue3 repo. This shoud not be an error. At best a warning. But there is nothing wrong with doing this.
from ui-material-components.
Ok I was able to work around the issue.
Since I only need MDTabs that hasn't been registered
import { createApp } from 'nativescript-vue';
import { createPinia } from 'pinia';
import ButtonPlugin from '@nativescript-community/ui-material-button/vue';
import BottomNavigation from '@nativescript-community/ui-material-bottom-navigation/vue';
import CardViewPlugin from '@nativescript-community/ui-material-cardview/vue';
import { Tabs } from '@nativescript-community/ui-material-tabs';
import FloatingActionButtonPlugin from '@nativescript-community/ui-material-floatingactionbutton/vue';
import BottomNavFrame from './frames/BottomNavFrame.vue'
const pinia = createPinia();
const app = createApp(BottomNavFrame);
app.use(BottomNavigation)
.use(ButtonPlugin)
.use(CardViewPlugin)
.use(FloatingActionButtonPlugin)
.use(pinia);
app.registerElement('MDTabs', () => Tabs, {
model: {
prop: 'selectedIndex',
event: 'selectedIndexChange'
},
component: require('@nativescript-community/ui-material-tabs/vue/component').default
});
app.start();
One thing you could change on your install script for each registerElement
Vue.registerElement('MDTabStrip', () => TabStrip, { overwriteExisting: true });
from ui-material-components.
@scottix great you got it to work
from ui-material-components.
Related Issues (20)
- Unable to make this work HOT 4
- Calling js method onCreateView failed HOT 15
- Types missing for Angular Bottomsheet: ui-material-bottomsheet/angular missing index.d.ts file HOT 4
- [BottomNavigation][Tabs][Android] Outlet becomes unresponsive/freezes when using nested outlets HOT 4
- [Request] Border radius for bottom sheet HOT 2
- [BottomNavigationBar] If activeColor is not provided, setting inactiveColor crashes the app HOT 1
- MDTabs selectedIndex not woking HOT 1
- MDTabStripItem only support two Element on Image and Label HOT 1
- [Vue3] bottom sheet props returning undefined HOT 4
- [Tabs][Angular] Can not create Tabs dynamic via code
- 7.2.0+: ripple not correctly applied on Android using borderRadius HOT 8
- [BottomSheet][iOS] App crashes when tapping background or drag to close bottom sheet HOT 3
- Error after updating to 7.2.13 (probably Tabs) HOT 6
- MDTextField Android error with secure option HOT 2
- background does not expand to fill width going portrait to landscape on iOS
- MDTextField cannot be found by its testID attribute on Android HOT 10
- [BottomSheet] No content shown when used with RAD SideDrawer HOT 13
- Bottom Navigation background color not applying properly HOT 1
- IOS 17.5.1 keyboard glitch on some batches on iphone 14+models(not all) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ui-material-components.