From 3b88dde885f823598547c7b163c99929f30eaa2e Mon Sep 17 00:00:00 2001 From: wcq <744800102@qq.com> Date: Wed, 26 Apr 2023 15:43:48 +0800 Subject: [PATCH] cg --- .../IndexCalModelEdit/indexCalModelEditPlusPlus.vue | 8 +++++++- src/components/IndexCal/types.ts | 9 ++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/components/IndexCal/IndexCalModelEdit/indexCalModelEditPlusPlus.vue b/src/components/IndexCal/IndexCalModelEdit/indexCalModelEditPlusPlus.vue index bda3002..d33edd8 100644 --- a/src/components/IndexCal/IndexCalModelEdit/indexCalModelEditPlusPlus.vue +++ b/src/components/IndexCal/IndexCalModelEdit/indexCalModelEditPlusPlus.vue @@ -108,9 +108,15 @@ + v-for="item in ['string', 'int', 'number', 'float', 'file', 'numberArray', 'gearPositionWeight']"> +
+ + + + +
diff --git a/src/components/IndexCal/types.ts b/src/components/IndexCal/types.ts index e4dd3b3..72fa398 100644 --- a/src/components/IndexCal/types.ts +++ b/src/components/IndexCal/types.ts @@ -20,19 +20,26 @@ interface ValueFile extends BaseValueConfig { interface ValueNumberArray extends BaseValueConfig { type: "numberArray"; } +interface ValueGearPositionWeight extends BaseValueConfig { + type: "gearPositionWeight"; +} type ValueConfig = | ValueString | ValueInt | ValueFloat | ValueNumber | ValueFile - | ValueNumberArray; + | ValueNumberArray + | ValueGearPositionWeight; interface CodeConfig { python: string; js: string; } type Lang = "python" | "js"; + + + interface Index { id: number; indexPath?: string;