widget-comment.vue
364 Bytes
<template>
<WidgetIconBtn type="msg" :text="num" :option="selfOption"></WidgetIconBtn>
</template>
<script>
export default {
name: 'WidgetComment',
props: {
num: [String, Number],
option: Object
},
computed: {
selfOption() {
let option = this.option || {};
option.canSelect = false;
return option;
}
}
};
</script>