Skip to content

Commit 0b3c827

Browse files
committed
添加标识线页面
1 parent 935b6c5 commit 0b3c827

File tree

4 files changed

+24
-5
lines changed

4 files changed

+24
-5
lines changed

src/editor/annotaions.vue

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<template>
2+
<s-scroll-view>
3+
<div class="plot-data add-data">
4+
<s-icon name="add" />
5+
{{ t("buttons.add") }}
6+
<s-ripple attached></s-ripple>
7+
</div>
8+
<s-empty>{{ t("title.inDev") }}</s-empty>
9+
</s-scroll-view>
10+
</template>
11+
12+
<script setup lang="ts">
13+
import { useI18n } from "vue-i18n";
14+
const { t } = useI18n();
15+
</script>

src/editor/index.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ const { t } = useI18n();
2121
2222
import ImportBtn from "./import.vue";
2323
import DatumList from "./datumList.vue";
24+
import AnnotaionList from "./annotaions.vue";
2425
import GraphOptions from "./options.vue";
26+
2527
import OutputDrawer from "./output.vue";
2628
2729
import { computed, ref, watch } from "vue";
@@ -30,6 +32,7 @@ const currentTabIndex = computed(() => Number(currentTab.value));
3032
const transitionName = ref("");
3133
const tabs = [
3234
{ caption: "title.functions", component: DatumList },
35+
{ caption: "title.annotaions", component: AnnotaionList },
3336
{ caption: "title.graphOptions", component: GraphOptions },
3437
];
3538
watch(currentTabIndex, (newVal, oldVal) => {

src/editor/options.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<template>
22
<s-scroll-view>
33
<div id="options">
4-
54
<s-divider>{{ t("title.global") }}</s-divider>
65

76
<div class="option">
@@ -56,7 +55,7 @@
5655

5756
<script setup lang="ts">
5857
import { useI18n } from "vue-i18n";
59-
const { t ,locale} = useI18n();
58+
const { t, locale } = useI18n();
6059
</script>
6160

6261
<style>

src/i18n.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default {
5353
},
5454
inputs: {
5555
fnType: "图形类型",
56-
graphType: "渲染方式",
56+
graphType: "绘制方式",
5757
fn: "函数",
5858
range: "范围",
5959
color: "颜色",
@@ -79,12 +79,13 @@ export default {
7979
deleteSuccess: "已删除",
8080
moreOptions: "更多选项",
8181
copyFail: "复制失败",
82-
functions: "函数列表",
83-
graphOptions: "图形选项",
82+
functions: "图线列表",
83+
graphOptions: "绘制选项",
8484
inDev: "开发中",
8585
global: "全局",
8686
horizontal: "横轴",
8787
vertical: "纵轴",
88+
annotaions: "标线列表",
8889
},
8990
},
9091
"en-US": {
@@ -154,6 +155,7 @@ export default {
154155
global: "Global",
155156
horizontal: "Horizontal Axis",
156157
vertical: "Vertical Axis",
158+
annotaions: "Annotation list",
157159
},
158160
},
159161
},

0 commit comments

Comments
 (0)