Antd-mobile imagepicker how to customize the method of selecting pictures. You can only take pictures, not choose locally.

problem description

how to use antd-mobile imagepicker to customize the method of selecting pictures, which can only be taken, not selected locally? How to set

related codes

/ / Please paste the code text below (do not replace the code with pictures)

<ImagePicker
  files={files}
  onChange={this.onChange.bind(this)}
  onImageClick={(index, fs) => console.log(index,  fs)}
  selectable={files.length < 3}
  onAddImageClick={this.onAddImageClick.bind(this)}
/>

onAddImageClick (e){
    console.log(e)
}


Dec.25,2021

< input type= "file" accept= "image/*" capture= "camera" >


some Android HTML5, may not support camera hoisting. The vue example code is as follows:
< input VIFF = "! isAndroid" type= "file" accept= "image/*" capture= "camera" / >
< button VIFF = "isAndroid" @ click= "openDevicePhoto ()" > < / button > the implementation of
openDevicePhoto () is best supported by the client
.

Menu