diff --git a/src/components/Dialog/index.ts b/src/components/Dialog/index.ts
new file mode 100644
index 000000000..1655dadce
--- /dev/null
+++ b/src/components/Dialog/index.ts
@@ -0,0 +1,3 @@
+import Dialog from './src/Dialog.vue'
+
+export { Dialog }
diff --git a/src/components/Dialog/src/Dialog.vue b/src/components/Dialog/src/Dialog.vue
new file mode 100644
index 000000000..64cfd93a5
--- /dev/null
+++ b/src/components/Dialog/src/Dialog.vue
@@ -0,0 +1,107 @@
+
+
+
+
+
+
+
+ {{ title }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/locales/en.ts b/src/locales/en.ts
index 7b0676100..9614384c7 100644
--- a/src/locales/en.ts
+++ b/src/locales/en.ts
@@ -104,7 +104,8 @@ export default {
table: 'Table',
defaultTable: 'Basic example',
editor: 'Editor',
- richText: 'Rich text'
+ richText: 'Rich text',
+ dialog: 'Dialog'
},
analysis: {
newUser: 'New user',
@@ -336,5 +337,11 @@ export default {
richText: {
richText: 'Rich text',
richTextDes: 'Secondary packaging based on wangeditor'
+ },
+ dialogDemo: {
+ dialog: 'Dialog',
+ dialogDes: 'Secondary packaging of Dialog components based on ElementPlus',
+ open: 'Open',
+ close: 'Close'
}
}
diff --git a/src/locales/zh-CN.ts b/src/locales/zh-CN.ts
index cc7106ada..9fe92a264 100644
--- a/src/locales/zh-CN.ts
+++ b/src/locales/zh-CN.ts
@@ -104,7 +104,8 @@ export default {
table: '表格',
defaultTable: '基础示例',
editor: '编辑器',
- richText: '富文本'
+ richText: '富文本',
+ dialog: '弹窗'
},
analysis: {
newUser: '新增用户',
@@ -333,5 +334,11 @@ export default {
richText: {
richText: '富文本',
richTextDes: '基于 wangeditor 二次封装'
+ },
+ dialogDemo: {
+ dialog: '弹窗',
+ dialogDes: '基于 ElementPlus 的 Dialog 组件二次封装',
+ open: '打开',
+ close: '关闭'
}
}
diff --git a/src/router/index.ts b/src/router/index.ts
index e67409b5e..88fdb3489 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -193,6 +193,14 @@ export const asyncRouterMap: AppRouteRecordRaw[] = [
title: t('router.search')
}
},
+ {
+ path: 'dialog',
+ component: () => import('@/views/Components/Dialog.vue'),
+ name: 'Dialog',
+ meta: {
+ title: t('router.dialog')
+ }
+ },
{
path: 'icon',
component: () => import('@/views/Components/Icon.vue'),
diff --git a/src/views/Components/Dialog.vue b/src/views/Components/Dialog.vue
new file mode 100644
index 000000000..0e48015ec
--- /dev/null
+++ b/src/views/Components/Dialog.vue
@@ -0,0 +1,25 @@
+
+
+
+
+
+ {{ t('dialogDemo.open') }}
+
+
+
+