mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-15 14:24:39 +00:00
70 lines
1.0 KiB
Vue
70 lines
1.0 KiB
Vue
<template>
|
|
<Dialog
|
|
:visible="iVisible"
|
|
height="300"
|
|
title="Processing"
|
|
width="300"
|
|
class="processing-dialog"
|
|
>
|
|
<div id="load">
|
|
<div class="spinner" />
|
|
</div>
|
|
</Dialog>
|
|
</template>
|
|
|
|
<script>
|
|
import Dialog from './index.vue'
|
|
|
|
export default {
|
|
name: 'ProcessingDialog',
|
|
components: { Dialog },
|
|
props: {
|
|
visible: {
|
|
type: Boolean,
|
|
default: false
|
|
}
|
|
},
|
|
data() {
|
|
return {}
|
|
},
|
|
computed: {
|
|
iVisible: {
|
|
get() {
|
|
return this.visible
|
|
},
|
|
set(val) {
|
|
this.$emit('update:visible', val)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.processing-dialog {
|
|
::v-deep .el-dialog__body {
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
|
|
.spinner {
|
|
width: 100px;
|
|
height: 100px;
|
|
border: 5px solid rgba(0, 0, 0, 0.1);
|
|
border-radius: 50%;
|
|
border-top-color: var(--color-primary);
|
|
animation: spin 1s infinite linear;
|
|
}
|
|
|
|
#load {
|
|
display: flex;
|
|
justify-content: center;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
</style>
|