diff --git a/ruoyi-ui/package.json b/ruoyi-ui/package.json index fc15b2e15..1670dd7ef 100644 --- a/ruoyi-ui/package.json +++ b/ruoyi-ui/package.json @@ -42,6 +42,7 @@ "core-js": "3.19.1", "echarts": "4.9.0", "element-ui": "2.15.6", + "font-awesome": "^4.7.0", "file-saver": "2.0.5", "fuse.js": "6.4.3", "highlight.js": "9.18.5", diff --git a/ruoyi-ui/src/assets/styles/element-ui.scss b/ruoyi-ui/src/assets/styles/element-ui.scss index 363092a63..23173d126 100644 --- a/ruoyi-ui/src/assets/styles/element-ui.scss +++ b/ruoyi-ui/src/assets/styles/element-ui.scss @@ -53,6 +53,22 @@ position: relative; margin: 0 auto; } +/** 全局修改 - 不能响应式变化窗口 */ +//.el-dialog { +// position: absolute; +// top: 50%; +// left: 50%; +// margin: 0 !important; +// transform: translate(-50%, -50%); +// max-height: calc(100% - 30px); +// max-width: calc(100% - 30px); +// display: flex; +// flex-direction: column; +// > .el-dialog__body { +// overflow: auto; +// color: #666666; +// } +//} // refine element ui upload .upload-container { diff --git a/ruoyi-ui/src/assets/styles/ruoyi.scss b/ruoyi-ui/src/assets/styles/ruoyi.scss index e3912cec8..f71026bc8 100644 --- a/ruoyi-ui/src/assets/styles/ruoyi.scss +++ b/ruoyi-ui/src/assets/styles/ruoyi.scss @@ -60,8 +60,39 @@ color: inherit; } -.el-dialog:not(.is-fullscreen) { - margin-top: 6vh !important; +/** el-dialog弹框 */ +.el-dialog__title { + font-weight: bold; +} +// 自定义样式 +.custom_dialog { + flex-direction: column; + justify-content: center; + align-items: Center; + .el-dialog { + position: absolute; + top: 50%; + left: 50%; + margin: 0 auto !important; + transform: translate(-50%, -50%); + max-height: calc(100% - 30px); + max-width: calc(100% - 30px); + display: flex; + flex-direction: column; + .el-dialog__body { + overflow: hidden; + overflow-y: auto; + } + } +} + +.el-dialog__header { + border-bottom: 1px solid #e8e8e8; + border-radius: 4px 4px 0 0; +} +.el-dialog__footer { + border-top: 1px solid #e8e8e8; + border-radius: 0 0 4px 4px; } .el-dialog__wrapper.scrollbar .el-dialog .el-dialog__body { diff --git a/ruoyi-ui/src/components/IconDialogSelect/index.vue b/ruoyi-ui/src/components/IconDialogSelect/index.vue new file mode 100644 index 000000000..020e85b12 --- /dev/null +++ b/ruoyi-ui/src/components/IconDialogSelect/index.vue @@ -0,0 +1,161 @@ + + + + + diff --git a/ruoyi-ui/src/components/SvgIcon/index.vue b/ruoyi-ui/src/components/SvgIcon/index.vue index 340ace45c..38859596f 100644 --- a/ruoyi-ui/src/components/SvgIcon/index.vue +++ b/ruoyi-ui/src/components/SvgIcon/index.vue @@ -1,5 +1,6 @@