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