2020-05-17 22:19:45 +08:00
|
|
|
|
<template>
|
2021-02-28 14:50:52 +08:00
|
|
|
|
<el-dialog
|
|
|
|
|
title="提示"
|
|
|
|
|
class="reset__dialog"
|
|
|
|
|
:visible="showResetConfirm"
|
|
|
|
|
@close="$emit('close')"
|
|
|
|
|
>
|
2021-11-30 00:13:27 +08:00
|
|
|
|
<div class="text">此操作将丢失本地自定义样式,是否继续?</div>
|
2021-02-28 14:50:52 +08:00
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button :type="btnType" plain @click="$emit('close')">取 消</el-button>
|
|
|
|
|
<el-button :type="btnType" @click="$emit('confirm')" plain
|
|
|
|
|
>确 定</el-button
|
|
|
|
|
>
|
|
|
|
|
</div>
|
|
|
|
|
</el-dialog>
|
2020-05-17 22:19:45 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2020-10-20 20:03:36 +08:00
|
|
|
|
import { mapState } from "vuex";
|
|
|
|
|
export default {
|
2021-02-28 14:50:52 +08:00
|
|
|
|
props: {
|
|
|
|
|
showResetConfirm: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
default: false,
|
2020-10-20 20:03:36 +08:00
|
|
|
|
},
|
2021-02-28 14:50:52 +08:00
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
btnType() {
|
|
|
|
|
return this.nightMode ? "default" : "primary";
|
2020-10-20 20:03:36 +08:00
|
|
|
|
},
|
2021-02-28 14:50:52 +08:00
|
|
|
|
...mapState({
|
|
|
|
|
nightMode: (state) => state.nightMode,
|
|
|
|
|
}),
|
|
|
|
|
},
|
2020-10-20 20:03:36 +08:00
|
|
|
|
};
|
2020-05-17 22:19:45 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
2020-11-22 20:33:04 +08:00
|
|
|
|
/deep/ .el-dialog {
|
2021-02-28 14:50:52 +08:00
|
|
|
|
min-width: 440px;
|
2020-11-22 20:33:04 +08:00
|
|
|
|
}
|
2020-10-20 20:03:36 +08:00
|
|
|
|
.reset__dialog {
|
2021-02-28 14:50:52 +08:00
|
|
|
|
text-align: center;
|
2020-10-20 20:03:36 +08:00
|
|
|
|
}
|
2020-10-13 00:07:14 +08:00
|
|
|
|
|
2020-10-20 20:03:36 +08:00
|
|
|
|
.text {
|
2021-02-28 14:50:52 +08:00
|
|
|
|
text-align: center;
|
2020-10-20 20:03:36 +08:00
|
|
|
|
}
|
2020-10-13 00:07:14 +08:00
|
|
|
|
|
2020-10-20 20:03:36 +08:00
|
|
|
|
.dialog-footer {
|
2021-02-28 14:50:52 +08:00
|
|
|
|
text-align: center;
|
2020-10-20 20:03:36 +08:00
|
|
|
|
}
|
2020-10-13 00:07:14 +08:00
|
|
|
|
</style>
|