fix: missing files

This commit is contained in:
charlie
2025-05-28 18:18:02 +08:00
parent 6bc47f641e
commit 6955747049

46
packages/ui/src/ionic.ts Normal file
View File

@@ -0,0 +1,46 @@
import {
setupIonicReact,
IonApp, IonPage,
IonNav, IonNavLink, IonContent,
IonHeader, IonBackButton,
IonButtons, IonToolbar, IonLoading,
IonTitle, IonButton, IonAlert,
IonInput, IonTextarea, IonIcon,
IonBadge, IonTabs, IonTab, IonTabBar,
IonTabButton, IonModal, IonLabel,
IonList, IonItem, IonDatetime,
IonDatetimeButton, IonRefresher,
IonRefresherContent, IonMenu,
IonMenuButton, IonActionSheet, IonSearchbar,
IonRouterOutlet
} from '@ionic/react'
declare global {
var LSIonic: any
}
const ionicUI = {
IonApp,
IonPage,
IonNav, IonNavLink, IonContent,
IonHeader, IonBackButton,
IonButtons, IonToolbar, IonLoading,
IonTitle, IonButton, IonAlert,
IonInput, IonTextarea, IonIcon,
IonBadge, IonTabs, IonTab, IonTabBar,
IonTabButton, IonModal, IonLabel,
IonList, IonItem, IonDatetime,
IonDatetimeButton, IonRefresher,
IonRefresherContent, IonMenu,
IonMenuButton, IonActionSheet, IonSearchbar,
IonRouterOutlet
}
// initialize ionic mode
setupIonicReact()
window.LSIonic = ionicUI
export {
setupIonicReact,
}