|
@@ -21,7 +21,7 @@
|
|
mode == 'floorplan' ? 'show_plane_selected' : 'show_plane_normal'
|
|
mode == 'floorplan' ? 'show_plane_selected' : 'show_plane_normal'
|
|
"
|
|
"
|
|
></ui-icon> -->
|
|
></ui-icon> -->
|
|
- 二维
|
|
|
|
|
|
+ {{ t('base.floorPlan') }}
|
|
</span>
|
|
</span>
|
|
<span :class="{ active: isDollhouse }" ref="dollhouse_ref" @click="changeMode('dollhouse')">
|
|
<span :class="{ active: isDollhouse }" ref="dollhouse_ref" @click="changeMode('dollhouse')">
|
|
<i
|
|
<i
|
|
@@ -34,7 +34,8 @@
|
|
<!-- <ui-icon
|
|
<!-- <ui-icon
|
|
:type="mode == 'dollhouse' ? 'show_3d_selected' : 'show_3d_normal'"
|
|
:type="mode == 'dollhouse' ? 'show_3d_selected' : 'show_3d_normal'"
|
|
></ui-icon> -->
|
|
></ui-icon> -->
|
|
- 三维
|
|
|
|
|
|
+ <!-- 三维 -->
|
|
|
|
+ {{ t('base.dollhouse') }}
|
|
</span>
|
|
</span>
|
|
<div class="background" ref="background"></div>
|
|
<div class="background" ref="background"></div>
|
|
</div>
|
|
</div>
|
|
@@ -43,6 +44,7 @@
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
import { computed, defineComponent, ref, watchEffect, watch, unref } from 'vue';
|
|
import { computed, defineComponent, ref, watchEffect, watch, unref } from 'vue';
|
|
|
|
+ import { useI18n } from '/@/hooks/useI18n';
|
|
import { propTypes } from '/@/utils/propTypes';
|
|
import { propTypes } from '/@/utils/propTypes';
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
@@ -54,6 +56,7 @@
|
|
},
|
|
},
|
|
emits: ['changeMode', 'toggleMap'],
|
|
emits: ['changeMode', 'toggleMap'],
|
|
setup(props, { emit }) {
|
|
setup(props, { emit }) {
|
|
|
|
+ const { t } = useI18n();
|
|
const refMiniMap = ref<Nullable<string>>(null);
|
|
const refMiniMap = ref<Nullable<string>>(null);
|
|
const ifShow = ref(false);
|
|
const ifShow = ref(false);
|
|
const background = ref<Nullable<HTMLElement>>(null);
|
|
const background = ref<Nullable<HTMLElement>>(null);
|
|
@@ -99,6 +102,7 @@
|
|
};
|
|
};
|
|
|
|
|
|
return {
|
|
return {
|
|
|
|
+ t,
|
|
changeMode,
|
|
changeMode,
|
|
refMiniMap,
|
|
refMiniMap,
|
|
ifShow,
|
|
ifShow,
|