|
@@ -241,8 +241,8 @@ export default {
|
|
|
type: '',
|
|
|
img: '',
|
|
|
link: '',
|
|
|
- titleDisplayMode: 'always',
|
|
|
- titlePosition: 'top',
|
|
|
+ titleDisplayMode: 'always', // 'always' | 'never' | 'hover' 标题显示方式
|
|
|
+ titlePosition: 'top', // 'top' | 'bottom' | 'left' | 'right' | 'custom' 标题相对图标位置
|
|
|
ath: '',
|
|
|
atv: '',
|
|
|
size: 1,
|
|
@@ -261,13 +261,13 @@ export default {
|
|
|
if (!hotspotData.hotspotIconType) {
|
|
|
hotspotData.hotspotIconType = 'system'
|
|
|
}
|
|
|
- // v1.3把visible: Boolean换成了titleDisplayMode: 'always' | 'never' | 'hover'
|
|
|
+ // v1.3把visible: Boolean换成了titleDisplayMode
|
|
|
if (hotspotData.visible) {
|
|
|
hotspotData.titleDisplayMode = 'always'
|
|
|
} else if (hotspotData.visible === false) {
|
|
|
hotspotData.titleDisplayMode = 'never'
|
|
|
}
|
|
|
- // v1.3新增了titlePosition: 'top' | 'bottom' | 'left' | 'right' | 'custom'
|
|
|
+ // v1.3新增了titlePosition
|
|
|
if (!hotspotData.titlePosition) {
|
|
|
hotspotData.titlePosition = 'top'
|
|
|
}
|