|
@@ -1,5 +1,7 @@
|
|
|
<template>
|
|
|
- <div class="null" v-if="data.length === 0" tabindex="0">no information...</div>
|
|
|
+ <div class="null" v-if="data.length === 0" tabindex="0">
|
|
|
+ no information...
|
|
|
+ </div>
|
|
|
<div class="SearchResearch" v-else>
|
|
|
<div
|
|
|
class="row"
|
|
@@ -12,13 +14,15 @@
|
|
|
:aria-description="item.h3"
|
|
|
>
|
|
|
<div class="left" v-if="item.cover">
|
|
|
- <img :src="item.cover" :alt="item.h3"
|
|
|
+ <img
|
|
|
+ :src="item.cover"
|
|
|
+ :alt="item.h3"
|
|
|
tabindex="0"
|
|
|
aria-label="Image link"
|
|
|
:aria-description="item.h3"
|
|
|
/>
|
|
|
</div>
|
|
|
- <div class="right" :class="{rightAC:!item.p}">
|
|
|
+ <div class="right" :class="{ rightAC: !item.p }">
|
|
|
<h3 v-html="item.h3" tabindex="0" aria-label="Link"></h3>
|
|
|
<p v-html="item.p" tabindex="0" aria-label="Link"></p>
|
|
|
</div>
|
|
@@ -80,7 +84,10 @@ export default {
|
|
|
temp = [...Publications];
|
|
|
} else {
|
|
|
temp = Publications.filter((v) => {
|
|
|
- return v.h3.includes(txt) || v.p.includes(txt);
|
|
|
+ return (
|
|
|
+ v.h3.toLowerCase().includes(txt.toLowerCase()) ||
|
|
|
+ v.p.toLowerCase().includes(txt.toLowerCase())
|
|
|
+ );
|
|
|
});
|
|
|
//
|
|
|
temp = temp.map((v) => {
|
|
@@ -159,10 +166,10 @@ export default {
|
|
|
line-height: 24px;
|
|
|
}
|
|
|
}
|
|
|
- .rightAC{
|
|
|
+ .rightAC {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
- &>h3{
|
|
|
+ & > h3 {
|
|
|
font-size: 24px;
|
|
|
padding-left: 20px;
|
|
|
padding-bottom: 40px;
|