update mj panel

This commit is contained in:
AceDataCloud committed 2023-10-05 17:04:35 +08:00
1 parent 6c68c447c2
commit a4923acd46
11 files changed
+135 -31

No files matched your search

+2 -2
View File
@@ -15,7 +15,7 @@
import { defineComponent } from 'vue';
import { ElTooltip, ElButton } from 'element-plus';
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome';
import { ROUTE_CHAT_INDEX, ROUTE_PAINT_INDEX } from '@/router/constants';
import { ROUTE_CHAT_INDEX, ROUTE_MIDJOURNEY_INDEX } from '@/router/constants';
export default defineComponent({
name: 'Navigator',
@@ -34,7 +34,7 @@ export default defineComponent({
},
{
route: {
name: ROUTE_PAINT_INDEX
name: ROUTE_MIDJOURNEY_INDEX
},
icon: 'fa-solid fa-palette'
}
+32
View File
@@ -0,0 +1,32 @@
<template>
<ratio-selector />
</template>
<script>
import { defineComponent } from 'vue';
import RatioSelector from './RatioSelecor.vue';
export default defineComponent({
name: 'PresetPanel',
components: {
RatioSelector
},
data() {
return {
options: [
{
value: '1:1',
label: '1:1'
}
]
};
}
});
</script>
<style lang="scss">
.item {
width: 60px;
height: 100px;
}
</style>
@@ -0,0 +1,44 @@
<template>
<div>
<div v-for="(option, optionKey) in options" :key="optionKey" class="item">
<div class="preview" :class="option.label">
<div class="rect"></div>
</div>
<p>
{{ option.label }}
</p>
</div>
</div>
</template>
<script>
import { defineComponent } from 'vue';
export default defineComponent({
name: 'RatioSelector',
data() {
return {
options: [
{
value: '1:1',
label: '1:1'
}
]
};
}
});
</script>
<style lang="scss">
.item {
width: 30px;
height: 50px;
border: 2px solid red;
.preview {
width: 30px;
height: 30px;
border: 1px solid blue;
}
}
</style>