diff --git a/locales/en.yaml b/locales/en.yaml index f6dbce51f..993c33efb 100644 --- a/locales/en.yaml +++ b/locales/en.yaml @@ -102,6 +102,7 @@ menus: hsCascader: Area Cascader hsSwiper: Swiper Plugin hsVirtualList: Virtual List + hsCheckButton: Check Button hsPdf: PDF Preview hsExcel: Export Excel hsInfiniteScroll: Table Infinite Scroll diff --git a/locales/zh-CN.yaml b/locales/zh-CN.yaml index 865680279..6fa2ea75f 100644 --- a/locales/zh-CN.yaml +++ b/locales/zh-CN.yaml @@ -102,6 +102,7 @@ menus: hsCascader: 区域级联选择器 hsSwiper: Swiper插件 hsVirtualList: 虚拟列表 + hsCheckButton: 可选按钮 hsPdf: PDF预览 hsExcel: 导出Excel hsInfiniteScroll: 表格无限滚动 diff --git a/src/router/enums.ts b/src/router/enums.ts index 17def4030..7ed7d34c4 100644 --- a/src/router/enums.ts +++ b/src/router/enums.ts @@ -4,11 +4,11 @@ const home = 0, // 平台规定只有 home 路由的 rank 才能为 0 ,所以 able = 1, components = 2, table = 3, - frame = 4, - nested = 5, - result = 6, - error = 7, - list = 8, + list = 4, + result = 5, + error = 6, + frame = 7, + nested = 8, permission = 9, system = 10, tabs = 11, @@ -26,11 +26,11 @@ export { able, components, table, - frame, - nested, + list, result, error, - list, + frame, + nested, permission, system, tabs, diff --git a/src/router/modules/components.ts b/src/router/modules/components.ts index e8402e6ca..994c36eba 100644 --- a/src/router/modules/components.ts +++ b/src/router/modules/components.ts @@ -15,8 +15,7 @@ export default { name: "DialogPage", component: () => import("@/views/components/dialog/index.vue"), meta: { - title: $t("menus.hsdialog"), - extraIcon: "IF-pure-iconfont-new svg" + title: $t("menus.hsdialog") } }, { @@ -51,13 +50,21 @@ export default { title: $t("menus.hscropping") } }, + { + path: "/components/checkButton", + name: "CheckButton", + component: () => import("@/views/components/check-button.vue"), + meta: { + title: $t("menus.hsCheckButton"), + extraIcon: "IF-pure-iconfont-new svg" + } + }, { path: "/components/segmented", name: "Segmented", component: () => import("@/views/components/segmented.vue"), meta: { - title: $t("menus.hssegmented"), - extraIcon: "IF-pure-iconfont-new svg" + title: $t("menus.hssegmented") } }, { diff --git a/src/router/modules/nested.ts b/src/router/modules/nested.ts index e7866d783..623f60421 100644 --- a/src/router/modules/nested.ts +++ b/src/router/modules/nested.ts @@ -52,8 +52,7 @@ export default { name: "Menu1-2-2", meta: { title: $t("menus.hsmenu1-2-2"), - keepAlive: true, - extraIcon: "IF-pure-iconfont-new svg" + keepAlive: true } } ] diff --git a/src/views/components/check-button.vue b/src/views/components/check-button.vue new file mode 100644 index 000000000..b7c52e140 --- /dev/null +++ b/src/views/components/check-button.vue @@ -0,0 +1,275 @@ + + + + +