feat(vue): add custom elements bundle (#23458)

This commit is contained in:
Liam DeBeasi
2021-06-17 14:10:50 -04:00
committed by GitHub
parent bccb8ad5fb
commit dc48a9f1a2
37 changed files with 468 additions and 373 deletions

View File

@ -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) {