zydx-plus 1.33.351 → 1.33.352
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1713,9 +1713,14 @@ export default {
|
|
|
1713
1713
|
// const marginRight = Math.ceil(styles.getPropertyValue("margin-right").split('px')[0])
|
|
1714
1714
|
// let width = editing[0].clientWidth
|
|
1715
1715
|
if (this.readOnly) {
|
|
1716
|
+
let linkTypeArr = ['linkWorks', 'linkArticle', 'linkImage']
|
|
1716
1717
|
// this.bubbleData = this.interpositionData.filter(item => item.id === text)[0]
|
|
1717
1718
|
this.interpositionData.forEach(item => {
|
|
1718
1719
|
if(item.id === text){
|
|
1720
|
+
if (linkTypeArr.indexOf(item.type) !== -1){
|
|
1721
|
+
window.open(item.url, '_blank');
|
|
1722
|
+
return
|
|
1723
|
+
}
|
|
1719
1724
|
item.isShow=true
|
|
1720
1725
|
}
|
|
1721
1726
|
})
|
|
@@ -1723,6 +1728,10 @@ export default {
|
|
|
1723
1728
|
// this.bubbleData = this.interpositionData.filter(item => item.id === href)[0]
|
|
1724
1729
|
this.interpositionData.forEach(item => {
|
|
1725
1730
|
if(item.id === href){
|
|
1731
|
+
if (linkTypeArr.indexOf(item.type) !== -1){
|
|
1732
|
+
window.open(item.url, '_blank');
|
|
1733
|
+
return
|
|
1734
|
+
}
|
|
1726
1735
|
item.isShow=true
|
|
1727
1736
|
}
|
|
1728
1737
|
})
|