Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
najiu-admin-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
najiu-frontend
najiu-admin-template
Commits
9b8f165a
Commit
9b8f165a
authored
Jul 24, 2021
by
无木
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(table-action): stopButtonPropagation not working
修复TableAction组件的stopButtonPropagation属性无效的问题
parent
e1c47233
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+1
-0
TableAction.vue
src/components/Table/src/components/TableAction.vue
+5
-4
No files found.
CHANGELOG.zh_CN.md
View file @
9b8f165a
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
-
**ApiTreeSelect**
修复未能正确监听
`params`
变化的问题
-
**ApiTreeSelect**
修复未能正确监听
`params`
变化的问题
-
**BasicTable**
修复可编辑单元格不支持
`ellipsis`
配置的问题
-
**BasicTable**
修复可编辑单元格不支持
`ellipsis`
配置的问题
-
**ImgRotateDragVerify**
修复组件
`resume`
方法无法调用的问题
-
**ImgRotateDragVerify**
修复组件
`resume`
方法无法调用的问题
-
**TableAction**
修复 stopButtonPropagation 属性某些情况下不起作用的问题
-
**Dark Theme**
黑暗主题下的配色问题修正
-
**Dark Theme**
黑暗主题下的配色问题修正
-
修复
`Tree`
组件被选中节点的背景颜色
-
修复
`Tree`
组件被选中节点的背景颜色
-
修复
`Alert`
组件的颜色配置
-
修复
`Alert`
组件的颜色配置
...
...
src/components/Table/src/components/TableAction.vue
View file @
9b8f165a
...
@@ -140,10 +140,11 @@
...
@@ -140,10 +140,11 @@
function
onCellClick
(
e
:
MouseEvent
)
{
function
onCellClick
(
e
:
MouseEvent
)
{
if
(
!
props
.
stopButtonPropagation
)
return
;
if
(
!
props
.
stopButtonPropagation
)
return
;
const
target
=
e
.
target
as
HTMLElement
;
const
path
=
e
.
composedPath
()
as
HTMLElement
[];
if
(
target
.
tagName
===
'
BUTTON
'
)
{
const
isInButton
=
path
.
find
((
ele
)
=>
{
e
.
stopPropagation
();
return
ele
.
tagName
?.
toUpperCase
()
===
'
BUTTON
'
;
}
});
isInButton
&&
e
.
stopPropagation
();
}
}
return
{
prefixCls
,
getActions
,
getDropdownList
,
getAlign
,
onCellClick
,
getTooltip
};
return
{
prefixCls
,
getActions
,
getDropdownList
,
getAlign
,
onCellClick
,
getTooltip
};
...
...
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