Add ripple
parent
1fdc492a32
commit
3e1e8aebd5
|
@ -6,7 +6,7 @@
|
||||||
<Menu :model="items">
|
<Menu :model="items">
|
||||||
<template #item="{ item, props }">
|
<template #item="{ item, props }">
|
||||||
<router-link v-if="item.route" v-slot="{ href, navigate }" :to="item.route" custom>
|
<router-link v-if="item.route" v-slot="{ href, navigate }" :to="item.route" custom>
|
||||||
<a :href="href" v-bind="props.action" @click="navigate">
|
<a v-ripple :href="href" v-bind="props.action" @click="navigate">
|
||||||
<span :class="item.icon" />
|
<span :class="item.icon" />
|
||||||
<span class="ml-2">{{ item.label }}</span>
|
<span class="ml-2">{{ item.label }}</span>
|
||||||
</a>
|
</a>
|
||||||
|
@ -54,7 +54,7 @@ export default {
|
||||||
<Menu :model="items">
|
<Menu :model="items">
|
||||||
<template #item="{ item, props }">
|
<template #item="{ item, props }">
|
||||||
<router-link v-if="item.route" v-slot="{ href, navigate }" :to="item.route" custom>
|
<router-link v-if="item.route" v-slot="{ href, navigate }" :to="item.route" custom>
|
||||||
<a :href="href" v-bind="props.action" @click="navigate">
|
<a v-ripple :href="href" v-bind="props.action" @click="navigate">
|
||||||
<span :class="item.icon" />
|
<span :class="item.icon" />
|
||||||
<span class="ml-2">{{ item.label }}</span>
|
<span class="ml-2">{{ item.label }}</span>
|
||||||
</a>
|
</a>
|
||||||
|
@ -72,7 +72,7 @@ export default {
|
||||||
<Menu :model="items">
|
<Menu :model="items">
|
||||||
<template #item="{ item, props }">
|
<template #item="{ item, props }">
|
||||||
<router-link v-if="item.route" v-slot="{ href, navigate }" :to="item.route" custom>
|
<router-link v-if="item.route" v-slot="{ href, navigate }" :to="item.route" custom>
|
||||||
<a :href="href" v-bind="props.action" @click="navigate">
|
<a v-ripple :href="href" v-bind="props.action" @click="navigate">
|
||||||
<span :class="item.icon" />
|
<span :class="item.icon" />
|
||||||
<span class="ml-2">{{ item.label }}</span>
|
<span class="ml-2">{{ item.label }}</span>
|
||||||
</a>
|
</a>
|
||||||
|
@ -120,7 +120,7 @@ export default {
|
||||||
<Menu :model="items">
|
<Menu :model="items">
|
||||||
<template #item="{ item, props }">
|
<template #item="{ item, props }">
|
||||||
<router-link v-if="item.route" v-slot="{ href, navigate }" :to="item.route" custom>
|
<router-link v-if="item.route" v-slot="{ href, navigate }" :to="item.route" custom>
|
||||||
<a :href="href" v-bind="props.action" @click="navigate">
|
<a v-ripple :href="href" v-bind="props.action" @click="navigate">
|
||||||
<span :class="item.icon" />
|
<span :class="item.icon" />
|
||||||
<span class="ml-2">{{ item.label }}</span>
|
<span class="ml-2">{{ item.label }}</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in New Issue