Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cy-admin-ui
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
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
webpack
cy-admin-ui
Commits
81e463d9
Commit
81e463d9
authored
Feb 09, 2022
by
毛线
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
e5d82a73
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
layout-table.vue
packages/layout/src/layout-table.vue
+2
-2
layout.vue
packages/layout/src/layout.vue
+1
-1
No files found.
packages/layout/src/layout-table.vue
View file @
81e463d9
<
template
>
<cy-table
v-loading=
"loading"
:row-key=
"primaryKey"
:list=
"data"
:columns=
"columns"
:height=
"height"
@
select
Row
=
"(selection) => handler().selectionChange(selection)"
>
<cy-table
v-loading=
"loading"
:row-key=
"primaryKey"
:list=
"data"
:columns=
"columns"
:height=
"height"
@
select
ion-change
=
"(selection) => handler().selectionChange(selection)"
>
<template
v-for=
"(column, index) in columns.filter(i => i.type == 'slot')"
#[
column
.
slotName
]="
{ data, $index }">
<slot
:name=
"column.slotName"
:data=
"data"
:index=
"$index"
/>
</
template
>
...
...
@@ -101,7 +101,7 @@ export default {
handler
()
{
return
{
selectionChange
:
(
selection
)
=>
{
this
.
$emit
(
'select
Row
'
,
selection
)
this
.
$emit
(
'select
ion-change
'
,
selection
)
},
}
},
...
...
packages/layout/src/layout.vue
View file @
81e463d9
...
...
@@ -40,7 +40,7 @@
<!-- 内容区域 -->
<div
class=
"content"
>
<!-- 自定义table组件 -->
<LqLayoutTable
ref=
"table"
v-if=
"table.show !== false"
:primary-key=
"primaryKey"
:list-api=
"listApi"
:props=
"table"
:params=
"tableParams"
@
select
Row=
"(e) => {$emit('selectRow
', e); selection = e}"
>
<LqLayoutTable
ref=
"table"
v-if=
"table.show !== false"
:primary-key=
"primaryKey"
:list-api=
"listApi"
:props=
"table"
:params=
"tableParams"
@
select
ion-change=
"(e) => {$emit('selection-change
', e); selection = e}"
>
<
template
v-for=
"column in table.columns.filter(i => i.type == 'slot')"
#[
column
.
slotName
]="{
data
,
$
index
}"
>
<slot
:name=
"column.slotName"
:data=
"data"
:index=
"$index"
/>
</
template
>
...
...
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