Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2397648
BtnRouter.vue
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
599 B
Referenced Files
None
Subscribers
None
BtnRouter.vue
View Options
<template>
<router-link :to="to" custom v-slot="{ navigate }">
<btn :class="className()" :icon="icon" @click="navigate">
<slot></slot>
</btn>
</router-link>
</template>
<script>
export default {
props: {
to: { type: [ Object, String ], default: () => {} },
icon: { type: [ Array, String ], default: '' },
},
methods: {
className() {
let label = this.to.length ? this.to : this.to.name
return ['btn', label.replace('/', '-')]
}
}
}
</script>
File Metadata
Details
Attached
Mime Type
text/html
Expires
Mon, Nov 3, 2:39 PM (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
361062
Default Alt Text
BtnRouter.vue (599 B)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment