V 2.2.9 自动匹配,手动排序
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { defineStore } from "pinia";
|
||||
|
||||
export const useImageStore = defineStore('image', {
|
||||
state: () => ({
|
||||
dragTarget: null
|
||||
}),
|
||||
getters: {
|
||||
GetDragTarget() {
|
||||
return this.dragTarget;
|
||||
}
|
||||
|
||||
},
|
||||
actions: {
|
||||
SetDragTarget(target) {
|
||||
this.dragTarget = target;
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,68 @@
|
||||
import { defineStore } from "pinia";
|
||||
|
||||
export const usePromptStore = defineStore('prompt', {
|
||||
state: () => ({
|
||||
// 提示词排序
|
||||
prompt_sort: [],
|
||||
selectStyle: [],
|
||||
suffix: null, // 后缀
|
||||
prefix: null, // 前缀
|
||||
image_generate_category: null, // 选择生图的分类(sd,mj,d3)
|
||||
|
||||
isInit: false
|
||||
}),
|
||||
getters: {
|
||||
// 获取提示词排序
|
||||
GetPromptSort() {
|
||||
return this.prompt_sort;
|
||||
},
|
||||
// 获取选中的风格
|
||||
GetSelectStyle() {
|
||||
return this.selectStyle
|
||||
},
|
||||
|
||||
// 获取前缀
|
||||
GetPrefix() {
|
||||
return this.prefix;
|
||||
},
|
||||
|
||||
// 获取后缀
|
||||
GetSuffix() {
|
||||
return this.suffix;
|
||||
},
|
||||
|
||||
// 获取生图分类
|
||||
GetImageGenerateCategory() {
|
||||
return this.image_generate_category;
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
|
||||
// 更新提示词排序
|
||||
InitPromptSort(value) {
|
||||
|
||||
this.prompt_sort = value;
|
||||
},
|
||||
|
||||
// 更新
|
||||
UpdateSelectStyleSort(value) {
|
||||
this.selectStyle = value;
|
||||
},
|
||||
|
||||
// 更新前缀
|
||||
UpdatePrefix(value) {
|
||||
this.prefix = value;
|
||||
},
|
||||
|
||||
// 更新后缀
|
||||
UpdateSuffix(value) {
|
||||
this.suffix = value;
|
||||
},
|
||||
|
||||
// 更新生图分类
|
||||
UpdateImageGenerateCategory(value) {
|
||||
this.image_generate_category = value;
|
||||
}
|
||||
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user