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 1/5] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1=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 @@ + + + + + From 0d6362db73292384e070a04347e174b9fdd2bd55 Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Fri, 19 Jan 2024 19:06:09 +0800 Subject: [PATCH 2/5] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=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 | 6 +- src/views/components/tag.vue | 172 +++++++++++++++++++++++++++++ 5 files changed, 185 insertions(+), 3 deletions(-) create mode 100644 src/views/components/tag.vue diff --git a/locales/en.yaml b/locales/en.yaml index 29f983d7a..797eb03f7 100644 --- a/locales/en.yaml +++ b/locales/en.yaml @@ -60,6 +60,7 @@ menus: hsDatePicker: Date Picker hsDateTimePicker: DateTimePicker hsTimePicker: TimePicker + hsTag: Tag hsStatistic: Statistic hsmenus: MultiLevel Menu hsmenu1: Menu1 diff --git a/locales/zh-CN.yaml b/locales/zh-CN.yaml index 5c7f396c9..02379836d 100644 --- a/locales/zh-CN.yaml +++ b/locales/zh-CN.yaml @@ -60,6 +60,7 @@ menus: hsDatePicker: 日期选择器 hsDateTimePicker: 日期时间选择器 hsTimePicker: 时间选择器 + hsTag: 标签 hsStatistic: 统计组件 hsmenus: 多级菜单 hsmenu1: 菜单1 diff --git a/src/router/modules/components.ts b/src/router/modules/components.ts index 978a933c8..0e446ec03 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/tag", + name: "PureTag", + component: () => import("@/views/components/tag.vue"), + meta: { + title: $t("menus.hsTag") + } + }, { path: "/components/statistic", name: "Statistic", diff --git a/src/views/components/statistic.vue b/src/views/components/statistic.vue index 478ba59c0..e36cc4f59 100644 --- a/src/views/components/statistic.vue +++ b/src/views/components/statistic.vue @@ -56,13 +56,13 @@ function reset() { format="HH:mm:ss" :value="value1" /> - - Reset + + 重置 - +