4 changed files with 87 additions and 1 deletions
-
BINsrc/assets/img/modal.png
-
72src/components/ClearModal.vue
-
13src/components/TimeSelect.vue
-
3vite.config.js
After Width: 400 | Height: 330 | Size: 15 KiB |
@ -0,0 +1,72 @@ |
|||
<template> |
|||
<div class="clear_modal"> |
|||
<div class="modal_content"> |
|||
<div class="cancel" @click="clear"></div> |
|||
<div class="ok" @click="handleOk"></div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script setup> |
|||
const props = defineProps({ |
|||
handleHidden: { |
|||
type: Function, |
|||
}, |
|||
clearSetting: { |
|||
type: Function, |
|||
}, |
|||
}) |
|||
|
|||
const clear = () => { |
|||
props.handleHidden() |
|||
} |
|||
|
|||
const handleOk = () => { |
|||
props.clearSetting() |
|||
props.handleHidden() |
|||
} |
|||
</script> |
|||
|
|||
<style lang="scss" scoped> |
|||
.clear_modal { |
|||
position: fixed; |
|||
top: 0; |
|||
left: 0; |
|||
right: 0; |
|||
bottom: 0; |
|||
background: rgba(23, 53, 112, 0.1); |
|||
z-index: 2; |
|||
display: flex; |
|||
align-items: center; |
|||
justify-content: center; |
|||
.modal_content { |
|||
width: 400px; |
|||
height: 330px; |
|||
border-radius: 20px; |
|||
background: #ffffff; |
|||
box-sizing: border-box; |
|||
overflow: hidden; |
|||
position: relative; |
|||
background: url(../assets/img/modal.png) no-repeat; |
|||
background-size: 100% 100%; |
|||
.cancel { |
|||
position: absolute; |
|||
width: 170px; |
|||
height: 60px; |
|||
border-radius: 467px; |
|||
opacity: 1; |
|||
left: 21px; |
|||
bottom: 19px; |
|||
} |
|||
.ok { |
|||
position: absolute; |
|||
width: 170px; |
|||
height: 60px; |
|||
border-radius: 467px; |
|||
opacity: 1; |
|||
left: 210px; |
|||
bottom: 19px; |
|||
} |
|||
} |
|||
} |
|||
</style> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue