You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
612 B
28 lines
612 B
<script>
|
|
import template1 from './template1.vue';
|
|
import template2 from './template2.vue';
|
|
import template3 from './template3.vue';
|
|
export default {
|
|
components: {
|
|
template1,
|
|
template2,
|
|
template3
|
|
},
|
|
props: {
|
|
menuData: {
|
|
type: Object,
|
|
default: () => {}
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<template>
|
|
<view v-if="parseInt(menuData.is_show)">
|
|
<template1 v-if="menuData.style == 1" :menuData="menuData"></template1>
|
|
<template2 v-if="menuData.style == 2" :menuData="menuData.list"></template2>
|
|
<template3 v-if="menuData.style == 3" :menuData="menuData.list"></template3>
|
|
</view>
|
|
</template>
|
|
|
|
<style></style>
|
|
|