| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <template>
- <div class="tip_modal" v-if="tipFlag" @mousewheel="mousewheel">
- <div class="modal_content">
- <div class="img"><img src="../img/crossMark.png" @click="closeModal"/></div>
- <p>{{ tipText }}</p>
- <div class="button">
- <div class="current_button" @click="closeModal">确定</div>
- <div class="current_button" @click="closeModal" v-if="btnFlag">取消</div>
- </div>
- </div>
- </div>
- </template>
- <script>
- export default {
- props: {
- tipFlag: {
- type: Boolean,
- default: false,
- },
- tipText: {
- type: String,
- default: "删除成功!!!",
- },
- btnFlag: {
- type: Boolean,
- default: false
- }
- },
- methods: {
- mousewheel: function (e) {
- e.preventDefault();
- },
- closeModal: function() {
- this.$emit('close_tip_modal');
- }
- },
- };
- </script>
- <style scoped lang="less">
- .tip_modal {
- position: fixed;
- left: 0;
- top: 0;
- height: 100vh;
- width: 100vw;
- background-color: rgba(127, 127, 127, 0.7);
- display: flex;
- justify-content: center;
- align-items: center;
- .modal_content {
- width: 400px;
- height: 200px;
- background-color: #fff;
- transform: translateY(-150px);
- .img {
- background-color: #0056a0;
- display: flex;
- justify-content: flex-end;
- align-items: center;
- height: 40px;
- padding-right: 15px;
- img {
- width: 30px;
- height: 30px;
- &:hover {
- cursor: pointer;
- }
- }
- }
- p {
- font-size: 16px;
- margin-left: 50px;
- margin-top: 30px;
- }
- .button {
- margin-top: 50px;
- display: flex;
- justify-content: center;
- }
- }
- }
- </style>
|