refactoring

This commit is contained in:
2025-12-06 09:29:16 +02:00
parent d8a1a857d0
commit f7955404a9
13 changed files with 54 additions and 79 deletions
@@ -2,9 +2,6 @@
<slot name="activator" v-bind="activatorProps" @click="dialog = !dialog"></slot>
<v-dialog transition="dialog-bottom-transition" fullscreen v-model="dialog">
<v-card title="Assets">
<v-container v-if="type?.includes('GameObject')">
<v-btn v-for="(v, i) in InteractiveObjectTypes" @click="select(v, 'InteractiveObject')">{{ v.name }}</v-btn>
</v-container>
<AssetBrowser :query="query" @select="select" :hideFilter="true"></AssetBrowser>
<v-card-actions>
<v-btn text="Close" color="primary" @click="dialog = false"></v-btn>
@@ -15,8 +12,6 @@
<script>
import { InteractiveObjectTypes } from '../InteractiveObjects/InteractiveObject';
export default {
props:[
'modelValue', 'type'
@@ -24,7 +19,6 @@ export default {
emits:['select'],
data(){
return {
InteractiveObjectTypes,
query: {
type: { $in: this.$p.objectTypes.filter(t=>!this.type || this.type.includes(t.type)).map(t=>t.value) }
},