From 2e14531745929390aeef67f51ccc23aebd72c613 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Fri, 19 Jan 2024 18:06:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/en.yaml | 1 + locales/zh-CN.yaml | 1 + src/router/modules/components.ts | 8 +++ src/views/components/statistic.vue | 84 ++++++++++++++++++++++++++++++ 4 files changed, 94 insertions(+) create mode 100644 src/views/components/statistic.vue diff --git a/locales/en.yaml b/locales/en.yaml index 82686ba92..29f983d7a 100644 --- a/locales/en.yaml +++ b/locales/en.yaml @@ -60,6 +60,7 @@ menus: hsDatePicker: Date Picker hsDateTimePicker: DateTimePicker hsTimePicker: TimePicker + hsStatistic: Statistic hsmenus: MultiLevel Menu hsmenu1: Menu1 hsmenu1-1: Menu1-1 diff --git a/locales/zh-CN.yaml b/locales/zh-CN.yaml index f1081ba04..5c7f396c9 100644 --- a/locales/zh-CN.yaml +++ b/locales/zh-CN.yaml @@ -60,6 +60,7 @@ menus: hsDatePicker: 日期选择器 hsDateTimePicker: 日期时间选择器 hsTimePicker: 时间选择器 + hsStatistic: 统计组件 hsmenus: 多级菜单 hsmenu1: 菜单1 hsmenu1-1: 菜单1-1 diff --git a/src/router/modules/components.ts b/src/router/modules/components.ts index 142e2df73..978a933c8 100644 --- a/src/router/modules/components.ts +++ b/src/router/modules/components.ts @@ -107,6 +107,14 @@ export default { title: $t("menus.hsbutton") } }, + { + path: "/components/statistic", + name: "Statistic", + component: () => import("@/views/components/statistic.vue"), + meta: { + title: $t("menus.hsStatistic") + } + }, { path: "/components/cascader", name: "Cascader", diff --git a/src/views/components/statistic.vue b/src/views/components/statistic.vue new file mode 100644 index 000000000..478ba59c0 --- /dev/null +++ b/src/views/components/statistic.vue @@ -0,0 +1,84 @@ + + + + + + + + + 统计组件 + + + + + + + + + + + + + + + + + Reset + + + + + + + + + 距离下个月还剩 + + + + {{ value2.format("YYYY-MM-DD") }} + + + + + + +