mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 10:41:13 +08:00
chore(): add page component
This commit is contained in:
@ -12,6 +12,7 @@ import { IonicConfig } from '@ionic/core';
|
||||
import { appInitialize } from './app-initialize';
|
||||
import { VueDelegate } from './controllers/vue-delegate';
|
||||
import IonTabs from './components/navigation/ion-tabs';
|
||||
import IonPage from './components/navigation/ion-page';
|
||||
import { createInputComponent } from './components/inputs';
|
||||
|
||||
export interface Controllers {
|
||||
@ -31,9 +32,9 @@ declare module 'vue/types/vue' {
|
||||
}
|
||||
|
||||
|
||||
function createApi(Vue: VueConstructor) {
|
||||
function createApi(vueInstance: VueConstructor) {
|
||||
const cache: Partial<Controllers> = {};
|
||||
const vueDelegate = new VueDelegate(Vue);
|
||||
const vueDelegate = new VueDelegate(vueInstance);
|
||||
|
||||
return {
|
||||
get actionSheetController() {
|
||||
@ -95,6 +96,7 @@ export const install: PluginFunction<IonicConfig> = (_Vue, config) => {
|
||||
Vue = _Vue;
|
||||
Vue.config.ignoredElements.push(/^ion-/);
|
||||
Vue.component('IonTabs', IonTabs);
|
||||
Vue.component('IonPage', IonPage);
|
||||
|
||||
createInputComponent('IonCheckboxVue', 'ion-checkbox', 'ionChange', 'checked');
|
||||
createInputComponent('IonDatetimeVue', 'ion-datetime');
|
||||
|
Reference in New Issue
Block a user