props-composition.uvue 589 字节
Newer Older
DCloud-WZF's avatar
DCloud-WZF 已提交
1 2 3 4 5 6 7 8 9 10
<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 />
  </view>
</template>

<script setup lang="uts">
import ArrayLiteral from './array-literal-composition.uvue'
DCloud-WZF's avatar
DCloud-WZF 已提交
11 12
import ObjectType from "./object-type-composition.uvue";
import SameNamePropDefaultValue from "./same-name-prop-default-value-composition.uvue";
DCloud-WZF's avatar
DCloud-WZF 已提交
13 14 15 16 17 18 19

const str = 'str'
const num = 10
const bool = true
const obj = {age: 18}
const arr = ['a','b','c']
</script>