Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wechat
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈卓 Joechan Chen
wechat
Commits
fc73bb27
Commit
fc73bb27
authored
Jun 29, 2023
by
LAPTOP-HKT2DOFA\ninghw123
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.logwire.cn/joechan.chen/wechat
parents
03103919
be9c5e28
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
index.js
src/common/commonview/singleitem/index.js
+6
-4
No files found.
src/common/commonview/singleitem/index.js
View file @
fc73bb27
...
...
@@ -6,6 +6,7 @@ import {Picker,DatePicker} from 'antd-mobile'
import
moment
from
'moment'
import
pickdown
from
'../../../assets/pickdown.png'
import
datepick
from
'../../../assets/datepick.png'
import
dele
from
'../../../assets/delete.png'
export
default
class
SingleItem
extends
Component
{
constructor
(
props
){
...
...
@@ -132,13 +133,14 @@ export function SinglePicker(props){
export
function
SingleDatePicker
(
props
){
const
CustomChildren
=
({
extra
,
onClick
,
children
,
outerStyle
})
=>
(
<
div
onClick
=
{
onClick
}
style
=
{{
backgroundColor
:
'transparent'
,
height
:
'.6rem'
,
lineHeight
:
'.6rem'
}}
>
<
div
style
=
{{
float
:
'left'
,
height
:
'100%'
,
width
:
'80%'
}}
>
<
div
onClick
=
{
onClick
}
style
=
{{
float
:
'left'
,
height
:
'100%'
,
width
:
'80%'
}}
>
<
div
style
=
{{
overflow
:
'hidden'
,
textOverflow
:
'ellipsis'
,
whiteSpace
:
'nowrap'
,
marginLeft
:
'.4rem'
}}
>
{
children
}
<
/div
>
<
/div
>
<
div
style
=
{{
float
:
'right'
,
height
:
'100%'
,
width
:
'15%'
,
marginTop
:
'.06rem'
,
marginRight
:
'0.2rem'
}}
>
<
img
src
=
{
datepick
}
/
>
<
div
onClick
=
{
children
==
"请选择"
?
props
.
del
:
v
=>
{
props
.
onChange
()}}
style
=
{{
float
:
'right'
,
height
:
'100%'
,
width
:
'15%'
,
marginTop
:
'.06rem'
,
marginRight
:
'0.2rem'
}}
>
<
img
src
=
{
children
==
"请选择"
?
datepick
:
dele
}
/
>
<
/div
>
<
/div
>
);
...
...
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