Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xyw_asset_console
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DaiJiezhang
xyw_asset_console
Commits
80886283
Commit
80886283
authored
Jul 08, 2026
by
DaiJiezhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refine phone dialog and styles
parent
4fa4ae75
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
205 additions
and
1 deletions
+205
-1
index.html
index.html
+1
-1
phone-add-dialog.js
src/modules/phone/phone-add-dialog.js
+0
-0
styles-v2.css
styles-v2.css
+204
-0
No files found.
index.html
View file @
80886283
...
...
@@ -7,7 +7,7 @@
<title>
学有为资产管理台
</title>
<link
rel=
"icon"
href=
"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='14' fill='%230f766e'/%3E%3Ctext x='50%25' y='55%25' text-anchor='middle' font-size='26' font-family='Arial' fill='white'%3EXY%3C/text%3E%3C/svg%3E"
/>
<link
rel=
"stylesheet"
href=
"node_modules/element-plus/dist/index.css"
/>
<link
rel=
"stylesheet"
href=
"styles-v2.css?v=2026070
7
"
/>
<link
rel=
"stylesheet"
href=
"styles-v2.css?v=2026070
8b
"
/>
</head>
<body>
...
...
src/modules/phone/phone-add-dialog.js
View file @
80886283
This diff is collapsed.
Click to expand it.
styles-v2.css
View file @
80886283
...
...
@@ -1372,3 +1372,207 @@
font-size
:
13px
;
color
:
#111827
;
}
/* =========================================================
Phone Card Add/Edit Dialog
Fixed header / footer, scrollable body, compact layout.
Uses Element Plus components and project color tokens only.
========================================================= */
/* Dialog shell: flex column, max 80vh */
.phone-form-dialog
{
max-height
:
80vh
;
display
:
flex
;
flex-direction
:
column
;
margin
:
var
(
--el-dialog-margin-top
,
15vh
)
auto
50px
;
overflow
:
hidden
;
border-radius
:
12px
;
}
/* Header: fixed, compact */
.phone-form-dialog
.el-dialog__header
{
padding
:
14px
20px
12px
;
margin-right
:
0
;
border-bottom
:
1px
solid
#f0f0f0
;
flex-shrink
:
0
;
}
/* Body: scrollable middle area */
.phone-form-dialog
.el-dialog__body
{
padding
:
16px
20px
8px
;
flex
:
1
;
min-height
:
0
;
overflow-y
:
auto
;
}
/* Footer: fixed, light background to separate from content */
.phone-form-dialog
.el-dialog__footer
{
padding
:
10px
20px
14px
;
border-top
:
1px
solid
#f0f0f0
;
background
:
#fafbfc
;
flex-shrink
:
0
;
}
.phone-form-dialog__title
{
font-size
:
16px
;
font-weight
:
600
;
color
:
#1f2937
;
line-height
:
1.4
;
}
/* Compact form-item vertical rhythm */
.phone-form-dialog__form
.el-form-item
{
margin-bottom
:
14px
;
}
.phone-form-dialog__form
.el-row
:last-child
.el-form-item
{
margin-bottom
:
0
;
}
/* Section: grouped blocks with left accent bar header */
.phone-form-dialog__section
{
margin-bottom
:
18px
;
}
.phone-form-dialog__section
:last-child
{
margin-bottom
:
12px
;
}
.phone-form-dialog__section-title
{
position
:
relative
;
padding-left
:
10px
;
margin-bottom
:
14px
;
font-size
:
13px
;
font-weight
:
600
;
color
:
#1f2937
;
line-height
:
1
;
user-select
:
none
;
}
.phone-form-dialog__section-title
::before
{
content
:
""
;
position
:
absolute
;
left
:
0
;
top
:
50%
;
transform
:
translateY
(
-50%
);
width
:
3px
;
height
:
12px
;
background
:
#2563eb
;
border-radius
:
2px
;
}
/* Switch field: toggle + trailing status text */
.phone-form-dialog__switch
{
display
:
flex
;
align-items
:
center
;
gap
:
8px
;
height
:
32px
;
}
.phone-form-dialog__switch-status
{
font-size
:
12px
;
color
:
#9ca3af
;
line-height
:
1.5
;
white-space
:
nowrap
;
transition
:
color
0.2s
ease
;
}
.phone-form-dialog__switch-status.is-on
{
color
:
#2563eb
;
}
/* Image field: compact block, ~100px total height */
.phone-form-dialog__image-block
{
width
:
100%
;
display
:
flex
;
flex-direction
:
column
;
gap
:
6px
;
padding
:
10px
12px
;
background
:
#f9fafb
;
border
:
1px
solid
#e5e7eb
;
border-radius
:
6px
;
}
.phone-form-dialog__image-toolbar
{
display
:
flex
;
align-items
:
center
;
gap
:
10px
;
}
.phone-form-dialog__image-hint
{
font-size
:
12px
;
color
:
#9ca3af
;
line-height
:
1
;
}
.phone-form-dialog__image-list
{
display
:
flex
;
gap
:
8px
;
flex-wrap
:
wrap
;
min-height
:
64px
;
}
.phone-form-dialog__image-item
{
position
:
relative
;
width
:
64px
;
height
:
64px
;
border-radius
:
6px
;
overflow
:
hidden
;
border
:
1px
solid
#e5e7eb
;
background
:
#fff
;
flex
:
0
0
auto
;
}
.phone-form-dialog__image-img
{
width
:
100%
;
height
:
100%
;
object-fit
:
cover
;
display
:
block
;
}
.phone-form-dialog__image-remove
{
position
:
absolute
;
top
:
2px
;
right
:
2px
;
width
:
18px
;
height
:
18px
;
padding
:
0
;
border
:
none
;
border-radius
:
50%
;
background
:
rgba
(
17
,
24
,
39
,
0.72
);
color
:
#fff
;
font-size
:
12px
;
line-height
:
1
;
cursor
:
pointer
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
transition
:
background
0.15s
ease
;
}
.phone-form-dialog__image-remove
:hover
{
background
:
rgba
(
17
,
24
,
39
,
0.92
);
}
.phone-form-dialog__image-empty
{
width
:
64px
;
height
:
64px
;
border-radius
:
6px
;
border
:
1px
dashed
#d1d5db
;
background
:
#fff
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
color
:
#c0c4cc
;
font-size
:
12px
;
cursor
:
default
;
user-select
:
none
;
}
/* Footer: right-aligned action buttons */
.phone-form-dialog__footer
{
display
:
flex
;
justify-content
:
flex-end
;
align-items
:
center
;
gap
:
12px
;
}
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