data对象:
clearItem: [
{
func: "Clear Cookies",
info: "Cookies will be clear. When deleted, most sites will be signed out.",
event: "clearCookies"
},
{
func: "Clear Search History",
info: "Search history that was manually entered and accessed from the browser's search box will be cleared.",
event: "clearSearchCookies"
},
{
func: "Clear All Browsing Data",
info: "Clear your browsing history,search history including cookies.",
event: "clearAllBrowsingData"
}
],
html
<el-menu-item id = "clearBrowsingData" :key="item.func" class = "clear" v-for="item in clearItem" :style="menuClear">
<template @click="clearData(item.event)" v-slot:title>
<el-button tabindex="1" class="function-style" type="text">
{