Skip to content

Commit 2807d7c

Browse files
committed
极坐标方程面板
1 parent 044afd7 commit 2807d7c

File tree

4 files changed

+40
-4
lines changed

4 files changed

+40
-4
lines changed

src/editor/dataList.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ import DataItem from "./data.vue";
3636
3737
import { useProfile } from "@/states";
3838
const profile = useProfile();
39+
40+
import "./inputs/inputs.scss";
3941
</script>
4042

4143
<style>

src/editor/inputs/implicit.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,4 @@ import FilledTextfield from "@/editor/inputs/subblocks/function.vue";
4444
import AnimatedFold from "@/ui/animated/animatedFold.vue";
4545
import ColorPicker from "./subblocks/colorPicker.vue";
4646
import HelpIcon from "./subblocks/helpIcon.vue";
47-
import "./inputs.scss";
4847
</script>

src/editor/inputs/linear.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,5 @@ import HelpIcon from "./subblocks/helpIcon.vue";
8282
import ColorPicker from "./subblocks/colorPicker.vue";
8383
import Domain from "./subblocks/domain.vue";
8484
import DerivatePane from "./subblocks/derivatePane.vue";
85-
import AnimatedFold from "@/ui/animated/animatedFold.vue";
86-
import "./inputs.scss";
85+
import AnimatedFold from "@/ui/animated/animatedFold.vue"
8786
</script>

src/editor/inputs/polar.vue

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,39 @@
99
v-model="self.r"
1010
/>
1111
</div>
12+
<AnimatedFold :folded="props.folded">
13+
<s-divider>{{ t("data.more.dividerTitle") }}</s-divider>
14+
<div class="input-inner-optional">
15+
<div class="fields">
16+
<!-- range -->
17+
<span class="label"> {{ t("data.more.range") }} </span>
18+
<Domain :self="self" />
19+
<!-- color -->
20+
<span class="label">
21+
{{ t("data.more.color") }}
22+
<HelpIcon> {{ t("data.more.colorHelp") }} </HelpIcon>
23+
</span>
24+
<ColorPicker v-model="self.color" />
25+
<!-- nSamples -->
26+
<span class="label"> {{ t("data.more.nSamples") }} </span>
27+
<s-text-field
28+
class="input monospace-inner"
29+
type="number"
30+
:label="t('data.more.nSamples')"
31+
v-model="self.nSamples"
32+
:min="1"
33+
@blur="if (!self.nSamples) self.nSamples = undefined;"
34+
></s-text-field>
35+
</div>
36+
<div class="switches">
37+
<!-- closed -->
38+
<s-checkbox type="checkbox" v-model.lazy="self.closed">
39+
{{ t("data.more.closed") }}
40+
</s-checkbox>
41+
</div>
42+
</div>
43+
</AnimatedFold>
1244
</div>
13-
1445
</template>
1546

1647
<script setup lang="ts">
@@ -27,4 +58,9 @@ const props = defineProps<{
2758
index: number;
2859
}>();
2960
const self = toRef(props, "self");
61+
62+
import HelpIcon from "./subblocks/helpIcon.vue";
63+
import ColorPicker from "./subblocks/colorPicker.vue";
64+
import Domain from "./subblocks/domain.vue";
65+
import AnimatedFold from "@/ui/animated/animatedFold.vue";
3066
</script>

0 commit comments

Comments
 (0)