-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Germey
committed
Apr 26, 2024
1 parent
f3aa06c
commit 8fe8abd
Showing
14 changed files
with
755 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
<template> | ||
<div class="panel"> | ||
<div class="config"> | ||
<type-selector class="mb-4" /> | ||
<content-input class="mb-4" /> | ||
<prompt-input class="mb-4" /> | ||
<aspect-ratio-selector class="mb-4" /> | ||
</div> | ||
<div class="actions"> | ||
<el-button type="primary" class="btn" round @click="onGenerate"> | ||
{{ $t('qrart.button.generate') }} | ||
</el-button> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import { defineComponent } from 'vue'; | ||
import TypeSelector from './config/TypeSelector.vue'; | ||
import ContentInput from './config/ContentInput.vue'; | ||
import PromptInput from './config/PromptInput.vue'; | ||
import AspectRatioSelector from './config/AspectRatioSelector.vue'; | ||
import { ElButton } from 'element-plus'; | ||
export default defineComponent({ | ||
name: 'PresetPanel', | ||
components: { | ||
TypeSelector, | ||
ContentInput, | ||
PromptInput, | ||
AspectRatioSelector, | ||
ElButton | ||
}, | ||
emits: ['generate'], | ||
computed: { | ||
config() { | ||
return this.$store.state.qrart?.config; | ||
} | ||
}, | ||
methods: { | ||
onGenerate() { | ||
this.$emit('generate'); | ||
} | ||
} | ||
}); | ||
</script> | ||
<style lang="scss" scoped> | ||
.panel { | ||
height: 100%; | ||
padding: 15px; | ||
display: flex; | ||
flex-direction: column; | ||
.config { | ||
width: 100%; | ||
height: calc(100% - 50px); | ||
flex: 1; | ||
overflow-y: scroll; | ||
} | ||
.actions { | ||
height: 50px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
.btn { | ||
width: 100%; | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.