Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vipSupplier
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
0
Merge Requests
0
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
王淑敏
vipSupplier
Commits
dfcf5af4
Commit
dfcf5af4
authored
Oct 09, 2020
by
chuzhixin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
优化表格手机端展示
parent
8cc5f484
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
src/styles/variables.scss
+1
-1
src/utils/vab.js
+1
-1
src/views/vab/table/index.vue
+7
-0
No files found.
src/styles/variables.scss
View file @
dfcf5af4
...
@@ -57,7 +57,7 @@ $base-menu-item-height: 50px;
...
@@ -57,7 +57,7 @@ $base-menu-item-height: 50px;
//app-main的高度
//app-main的高度
$base-app-main-height
:
calc
(
$base-app-main-height
:
calc
(
100vh
-
#{
$base-nav-bar-height
}
-
#{
$base-tabs-bar-height
}
-
#{
$base-padding
}
-
100vh
-
#{
$base-nav-bar-height
}
-
#{
$base-tabs-bar-height
}
-
#{
$base-padding
}
-
#{
$base-padding
}
-
55px
-
30
px
#{
$base-padding
}
-
55px
-
55
px
);
);
//纵向布局时左侧导航未折叠时的宽度
//纵向布局时左侧导航未折叠时的宽度
$base-left-menu-width
:
240px
;
$base-left-menu-width
:
240px
;
...
...
src/utils/vab.js
View file @
dfcf5af4
...
@@ -132,7 +132,7 @@ const install = (Vue, opts = {}) => {
...
@@ -132,7 +132,7 @@ const install = (Vue, opts = {}) => {
const
formHeight
=
50
const
formHeight
=
50
if
(
layout
===
'vertical'
)
{
if
(
layout
===
'vertical'
)
{
paddingHeight
=
3
40
paddingHeight
=
3
65
}
}
if
(
'number'
==
typeof
formType
)
{
if
(
'number'
==
typeof
formType
)
{
...
...
src/views/vab/table/index.vue
View file @
dfcf5af4
...
@@ -42,6 +42,7 @@
...
@@ -42,6 +42,7 @@
v-loading=
"listLoading"
v-loading=
"listLoading"
:data=
"list"
:data=
"list"
:element-loading-text=
"elementLoadingText"
:element-loading-text=
"elementLoadingText"
:height=
"height"
@
selection-change=
"setSelectRows"
@
selection-change=
"setSelectRows"
@
sort-change=
"tableSortChange"
@
sort-change=
"tableSortChange"
>
>
...
@@ -156,6 +157,12 @@
...
@@ -156,6 +157,12 @@
},
},
}
}
},
},
computed
:
{
height
()
{
alert
(
this
.
$baseTableHeight
())
return
this
.
$baseTableHeight
()
},
},
created
()
{
created
()
{
this
.
fetchData
()
this
.
fetchData
()
},
},
...
...
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