mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-03 19:24:48 +08:00
changed code for develop branch
This commit is contained in:
parent
ff6471ce14
commit
556431a0da
1 changed files with 7 additions and 1 deletions
|
@ -24,7 +24,7 @@
|
|||
<strong v-if="includeNumbers" class="step-element-number">{{ index + 1 }}</strong>
|
||||
<i v-if="item.attributes.icon" class="fas" :class="item.attributes.icon"></i>
|
||||
<span :title="item.attributes.name" v-if="item.attributes.name">{{ item.attributes.name }}</span>
|
||||
<span v-else class="step-element-name-placeholder">{{ item.attributes.placeholder }}</span>
|
||||
<span v-else :title="getTitle(item)">{{ getTitle(item) }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</Draggable>
|
||||
|
@ -73,6 +73,12 @@
|
|||
this.$nextTick(() => {
|
||||
$(this.$refs.modal).modal('hide');
|
||||
});
|
||||
},
|
||||
getTitle(item) {
|
||||
let $item_html = $(item.attributes.text);
|
||||
$item_html.remove('table, img');
|
||||
let str = $item_html.text().trim();
|
||||
return str.length > 56 ? str.slice(0, 56) + "..." : str;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue