fix editor

This commit is contained in:
AceDataCloud committed 2021-09-06 00:54:49 +08:00
1 parent d9d2c59295
commit ac450b0e04
12 files changed
+132 -61

No files matched your search

+42
View File
@@ -0,0 +1,42 @@
<template>
<el-alert :title="content" v-if="show" type="success" center :closable="false" show-icon class="alert-succcess-info">
</el-alert>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
export default defineComponent({
name: 'SuccessInfo',
props: {
show: {
type: Boolean,
default: false
},
content: {
type: String,
default: ''
}
},
watch: {
show(val, oldVal) {
if (val) {
setTimeout(() => {
this.$emit('update:show', false);
}, 2000);
}
}
}
});
</script>
<style lang="scss">
.alert-succcess-info {
position: fixed;
top: 110px;
left: 50%;
transform: translate(-50%, 0);
z-index: 1000;
width: 10%;
}
</style>
-1
View File
@@ -25,7 +25,6 @@ export default defineComponent({
},
computed: {
active() {
console.log('this.$route', this.$route);
return this.$route.matched[0].path;
}
},
+2 -1
View File
@@ -1,4 +1,5 @@
import TopHeader from './TopHeader.vue';
import Breadcrumb from './Breadcrumb.vue';
import Loading from './Loading.vue';
export { TopHeader, Breadcrumb, Loading };
import SuccessInfo from './SuccessInfo.vue';
export { TopHeader, Breadcrumb, Loading, SuccessInfo };