mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2025-12-17 04:42:49 +00:00
24 lines
457 B
Vue
24 lines
457 B
Vue
<template>
|
|
<view>
|
|
演示插件信息——自定义组件
|
|
</view>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { computed } from 'vue';
|
|
import useDiyStore from '@/stores/diy';
|
|
|
|
const props = defineProps(['component', 'index']);
|
|
|
|
const diyStore = useDiyStore();
|
|
|
|
const diyComponent = computed(() => {
|
|
if (diyStore.mode == 'decorate') {
|
|
return diyStore.value[props.index];
|
|
} else {
|
|
return props.component;
|
|
}
|
|
})
|
|
</script>
|
|
|
|
<style></style> |