Skip to content

Commit 559b5ea

Browse files
committed
toolbar
1 parent cfcc61c commit 559b5ea

File tree

7 files changed

+7
-45
lines changed

7 files changed

+7
-45
lines changed

static/usage/v7/toolbar/basic/vue.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,7 @@
1313
</ion-footer>
1414
</template>
1515

16-
<script lang="ts">
16+
<script lang="ts" setup>
1717
import { IonFooter, IonHeader, IonTitle, IonToolbar } from '@ionic/vue';
18-
import { defineComponent } from 'vue';
19-
20-
export default defineComponent({
21-
components: { IonFooter, IonHeader, IonTitle, IonToolbar },
22-
});
2318
</script>
2419
```

static/usage/v7/toolbar/buttons/vue.md

+1-9
Original file line numberDiff line numberDiff line change
@@ -84,16 +84,8 @@
8484
</ion-toolbar>
8585
</template>
8686

87-
<script lang="ts">
87+
<script lang="ts" setup>
8888
import { IonBackButton, IonButton, IonButtons, IonIcon, IonMenuButton, IonTitle, IonToolbar } from '@ionic/vue';
8989
import { create, ellipsisHorizontal, ellipsisVertical, helpCircle, search, personCircle, star } from 'ionicons/icons';
90-
import { defineComponent } from 'vue';
91-
92-
export default defineComponent({
93-
components: { IonBackButton, IonButton, IonButtons, IonIcon, IonMenuButton, IonTitle, IonToolbar },
94-
setup() {
95-
return { create, ellipsisHorizontal, ellipsisVertical, helpCircle, search, personCircle, star };
96-
},
97-
});
9890
</script>
9991
```

static/usage/v7/toolbar/progress-bars/vue.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@
88
</ion-header>
99
</template>
1010

11-
<script lang="ts">
11+
<script lang="ts" setup>
1212
import { IonHeader, IonProgressBar, IonTitle, IonToolbar } from '@ionic/vue';
13-
import { defineComponent } from 'vue';
14-
15-
export default defineComponent({
16-
components: { IonHeader, IonProgressBar, IonTitle, IonToolbar },
17-
});
1813
</script>
1914
```

static/usage/v7/toolbar/searchbars/vue.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,7 @@
1010
</ion-header>
1111
</template>
1212

13-
<script lang="ts">
13+
<script lang="ts" setup>
1414
import { IonHeader, IonSearchbar, IonTitle, IonToolbar } from '@ionic/vue';
15-
import { defineComponent } from 'vue';
16-
17-
export default defineComponent({
18-
components: { IonHeader, IonSearchbar, IonTitle, IonToolbar },
19-
});
2015
</script>
2116
```

static/usage/v7/toolbar/segments/vue.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,7 @@
1414
</ion-header>
1515
</template>
1616

17-
<script lang="ts">
17+
<script lang="ts" setup>
1818
import { IonHeader, IonLabel, IonSegment, IonSegmentButton, IonTitle, IonToolbar } from '@ionic/vue';
19-
import { defineComponent } from 'vue';
20-
21-
export default defineComponent({
22-
components: { IonHeader, IonLabel, IonSegment, IonSegmentButton, IonTitle, IonToolbar },
23-
});
2419
</script>
2520
```

static/usage/v7/toolbar/theming/colors/vue.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,7 @@
3232
</ion-toolbar>
3333
</template>
3434

35-
<script lang="ts">
35+
<script lang="ts" setup>
3636
import { IonTitle, IonToolbar } from '@ionic/vue';
37-
import { defineComponent } from 'vue';
38-
39-
export default defineComponent({
40-
components: { IonTitle, IonToolbar },
41-
});
4237
</script>
4338
```

static/usage/v7/toolbar/theming/css-properties/vue.md

+1-6
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,8 @@
55
</ion-toolbar>
66
</template>
77

8-
<script lang="ts">
8+
<script lang="ts" setup>
99
import { IonTitle, IonToolbar } from '@ionic/vue';
10-
import { defineComponent } from 'vue';
11-
12-
export default defineComponent({
13-
components: { IonTitle, IonToolbar },
14-
});
1510
</script>
1611

1712
<style scoped>

0 commit comments

Comments
 (0)