派生自 wuyushui/SewerAndRainNetwork

zhangshuaibao
2021-03-29 17ba6febdaacf7563f7688bae473a4a89e914ff5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<template>
  <div class="public-bounced" v-show="flag">
    <div class="popup_title">{{ displayContent.Name }}</div>
    <div class="popup_bottom">
      <button @click="closePopup">确定</button>
      <button @click="closePopup">取消</button>
    </div>
  </div>
</template>
 
<script>
import '@/components/BaseNav/SolidWaste/directive'
 
export default {
  name: 'SolidContent',
  data () {
    return {
      displayContent: [],
      flag: false
    }
  },
  methods: {
    setData (data) {
      this.displayContent = data
      this.flag = true
    },
    closePopup () {
      this.flag = false
    }
  }
}
</script>
 
<style scoped>
.public-bounced {
  width: 80%;
  z-index: 499;
  position: absolute;
  top: 15%;
  left: 10%;
  background-color: rgba(128, 128, 128, 0.507);
  padding: 1%;
  border-radius: 20px;
  margin: 10% auto;
}
 
.popup_title {
  text-align: center;
  font-weight: 600;
  font-size: 30px;
}
 
.popup_center {
  padding: 10%;
  font-size: 20px;
}
 
.popup_bottom {
  display: flex;
  justify-content: space-around;
}
 
button {
  width: 25%;
  height: 20%;
  padding: 2%;
  border: 1px solid gray;
  border-radius: 10px;
}
 
button:nth-child(1) {
  background-color: orangered;
  color: white;
  font-size: 20px;
}
 
button:nth-child(2) {
  background-color: gray;
  color: black;
  font-size: 20px;
}
</style>