|
@@ -59,10 +59,17 @@
|
|
|
/>
|
|
|
<span class="count">{{ hotspot.hotspotTitle.length }}/50</span>
|
|
|
</div>
|
|
|
- <div class="remark">
|
|
|
- {{ $i18n.t("hotspot.title_show_mode") }}
|
|
|
+ <div class="hotspot-show-wrapper">
|
|
|
+ <div class="remark">
|
|
|
+ {{ $i18n.t("hotspot.title_show_mode") }}
|
|
|
+ </div>
|
|
|
+ <Switcher
|
|
|
+ :value="tempHotpotLabelShow"
|
|
|
+ @change="onSwitcherChange"
|
|
|
+ ></Switcher>
|
|
|
</div>
|
|
|
- <TabbarSwitcher
|
|
|
+
|
|
|
+ <!-- <TabbarSwitcher
|
|
|
class="display-mode-selector"
|
|
|
:tabList="[
|
|
|
// $i18n.t('hotspot.show_on_hover'),
|
|
@@ -71,7 +78,7 @@
|
|
|
]"
|
|
|
:activeIdx="currentTitleDispayModeIdx"
|
|
|
@select="onSelectTitleDisplayMode"
|
|
|
- />
|
|
|
+ /> -->
|
|
|
<div class="remark">
|
|
|
{{ $i18n.t("hotspot.title_position") }}
|
|
|
</div>
|
|
@@ -197,6 +204,7 @@ import TabbarSwitcher from "@/components/shared/TabbarSwitcher.vue";
|
|
|
import TabbarSwitcherIcon from "@/components/shared/TabbarSwitcherIcon.vue";
|
|
|
import hotspotTypeList from "./hotspotTypeList.js";
|
|
|
import { isValidPhoneNumber } from "libphonenumber-js/max";
|
|
|
+import { tree } from "d3";
|
|
|
|
|
|
export default {
|
|
|
props: ["show", "data", "editTitle"],
|
|
@@ -209,6 +217,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ tempHotpotLabelShow: false,
|
|
|
hotspotTypeList,
|
|
|
hotspotIconTypeList: [
|
|
|
{
|
|
@@ -239,6 +248,18 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
|
+ "hotspot.titleDisplayMode": {
|
|
|
+ handler(val) {
|
|
|
+ console.log("titleDisplayMode", val);
|
|
|
+ if (val === "always") {
|
|
|
+ this.tempHotpotLabelShow = 1;
|
|
|
+ }
|
|
|
+ if (val === "never") {
|
|
|
+ this.tempHotpotLabelShow = 0;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ immediate: true,
|
|
|
+ },
|
|
|
"hotspot.fontSize": {
|
|
|
handler(val) {
|
|
|
const rangeValue = val / 12;
|
|
@@ -625,6 +646,16 @@ export default {
|
|
|
this.$emit("close");
|
|
|
this.$emit("save", this.hotspot);
|
|
|
},
|
|
|
+ onSwitcherChange(val) {
|
|
|
+ console.log("onSwitcherChange", val);
|
|
|
+ this.tempHotpotLabelShow = val;
|
|
|
+ if (val === 0) {
|
|
|
+ this.hotspot.titleDisplayMode = "never";
|
|
|
+ }
|
|
|
+ if (val === 1) {
|
|
|
+ this.hotspot.titleDisplayMode = "always";
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
@@ -763,5 +794,14 @@ export default {
|
|
|
width: 112px;
|
|
|
}
|
|
|
}
|
|
|
+ .hotspot-show-wrapper {
|
|
|
+ padding: 25px 0 10px 0;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ .remark {
|
|
|
+ margin: 0 !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|