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

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

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