File tree Expand file tree Collapse file tree 3 files changed +24
-16
lines changed Expand file tree Collapse file tree 3 files changed +24
-16
lines changed Original file line number Diff line number Diff line change 1
1
2
2
3
- VUE_APP_BASE_URL = ' http://localhost:5000/ '
3
+ VUE_APP_BASE_URL = ' http://api.s.colorful3.com '
Original file line number Diff line number Diff line change 5
5
<!-- 暂时放这里 -->
6
6
<div class =" right-info" >
7
7
<lin-notify
8
+ height =" 370"
8
9
@readMessages =" readMessages"
10
+ :trigger =" 'click'"
9
11
:messages =" messages"
10
12
@readAll =" readAll"
11
13
@viewAll =" viewAll"
Original file line number Diff line number Diff line change 1
1
<template >
2
- <el-dropdown >
2
+ <el-dropdown :trigger = " trigger " :placement = " placement " :hide-on-click = " hideOnClick " >
3
3
<div class =" notify" >
4
4
<el-badge :value =" value" class =" item" :hidden =" hidden" :max =" max" :is-dot =" isDot" >
5
5
<i :class =" icon" ></i >
6
6
</el-badge >
7
7
</div >
8
- <el-dropdown-menu slot =" dropdown" style = " position : relative ; " >
8
+ <el-dropdown-menu slot =" dropdown" >
9
9
<div class =" notify-title" >
10
10
<p >消息提醒</p >
11
11
<p class =" button" @click =" readAll" >全部已读</p >
12
12
</div >
13
- <div class =" content" >
14
- <div class =" css-nomessage" v-if =" messages.length === 0" >
13
+ <div class =" content" :style =" { 'min-height': height + 'px', 'max-height': height + 'px' }" >
14
+ <div
15
+ class =" css-nomessage"
16
+ v-if =" messages.length === 0"
17
+ :style =" { 'min-height': height + 'px', 'max-height': height + 'px' }"
18
+ >
15
19
<div class =" css-sumlaa" >
16
20
<svg width =" 150" height =" 120" viewBox =" 0 0 150 120" fill =" currentColor" >
17
21
<!-- eslint-disable-next-line -->
43
47
<script >
44
48
export default {
45
49
props: {
50
+ height: {
51
+ type: [String , Number ],
52
+ default: 200 ,
53
+ },
54
+ trigger: {
55
+ type: String ,
56
+ },
57
+ placement: {
58
+ type: String ,
59
+ },
60
+ hideOnClick: {
61
+ type: Boolean ,
62
+ },
46
63
max: {
47
64
type: Number ,
48
65
},
@@ -73,14 +90,6 @@ export default {
73
90
return []
74
91
},
75
92
},
76
- // unreadMessages: {
77
- // type: Array,
78
- // default: () => []
79
- // },
80
- // readedMessages: {
81
- // type: Array,
82
- // default: () => []
83
- // }
84
93
},
85
94
data () {
86
95
return {}
@@ -111,8 +120,6 @@ export default {
111
120
}
112
121
.content {
113
122
overflow-y : auto ;
114
- min-height : 369px ;
115
- max-height : 369px ;
116
123
}
117
124
.css-nomessage {
118
125
box-sizing : border-box ;
@@ -121,7 +128,6 @@ export default {
121
128
align-items : center ;
122
129
-webkit-box-pack : center ;
123
130
justify-content : center ;
124
- min-height : 369px ;
125
131
display : flex ;
126
132
margin : 0px ;
127
133
flex : 1 1 0% ;
You can’t perform that action at this time.
0 commit comments