Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
npm
/
glsx-components
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 997a0fe8
authored
Dec 30, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:设置table勾选栏添加外部函数传入判断
1 parent
5bccbaea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
src/packages/Table/src/index.vue
src/packages/Table/src/index.vue
View file @
997a0fe
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<span
:scope=
"scope"
></span>
<span
:scope=
"scope"
></span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
v-if=
"tableParams.mutiSelectUniqueKey && tableParams.mutiSelectName"
class-name=
"select-column"
type=
"selection"
width=
"48"
:selectable=
"checkSelectable"
:reserve-selection=
"true"
></el-table-column>
<el-table-column
v-if=
"tableParams.mutiSelectUniqueKey && tableParams.mutiSelectName"
class-name=
"select-column"
type=
"selection"
width=
"48"
:selectable=
"
tableParams.checkSelectable ||
checkSelectable"
:reserve-selection=
"true"
></el-table-column>
<el-table-column
v-if=
"hasNum"
align=
"left"
width=
"74"
label=
"序号"
class-name=
"select-index"
type=
"index"
:index=
"index => index + (page[this.pageConf.pageNum] - 1) * page[this.pageConf.pageSize] + 1"
></el-table-column>
<el-table-column
v-if=
"hasNum"
align=
"left"
width=
"74"
label=
"序号"
class-name=
"select-index"
type=
"index"
:index=
"index => index + (page[this.pageConf.pageNum] - 1) * page[this.pageConf.pageSize] + 1"
></el-table-column>
<el-table-column
v-for=
"(item, index) in tableColumns"
:key=
"index"
:label=
"item.label"
:prop=
"item.prop"
:width=
"item.width"
:min-width=
"item.minWidth"
:fixed=
"item.fixed"
:align=
"item.align || 'left'"
:sortable=
"item.sortable"
:render-header=
"item.renderHeader"
v-bind=
"item.columnattrs ? item.columnattrs : {}"
v-on=
"item.columnlisteners ? item.columnlisteners : {}"
>
<el-table-column
v-for=
"(item, index) in tableColumns"
:key=
"index"
:label=
"item.label"
:prop=
"item.prop"
:width=
"item.width"
:min-width=
"item.minWidth"
:fixed=
"item.fixed"
:align=
"item.align || 'left'"
:sortable=
"item.sortable"
:render-header=
"item.renderHeader"
v-bind=
"item.columnattrs ? item.columnattrs : {}"
v-on=
"item.columnlisteners ? item.columnlisteners : {}"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
...
@@ -216,6 +216,8 @@ export default {
...
@@ -216,6 +216,8 @@ export default {
type
:
Array
,
type
:
Array
,
default
:
()
=>
[]
default
:
()
=>
[]
},
},
// 设置禁止选中的函数
checkSelectable
:
Function
,
// 后端返回列表参数名
// 后端返回列表参数名
listName
:
{
listName
:
{
type
:
String
,
type
:
String
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment