|
@@ -1,7 +1,13 @@
|
|
<template>
|
|
<template>
|
|
<div class="show-case-container">
|
|
<div class="show-case-container">
|
|
|
|
+ <div class="show-case">
|
|
|
|
+ <iframe
|
|
|
|
+ frameborder="0"
|
|
|
|
+ src="https://www.4dmodel.com/SuperTwo/index.html?m=TEST"
|
|
|
|
+ ></iframe>
|
|
|
|
+ </div>
|
|
<div class="tools">
|
|
<div class="tools">
|
|
- <n-space class="group-type">
|
|
|
|
|
|
+ <n-space class="group-type" :size="25">
|
|
<n-button type="primary" round>模型</n-button>
|
|
<n-button type="primary" round>模型</n-button>
|
|
<n-button type="primary" round>视频</n-button>
|
|
<n-button type="primary" round>视频</n-button>
|
|
<n-button type="primary" round>图片</n-button>
|
|
<n-button type="primary" round>图片</n-button>
|
|
@@ -18,10 +24,14 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
-import { ref } from "vue";
|
|
|
|
|
|
+import { ref, computed } from "vue";
|
|
|
|
|
|
-const type = ref();
|
|
|
|
|
|
+const type = ref("model");
|
|
|
|
|
|
|
|
+const isModel = computed(() => type.value === "model");
|
|
|
|
+const isVideo = computed(() => type.value === "video");
|
|
|
|
+const isAudio = computed(() => type.value === "audio");
|
|
|
|
+const isGallery = computed(() => type.value === "gallery");
|
|
defineOptions({
|
|
defineOptions({
|
|
name: "show-case",
|
|
name: "show-case",
|
|
});
|
|
});
|
|
@@ -50,8 +60,10 @@ const props = defineProps({
|
|
.show-case-container {
|
|
.show-case-container {
|
|
--show-case-width: 66.8125rem;
|
|
--show-case-width: 66.8125rem;
|
|
--show-case-height: 34.1875rem;
|
|
--show-case-height: 34.1875rem;
|
|
|
|
+ --show-case-border-radius: 0.625rem;
|
|
--show-case-background: #c1b2b2;
|
|
--show-case-background: #c1b2b2;
|
|
--show-case-tools-padding: 1rem;
|
|
--show-case-tools-padding: 1rem;
|
|
|
|
+ --show-case-btn-font-size: 1.125rem;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|
|
|
|
|
|
@@ -61,6 +73,15 @@ const props = defineProps({
|
|
height: var(--show-case-height);
|
|
height: var(--show-case-height);
|
|
position: relative;
|
|
position: relative;
|
|
background-color: var(--show-case-background);
|
|
background-color: var(--show-case-background);
|
|
|
|
+ border-radius: var(--show-case-border-radius);
|
|
|
|
+ .show-case {
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 100%;
|
|
|
|
+ iframe {
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 100%;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
.tools {
|
|
.tools {
|
|
display: inline-flex;
|
|
display: inline-flex;
|
|
@@ -68,18 +89,27 @@ const props = defineProps({
|
|
bottom: 1.25rem;
|
|
bottom: 1.25rem;
|
|
flex-direction: row;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
|
|
+ align-items: center;
|
|
width: calc(100% - var(--show-case-tools-padding) * 2);
|
|
width: calc(100% - var(--show-case-tools-padding) * 2);
|
|
padding: 0 var(--show-case-tools-padding);
|
|
padding: 0 var(--show-case-tools-padding);
|
|
- .group-type,
|
|
|
|
|
|
+ pointer-events: none;
|
|
.actions {
|
|
.actions {
|
|
|
|
+ display: inline-flex;
|
|
|
|
+ align-items: center;
|
|
img {
|
|
img {
|
|
height: 2.5rem;
|
|
height: 2.5rem;
|
|
width: auto;
|
|
width: auto;
|
|
margin: 0 0.3125rem;
|
|
margin: 0 0.3125rem;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
|
+ pointer-events: all;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.group-type {
|
|
.group-type {
|
|
|
|
+ :deep(.n-button) {
|
|
|
|
+ pointer-events: all;
|
|
|
|
+ font-size: var(--show-case-btn-font-size);
|
|
|
|
+ padding: 10px 40px;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|