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 11
22
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 55 <!-- 暂时放这里 -->
66 <div class =" right-info" >
77 <lin-notify
8+ height =" 370"
89 @readMessages =" readMessages"
10+ :trigger =" 'click'"
911 :messages =" messages"
1012 @readAll =" readAll"
1113 @viewAll =" viewAll"
Original file line number Diff line number Diff line change 11<template >
2- <el-dropdown >
2+ <el-dropdown :trigger = " trigger " :placement = " placement " :hide-on-click = " hideOnClick " >
33 <div class =" notify" >
44 <el-badge :value =" value" class =" item" :hidden =" hidden" :max =" max" :is-dot =" isDot" >
55 <i :class =" icon" ></i >
66 </el-badge >
77 </div >
8- <el-dropdown-menu slot =" dropdown" style = " position : relative ; " >
8+ <el-dropdown-menu slot =" dropdown" >
99 <div class =" notify-title" >
1010 <p >消息提醒</p >
1111 <p class =" button" @click =" readAll" >全部已读</p >
1212 </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+ >
1519 <div class =" css-sumlaa" >
1620 <svg width =" 150" height =" 120" viewBox =" 0 0 150 120" fill =" currentColor" >
1721 <!-- eslint-disable-next-line -->
4347<script >
4448export default {
4549 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+ },
4663 max: {
4764 type: Number ,
4865 },
@@ -73,14 +90,6 @@ export default {
7390 return []
7491 },
7592 },
76- // unreadMessages: {
77- // type: Array,
78- // default: () => []
79- // },
80- // readedMessages: {
81- // type: Array,
82- // default: () => []
83- // }
8493 },
8594 data () {
8695 return {}
@@ -111,8 +120,6 @@ export default {
111120}
112121.content {
113122 overflow-y : auto ;
114- min-height : 369px ;
115- max-height : 369px ;
116123}
117124.css-nomessage {
118125 box-sizing : border-box ;
@@ -121,7 +128,6 @@ export default {
121128 align-items : center ;
122129 -webkit-box-pack : center ;
123130 justify-content : center ;
124- min-height : 369px ;
125131 display : flex ;
126132 margin : 0px ;
127133 flex : 1 1 0% ;
You can’t perform that action at this time.
0 commit comments