mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 18:17:31 +08:00
chore(): add page component
This commit is contained in:
@ -4,6 +4,6 @@ export default {
|
||||
name: 'IonPage',
|
||||
functional: true,
|
||||
render(h: CreateElement, { children }: RenderContext) {
|
||||
return h('div', { class: { 'ion-page':true } }, children);
|
||||
return h('div', { class: { 'ion-page': true } }, children);
|
||||
}
|
||||
};
|
@ -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');
|
||||
|
@ -1,7 +1,7 @@
|
||||
import VueRouter, { Route } from 'vue-router';
|
||||
import { PluginFunction } from 'vue';
|
||||
import { RouterArgs } from './interfaces';
|
||||
import IonVueRouter from './components/ion-vue-router';
|
||||
import IonVueRouter from './components/navigation/ion-vue-router';
|
||||
import { BackButtonEvent, RouterDirection } from '@ionic/core';
|
||||
|
||||
// Extend the official VueRouter
|
||||
|
Reference in New Issue
Block a user