scene designer
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
<template>
|
||||
<v-card :title="id == 'add' ? $l.createScenario : $l.editScenario" class="container my-3">
|
||||
<v-form class="pa-4" v-model="valid">
|
||||
<v-text-field :label="$l.name" v-model="object.name" :rules="[rules.required]"></v-text-field>
|
||||
</v-form>
|
||||
<!-- <v-card-actions>
|
||||
<v-btn @click="saveAndPreview" :loading="loading" prepend-icon="mdi-content-save" color="primary"
|
||||
:disabled="!valid">
|
||||
{{ $l.saveAndPreview }}
|
||||
</v-btn>
|
||||
<v-btn @click="publish" prepend-icon="mdi-publish" color="success" v-if="false && object.id">{{ $l.publish
|
||||
}}</v-btn>
|
||||
</v-card-actions> -->
|
||||
</v-card>
|
||||
<SceneDesigner v-model="object"></SceneDesigner>
|
||||
|
||||
<div class="sceneDrawer" >
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import SceneDesigner from '@/components/SceneDesigner/SceneDesigner.vue';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
object: {},
|
||||
valid: false,
|
||||
rules: {
|
||||
required: v => v ? true : this.$l.fieldRequired,
|
||||
requiredFile: v => (v?.length || this.id != 'add') ? true : this.$l.fieldRequired
|
||||
},
|
||||
loading: false,
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
id() {
|
||||
return this.$route.params?.id;
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user