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>