You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ngcp-csc-ui/src/components/CscListMenuItem.vue

48 lines
582 B

<template>
<q-item
v-close-popup
clickable
v-bind="$attrs"
@click="click"
>
<q-item-section
side
>
<q-icon
:name="icon"
:color="iconColor"
/>
</q-item-section>
<q-item-section>
<slot />
</q-item-section>
</q-item>
</template>
<script>
export default {
name: 'CscListMenuItem',
props: {
icon: {
type: String,
default: ''
},
iconColor: {
type: String,
default: ''
}
},
data () {
return {}
},
methods: {
click () {
this.$emit('click')
}
}
}
</script>
<style lang="stylus" rel="stylesheet/stylus">
</style>