Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
factory_front
Commits
789cfb55
Commit
789cfb55
authored
Jul 29, 2026
by
wusiyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: elementPlus样式适配
parent
76805051
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
1 deletions
+21
-1
src/main.ts
+1
-1
src/styles/element.scss
+20
-0
No files found.
src/main.ts
View file @
789cfb55
...
...
@@ -4,6 +4,7 @@ import App from './App.vue'
import
router
,
{
registerDynamicRoutes
}
from
'./router'
import
store
from
'./store'
import
'./styles/index.scss'
import
'element-plus/es/components/message/style/css'
import
roleShow
from
'./utils/roleShow'
import
VxeUITable
from
'vxe-table'
import
'vxe-table/lib/style.css'
...
...
@@ -46,5 +47,4 @@ app
.
use
(
VxeUITable
)
.
mount
(
'#app'
)
app
.
config
.
globalProperties
.
$isPermissionBtn
=
isPermissionBtn
src/styles/element.scss
View file @
789cfb55
...
...
@@ -45,3 +45,23 @@
.el-loading-mask
{
z-index
:
1020
!
important
;
}
/* ElMessage:兼容 Vite 预构建旧版 JS(无 is-center)与新版 CSS 的定位差异 */
.el-message
{
left
:
50%
;
transform
:
translateX
(
-50%
);
}
.el-message.is-left
{
left
:
16px
;
right
:
auto
;
transform
:
none
;
}
.el-message.is-right
{
left
:
auto
;
right
:
16px
;
transform
:
none
;
}
.el-message.is-center
{
left
:
50%
;
transform
:
translateX
(
-50%
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment