mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-16 09:58:13 +08:00
💄 完善 unknown 样式&处理
This commit is contained in:
@@ -1,12 +1,32 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="mys-post-unknown">
|
<div class="tp-unknown-box">
|
||||||
<code class="mys-post-unknown-code">{{ JSON.stringify(props.data, null, 2) }}</code>
|
<code class="tp-unknown-code">{{ JSON.stringify(props.data, null, 2) }}</code>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
import { toRaw } from "vue";
|
||||||
|
|
||||||
interface TpUnknownProps {
|
interface TpUnknownProps {
|
||||||
data: TGApp.Plugins.Mys.SctPost.Empty;
|
data: TGApp.Plugins.Mys.SctPost.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
const props = defineProps<TpUnknownProps>();
|
const props = defineProps<TpUnknownProps>();
|
||||||
|
|
||||||
|
console.warn("tpUnknown", toRaw(props.data.insert));
|
||||||
</script>
|
</script>
|
||||||
|
<style lang="css" scoped>
|
||||||
|
.tp-unknown-box {
|
||||||
|
width: 800px;
|
||||||
|
padding: 10px;
|
||||||
|
border: 1px solid var(--common-shadow-1);
|
||||||
|
border-radius: 10px;
|
||||||
|
background: var(--box-bg-1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.tp-unknown-code {
|
||||||
|
font-family: var(--font-text);
|
||||||
|
opacity: 0.6;
|
||||||
|
white-space: pre-wrap;
|
||||||
|
word-break: break-all;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user