You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1011 B
49 lines
1011 B
<template> |
|
<div class="message"> |
|
<Attribute /> |
|
<div class="clear" @click="commit('clear_sys_info')">清除信息</div> |
|
<SysInfo /> |
|
</div> |
|
</template> |
|
|
|
<script lang="ts" setup> |
|
import { useStore } from "vuex"; |
|
import { reactive, onMounted, ref } from "vue"; |
|
import { useI18n } from "vue3-i18n"; |
|
import SysInfo from './sys-info.vue'; |
|
import Attribute from "./attribute.vue"; |
|
|
|
const { t } = useI18n(); |
|
const { state, commit, dispatch } = useStore(); |
|
|
|
onMounted(() => { }); |
|
</script> |
|
<style lang="scss" scoped> |
|
.message { |
|
position: relative; |
|
border: 2px solid #ccc; |
|
height: 100%; |
|
width: 100%; |
|
transition: 0.2s; |
|
padding: 0.2rem; |
|
padding-top: 8.5rem; |
|
|
|
.clear { |
|
position: absolute; |
|
top: 1rem; |
|
right: 1rem; |
|
cursor: pointer; |
|
|
|
&:hover { |
|
text-decoration: underline; |
|
} |
|
} |
|
} |
|
|
|
@media only screen and (max-width: 768px) { |
|
.message .clear { |
|
top: 8.5rem; |
|
right: 0; |
|
} |
|
} |
|
</style> |