mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
💄 完善 unknown 样式&处理
This commit is contained in:
@@ -1,12 +1,32 @@
|
||||
<template>
|
||||
<div class="mys-post-unknown">
|
||||
<code class="mys-post-unknown-code">{{ JSON.stringify(props.data, null, 2) }}</code>
|
||||
<div class="tp-unknown-box">
|
||||
<code class="tp-unknown-code">{{ JSON.stringify(props.data, null, 2) }}</code>
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts" setup>
|
||||
import { toRaw } from "vue";
|
||||
|
||||
interface TpUnknownProps {
|
||||
data: TGApp.Plugins.Mys.SctPost.Empty;
|
||||
}
|
||||
|
||||
const props = defineProps<TpUnknownProps>();
|
||||
|
||||
console.warn("tpUnknown", toRaw(props.data.insert));
|
||||
</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