mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 01:11:25 +08:00
29 lines
450 B
Vue
29 lines
450 B
Vue
<script setup lang="ts">
|
|
defineProps({
|
|
file: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
demo: {
|
|
type: Object,
|
|
required: true,
|
|
},
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<div class="example-showcase">
|
|
<ClientOnly>
|
|
<component :is="demo" v-if="demo" v-bind="$attrs" />
|
|
</ClientOnly>
|
|
</div>
|
|
</template>
|
|
|
|
<style lang="scss" scoped>
|
|
.example-showcase {
|
|
padding: 1.5rem;
|
|
margin: 0.5px;
|
|
background-color: var(--bg-color);
|
|
}
|
|
</style>
|