From 99d67ed1f7a781c30524f96220a9dd40ed6e5793 Mon Sep 17 00:00:00 2001 From: liaohui <276557421@qq.com> Date: Tue, 3 Sep 2024 11:32:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0ReDrawer=20demo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/en.yaml | 3 +- locales/zh-CN.yaml | 1 + src/router/modules/components.ts | 8 + src/views/components/drawer/form.vue | 47 ++ src/views/components/drawer/formPrimitive.vue | 22 + src/views/components/drawer/index.vue | 502 ++++++++++++++++++ 6 files changed, 582 insertions(+), 1 deletion(-) create mode 100644 src/views/components/drawer/form.vue create mode 100644 src/views/components/drawer/formPrimitive.vue create mode 100644 src/views/components/drawer/index.vue diff --git a/locales/en.yaml b/locales/en.yaml index 3793277b1..755b99860 100644 --- a/locales/en.yaml +++ b/locales/en.yaml @@ -83,6 +83,7 @@ menus: pureFive: "500" pureComponents: Components pureDialog: Dialog + pureDrawer: Drawer pureMessage: Message Tips pureVideo: Video pureSegmented: Segmented @@ -233,4 +234,4 @@ login: purePassWordRuleReg: The password format should be any combination of 8-18 digits purePassWordSureReg: Please enter confirm password purePassWordDifferentReg: The two passwords do not match! - purePassWordUpdateReg: Password has been updated \ No newline at end of file + purePassWordUpdateReg: Password has been updated diff --git a/locales/zh-CN.yaml b/locales/zh-CN.yaml index 7be27a8ec..bf3bf5a33 100644 --- a/locales/zh-CN.yaml +++ b/locales/zh-CN.yaml @@ -83,6 +83,7 @@ menus: pureFive: "500" pureComponents: 组件 pureDialog: 函数式弹框 + pureDrawer: 函数式抽屉 pureMessage: 消息提示 pureVideo: 视频 pureSegmented: 分段控制器 diff --git a/src/router/modules/components.ts b/src/router/modules/components.ts index 830cea5d9..053840169 100644 --- a/src/router/modules/components.ts +++ b/src/router/modules/components.ts @@ -18,6 +18,14 @@ export default { title: $t("menus.pureDialog") } }, + { + path: "/components/drawer", + name: "DrawerPage", + component: () => import("@/views/components/drawer/index.vue"), + meta: { + title: $t("menus.pureDrawer") + } + }, { path: "/components/message", name: "Message", diff --git a/src/views/components/drawer/form.vue b/src/views/components/drawer/form.vue new file mode 100644 index 000000000..f5383d6a4 --- /dev/null +++ b/src/views/components/drawer/form.vue @@ -0,0 +1,47 @@ + + + diff --git a/src/views/components/drawer/formPrimitive.vue b/src/views/components/drawer/formPrimitive.vue new file mode 100644 index 000000000..af4bc34c5 --- /dev/null +++ b/src/views/components/drawer/formPrimitive.vue @@ -0,0 +1,22 @@ + + + diff --git a/src/views/components/drawer/index.vue b/src/views/components/drawer/index.vue new file mode 100644 index 000000000..c40f62898 --- /dev/null +++ b/src/views/components/drawer/index.vue @@ -0,0 +1,502 @@ + + +