Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
YH_RNComponent
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
shangjf
2017-01-22 18:05:20 +0800
Commit
2b2c1a6b5ee1eb41c4b10c2b465ef3968145c5e2
1 parent
c2029f73
优化站内信列表点击效果 review by 陈琳
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
0 deletions
js/message/components/list/MessageList.js
js/message/components/list/MessageListBigIconCell.js
js/message/components/list/MessageListOrderCell.js
js/message/components/list/MessageListSmallIconCell.js
js/message/components/list/MessageListTextCell.js
js/message/components/list/MessageList.js
View file @
2b2c1a6
...
...
@@ -130,6 +130,10 @@ export default class MessageList extends Component {
onLongPressListItem
=
{(
itemData
)
=>
{
this
.
onLongPressListItem
(
itemData
,
rowID
);
}}
onPressListItem
=
{(
itemData
)
=>
{
this
.
setState
({
showToolTips
:
false
});
}
}
/
>
);
}
...
...
js/message/components/list/MessageListBigIconCell.js
View file @
2b2c1a6
...
...
@@ -33,6 +33,9 @@ export default class MessageListBigIconCell extends Component {
onLongPress
=
{()
=>
{
this
.
props
.
onLongPressListItem
&&
this
.
props
.
onLongPressListItem
(
itemData
);
}}
onPress
=
{()
=>
{
this
.
props
.
onPressListItem
&&
this
.
props
.
onPressListItem
(
itemData
);
}}
>
<
View
style
=
{
styles
.
titleContainer
}
>
<
Text
...
...
js/message/components/list/MessageListOrderCell.js
View file @
2b2c1a6
...
...
@@ -31,6 +31,9 @@ export default class MessageListOrderCell extends Component {
onLongPress
=
{()
=>
{
this
.
props
.
onLongPressListItem
&&
this
.
props
.
onLongPressListItem
(
itemData
);
}}
onPress
=
{()
=>
{
this
.
props
.
onPressListItem
&&
this
.
props
.
onPressListItem
(
itemData
);
}}
>
<
View
style
=
{
styles
.
contentContainer
}
>
<
Text
...
...
js/message/components/list/MessageListSmallIconCell.js
View file @
2b2c1a6
...
...
@@ -34,6 +34,9 @@ export default class MessageListSmallIconCell extends Component {
onLongPress
=
{()
=>
{
this
.
props
.
onLongPressListItem
&&
this
.
props
.
onLongPressListItem
(
itemData
);
}}
onPress
=
{()
=>
{
this
.
props
.
onPressListItem
&&
this
.
props
.
onPressListItem
(
itemData
);
}}
>
<
View
style
=
{
styles
.
contentContainer
}
>
<
Text
...
...
js/message/components/list/MessageListTextCell.js
View file @
2b2c1a6
...
...
@@ -26,6 +26,9 @@ export default class MessageListTextCell extends Component {
onLongPress
=
{()
=>
{
this
.
props
.
onLongPressListItem
&&
this
.
props
.
onLongPressListItem
(
itemData
);
}}
onPress
=
{()
=>
{
this
.
props
.
onPressListItem
&&
this
.
props
.
onPressListItem
(
itemData
);
}}
>
<
View
style
=
{
styles
.
container
}
>
<
Text
...
...
Please
register
or
login
to post a comment