refactor: monorepo+pnpm (removed husky)
This commit is contained in:
32
packages/hoppscotch-app/components/smart/Tab.vue
Normal file
32
packages/hoppscotch-app/components/smart/Tab.vue
Normal file
@@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<div v-show="active">
|
||||
<slot></slot>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { defineComponent } from "@nuxtjs/composition-api"
|
||||
|
||||
export default defineComponent({
|
||||
props: {
|
||||
label: { type: String, default: null },
|
||||
info: { type: String, default: null },
|
||||
icon: { type: String, default: null },
|
||||
id: { type: String, default: null, required: true },
|
||||
selected: {
|
||||
type: Boolean,
|
||||
default: false,
|
||||
},
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
active: false,
|
||||
}
|
||||
},
|
||||
|
||||
mounted() {
|
||||
this.active = this.selected
|
||||
},
|
||||
})
|
||||
</script>
|
||||
Reference in New Issue
Block a user