Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VueElementTemplate
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
黄瑜
VueElementTemplate
Commits
e03dbb66
Commit
e03dbb66
authored
Apr 09, 2018
by
杨柠瑞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coding
parent
2dea04e7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
HmComplexTable.vue
src/views/haomo/components/tables/HmComplexTable.vue
+7
-2
index.vue
src/views/haomo/components/tables/index.vue
+1
-0
No files found.
src/views/haomo/components/tables/HmComplexTable.vue
View file @
e03dbb66
...
@@ -102,7 +102,7 @@
...
@@ -102,7 +102,7 @@
<!-- end 过滤 -->
<!-- end 过滤 -->
<!-- 表格 -->
<!-- 表格 -->
<el-table
:data=
"list"
v-loading=
"listLoading"
element-loading-text=
"给我一点时间"
border
fit
highlight-current-row
<el-table
:data=
"list"
v-loading=
"listLoading"
element-loading-text=
"给我一点时间"
border
fit
highlight-current-row
:cell-style=
"cellStyle"
style=
"width: 100%"
@
selection-change=
"handleSelectionChange"
@
sort-change=
"sortChange"
@
current-change=
"tableCurrentChange"
>
style=
"width: 100%"
@
selection-change=
"handleSelectionChange"
@
sort-change=
"sortChange"
@
current-change=
"tableCurrentChange"
>
<el-table-column
type=
"index"
:index=
"indexMethod"
label=
"序号"
width=
"50px"
></el-table-column>
<el-table-column
type=
"index"
:index=
"indexMethod"
label=
"序号"
width=
"50px"
></el-table-column>
<el-table-column
type=
"selection"
width=
"55"
v-if=
"isShowSelection"
></el-table-column>
<el-table-column
type=
"selection"
width=
"55"
v-if=
"isShowSelection"
></el-table-column>
...
@@ -283,7 +283,7 @@
...
@@ -283,7 +283,7 @@
},
},
/**
/**
* 表格的选项,包括:pageSize、showExport、sortItem、sortOrder、showRefresh、showDeleteButton、isShowPagination、isShowSearch
* 表格的选项,包括:pageSize、showExport、sortItem、sortOrder、showRefresh、showDeleteButton、isShowPagination、isShowSearch
* buttonGroup、showDetail、dataProcessing、promiseProcessing、changeValue、newData、editData完整的示例为:
* buttonGroup、showDetail、dataProcessing、promiseProcessing、changeValue、newData、editData
、cellStyle
完整的示例为:
* {
* {
* "pageSize": 10, // 默认为10条数据/页
* "pageSize": 10, // 默认为10条数据/页
* "showExport": false, // 默认为不显示导出按钮
* "showExport": false, // 默认为不显示导出按钮
...
@@ -316,6 +316,7 @@
...
@@ -316,6 +316,7 @@
* showDetail: { // 详情的的配置(详细配置参考form表单)
* showDetail: { // 详情的的配置(详细配置参考form表单)
* isShow: false, // 默认不显示详情
* isShow: false, // 默认不显示详情
* },
* },
* cellStyle:{} // 自定义单元格的样式
* }
* }
*/
*/
options
:
{
options
:
{
...
@@ -370,6 +371,7 @@
...
@@ -370,6 +371,7 @@
isShowExport
:
false
,
// 是否显示导出按钮
isShowExport
:
false
,
// 是否显示导出按钮
isShowPagination
:
true
,
// 是否显示分页
isShowPagination
:
true
,
// 是否显示分页
isShowSearch
:
true
,
// 是否显示搜索按钮
isShowSearch
:
true
,
// 是否显示搜索按钮
cellStyle
:
{},
// 自定义表格单元格的样式
HmComplexForm
:
{
// 设置form组件
HmComplexForm
:
{
// 设置form组件
formSchema
:
{},
// form弹窗的Schema定义
formSchema
:
{},
// form弹窗的Schema定义
showUserColumns
:
[],
// form弹窗的Columns定义
showUserColumns
:
[],
// form弹窗的Columns定义
...
@@ -776,6 +778,9 @@
...
@@ -776,6 +778,9 @@
if
(
self
.
options
.
isShowSearch
!==
undefined
)
{
// 判断是否显示刷新
if
(
self
.
options
.
isShowSearch
!==
undefined
)
{
// 判断是否显示刷新
self
.
isShowSearch
=
self
.
options
.
isShowSearch
self
.
isShowSearch
=
self
.
options
.
isShowSearch
}
}
if
(
self
.
options
.
cellStyle
)
{
// 自定义表格单元格的样式
self
.
cellStyle
=
self
.
options
.
cellStyle
}
if
(
self
.
options
.
isShowPagination
!==
undefined
)
{
// 判断是否显示分页
if
(
self
.
options
.
isShowPagination
!==
undefined
)
{
// 判断是否显示分页
self
.
isShowPagination
=
self
.
options
.
isShowPagination
self
.
isShowPagination
=
self
.
options
.
isShowPagination
}
}
...
...
src/views/haomo/components/tables/index.vue
View file @
e03dbb66
...
@@ -96,6 +96,7 @@
...
@@ -96,6 +96,7 @@
// end: 'lastUpdateTime'
// end: 'lastUpdateTime'
// }
// }
// },
// },
cellStyle
:
{},
isShowPagination
:
true
,
isShowPagination
:
true
,
isShowSearch
:
true
,
isShowSearch
:
true
,
showRefresh
:
true
,
showRefresh
:
true
,
...
...
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