<template> <view class="page"> <array-literal :str="str" :num="num" :bool="bool" :obj="obj" :arr="arr" /> <object-type str="str" :num="num" :bool="bool" :obj="obj" :arr="arr" /> <same-name-prop-default-value />
<props-with-defaults />
</view> </template> <script setup lang="uts"> import ArrayLiteral from './array-literal-composition.uvue'
import ObjectType from "./object-type-composition.uvue"; import SameNamePropDefaultValue from "./same-name-prop-default-value-composition.uvue";
import PropsWithDefaults from "./props-with-defaults.uvue";
const str = 'str' const num = 10 const bool = true const obj = {age: 18} const arr = ['a','b','c'] </script>