refactor: convert to script setup
This commit is contained in:
@@ -28,17 +28,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script setup lang="ts">
|
||||||
import { defineComponent } from "@nuxtjs/composition-api"
|
withDefaults(
|
||||||
|
defineProps<{
|
||||||
export default defineComponent({
|
on: Boolean
|
||||||
props: {
|
}>(),
|
||||||
on: {
|
{
|
||||||
type: Boolean,
|
on: false,
|
||||||
default: false,
|
}
|
||||||
},
|
)
|
||||||
},
|
|
||||||
})
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|||||||
@@ -12,17 +12,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script setup lang="ts">
|
||||||
import { defineComponent } from "@nuxtjs/composition-api"
|
withDefaults(
|
||||||
|
defineProps<{
|
||||||
export default defineComponent({
|
on: Boolean
|
||||||
props: {
|
}>(),
|
||||||
on: {
|
{
|
||||||
type: Boolean,
|
on: false,
|
||||||
default: false,
|
}
|
||||||
},
|
)
|
||||||
},
|
|
||||||
})
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|||||||
Reference in New Issue
Block a user