File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
packages/taro-ui/src/components/image-picker Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -137,14 +137,15 @@ export default class AtImagePicker extends React.Component<AtImagePickerProps> {
137
137
key = { 'empty_' + i * length + j }
138
138
>
139
139
{ item . type === 'btn' && (
140
- < View
141
- className = 'at-image-picker__item at-image-picker__choose-btn'
142
- onClick = { this . chooseFile }
143
- >
144
- < View className = 'add-bar' > </ View >
145
- < View className = 'add-bar' > </ View >
146
- </ View >
147
- ) }
140
+ < View onClick = { this . chooseFile } >
141
+ {
142
+ this . props . children
143
+ || < View className = 'at-image-picker__item at-image-picker__choose-btn' >
144
+ < View className = 'add-bar' > </ View >
145
+ < View className = 'add-bar' > </ View >
146
+ </ View >
147
+ }
148
+ </ View > ) }
148
149
</ View >
149
150
)
150
151
) }
You can’t perform that action at this time.
0 commit comments