| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <template>
- <el-dialog
- class="v-dialog"
- v-model="dialogVisibleShow"
- width="550"
- :show-close="false"
- >
- <template #header>
- <div class="dialog-header">
- <div class="">{{ title }}</div>
- <el-icon @click="close()" class="close-icon" color="#00FFF0" size="20px"><CircleCloseFilled /></el-icon>
- </div>
- </template>
- <div class="dialog-body">
- {{msg}}
- </div>
- <template #footer>
- <div class="dialog-footer">
- <div class="btn cancel-btn" @click="close()">
- 取消
- </div>
- <div class="btn confirm-btn" @click="confirm()">
- 确认
- </div>
- </div>
- </template>
- </el-dialog>
- </template>
- <script setup>
- import {toRefs} from "vue";
- let emit = defineEmits(["close","confirm"])
- let props = defineProps({
- dialogVisibleShow:{
- type: Boolean,
- required: true,
- },
- title: {
- type: String,
- required: true,
- },
- msg: {
- type: String,
- required: true,
- },
- })
- const {dialogVisibleShow,title,msg} = toRefs(props)
- function close(){
- emit("close")
- }
- function confirm(){
- emit("confirm")
- }
- </script>
- <style lang="scss" scoped>
- .v-dialog {
- .dialog-body {
- width: 100%;
- height: 120px;
- line-height: 120px;
- text-align: center;
- color: #fff;
- font-weight: bold;
- }
- .dialog-footer {
- color: #fff;
- display: flex;
- justify-content: flex-end;
- border-top: 1px solid rgba(6, 160, 194, 0.5);
- padding: 12px;
- .btn {
- padding: 8px 23px;
- font-weight: bold;
- cursor: pointer;
- }
- .cancel-btn {
- background: #052b33;
- border-radius: 5px;
- border: 1px solid #00fff0;
- }
- .confirm-btn {
- background: url("@/assets/img/znxy/ns_btn.png") no-repeat center center /
- 100% 100%;
- margin-left: 10px;
- }
- }
- }
- </style>
|