@@ -4,8 +4,24 @@ import { defineComponent, h, shallowRef } from "vue";
44
55import { VueDelegate } from "../framework-delegate" ;
66
7- export const IonNav = /*@__PURE__ */ defineComponent (
8- ( props ) => {
7+ export const IonNav = /*@__PURE__ */ defineComponent ( {
8+ name : "IonNav" ,
9+ /**
10+ * The default values follow what is defined at
11+ * https://ionicframework.com/docs/api/nav#properties
12+ * otherwise the default values on the Web Component
13+ * may be overridden. For example, if the default animated value
14+ * is not `true` below, then Vue would default the prop to `false`
15+ * which would override the Web Component default of `true`.
16+ */
17+ props : {
18+ animated : Boolean ,
19+ animation : Function ,
20+ root : [ Function , Object , String ] ,
21+ rootParams : Object ,
22+ swipeGesture : Boolean ,
23+ } ,
24+ setup ( props ) {
925 defineCustomElement ( ) ;
1026 const views = shallowRef ( [ ] ) ;
1127
@@ -23,37 +39,4 @@ export const IonNav = /*@__PURE__*/ defineComponent(
2339 return h ( "ion-nav" , { ...props , delegate } , views . value ) ;
2440 } ;
2541 } ,
26- {
27- name : "IonNav" ,
28- /**
29- * The default values follow what is defined at
30- * https://ionicframework.com/docs/api/nav#properties
31- * otherwise the default values on the Web Component
32- * may be overridden. For example, if the default animated value
33- * is not `true` below, then Vue would default the prop to `false`
34- * which would override the Web Component default of `true`.
35- */
36- props : {
37- animated : {
38- type : Boolean ,
39- default : true ,
40- } ,
41- animation : {
42- type : Function ,
43- default : undefined ,
44- } ,
45- root : {
46- type : [ Function , Object , String ] ,
47- default : undefined ,
48- } ,
49- rootParams : {
50- type : Object ,
51- default : undefined ,
52- } ,
53- swipeGesture : {
54- type : Boolean ,
55- default : undefined ,
56- } ,
57- } ,
58- }
59- ) ;
42+ } ) ;
0 commit comments