From 8fe8abd8d4fe7addf6fde9ba4a228a5a1bf2f959 Mon Sep 17 00:00:00 2001 From: Germey Date: Sat, 27 Apr 2024 02:14:18 +0800 Subject: [PATCH] update qrart --- src/components/qrart/ConfigPanel.vue | 70 +++ .../qrart/config/AspectRatioSelector.vue | 38 +- src/components/qrart/config/ContentInput.vue | 16 +- src/components/qrart/config/PromptInput.vue | 10 +- src/components/qrart/config/TypeSelector.vue | 12 +- src/components/qrart/tasks/TaskBriefList.vue | 140 ++++++ src/components/qrart/tasks/TaskPreview.vue | 408 ++++++++++++++++++ src/i18n/en/qrart.json | 34 ++ src/i18n/index.ts | 1 + src/layouts/Qrart.vue | 8 +- src/pages/qrart/Index.vue | 182 ++------ src/store/common/models.ts | 4 +- src/store/index.ts | 5 +- src/store/qrart/index.ts | 14 + 14 files changed, 755 insertions(+), 187 deletions(-) create mode 100644 src/components/qrart/ConfigPanel.vue create mode 100644 src/components/qrart/tasks/TaskBriefList.vue create mode 100644 src/components/qrart/tasks/TaskPreview.vue create mode 100644 src/i18n/en/qrart.json create mode 100644 src/store/qrart/index.ts diff --git a/src/components/qrart/ConfigPanel.vue b/src/components/qrart/ConfigPanel.vue new file mode 100644 index 00000000..559fa463 --- /dev/null +++ b/src/components/qrart/ConfigPanel.vue @@ -0,0 +1,70 @@ + + + + + diff --git a/src/components/qrart/config/AspectRatioSelector.vue b/src/components/qrart/config/AspectRatioSelector.vue index 52f5ff41..752d0d1b 100644 --- a/src/components/qrart/config/AspectRatioSelector.vue +++ b/src/components/qrart/config/AspectRatioSelector.vue @@ -1,6 +1,6 @@ @@ -9,10 +9,10 @@ import { defineComponent } from 'vue'; import { ElInput } from 'element-plus'; -export const DEFAULT_content = ''; +export const DEFAULT_CONTENT = ''; export default defineComponent({ - name: 'contentInput', + name: 'ContentInput', components: { ElInput }, @@ -35,7 +35,7 @@ export default defineComponent({ }, mounted() { if (!this.value) { - this.value = DEFAULT_content; + this.value = DEFAULT_CONTENT; } } }); @@ -43,17 +43,11 @@ export default defineComponent({ diff --git a/src/components/qrart/config/PromptInput.vue b/src/components/qrart/config/PromptInput.vue index 7f82ec0b..01d1f143 100644 --- a/src/components/qrart/config/PromptInput.vue +++ b/src/components/qrart/config/PromptInput.vue @@ -1,7 +1,7 @@ @@ -43,17 +43,11 @@ export default defineComponent({ diff --git a/src/components/qrart/config/TypeSelector.vue b/src/components/qrart/config/TypeSelector.vue index bcff307b..eba29138 100644 --- a/src/components/qrart/config/TypeSelector.vue +++ b/src/components/qrart/config/TypeSelector.vue @@ -1,6 +1,6 @@