Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F12490708
BtnRouter.vue
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
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
Tue, Oct 20, 12:13 AM (20 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1548761
Default Alt Text
BtnRouter.vue (599 B)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment