|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<transition name="slide-right" mode="in-out">
|
|
|
- <div class="files" v-if="showFiles && !isEdit">
|
|
|
+ <div class="files" v-if="showFiles && !isEdit" >
|
|
|
<div class="info" ref="add$">
|
|
|
<button @click="onAdd">{{ $t('tag.addTag') }}</button>
|
|
|
<div>
|
|
@@ -8,7 +8,7 @@
|
|
|
>)
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="list" :style="`height:${listStyle};`">
|
|
|
+ <div class="list" :style="`height:${listStyle};`" :class="{ disabled: isFlying }">
|
|
|
<ul>
|
|
|
<li v-for="tag in tags" @click="onClick(tag)" :class="{ active: notify?.sid == tag.sid }">
|
|
|
<div class="title"><i></i>{{ tag.title }}</div>
|
|
@@ -83,8 +83,12 @@ const tags = inject('tags')
|
|
|
|
|
|
const notify = inject('notify')
|
|
|
const isEdit = inject('isEdit')
|
|
|
+const isFlying = inject('isFlying')
|
|
|
const onClick = tag => {
|
|
|
- notify.value = tag //{ event: 'focus', sid: props.tag.sid, tag: props.tag }
|
|
|
+ notify.value = null
|
|
|
+ nextTick(() => {
|
|
|
+ notify.value = tag //{ event: 'focus', sid: props.tag.sid, tag: props.tag }
|
|
|
+ })
|
|
|
}
|
|
|
let isAdd = false
|
|
|
const onAdd = () => {
|
|
@@ -261,7 +265,27 @@ watchEffect(() => {
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-onMounted(() => {})
|
|
|
+onMounted(() => {
|
|
|
+ // app.Camera.on('flying.started', pano => {
|
|
|
+ // store.commit('setFlying', true)
|
|
|
+ // })
|
|
|
+ // app.Camera.on('flying.ended', ({ targetPano }) => {
|
|
|
+ // store.commit('setFlying', false)
|
|
|
+ // })
|
|
|
+ // if (window.kankan) {
|
|
|
+ // console.error(window.kankan)
|
|
|
+ // } else if (window.laser) {
|
|
|
+ // window.laser.then(res => {
|
|
|
+ // console.error(res)
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // window[0].Scene.on('loaded', sdk => {
|
|
|
+ // console.error(e)
|
|
|
+ // })
|
|
|
+ // window[0].loaded.then(sdk => {
|
|
|
+ // console.error(sdk)
|
|
|
+ // })
|
|
|
+})
|
|
|
</script>
|
|
|
<style lang="scss" scoped>
|
|
|
button {
|
|
@@ -377,7 +401,7 @@ li {
|
|
|
justify-content: space-between;
|
|
|
font-size: 14px;
|
|
|
&.active {
|
|
|
- background-color: rgba(0, 118, 246, 0.1);
|
|
|
+ background-color: rgba(0, 118, 246, 0.3);
|
|
|
}
|
|
|
.title {
|
|
|
}
|
|
@@ -412,13 +436,13 @@ li {
|
|
|
height: 32px;
|
|
|
line-height: 32px;
|
|
|
&:hover {
|
|
|
- background-color: rgb(0, 118, 246, 0.1);
|
|
|
+ background-color: rgb(0, 118, 246, 0.3);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
&:hover {
|
|
|
- background-color: rgb(0, 118, 246, 0.1);
|
|
|
+ background-color: rgb(0, 118, 246, 0.3);
|
|
|
}
|
|
|
}
|
|
|
|