Foo.uvue 290 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
<template>
	<view class="component">
		<text id="foo-arr">arr: {{arr}}</text>
	</view>
</template>

<script>
	export default {
		props: {
			arr: {
				type: Array as PropType<number[]>,
				default: () : Array<number> => {
					return [1, 2, 3]
				}
			}
		}
	}
</script>