Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
hs-sky-ui
Project
Project
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
何虹
hs-sky-ui
Commits
a0114ca5
Commit
a0114ca5
authored
Jan 16, 2021
by
何虹
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
表格行点击事件暴露参数更改
parent
c3a22ea3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
index.vue
src/packages/hs-dialog-table/src/index.vue
+2
-2
child.vue
src/packages/hs-table/src/child.vue
+1
-1
No files found.
src/packages/hs-dialog-table/src/index.vue
View file @
a0114ca5
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
v-on=
"$listeners"
v-on=
"$listeners"
>
>
<div
slot=
"body"
>
<div
slot=
"body"
>
<!--
<dyncFormComponent
<!--
<dyncFormComponent
@
searchSubmit=
'query'
@
searchSubmit=
'query'
type=
'queryArea'
type=
'queryArea'
:formParms=
'searchForm'
:formParms=
'searchForm'
...
@@ -96,7 +96,7 @@ export default {
...
@@ -96,7 +96,7 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
handleClick
(
item
)
{
handleClick
(
row
,
item
)
{
const
{
click
}
=
item
const
{
click
}
=
item
switch
(
click
)
{
switch
(
click
)
{
case
'addRow'
:
case
'addRow'
:
...
...
src/packages/hs-table/src/child.vue
View file @
a0114ca5
...
@@ -733,7 +733,7 @@ export default {
...
@@ -733,7 +733,7 @@ export default {
if
(
type
===
'string'
&&
click
.
startsWith
(
'$'
))
{
if
(
type
===
'string'
&&
click
.
startsWith
(
'$'
))
{
const
item_
=
Object
.
assign
({},
item
)
// 拷贝一份item
const
item_
=
Object
.
assign
({},
item
)
// 拷贝一份item
item_
.
click
=
item_
.
click
.
substr
(
1
)
item_
.
click
=
item_
.
click
.
substr
(
1
)
this
.
$emit
(
'handleClick'
,
row
,
item
,
bindEntity
)
this
.
$emit
(
'handleClick'
,
row
,
item
,
bindEntity
)
}
else
if
(
type
===
'function'
)
{
}
else
if
(
type
===
'function'
)
{
click
(
row
,
item
,
bindEntity
)
click
(
row
,
item
,
bindEntity
)
}
}
...
...
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