add title on links
This commit is contained in:
부모
594b818515
커밋
321e5b1178
|
@ -13,6 +13,7 @@
|
|||
"dependencies": {
|
||||
"@nextcloud/axios": "^1.3.2",
|
||||
"@nextcloud/vue": "^1.4.0",
|
||||
"trim": "0.0.1",
|
||||
"vue": "^2.6.11"
|
||||
},
|
||||
"browserslist": [
|
||||
|
|
|
@ -26,7 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
|
||||
<ul class="side-menu-apps-list">
|
||||
<li v-for="app in apps" v-bind:class="{'side-menu-app': true, 'active': app.active}">
|
||||
<a v-bind:href="app.href">
|
||||
<a v-bind:href="app.href" v-bind:title="app.name">
|
||||
<span class="side-menu-app-icon" v-html="app.icon"></span>
|
||||
<span class="side-menu-app-text" v-html="app.name"></span>
|
||||
</a>
|
||||
|
@ -36,6 +36,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import trim from 'trim'
|
||||
|
||||
export default {
|
||||
name: 'SideMenu',
|
||||
data() {
|
||||
|
@ -71,7 +73,7 @@ export default {
|
|||
|
||||
this.apps.push({
|
||||
href: href,
|
||||
name: element.querySelector('span').innerHTML,
|
||||
name: trim(element.querySelector('span').innerHTML),
|
||||
icon: svg,
|
||||
active: element.classList.contains('active')
|
||||
});
|
||||
|
|
불러오는 중...
Reference in New Issue