From daf128411bc7447b652e4b6c19e6de335055a307 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A5=BF=E7=93=9C=C2=B0?= Date: Thu, 10 Apr 2025 15:56:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AC=A1=E6=95=B0=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/calc/type.ts | 6 + frontend/src/assets/img/icon/input_lower.png | Bin 0 -> 185 bytes frontend/src/assets/img/icon/input_upper.png | Bin 0 -> 164 bytes frontend/src/components/calc/input/index.vue | 85 +++++--- frontend/src/pages/Character/Result/Index.vue | 2 +- .../Character/Result/components/Skill.vue | 184 ++++++++++++++---- frontend/src/stores/config.ts | 23 ++- frontend/src/stores/info.ts | 12 +- 8 files changed, 239 insertions(+), 73 deletions(-) create mode 100644 frontend/src/assets/img/icon/input_lower.png create mode 100644 frontend/src/assets/img/icon/input_upper.png diff --git a/frontend/src/api/calc/type.ts b/frontend/src/api/calc/type.ts index 4c58f8df..fb4759a6 100644 --- a/frontend/src/api/calc/type.ts +++ b/frontend/src/api/calc/type.ts @@ -31,3 +31,9 @@ export interface IResultSuit{ rarity:string value:string } + +export interface IResultSkillCount { + count: number + mode: string + name: string +} diff --git a/frontend/src/assets/img/icon/input_lower.png b/frontend/src/assets/img/icon/input_lower.png new file mode 100644 index 0000000000000000000000000000000000000000..7e6aa83f1b48d6e9e759d2ac06fb591c241f1dbf GIT binary patch literal 185 zcmeAS@N?(olHy`uVBq!ia0vp^+(696!3HEnjZ%I9DV-A6h?3y^w370~qErU&{LJEv zO!Z;~*NT#&#N?9vA_b?M#N_Pc#1e(D)S}|d{5+L6xl4fhJUm?-Ln`JZ|M`$~yq-)IwV@+w$!rYZRy gHQ;^0<;cJwJ6&$ty^ -import { useVModel } from "@vueuse/core" -import { defineComponent } from "vue" +import { useVModel } from '@vueuse/core' +import { defineComponent } from 'vue' export default defineComponent({ - name: "IInput", + name: 'IInput', props: { modelValue: { type: [String, Number], - default: "" - } + default: '', + }, + type: { + type: String, + default: 'text', + }, + min: { + type: Number, + default: 0, + }, }, setup(props) { - const modelValue = useVModel(props, "modelValue") - return () => - } + const modelValue = useVModel(props, 'modelValue') + return () => ( +
+ + {props.type == 'number' && ( +
+
(modelValue.value = Number(modelValue.value) + 1)} + >
+
(modelValue.value = Math.max(Number(modelValue.value) - 1, props.min))} + >
+
+ )} +
+ ) + }, }) diff --git a/frontend/src/pages/Character/Result/Index.vue b/frontend/src/pages/Character/Result/Index.vue index 347ab41f..431c65d2 100644 --- a/frontend/src/pages/Character/Result/Index.vue +++ b/frontend/src/pages/Character/Result/Index.vue @@ -25,7 +25,7 @@ const infoStore = useInfoStore() const setStandard = () => { if(!configStore?.result?.state?.uuid) return - infoStore.setStandard(configStore.result.state) + infoStore.setStandard(configStore.result.state,configStore.skillCountConfig) } const clearStandard = () => { diff --git a/frontend/src/pages/Character/Result/components/Skill.vue b/frontend/src/pages/Character/Result/components/Skill.vue index dc2c6bce..5a4b219d 100644 --- a/frontend/src/pages/Character/Result/components/Skill.vue +++ b/frontend/src/pages/Character/Result/components/Skill.vue @@ -2,55 +2,176 @@
-
技能
-
CD
-
伤害
-
秒伤
+
+ {{ header.label }} + +
+
占比
-
-
+
+
Lv {{ skill.lv }}
-
{{ skill.name }} {{ !skill.mode ? '' : `[${skill.mode}]` }}
+
{{ skill.name }} {{ !skill.mode ? '' : `[${skill.mode}]` }}
+
+
{{ skill.cd.toFixed(1) }}s
+
+
-
{{ skill.cd.toFixed(1) }}s
-
+
{{showTotal}}