|
@@ -1,7 +1,7 @@
|
|
<template>
|
|
<template>
|
|
<div>
|
|
<div>
|
|
<div class="text-container" :style="{height:height,width:width}">
|
|
<div class="text-container" :style="{height:height,width:width}">
|
|
- <ul class="allDemeanor">
|
|
|
|
|
|
+ <ul class="allDemeanor" @mouseover="handleMouseOver" @mouseleave="handleMouseLeave">
|
|
<li v-for="(item,index) in demeanorList" class="info">
|
|
<li v-for="(item,index) in demeanorList" class="info">
|
|
<span style="padding-left: 20px; display: inline-block; width: 20%;">{{parseTime(item.date, '{yyyy}-{mm}-{dd}')}}</span>
|
|
<span style="padding-left: 20px; display: inline-block; width: 20%;">{{parseTime(item.date, '{yyyy}-{mm}-{dd}')}}</span>
|
|
<span style="padding-left: 20px; display: inline-block; width: 80%;" id="demeanor-title" @click="handleSee(item.url)">{{item.title}}</span>
|
|
<span style="padding-left: 20px; display: inline-block; width: 80%;" id="demeanor-title" @click="handleSee(item.url)">{{item.title}}</span>
|
|
@@ -40,6 +40,14 @@
|
|
this.listDemeanorNoPage();
|
|
this.listDemeanorNoPage();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ handleMouseOver() {
|
|
|
|
+ let elem = document.querySelector('.allDemeanor');
|
|
|
|
+ elem.style['animation-play-state'] = 'paused';
|
|
|
|
+ },
|
|
|
|
+ handleMouseLeave() {
|
|
|
|
+ let elem = document.querySelector('.allDemeanor');
|
|
|
|
+ elem.style['animation-play-state'] = 'running';
|
|
|
|
+ },
|
|
handleSee(url) {
|
|
handleSee(url) {
|
|
window.open(process.env.VUE_APP_BASE_API + url);
|
|
window.open(process.env.VUE_APP_BASE_API + url);
|
|
},
|
|
},
|