11<template >
2- <span class =" input-title styled" >r=</span >
3- <s-text-field
4- class =" styled"
5- ref =" inputBox"
6- label =" f(x,y)"
7- v-model =" self.text"
8- ></s-text-field >
9- <s-text-field
10- class =" styled"
11- ref =" inputBox"
12- label =" x"
13- v-model =" self.location[0]"
14- ></s-text-field >
15- <s-text-field
16- class =" styled"
17- ref =" inputBox"
18- label =" y"
19- v-model =" self.location[1]"
20- ></s-text-field >
21- <s-divider >{{ t("title.moreOptions") }}</s-divider >
2+ <div class =" input-inner vector" >
3+ <div class =" fields" >
4+ <span class =" input-title" >{{ t("data.main.text") }}</span >
5+ <s-text-field
6+ v-model =" self.text"
7+ :label =" t('data.main.text')"
8+ class =" text-input-box"
9+ ></s-text-field >
10+ <span class =" input-title" >{{ t("data.main.location") }}</span >
11+ <div class =" tuple" >
12+ <span class =" tuple-label styled" >(</span >
13+ <s-text-field
14+ class =" styled tuple-input"
15+ label =" x₀"
16+ v-model =" locationX"
17+ type =" number"
18+ ></s-text-field >
19+ <span class =" tuple-label styled" >,</span >
20+ <s-text-field
21+ class =" styled tuple-input"
22+ label =" y₀"
23+ v-model =" locationY"
24+ type =" number"
25+ ></s-text-field >
26+ <span class =" tuple-label styled" >)</span >
27+ </div >
28+ </div >
29+ <AnimatedFold :folded =" props.folded" >
30+ <s-divider >{{ t("data.more.dividerTitle") }}</s-divider >
31+ <div class =" input-inner-optional" >
32+ <div class =" fields" >
33+ <!-- color -->
34+ <span class =" label" >
35+ {{ t("data.more.color") }}
36+ <HelpIcon > {{ t("data.more.colorHelp") }} </HelpIcon >
37+ </span >
38+ <ColorPicker v-model =" self.color" />
39+ </div >
40+ </div >
41+ </AnimatedFold >
42+ </div >
2243</template >
2344
2445<script setup lang="ts">
2546import { PrivateDataTypes } from " @/types/data" ;
26- import { toRef } from " vue" ;
47+ import { ref , toRef } from " vue" ;
2748import { useI18n } from " vue-i18n" ;
2849import { I18nSchema } from " @/i18n" ;
2950const { t } = useI18n <{ message: I18nSchema }>();
@@ -34,4 +55,18 @@ const props = defineProps<{
3455 index: number ;
3556}>();
3657const self = toRef (props , " self" );
58+
59+ import AnimatedFold from " @/ui/animated/animatedFold.vue" ;
60+ import HelpIcon from " ./subblocks/helpIcon.vue" ;
61+ import ColorPicker from " ./subblocks/colorPicker.vue" ;
62+
63+ const locationX = ref <number | " " >(self .value .location [0 ]);
64+ const locationY = ref <number | " " >(self .value .location [1 ]);
3765 </script >
66+
67+ <style lang="scss">
68+ .text-input-box {
69+ width : 100% ;
70+ font-size : 18px ;
71+ }
72+ </style >
0 commit comments