Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhouqian
vue-gjjs
Commits
b432a9ce
Commit
b432a9ce
authored
Sep 08, 2021
by
liushikai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
table优化
parent
d8abe43e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
IStreamTable.vue
src/components/IStreamTable.vue
+1
-1
IStreamTableDocpan.vue
src/components/IStreamTableDocpan.vue
+3
-1
Table.vue
src/components/Table.vue
+1
-1
No files found.
src/components/IStreamTable.vue
View file @
b432a9ce
...
...
@@ -2,7 +2,7 @@
<div
class=
"eContainer-table-block"
>
<el-table
:data=
"tableData.slice((currentPage - 1) * pageSize, currentPage * pageSize)"
style=
"width: 100%"
class=
"eContainer-table
"
:class=
"
{'eContainer-table':this.tableData.slice((currentPage - 1) * pageSize, currentPage * pageSize).length>0}
"
@selection-change="handleSelectionChange"
:row-key="getRowKey"
:header-cell-style="{background: 'eef1f6', color: '#606266'}"
...
...
src/components/IStreamTableDocpan.vue
View file @
b432a9ce
...
...
@@ -3,7 +3,7 @@
<el-table
:data=
"tableData.slice((currentPage - 1) * pageSize, currentPage * pageSize)"
style=
"width: 100%"
class=
"eContainer-table
"
:class=
"
{'eContainer-table':this.tableData.slice((currentPage - 1) * pageSize, currentPage * pageSize).length>0}
"
:row-class-name="tableRowClassName"
:header-cell-style="{background: 'eef1f6', color: '#606266'}"
:border="true">
...
...
@@ -116,4 +116,5 @@ export default {
.el-table
.success-row
{
background
:
#f0f9eb
;
}
</
style
>
\ No newline at end of file
src/components/Table.vue
View file @
b432a9ce
<
template
>
<div
class=
"eContainer-table-block"
>
<el-table
:id=
"tableRef"
:data=
"list"
ref=
"table"
style=
"width: 100%"
class=
"eContainer-table
"
:header-cell-style=
"
{background: 'eef1f6', color: '#606266'}"
<el-table
:id=
"tableRef"
:data=
"list"
ref=
"table"
style=
"width: 100%"
:class=
"
{'eContainer-table':this.list.length>0}
" :header-cell-style="{background: 'eef1f6', color: '#606266'}"
v-bind="$attrs" v-on="tableListeners" v-loading="loading" :row-class-name="tableRowClass" :max-height="maxHeight"
>
<el-table-column
...
...
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