test.vue 612 字节
Newer Older
LukeLiou's avatar
LukeLiou 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
<template>
	<view>
		<show-code :codes="schemaCode"></show-code>
		<!-- <alertCode ref="alertCode"></alertCode> -->
		<!-- <button @click="openFn()" type="default">alertCode</button> -->
		<!-- <view v-for="(value,key) in schemaCode">
			<text class="key">{{key}}:</text>
			<text class="value">{{value}}</text>
		</view> -->
	</view>
</template>

<script>
import schemaCode from './schemaCode.json';
	export default {
		data() {
			return {
				schemaCode:schemaCode
			}
		},
		methods: {
			openFn(){
				console.log(this.$refs.alertCode.open(this.schemaCode));
				//
			}
		}
	}
</script>

<style>
</style>