/
githubmirror
/
ionic-framework
Обзор
Документация
Войти
/
githubmirror
/
ionic-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/vue/src/components/IonPage.ts
25 строк
581 B
Liam DeBeasi
chore(vue): add eslint and prettier (#26635)
19 янв 2023, 02:29
Не верифицирован
19 янв 2023, 02:29
dc27736
Код
Авторство
О чём код?
import { h, defineComponent } from "vue"; export const IonPage = /*@__PURE__*/ defineComponent({ name: "IonPage", props: { // eslint-disable-next-line @typescript-eslint/no-empty-function registerIonPage: { type: Function, default: () => {} }, }, mounted() { this.$props.registerIonPage(this.$refs.ionPage); }, setup(_, { attrs, slots }) { return () => { return h( "div", { ...attrs, ["class"]: "ion-page", ref: "ionPage", }, slots.default && slots.default() ); }; }, });