Skip to content

Commit a2987c1

Browse files
authored
docs(searchbar): streamline usage example with script setup syntax (#3408)
1 parent a947a0f commit a2987c1

File tree

1 file changed

+1
-9
lines changed
  • static/usage/v7/searchbar/cancel-button

1 file changed

+1
-9
lines changed

static/usage/v7/searchbar/cancel-button/vue.md

+1-9
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,8 @@
1111
></ion-searchbar>
1212
</template>
1313

14-
<script lang="ts">
14+
<script lang="ts" setup>
1515
import { IonSearchbar } from '@ionic/vue';
16-
import { defineComponent } from 'vue';
1716
import { trash } from 'ionicons/icons';
18-
19-
export default defineComponent({
20-
components: { IonSearchbar },
21-
setup() {
22-
return { trash };
23-
},
24-
});
2517
</script>
2618
```

0 commit comments

Comments
 (0)