props.uvue 752 字节
Newer Older
crlfe's avatar
crlfe 已提交
1 2
<template>
  <view class="page">
3
    <check-type str="abcd" :num="12345" :bool="true" :obj="obj" :arrayString="arrayString"></check-type>
4
		<Foo />
crlfe's avatar
crlfe 已提交
5 6 7
  </view>
</template>

H
hdx 已提交
8
<script>
9
  import checkType, { CusomObject } from "./check-type.uvue";
10
  import Foo from "./Foo.uvue";
crlfe's avatar
crlfe 已提交
11

12 13 14
  export default {
    components: {
      checkType,
15
      Foo
16 17 18 19 20 21 22
    },
    data() {
      return {
        obj: { count: 1 } as CusomObject,
        arrayString: ["str1"] as string[]
      }
    },
crlfe's avatar
crlfe 已提交
23 24 25 26 27 28 29 30 31 32
  }
</script>

<style>
  .row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 10px;
  }
33

crlfe's avatar
crlfe 已提交
34 35 36 37 38
  .buttons {
    display: flex;
    flex-direction: row;
    margin-top: 10px;
  }
39

crlfe's avatar
crlfe 已提交
40 41 42 43
  .btn {
    flex: 1;
    margin: 0 5px;
  }
44
</style>