@ -1,9 +0,0 @@
|
||||
<template>
|
||||
私信聊天
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: 'chatIndex', // 添加组件名称
|
||||
// 其他组件选项
|
||||
}
|
||||
</script>
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
After Width: | Height: | Size: 11 KiB |
@ -0,0 +1,26 @@
|
||||
/* 给圆形定义关键帧 */
|
||||
@keyframes switch {
|
||||
0% {
|
||||
left: calc(4px * 0.5);
|
||||
}
|
||||
60% {
|
||||
left:calc(4px * 0.5);
|
||||
width: calc(112px * 0.5);
|
||||
}
|
||||
100%{
|
||||
left: calc(104px * 0.5);
|
||||
}
|
||||
}
|
||||
@keyframes reverse_switch {
|
||||
0% {
|
||||
left: calc(104px * 0.5);
|
||||
}
|
||||
60%{
|
||||
left: calc(74px * 0.5);
|
||||
width: calc(112px * 0.5);
|
||||
}
|
||||
100%{
|
||||
left: calc(4px * 0.5);
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
Before Width: | Height: | Size: 294 KiB After Width: | Height: | Size: 294 KiB |
Before Width: | Height: | Size: 118 KiB After Width: | Height: | Size: 118 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 829 B |
Before Width: | Height: | Size: 761 KiB After Width: | Height: | Size: 761 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 196 KiB After Width: | Height: | Size: 196 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
@ -1,6 +1,9 @@
|
||||
<template>
|
||||
<heade/>
|
||||
<div></div>
|
||||
|
||||
<heade/>
|
||||
<div>
|
||||
<RouterView />
|
||||
</div>
|
||||
|
||||
<router-view/>
|
||||
|
@ -0,0 +1,67 @@
|
||||
<template>
|
||||
<!-- <h4>我是动效滚动</h4> -->
|
||||
<div>
|
||||
<input type="checkbox" id="honneyBtn" v-model="status">
|
||||
<label for="honneyBtn" class="test">{{ status }}</label>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default{
|
||||
data(){
|
||||
return{
|
||||
status: false
|
||||
}
|
||||
},
|
||||
mounted(){
|
||||
// 后端接口获取好友状态
|
||||
this.status = true
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
:root{
|
||||
--prpotion: 0.5;
|
||||
}
|
||||
input{
|
||||
display: none;
|
||||
}
|
||||
label{
|
||||
/* 圆角矩形组件 */
|
||||
display: block;
|
||||
position: relative;
|
||||
background-color:#979797;
|
||||
width: calc(200px * 0.5);
|
||||
height: calc(100px * 0.5);
|
||||
border-radius: 200px;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
transition: all 0.37s ease-in;
|
||||
}
|
||||
label::before{
|
||||
/* 圆角矩形里面的按钮 */
|
||||
content: '';
|
||||
position: absolute;
|
||||
width: calc(82px * 0.5);
|
||||
height: calc(82px * 0.5);
|
||||
border-radius: 50%;
|
||||
border: calc(2px * 0.5) solid #b0b0b0;
|
||||
background-color: white;
|
||||
top: calc(7px * 0.5);
|
||||
left: calc(5px * 0.5);
|
||||
transition: all 1s ease-in;
|
||||
animation: reverse_switch 0.35s forwards;
|
||||
}
|
||||
input:checked + label{
|
||||
background-color: #FE4E96;
|
||||
}
|
||||
input:checked +label::before{
|
||||
border:calc(2px * 0.5) solid #fc5ea0;
|
||||
animation: switch 0.35s forwards;
|
||||
}
|
||||
|
||||
@import url('../../assets/css/chat/honneyBtn.css');
|
||||
|
||||
</style>
|