|
@ -8,7 +8,8 @@ Vue.use(require('vue-shortkey'), { |
|
|
|
|
|
|
|
|
Vue.component('annotator', { |
|
|
Vue.component('annotator', { |
|
|
template: '<div @click="setSelectedRange">\ |
|
|
template: '<div @click="setSelectedRange">\ |
|
|
<span v-for="r in chunks"\ |
|
|
|
|
|
|
|
|
<span class="tagged-text"\ |
|
|
|
|
|
v-for="r in chunks"\ |
|
|
v-if="id2label[r.label]"\ |
|
|
v-if="id2label[r.label]"\ |
|
|
v-bind:class="{tag: id2label[r.label].text_color}"\ |
|
|
v-bind:class="{tag: id2label[r.label].text_color}"\ |
|
|
v-bind:style="{ color: id2label[r.label].text_color, backgroundColor: id2label[r.label].background_color }"\ |
|
|
v-bind:style="{ color: id2label[r.label].text_color, backgroundColor: id2label[r.label].background_color }"\ |
|
|