From 50156e770d0c88393d53b6135bde1823422bbd0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E5=81=9A=E7=A0=81=E5=86=9C?= <599854767@qq.com> Date: Thu, 17 Aug 2023 16:44:34 +0800 Subject: [PATCH] =?UTF-8?q?:zap:=E6=96=B0=E5=A2=9Ezr-dialog=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=8F=AF=E4=BB=A5=E5=AE=9E=E7=8E=B0=E5=85=A8=E5=B1=8F?= =?UTF-8?q?dialog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/styles/element-ui.scss | 5 ++ src/components/Dialog/index.vue | 93 +++++++++++++++++++++++++++++++ src/main.js | 3 + src/views/system/notice/index.vue | 4 +- 4 files changed, 103 insertions(+), 2 deletions(-) create mode 100644 src/components/Dialog/index.vue diff --git a/src/assets/styles/element-ui.scss b/src/assets/styles/element-ui.scss index d599028..73de1bf 100644 --- a/src/assets/styles/element-ui.scss +++ b/src/assets/styles/element-ui.scss @@ -128,7 +128,12 @@ justify-content: space-between; } } + // el-table 表头样式 .el-table-header-cell { text-align: center !important; } + +.el-dialog__headerbtn { + width: 47px !important; +} diff --git a/src/components/Dialog/index.vue b/src/components/Dialog/index.vue new file mode 100644 index 0000000..8222794 --- /dev/null +++ b/src/components/Dialog/index.vue @@ -0,0 +1,93 @@ + + + + diff --git a/src/main.js b/src/main.js index c48be56..ca1a1ce 100644 --- a/src/main.js +++ b/src/main.js @@ -41,6 +41,8 @@ import ImagePreview from '@/components/ImagePreview' import DictTag from '@/components/DictTag' // el-date-picker 快捷选项 import dateOptions from '@/utils/dateOptions' +// Dialog组件 +import Dialog from '@/components/Dialog' const app = createApp(App) signalR.init(import.meta.env.VITE_APP_SOCKET_API) @@ -65,6 +67,7 @@ app.component('UploadImage', ImageUpload) app.component('ImagePreview', ImagePreview) app.component('RightToolbar', RightToolbar) app.component('svg-icon', SvgIcon) +app.component('ZrDialog', Dialog) directive(app) diff --git a/src/views/system/notice/index.vue b/src/views/system/notice/index.vue index 62489fd..3a0c993 100644 --- a/src/views/system/notice/index.vue +++ b/src/views/system/notice/index.vue @@ -68,7 +68,7 @@ - + @@ -104,7 +104,7 @@ {{ $t('btn.cancel') }} {{ $t('btn.submit') }} - +