|
@@ -3,35 +3,73 @@
|
|
|
<div class="pos" data-aria-viewport-area tabindex="0"
|
|
|
aria-label aria-description="You've reached the path area; this area has three URLs; please use the tab key to go through the content."
|
|
|
>
|
|
|
- <span class="pos1">Your Position: </span>
|
|
|
- <Router-link to="/Layout/Home">Home></Router-link>
|
|
|
- <span>Search></span>
|
|
|
- <span>List></span>
|
|
|
+ <span class="pos1" tabindex="0">Your Position: </span>
|
|
|
+ <Router-link to="/Layout/Home"
|
|
|
+ tabindex="0"
|
|
|
+ aria-description="Home"
|
|
|
+ >
|
|
|
+ Home>
|
|
|
+ </Router-link>
|
|
|
+ <span
|
|
|
+ tabindex="0"
|
|
|
+ aria-label="Link"
|
|
|
+ aria-description="Search"
|
|
|
+ >
|
|
|
+ Search>
|
|
|
+ </span>
|
|
|
+ <span
|
|
|
+ tabindex="0"
|
|
|
+ aria-label="Link"
|
|
|
+ aria-description="List"
|
|
|
+ >
|
|
|
+ List>
|
|
|
+ </span>
|
|
|
</div>
|
|
|
- <div class="titleBox">
|
|
|
+ <div class="titleBox" tabindex="0">
|
|
|
Search
|
|
|
<span> {{num}} results</span>
|
|
|
</div>
|
|
|
<div class="searchForm" data-aria-interaction-area tabindex="0"
|
|
|
aria-label aria-description="You've reached the Search interactive section, please use the tab key to go through the content."
|
|
|
>
|
|
|
- <input class="searchWord" type="text" v-model="txt" />
|
|
|
- <div class="searchBtn" @click="searchBtn">Search</div>
|
|
|
+ <input class="searchWord" type="text" v-model="txt"
|
|
|
+ tabindex="0"
|
|
|
+ aria-description="Input keyword"
|
|
|
+ />
|
|
|
+ <div class="searchBtn"
|
|
|
+ @click="searchBtn"
|
|
|
+ @keydown.enter.passive="searchBtn"
|
|
|
+ tabindex="0"
|
|
|
+ aria-label="Button"
|
|
|
+ >
|
|
|
+ Search
|
|
|
+ </div>
|
|
|
</div>
|
|
|
<!-- 切换tab动态路由 -->
|
|
|
<div class="searchMenu" data-aria-viewport-area tabindex="0"
|
|
|
aria-label aria-description="You've reached the content area of the Search results page, please use the tab key to navigate through the content."
|
|
|
>
|
|
|
- <div v-for="item in tabData" :key="item.id">
|
|
|
+ <div v-for="item in tabData" :key="item.id" tabindex="-1">
|
|
|
<span
|
|
|
:class="{ active: cut === item.cut }"
|
|
|
class="txt"
|
|
|
@click="cutCom(item.cut)"
|
|
|
- >{{ item.name }}</span
|
|
|
+ @keydown.enter.passive="cutCom(item.cut)"
|
|
|
+ tabindex="0"
|
|
|
+ aria-label="Link"
|
|
|
>
|
|
|
+ {{ item.name }}
|
|
|
+ </span>
|
|
|
<span v-if="item.id !== 11"> | </span>
|
|
|
</div>
|
|
|
- <div class="more" @click="more" v-if="moreShow">
|
|
|
+ <div class="more"
|
|
|
+ v-if="moreShow"
|
|
|
+ @click="more"
|
|
|
+ @keydown.enter.passive="more"
|
|
|
+ tabindex="0"
|
|
|
+ aria-label="Button"
|
|
|
+ aria-description="More"
|
|
|
+ >
|
|
|
<span>More</span>
|
|
|
<span class="el-icon-caret-bottom"></span>
|
|
|
</div>
|
|
@@ -40,7 +78,7 @@
|
|
|
<div class="comm" data-aria-viewport-area tabindex="0"
|
|
|
aria-label :aria-description="`You've reached the content area of ${cut} list, please use the tab key to navigate through the content.`"
|
|
|
>
|
|
|
- <component ref="comSon" :is="cut" :txt='txt' :num.sync='num'></component>
|
|
|
+ <component ref="comSon" :is="cut" :txt='txt' :num.sync='num' tabindex="-1"></component>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|