props-options.uvue 708 字节
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 lang="uts">
import ArrayLiteral from './array-literal-options.uvue'
DCloud-WZF's avatar
DCloud-WZF 已提交
11 12
import ObjectType from "./object-type-options.uvue";
import SameNamePropDefaultValue from "./same-name-prop-default-value-options.uvue";
DCloud-WZF's avatar
DCloud-WZF 已提交
13 14 15 16

export default {
  components: {
    ArrayLiteral,
DCloud-WZF's avatar
DCloud-WZF 已提交
17 18
    ObjectType,
    SameNamePropDefaultValue
DCloud-WZF's avatar
DCloud-WZF 已提交
19 20 21 22 23 24 25 26 27 28 29 30
  },
  data() {
    return {
      str: 'str',
      num: 10,
      bool: true,
      obj: {age: 18},
      arr: ['a','b','c']
    }
  },
}
</script>