forked from Linho1219/function-plot-GUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimplicit.vue
More file actions
52 lines (49 loc) · 1.5 KB
/
implicit.vue
File metadata and controls
52 lines (49 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<template>
<div class="input-inner">
<div class="field main-fn">
<FunctionField
class="fn"
label="f(x,y)"
v-model="self.fn"
:identifiers="['x', 'y']"
/>
<span class="label styled"> =0 </span>
</div>
<AnimatedFold :folded="props.folded">
<s-divider>{{ t("data.more.dividerTitle") }}</s-divider>
<div class="input-inner-optional">
<div class="fields">
<!-- color -->
<span class="label">
{{ t("data.more.color") }}
<HelpIcon> {{ t("data.more.colorHelp") }} </HelpIcon>
</span>
<ColorPicker v-model="self.color" />
</div>
<div class="switches">
<!-- closed -->
<s-checkbox type="checkbox" v-model.lazy="self.closed">
{{ t("data.more.closed") }}
</s-checkbox>
</div>
</div>
</AnimatedFold>
</div>
</template>
<script setup lang="ts">
import { PrivateDataTypes } from "@/types/data";
import { toRef } from "vue";
import { useI18n } from "vue-i18n";
import { I18nSchema } from "@/i18n";
const { t } = useI18n<{ message: I18nSchema }>();
const props = defineProps<{
folded: boolean;
self: PrivateDataTypes.Implicit;
index: number;
}>();
const self = toRef(props, "self");
import FunctionField from "@/editor/inputs/subblocks/function.vue";
import AnimatedFold from "@/ui/animated/animatedFold.vue";
import ColorPicker from "./subblocks/colorPicker.vue";
import HelpIcon from "./subblocks/helpIcon.vue";
</script>