mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 18:54:11 +08:00
feat(vue): add custom elements bundle (#23458)
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
import { h, defineComponent, inject } from 'vue';
|
||||
import { defineCustomElement } from '../utils';
|
||||
import { IonTabButton as IonTabButtonCmp } from '@ionic/core/components/ion-tab-button.js';
|
||||
|
||||
export const IonTabButton = defineComponent({
|
||||
export const IonTabButton = /*@__PURE__*/ defineComponent({
|
||||
name: 'IonTabButton',
|
||||
props: {
|
||||
_getTabState: { type: Function, default: () => { return {} } },
|
||||
@ -14,6 +16,8 @@ export const IonTabButton = defineComponent({
|
||||
target: String
|
||||
},
|
||||
setup(props, { slots }) {
|
||||
defineCustomElement('ion-tab-button', IonTabButtonCmp);
|
||||
|
||||
const ionRouter: any = inject('navManager');
|
||||
const onClick = (ev: Event) => {
|
||||
if (ev.cancelable) {
|
||||
|
Reference in New Issue
Block a user